|
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 ] |
|---|
<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;}
#class1{color:red!important;}
#se1{color:red!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;}
#class1{color:red!important;}
#se1{color:red!important;}
#div {
float: left;
margin-right:-22px;
}
.top-left {
position: absolute;
top: 156px;
left: 19px;
font-size:11px;
font-weight:bold;
width:190px;
}
#pic {
position: absolute;
top: 149px;
left: 92px;
border:1px solid;
border-radius:5px;
}
#name {
position: absolute;
top: 224px;
text-align:center;
width:90%;
font-size:12px;
font-weight:bold;
}
#fname {
position: absolute;
top: 240px;
left: 35px;
font-size:9px;
}
#fwidth {
width:170px;
}
#class {
position: absolute;
top: 199px;
left: 35px;
font-size:12px;
font-weight:bold;
}
#se1 {
position: absolute;
top: 153px;
left: 28px;
font-size:12px;
font-weight:bold;
}
#class1 {
position: absolute;
top: 182px;
left: 30px;
font-size:11px;
font-weight:bold;
}
#se {
position: absolute;
top: 168px;
left: 28px;
font-size:11px;
font-weight:bold;
}
#sch {
position: absolute;
top: 210px;
left: 184px;
font-size:12px;
font-weight:bold;
}
#session {
position: absolute;
top: 125px;
left: 20px;
font-size:10px;
font-weight:bold;
color:red;
}
#qr {
position: absolute;
top: 150px;
left: 170px;
}
#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');
$sel="select * from registration where subject='I' and status='' and session='$session' and id>=377 or subject='II' and status='' and session='$session' and id>=377 or subject='III' and status='' and session='$session' and id>=377 or subject='IV' and status='' and session='$session' and id>=377 or subject='V' and status='' and session='$session' and id>=377 or subject='VI' and status='' and session='$session' and id>=377 or subject='VII' and status='' and session='$session' and id>=377 or subject='VIII' and status='' and session='$session' and id>=377";
$res=mysqli_query($conn,$sel);
$s=1;
while($row=mysqli_fetch_array($res,MYSQLI_BOTH))
{
$email = $row['sr'];
$subject = $row['name'];
$father = $row['fname'];
$filename = $row['id'];
$class = $row['subject'];
$vill = $row['village'];
$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);
?><div class='col-sm-2' id='div' style='border-bottom: 30px solid white ;height:334px;width:242px;margin-top:0px'>
<img src='../images/id1.png' style='height:334px;width:242px'>
<img src='../code/img/<?php echo $row['picture'];?>' style='height:75px;width:66px' id='pic'>
<img src="temp/<?php echo $filename.'.png';?>" style='height:60px;width:54px' id='qr'>
<p id='class1'>Class</p>
<p id='class' class='c'><?php echo $class;?></p>
<p id='se' class='c' style='color:blue'> <?php echo $session;?></p>
<p id='se1' class='c'> Session</p>
<p id='sch' class='c' style='color:blue'> <span id='u'><?php echo $email;?></span></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 $row['fname'];?></div>
<div class='col-sm-2' id='fwidth1'>D.O.B</div>
<div class='col-sm-10' id='fwidth'>: <?php echo $row['dob'];?></div>
<div class='col-sm-2' id='fwidth1'>ADD.</div>
<div class='col-sm-10' id='fwidth'>: <?php echo $row['village'];?></div>
<div class='col-sm-2' id='fwidth1'>MOBILE.</div>
<div class='col-sm-10' id='fwidth'>: <?php echo $row['mobile'];?></div>
</div>
</div>
<?php if($s==10){?>
<span id='br'></span>
<?php
}
$s++;
}
?>
</div>
</html>