MMCT TEAM
Server IP : 2a02:4780:11:1359:0:1d43:a566:2  /  Your IP : 216.73.216.52
Web Server : LiteSpeed
System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u490972518 ( 490972518)
PHP Version : 5.6.40
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 : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : ON
Directory (0755) :  /home/u490972518/domains/sssaup.com/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u490972518/domains/sssaup.com/public_html/deskslip_print.php
<?php
require('link/database.php');
$center_name=$_POST['center_name'];
$course=$_POST['course'];
$year=$_POST['year'];
$session=$_POST['session'];


?>

<html>
<head>
 <script src="js/jquery-3.2.1.min.js"></script>  <!--jquery-->
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<style>
 #name2{font-weight:bold}
 #name3{font-size:13px;
     text-transform: uppercase;
     
     
 }
 @media print {
 #name2{font-weight:bold;font-size:13px}
 #name3{font-size:13px;
     text-transform: uppercase;
     
     
 }

  body{
  -webkit-print-color-adjust:exact;
}
  p{font-size:11px}
  td{font-size:12px}
 }
 </style>
<script>
$(document).ready(function(){
	$("#pay").click(function(){
		window.location.href='bil.php';
	});
});
$(document).ready(function(){

	$("#print").click(function(){
		$("#pay").css("visibility","hidden");
		$("#back").css("visibility","hidden");
		$("#print").css("visibility","hidden");
		window.print();
		//window.location.href='index.php';
	});
	$("#back").click(function(){
		window.location.href='index.php';
	});
});

</script>
<link href="css/student_print.css" rel="stylesheet" type="text/css">
</head>
<body>


<?php
$sel="select * from  student where session ='$session' and adm_year='$year' and center_name='$center_name' and status='Yes' and course='$course' ";
$res=mysqli_query($conn,$sel);
while($row=mysqli_fetch_array($res,MYSQLI_BOTH))

{
    $reg=$row['registration_no'];
$course_id=$row['course'];
$center_id=$row['center_name'];
$id=$row['id'];
$sel121="select * from  payment where student_id ='$id' and session='$session' and area='Reg' and status='SUCCESS'";
$res121=mysqli_query($conn,$sel121);
$row121=mysqli_fetch_array($res121,MYSQLI_BOTH);
$sel1214="select * from  center_add where id ='$center_name'  and status=''";
$res1214=mysqli_query($conn,$sel1214);
$row1214=mysqli_fetch_array($res1214,MYSQLI_BOTH);
$sel1="select * from  course where id ='$course'";
$res1=mysqli_query($conn,$sel1);
$row1=mysqli_fetch_array($res1,MYSQLI_BOTH);

if($center_name>9)
{
    $rol=substr($reg,6);
}
else
{
    $rol=substr($reg,5);
}

?> 

<table cellspacing="0" width="100%" border="1px" style='display:none'>
<tr>
<td colspan='9' align="center" style='background-color:black;color:white'><span id="name2"><?php echo $row1214['center_name']?></span></td>

</tr>

<tr align="center">

<td><span id="name2">Rol No.</span></td>
<td><span id="name3"><?php echo $rol;?></span></td>
<td><span id="name2">Student's Name</span></td>
<td><span id="name3"><?php echo $row['student_name'];?></span></td>


</tr>
<tr align="center">
<td><span id="name2">Father's Name </span></td>
<td><span id="name3"><?php echo $row['father_name'];?></span></td>
<td><span id="name2">Mother's Name</span></td>
<td><span id="name3"><?php echo $row['mother_name'];?></span></td>


</tr>

<tr align="center">
<td><span id="name2">Course Name </span></td>
<td><span id="name3"><?php echo $row1['course'];?> </span></td>
<td><span id="name2">Area</span></td>
<td><span id="name3"><?php echo $row1['area'];?></span></td>


</tr>
</table>
<?PHP }?>
</body>
</html>

MMCT - 2023