Şuanki Dizin: /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/leaving-certificate.php |
<?php require_once('lib/functions.php'); $db = new db_functions(); if(!isset($_SESSION['login_admin_user_id'])) { header("location:index.php"); } $res_id = ""; $res_class = ""; $res_medium = ""; $res_division = ""; $res_roll_no = ""; $res_surname = ""; $res_stud_name = ""; $res_father_name = ""; $res_mother_name = ""; $res_stud_cont = ""; $res_father_cont = ""; $res_mother_cont = ""; $res_residential_no = ""; $res_address = ""; $res_corres_add = ""; $res_child_desc = ""; $res_email = ""; $res_aadhar_no = ""; $res_religion = ""; $res_caste = ""; $res_category = ""; $res_mother_tongue = ""; $res_nationality = ""; $res_birth_palce = ""; $res_birth_date = ""; $res_gender = ""; $res_last_school = ""; $res_admission_date = ""; $res_student_image = ""; $res_remarks = ""; $res_no_of_pupil = ""; $res_stud_id_for_lc = ""; $res_date = ""; $res_certifi_no = ""; $res_progress = ""; $res_conduct = ""; $res_leaving_school_date = ""; $res_standard_sinse_when = ""; $res_leaving_school_reason = ""; $res_sanstha_center = ""; $res_school_clg_name = ""; $res_clg_address = ""; $res_phone_no = ""; $res_email_id = ""; $res_recognition_no = ""; $res_udise_no = ""; $res_board = ""; $res_clg_medium = ""; $res_index_no = ""; $res_clg_logo = ""; $res_clg_date = ""; $leaving_date = ""; if(isset($_GET['print_type']) AND isset($_GET['print_lc']) ) { $print_type = $_GET['print_type']; $print_lc = $_GET['print_lc']; $_SESSION['print_type']=$print_type; $_SESSION['print_lc']=$print_lc; } if(isset($_SESSION['print_type']) AND isset($_SESSION['print_lc']) ) { $print_type = $_SESSION['print_type']; $print_lc = $_SESSION['print_lc']; } $certificate_name="leaving_certificate"; $db->save_certificate_history($print_lc,$print_type,$certificate_name); if(isset($_GET['print_lc'])) { $res_id = $_GET['print_lc']; $data = array(); $data = $db->get_all_student_info_for_certificate($res_id); if(!empty($data)) { $res_id = $data[0]; $res_class = $data[1]; $res_medium = $data[2]; $res_division = $data[3]; $res_roll_no = $data[4]; $res_surname = $data[5]; $res_stud_name = $data[6]; $res_father_name = $data[7]; $res_mother_name = $data[8]; $res_stud_cont = $data[9]; $res_father_cont = $data[10]; $res_mother_cont = $data[11]; $res_residential_no = $data[12]; $res_address = $data[13]; $res_corres_add = $data[14]; $res_child_desc = $data[15]; $res_email = $data[16]; $res_aadhar_no = $data[17]; $res_religion = $data[18]; $res_caste = $data[19]; $res_category = $data[20]; $res_mother_tongue = $data[21]; $res_nationality = $data[22]; $res_birth_palce = $data[23]; $res_birth_date = $data[24]; $res_gender = $data[25]; $res_last_school = $data[26]; $res_admission_date = $data[27]; $res_student_image = $data[28]; $res_remarks = $data[29]; $res_no_of_pupil = $data[30]; $res_stud_id_for_lc = $data[31]; $res_gr_no = $data[32]; $res_certifi_no = $data[33]; $res_progress = $data[34]; $res_conduct = $data[35]; $res_leaving_school_date = $data[36]; $res_standard_sinse_when = $data[37]; $res_leaving_school_reason = $data[38]; $res_date = $data[39]; $res_birth_district = $data[40]; $res_birth_state = $data[41]; $res_birth_country = $data[42]; $res_sub_caste = $data[46]; } } $setting_data = array(); $setting_data = $db->get_all_settings_data(); if(!empty($setting_data)) { $counter = 0; foreach($setting_data as $record) { $res_id = $setting_data[$counter][0]; $res_sanstha_center = $setting_data[$counter][1]; $res_school_clg_name = $setting_data[$counter][2]; $res_clg_address = $setting_data[$counter][3]; $res_phone_no = $setting_data[$counter][4]; $res_email_id = $setting_data[$counter][5]; $res_recognition_no = $setting_data[$counter][6]; $res_udise_no = $setting_data[$counter][7]; $res_board = $setting_data[$counter][8]; $res_clg_medium = $setting_data[$counter][9]; $res_index_no = $setting_data[$counter][10]; $res_clg_logo = $setting_data[$counter][11]; $res_clg_date = $setting_data[$counter][12]; $res_college_name = $setting_data[$counter][13]; $res_college_logo = $setting_data[$counter][14]; } } ?> <?php function numberTowords($num) { $ones = array( 0 =>"ZERO", 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", "014" => "FOURTEEN" ); $tens = array( 0 => "ZERO", 1 => "TEN", 2 => "TWENTY", 3 => "THIRTY", 4 => "FORTY", 5 => "FIFTY", 6 => "SIXTY", 7 => "SEVENTY", 8 => "EIGHTY", 9 => "NINETY" ); $hundreds = array( "HUNDRED", "THOUSAND", "MILLION", "BILLION", "TRILLION", "QUARDRILLION" ); /*limit t quadrillion */ $num = number_format($num,2,".",","); $num_arr = explode(".",$num); $wholenum = $num_arr[0]; $decnum = $num_arr[1]; $whole_arr = array_reverse(explode(",",$wholenum)); krsort($whole_arr,1); $rettxt = ""; foreach($whole_arr as $key => $i){ while(substr($i,0,1)=="0") $i=substr($i,1,5); if($i < 20){ /* echo "getting:".$i; */ $rettxt .= $ones[$i]; }elseif($i < 100){ if(substr($i,0,1)!="0") $rettxt .= $tens[substr($i,0,1)]; if(substr($i,1,1)!="0") $rettxt .= " ".$ones[substr($i,1,1)]; }else{ if(substr($i,0,1)!="0") $rettxt .= $ones[substr($i,0,1)]." ".$hundreds[0]; if(substr($i,1,1)!="0")$rettxt .= " ".$tens[substr($i,1,1)]; if(substr($i,2,1)!="0")$rettxt .= " ".$ones[substr($i,2,1)]; } if($key > 0){ $rettxt .= " ".$hundreds[$key]." "; } } if($decnum > 0){ $rettxt .= " and "; if($decnum < 20){ $rettxt .= $ones[$decnum]; }elseif($decnum < 100){ $rettxt .= $tens[substr($decnum,0,1)]; $rettxt .= " ".$ones[substr($decnum,1,1)]; } } return $rettxt; } extract($_POST); if(isset($convert)) { echo "<p align='center' style='color:blue'>".numberTowords("$num")."</p>"; } ?> <!DOCTYPE html> <html> <head> <title><?php echo $application_title; ?></title> <style> .leaving_lbl { font-size:22px; text-align:center; margin-top:5px; margin-bottom:10px; font-weight:bold; } .cert_lbl { margin-left:30px; line-height:25px; font-weight:bold; } .regs_lbl{ float:right; line-height:25px; font-weight:bold; margin-right:30px; } .stud_lbl{ margin-left:30px; line-height:25px; } .adhar_lbl{ float:right; line-height:25px; margin-right:30px; } .logo_img { position:absolute; height:150px; width:150px; left:100px; top:120px; } table { border-collapse: collapse; } td, th { border: 1px solid #666666; text-align: left; padding: 8px; word-wrap:break-word; word-break:break-all; } .head_d { text-align:center; margin:5px; } .main_p_container { font-family:Cambria; margin-top:10px; font-size:14px; } @media print { @page { margin: 0; margin-right:10px; margin-top:20px; margin-left:10px; } body { } .logo_img { left:5px; } } body { font-family:cambria; } .header_info { text-align:center; line-height:25px; } .head_label { font-weight:bold; font-size:16px; } .main_title { margin:5px; font-size:36px; } .bullet_icon { height:14px; margin-bottom:-2px; margin-right:5px; } .left_cont { float:left; width:400px; margin-top:8px; line-height:25px; } .right_cont { float:right; width:300px; margin-top:8px; text-align:left; line-height:25px; } .subcontainer { width:100%; display:inline-table; } .lft_head { font-weight:bold; font-size:17px; } .chk_txt { font-weight:bold; margin-top:60px; margin-bottom:30px; text-align:center; } .font { font-size:17px; } </style> </head> <body> <div id="wrapper" style="float:none; margin:auto; width:900px; padding-left:25px;"> <div style="main_p_container"> <p class="head_d">(No change in any entry in this certificate shall be made except by the authority issuing it and any infringement of this requirement is liable to involve the imposition of penalty such as that of rustication.)</p> <label class="head_label"><center>(Prescribed by Rule 17 Chapter 11 Of Grant-in-aid Code) </center></label><br /> <div class="header_info"> <img src="student_data/<?php echo $res_clg_logo; ?>" class="logo_img" /> <label class="head_label"><?php echo $res_sanstha_center; ?></label><br /> <h2 class="main_title"><?php echo $res_school_clg_name; ?></h2> <label class="label4_format"><strong></strong> <?php echo $res_clg_address; ?>,<b>Phone -</b> <?php echo $res_phone_no; ?> <br /> <b>Email Id - </b><?php echo $res_email_id; ?></label><br /> <label class="head_label">Affiliated by MSBTE, Mumbai Approved by AICTE , New Delhi</label><br /> <strong>(Registration No. <?php echo $res_recognition_no; ?>)</strong><br /> <strong><img src="images/bullet.png" class="bullet_icon" />MSBTE Code : </strong> <?php echo $res_udise_no; ?>, <strong><img src="images/bullet.png" class="bullet_icon" />Website :</strong> <?php echo $res_board; ?> , <strong><img src="images/bullet.png" class="bullet_icon" />DTE No. :</strong> <?php echo $res_index_no; ?> <br /> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- <span style="float:left; font-size:16px; font-weight:bold;"><?php echo $print_type; ?>   Issue </span> <label class="leaving_lbl">LEAVING CERTIFICATE</label> </div> <div class="subcontainer"> <div class="left_cont"> <label class="head_label ">LC No :</label> <?php echo $res_stud_id_for_lc; ?> <br /> <label class="head_label">Student ID No :</label> <?php echo $res_certifi_no; ?> </div> <div class="right_cont"> <label class="head_label">Registration No. of Pupil :</label><?php echo $res_no_of_pupil; ?><br /> <label class="head_label">Adhar Card No :</label> <?php echo $res_aadhar_no; ?> </div> </div> <br /> <div style="margin-top:10px;"> <table> <tr> <td class="lft_head" width="50%" class="font">1)  Name of the pupil in Full</td> <td width="50%" class="font"><?php echo $res_surname." ".$res_stud_name." ".$res_father_name; ?></td> </tr> <td class="lft_head">2)  Mother Name</td> <td class="font"><?php echo $res_mother_name; ?></td> </tr> <tr> <td class="lft_head">3)  Race and Caste (With Sub-Caste)</td> <td class="font"><?php echo $res_religion."-".$res_caste."-".$res_sub_caste; ?></td> </tr> <tr> <td class="lft_head">4)  Nationality</td> <td class="font"><?php echo $res_nationality; ?></td> </tr> <tr> <td class="lft_head">5)  Place of Birth</td> <!--<td class="font"><?php echo $res_birth_palce; ?>-<?php echo $res_birth_state; ?>-<?php echo $res_birth_country; ?></td>--> <td class="font"><?php echo $res_birth_palce; ?></td> </tr> <tr> <td class="lft_head">6)  Date of Birth, Month and year according to the <br /> Christian Era, both in words and figures</td> <td class="font" style="text-transform:Capitalize;"> <?php echo $res_birth_date; ?> <br /> <?php $txt_date_data = explode("-",$res_birth_date); $c_date = $txt_date_data[2]."-".$txt_date_data[1]."-".$txt_date_data[0]; $cur_month =$txt_date_data[1]; if($cur_month=="01") { $cur_month = "JANUARY"; } else if($cur_month=="02") { $cur_month = "FEBRUARY"; } else if($cur_month=="03") { $cur_month = "MARCH"; } else if($cur_month=="04") { $cur_month = "APRIL"; } else if($cur_month=="05") { $cur_month = "MAY"; } else if($cur_month=="06") { $cur_month = "JUNE"; } else if($cur_month=="07") { $cur_month = "JULY"; } else if($cur_month=="08") { $cur_month = "AUGUST"; } else if($cur_month=="09") { $cur_month = "SEPTEMBER"; } else if($cur_month=="10") { $cur_month = "OCTOBER"; } else if($cur_month=="11") { $cur_month = "NOVEMBER"; } else if($cur_month=="12") { $cur_month = "DECEMBER"; } if(!empty($txt_date_data)) { echo " (".numberTowords($txt_date_data[0])."-".$cur_month."-".numberTowords($txt_date_data[2]).")"; } ?> </td> </tr> <tr> <td class="lft_head">7)  last School Attended</td> <td class="font"><?php echo $res_last_school; ?></td> </tr> <tr> <td class="lft_head">8)  Date of Admission</td> <td class="font"><?php echo $res_admission_date; ?></td> </tr> <tr> <td class="lft_head">9)  Progress</td> <td class="font"> <?php echo $res_progress; ?></td> </tr> <tr> <td class="lft_head">10)  Conduct</td> <td class="font"><?php echo $res_conduct; ?></td> </tr> <tr> <td class="lft_head">11)  Date of leaving College</td> <td class="font"><?php echo $res_leaving_school_date; ?></td> </tr> <tr> <td class="lft_head">12)  Standard in which studying and since when</td> <td class="font"><?php echo $res_standard_sinse_when; ?></td> </tr> <tr> <td class="lft_head">13)  Reason of leaving College </td> <td class="font"><?php echo $res_leaving_school_reason; ?></td> </tr> <tr> <td class="lft_head">14)   Remarks</td> <td class="font"><?php echo $res_remarks; ?></td> </tr> </table> </div> <div style="margin-left:100px;"> <p class="font"><b>Certified that the above information is in accordance with the College Register</b><p> </div> <br /> <span style="float:left;"> <b> Checked By </b> </span> <span style="float:right; margin-right:20px;"> <b> Date: </b><?php echo date('d-m-Y'); ?> </span> <br /> <br /> <div class="chk_txt"> Clerk <label style="margin-left:250px;" class="font">Head Of Department </label> <label style="margin-left:250px;" class="font">Principal</label> </div> </div> </div> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4