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/bpscps.com/public_html/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u490972518/domains/bpscps.com/public_html/admin/achievement_print.php
<?php
include("../link/databaseconnection.php");
 $id=$_REQUEST['flag'];
$sel="select * from  achievement where id ='$id' order by id asc";
	$res=mysqli_query($conn,$sel);
	
	$row=mysqli_fetch_array($res,MYSQLI_BOTH);
	   $student_id=$row['student_id'];
	    $session=$row['session'];
	    $sel3="select * from  registration where id ='$student_id' and session='$session' order by id asc";
	$res3=mysqli_query($conn,$sel3);
	$row3=mysqli_fetch_array($res3,MYSQLI_BOTH);

?>

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Sofia">
   
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.container {
  position: relative;
  text-align: center;
  color: white;
}

.bottom-left {
  position: absolute;
  bottom: 8px;
  left: 16px;
}

.top-left {
  position: absolute;
  top: 8px;
  left: 16px;
}

.top-right {
  position: absolute;
  top: 8px;
  right: 16px;
}
#name {
  position: absolute;
  top: 410px;
  left: 620px;
color:black;
  
  
}
#father {
  position: absolute;
  top: 510px;
  left: 620px;
color:black;
  
  
}
#class {
  position: absolute;
  top: 610px;
  left: 620px;
color:black;
  
  
}

#position {
  position: absolute;
  top: 610px;
  left: 1150px;
color:black;
  
  
}
#photo {
  position: absolute;
  top: 312px;
  left: 990px;
color:black;
   
  
}
		@media print {
   #name {
         position: absolute;
  top: 315px;
  left: 490px;
color:black;
font-size:27px;
font-weight:bold;   }

#father {
  position: absolute;
  top: 385px;
  left: 520px;
color:black;
  font-size:27px;
font-weight:bold; 
  
}
#class {
  position: absolute;
  top: 450px;
  left: 580px;
color:black;
   font-size:22px;
font-weight:bold;
  
}

#position {
  position: absolute;
  top: 450px;
  left: 890px;
color:black;
   font-size:22px;
font-weight:bold;
  
}

#photo {
  position: absolute;
  top: 212px;
  left: 790px;
color:black;
   
  
}
}
</style>
</head>
<body>



<div class="container" >
    <div style='border:4px solid'>
  <img src="../images/ach.png" alt="Snow" style="width:100%;">
  <div >
      
      <span id="name"><i><?php echo $row3['name'];?></i></span>
  <span id="father"><i><?php echo $row3['fname'];?></i></span>
  
  <span id="class"><i><?php echo $row3['subject'];?></i></span>
   <span id="position"><i><?php echo $row['position'];?></i></span>
     <span id="photo"><img src="../code/img/<?php echo $row3['picture'];?>" height="100px" width="100px;" style='border:2px solid black'></span>
 
  </div>
   <div class="pic"></div>
  </div>
</div>

</body>
</html> 

MMCT - 2023