|
Server IP : 2a02:4780:3:1493:0:3736:a38e:7 / Your IP : 216.73.216.60 Web Server : LiteSpeed System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.77.1.lve.el8.x86_64 #1 SMP Wed Oct 8 14:21:00 UTC 2025 x86_64 User : u926327694 ( 926327694) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u926327694/domains/smsoft.in/public_html/demo/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?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 is logged in or not
if(empty($_SESSION['Phone_user']))
{
// If they are not, we redirect them to the login page.
header("Location: index.php");
// Remember that this die statement is absolutely critical. Without it,
// people can view your members-only content without logging in.
die("Redirecting to index.php");
}
// 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";
$cl=$_SESSION['Phone_user'];
$r5=mysqli_query($con,"SELECT * FROM `stud_basic` WHERE `Phone` = '$cl' ");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- start: Meta -->
<meta charset="utf-8">
<title>Fees Management</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>
<!-- start: Header -->
<?php
include "user_bar.php"; ?>
<!-- start: Main Menu -->
<!-- end: Main Menu -->
<!-- start: Content -->
<br><br>
<div >
<ul class="breadcrumb">
<li>
<i class="icon-home"></i>
<a href="user_Pay_fees.php">Home</a>
<i class="icon-angle-right"></i>
</li>
<li><a href="#">Pay fees</a></li>
</ul>
<div class="row-fluid" >
<div class="span12">
<div class="box-header" >
<h2><i class="halflings-icon white user"></i><span class="break"></span>Pay Fees</h2>
<div class="box-icon">
</div>
</div>
<div class="box-content" >
<table class="table">
<thead>
<tr>
<th>Name</th>
<!-- <th>Paid</th>
<th>Balance</th> -->
<th>Pay To</th>
<th>Pay Button</th>
</tr>
</thead>
<tbody>
<?php
while($row5=mysqli_fetch_array($r5))
{
?>
<tr>
<td><a href="stud_profile1.php?key=<?php echo "$row5[Stud_Id]"; ?>" ><?php echo "$row5[Name]"; ?> </a><br>
<?php
$paid_res=mysqli_query($con,"SELECT SUM(`Paid`) as stud from stud_basic2 WHERE `Stud_Id` = '$row5[Stud_Id]'");
$paid=mysqli_fetch_array($paid_res);
echo "Paid : ".$paid['0']; ?> <?php
$bal_res=mysqli_query($con,"SELECT SUM(`Balance`) as stud from stud_basic2 WHERE `Stud_Id` = '$row5[Stud_Id]'");
$bal=mysqli_fetch_array($bal_res);
echo "<br>Balance".$bal['0']; ?>
</td>
<td class="center">
<?php
?>
<form action="user_pay_process_2.php" method="post" >
<?php
$r7=mysqli_query($con,"SELECT DISTINCT `Head_Id` FROM `stud_basic2` where `Balance` <> 0 and `Stud_Id` = '$row5[Stud_Id]' ");
?>
<select name="payto" style="width: 100px;">
<?php
While($row7=mysqli_fetch_array($r7))
{
$r8=mysqli_query($con,"SELECT * FROM `head` WHERE `Head_Id` = '$row7[Head_Id]'");
$row8=mysqli_fetch_array($r8);
?>
<option Name="payto[]" value="<?php echo "$row7[Head_Id]";?>"><?php echo "$row8[Name]"; ?> </option>
<!-- <input type="radio" Name="payto[]" value="<?php// echo "$row7[Head_Id]";?>"><?php //echo "$row8[Name]"; ?> <br>-->
<?php
}
?>
</select>
<input type="hidden" value="<?php echo $row5['Stud_Id']; ?>" name="id">
</td>
<td class="center">
<?php
$r7=mysqli_query($con,"SELECT DISTINCT `Head_Id` FROM `stud_basic2` where `Balance` <> 0 and `Stud_Id` = '$row5[Stud_Id]' ");
$row7=mysqli_num_rows($r7);
if($row7 == 0)
{
?><center>
<label class="label label-success">Paid</label></center>
<?php
}else
{
?><center>
<input type="submit" class="btn btn-small btn-danger" value="PAY" name="" align="center"></center>
<?php } ?>
</form>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div> </div> </div></div>
<!--/.fluid-container-->
<!-- end: Content -->
<!--/fluid-row-->
<footer>
<p>
<span style="text-align:left;float:left">© 2018 <a href="http://evisioninfotech.in" alt="Bootstrap_Metro_Dashboard">e vision infotech</a></span>
</p>
</footer>
<!-- 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>
</body>
</html>