Server IP : 178.16.136.84 / Your IP : 216.73.216.199 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/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> <div id="element-to-print"> <span> <?php include('../link/databaseconnection.php'); $session=$_POST['session']; $board=$_POST['board']; $class=$_POST['class']; $sel1="select * from registration where session ='$session' and mediam='$board' and subject='$class' order by id asc"; $res1=mysqli_query($conn,$sel1); $count=mysqli_num_rows($res1); if($count!="") { ?> <style> td{font-size:18px} </style> <?php $sel="select * from registration where session ='$session' and mediam='$board' and subject='$class' order by id asc"; $res=mysqli_query($conn,$sel); $p=0; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { ?> <div class="col-sm-5 " style="margin-top:16px" id="set" > <div style="border-style:solid"> <table > <tr><td colspan="4">.</td></tr> <th colspan="4" style="text-align:center">* DESK SLIP *</th> </tr> <tr> <td style="font-weight:bold">Roll No.:- </td><td><?php $row['id'];?></td><td style="font-weight:bold;text-align:center"> Class:- </td><td style="text-align:right" id="classset"><?php echo $row['subject'];?></td> </tr> <tr> <td style="font-weight:bold">Student's Name:- </td><td colspan="3"><?php echo $row['name'];?></td> </tr> <tr> <td style="font-weight:bold">Father's Name:- </td><td colspan="3" ><?php echo $row['fname'];?></td> </tr> <tr><td colspan="4">.</td></tr> </table> </div> </div> <?php $p++; if($p==4 ) { ?><div class="html2pdf__page-break"></div> <?php $p=0; } } } else { echo"<font color=red size=6pt> NO DATA Available</font>"; } ?> </span> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.8.0/html2pdf.bundle.min.js"></script> <script> var element = document.getElementById('element-to-print'); html2pdf(element, { margin: 10, filename: 'exam_attendence.pdf', image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2, logging: true, dpi: 192, letterRendering: true }, jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' } }); </script> </div>