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/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u926327694/domains/smsoft.in/public_html/demo/src/../phonepaylink.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['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
if (isset($_SESSION['key']))
  if ($_SESSION['key'] != NULL){
      $sid=$_SESSION['key'];                  
  }
include "config/config.php";
 ?>
 
<!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="box-header" >
						<h2><i class="halflings-icon white user"></i><span class="break"></span>Pay Fees</h2>
						 
					</div>
					<form action="" method="POST"> 
							<table id="example" class="table">
						  <thead>
							  <tr>
								  <th>Stud Id</th>
								   <th>Message</th>
								  <th>Approve</th>
							  </tr>
						  </thead>   
						  <tbody>

						  	<?php
							
							 
						$flag_c=mysqli_query($con,"SELECT * FROM `paid_fees` WHERE `flag`='0' and `Mode` = 'Online' and `Stud_Id` = '$sid'");

						 while($flag1=mysqli_fetch_array($flag_c))
									{
						$basic_res=mysqli_query($con,"SELECT * FROM `stud_basic` WHERE `Stud_Id` = '$flag1[Stud_Id]'");
						$basic=mysqli_fetch_array($basic_res);
							
		?>
							<tr>
								
								<td class="center"> <?php echo "$basic[Name]"; ?> <br> <?php echo "Amount :"."$flag1[Grand_Total]";?> </td>
								
							  <input type="hidden" name="id" value=" <?php echo "$flag1[Fees_id]";?>">
							 
							<td class="center">
							    <textarea name="msg" rows="5" cols="1" style="width: 100px;"> Enter Your Text Here.....</textarea> </td>
							<td class="center">
							<input type="submit" value="Update" style="width: 70px;">
										
									</a>
								</td>

								
							</tr>
							<?php   }?>

						  </tbody>
					  </table> 
					  </form>

				 
			</div>
		</div>
		</div>
	</body>
	<?php
		if ($_SERVER['REQUEST_METHOD'] == 'POST') 
		{
		      $msg=$_POST["msg"];
		   
	mysqli_query($con,"UPDATE `paid_fees` SET `Message` = '$msg' WHERE `paid_fees`.`Fees_id` = '$_POST[id]'")or die(mysqli_error($con));
	?>
            <script>
                alert("Your payment done");
                document.location="user_Pay_fees.php";
            </script>
            <?php
		}
	?>
	</html>

MMCT - 2023