Şuanki Dizin: /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/bkp/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/bkp/student_forward_class.php |
<?php require_once('header.php'); require_once('header-left-section.php'); $flag = 0; $success_msg = 0; $success_flag = ""; $division = ""; $to_year = ""; $to_class = ""; $to_medium = ""; $to_division = ""; if(isset($_POST['submit'])) { $to_class = $_POST['to_class']; $to_division = $_POST['to_division']; $to_medium = $_POST['to_medium']; $to_year = $_POST['to_year']; $total_rows = $_POST['f_counter']; for($x=0;$x<$total_rows;$x++) { if(isset($_POST['count_'.$x])) { $count = $_POST['count_'.$x]; $data = array(); $data = $db->get_all_student_info($count); 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_blood_group = $data[28]; $res_height = $data[29]; $res_weight = $data[30]; $res_student_image = $data[31]; $res_birth_certi = $data[32]; $res_caste_certi = $data[33]; $res_adv_board = $data[34]; $res_news_paper = $data[35]; $res_teachers = $data[36]; $res_friends = $data[37]; $res_ex_students = $data[38]; $res_pre_class = $data[39]; $res_other = $data[40]; $res_remarks = $data[41]; $res_no_of_pupil = $data[42]; $res_stud_id_for_lc = $data[43]; $res_father_quali = $data[44]; $res_father_occu = $data[45]; $res_father_income = $data[46]; $res_father_office_add = $data[47]; $res_father_resident_add= $data[48]; $res_mother_qualifi = $data[49]; $res_mother_occupa = $data[50]; $res_mother_income = $data[51]; $res_mother_office_add = $data[52]; $res_mother_resident_add= $data[53]; $certifi_no = $data[54]; $progress = $data[55]; $conduct = $data[56]; $leaving_school_date = $data[57]; $standard_sinse_when = $data[58]; $leaving_school_reason = $data[59]; $res_date = $data[60]; $res_time = $data[61]; $res_gr_no = $data[62]; $res_tc_status = $data[63]; $res_birth_district = $data[64]; $res_birth_state = $data[65]; $res_birth_country = $data[66]; $res_acd_year = $data[67]; $res_sub_caste = $data[68]; } $exist_id=$db->get_student_existid($to_year,$res_no_of_pupil); if($exist_id=="") { if($db->save_passed_student_record($to_class,$to_medium,$to_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_blood_group,$res_height,$res_weight,$res_student_image,$res_birth_certi,$res_caste_certi,$res_adv_board,$res_news_paper,$res_teachers,$res_friends,$res_ex_students,$res_pre_class,$res_other,$res_remarks,$res_no_of_pupil,$res_stud_id_for_lc,$res_father_quali,$res_father_occu,$res_father_income,$res_father_office_add,$res_father_resident_add,$res_mother_qualifi,$res_mother_occupa,$res_mother_income,$res_mother_office_add,$res_mother_resident_add,$certifi_no,$progress,$conduct,$leaving_school_date,$standard_sinse_when,$leaving_school_reason,$res_date,$res_time,$res_gr_no,$res_tc_status,$res_birth_district,$res_birth_state,$res_birth_country,$to_year,$res_sub_caste)) { $success_msg=1; } else { $success_flag=2; } } else { if($db->update_passed_student_record($to_class,$to_medium,$to_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_blood_group,$res_height,$res_weight,$res_student_image,$res_birth_certi,$res_caste_certi,$res_adv_board,$res_news_paper,$res_teachers,$res_friends,$res_ex_students,$res_pre_class,$res_other,$res_remarks,$res_no_of_pupil,$res_stud_id_for_lc,$res_father_quali,$res_father_occu,$res_father_income,$res_father_office_add,$res_father_resident_add,$res_mother_qualifi,$res_mother_occupa,$res_mother_income,$res_mother_office_add,$res_mother_resident_add,$certifi_no,$progress,$conduct,$leaving_school_date,$standard_sinse_when,$leaving_school_reason,$res_date,$res_time,$res_gr_no,$res_tc_status,$res_birth_district,$res_birth_state,$res_birth_country,$to_year,$exist_id,$res_sub_caste)) { $success_msg=11; } else { $success_flag=2; } } } } } $from_date = date("Y-m-d"); $to_date = date("Y-m-d"); $class = ""; $medium = ""; $division = ""; $gr_no = ""; $stud_name = ""; $from_year = ""; if(isset($_POST['search_btn'])) { $class = $_POST['class']; $medium = $_POST['medium']; $division = $_POST['division']; $gr_no = $_POST['gr_no']; $stud_name = $_POST['stud_name']; $from_year = $_POST['from_year']; if($class=="Select Class") { $class=""; } if($medium=="Select Medium") { $medium=""; } if($division=="Select Division") { $division=""; } if($from_year=="SelectYear") { $from_year=""; } $_SESSION['search_student_data_from_class'] = $class; $_SESSION['search_student_data_from_medium'] = $medium; $_SESSION['search_student_data_from_division'] = $division; $_SESSION['search_student_data_from_gr_no'] = $gr_no; $_SESSION['search_student_data_from_stud_name'] = $stud_name; $_SESSION['search_student_data_from_year'] = $from_year; } else if(isset($_SESSION['search_student_data_from_class'])) { $class = $_SESSION['search_student_data_from_class']; $medium = $_SESSION['search_student_data_from_medium']; $division = $_SESSION['search_student_data_from_division']; $gr_no = $_SESSION['search_student_data_from_gr_no']; $stud_name = $_SESSION['search_student_data_from_stud_name']; } ?> <style> .form-control { background-color:#FFF !important; } h1 { text-align:center; color:#101566; font-weight:bold; } .content { margin:px; } .card { margin:10px; } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper" style="background-color:#D3D5F5;"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-12"> <h1>STUDENT FORWARD CLASS</h1> </div> </div> </div><!-- /.container-fluid --> </section> <form method="POST" autocomplete="off" action="<?php echo $_SERVER['PHP_SELF'] ?>"> <section class="content"> <div class="row"> <div class="col-md-12"> <div class="card card-primary"> <?php if($success_msg == 1) { ?> <div class="alert alert-success"> <span class="alert-link">Success!</span>Records filled... </div> <?php } ?> <?php if($success_msg == 11) { ?> <div class="alert alert-success"> <span class="alert-link">Success!</span>Records Updated Successfully... </div> <?php } ?> <?php if($success_msg == 2) {?> <div class="alert alert-danger"> <span class="alert-link">Success!</span>Records filled... </div> <?php } ?> <div class="card-body"> <div class="row"> <div class="form-group col-lg-3"> <label>Select Department:</label> <select name="class" class="form-control"> <?php if($class!="") { $class_data = $db->get_class_title_master_details($class); $res_class = $class_data[1]; ?> <option value="<?php echo $class; ?>"><?php echo $res_class; ?></option> <?php } ?> <option value="Select Class"> Select Department</option> <?php $class_data = array(); $class_data = $db->get_all_class_title_master_data(); if(!empty($class_data)) { $counter = 0; foreach($class_data as $record) { $res_id = $class_data[$counter][0]; $res_class_title = $class_data[$counter][1]; $res_date = $class_data[$counter][2]; ?> <option value="<?php echo $res_id; ?>"><?php echo $res_class_title; ?></option> <?php $counter++; } } ?> </select> <!--<span class="error_indicator"><?php echo $main_title_error; ?></span>--> </div> <div class="form-group col-lg-3" > <label>* Select Year:</label> <select class="form-control" name="medium"> <?php if($medium!="") { ?> <option value="<?php echo $medium; ?>"><?php echo $medium; ?></option> <?php } ?> <option value="Select Medium">Select Year</option> <option value="1st Year">1st Year</option> <option value="2nd Year">2nd Year</option> <option value="3rd Yeaar">3rd Yeaar</option> </select> </div> <div class="form-group col-lg-3"> <label> Division: </label> <select name="division" class="form-control"> <?php if($division!="") { ?> <option value="<?php echo $division; ?>"><?php echo $division; ?></option> <?php } ?> <option value="Select Division">Select Division</option> <?php $division_data = array(); $division_data = $db->get_all_division_master_data(); if(!empty($division_data)) { $counter = 0; foreach($division_data as $record) { $res_id = $division_data[$counter][0]; $res_division = $division_data[$counter][1]; $res_date = $division_data[$counter][2]; ?> <option value="<?php echo $res_division; ?>"><?php echo $res_division; ?></option> <?php $counter++; } } ?> </select> </div> <div class="form-group col-lg-3"> <label>G.R.NO :</label> <input class="form-control" type="text" name="gr_no" placeholder="Enter GR No" value="<?php echo $gr_no; ?>" /> </div> <div class="form-group col-lg-3"> <label>Student Name:</label> <input class="form-control" type="text" name="stud_name" placeholder="Enter Student Name" value="<?php echo $stud_name; ?>" /> </div> <div class="form-group col-lg-3"> <label>Select Year:</label> <select name="from_year" class="form-control"> <option value="SelectYear"> Select Year</option> <?php $data1 = array(); $data1 = $db->get_all_acd_year_master_data(); if(!empty($data1)) { $counter = 0; foreach($data1 as $record) { $res_id = $data1[$counter][0]; $res_acd_year = $data1[$counter][1]; $res_date = $data1[$counter][2]; ?> <option value="<?php echo $res_id;?>" <?php if($from_year==$res_id){?>Selected <?php } ?>><?php echo $res_acd_year;?></option> <?php $counter++; } } ?> </select> </div> <!-- end of form-group col-lg-3--> <div class="form-group col-lg-3"> <label>-</label><br /> <button type="submit" class="btn btn-success" name="search_btn">Search</button> </div> </div> <!-- /.col -- </div>--> <!-- /.row --> </div> <!-- /.col --> </div> <!-- /.row --> </section> </form> <!-- /.content --> <form method="POST" autocomplete="off" action="<?php echo $_SERVER['PHP_SELF'] ?>"> <div class="card"> <div class="card-header"> <h3 class="card-title">Student Report</h3> <div class="card-tools"> <button type="button" class="btn btn-tool" data-card-widget="collapse" data-toggle="tooltip" title="Collapse"> <i class="fas fa-minus"></i></button> <button type="button" class="btn btn-tool" data-card-widget="remove" data-toggle="tooltip" title="Remove"> <i class="fas fa-times"></i></button> </div> </div> <div class="card-body p-0"> <table class="table table-striped projects"> <thead> <tr> <th style="width: 1%">Sr.No</th> <th style="width: 20%">Student Name</th> <th style="width: 10%">Department</th> <th style="width: 10%">Year</th> <th style="width: 10%">Division</th> <th style="width: 10%"><label style="cursor:pointer;"><input type="checkbox" name="checkall" id="checkall" style="height:15px; width:15px;" />Select All</label> </th> </tr> </thead> <tbody> <?php $total_amount = 0; $data = array(); $data = $db->get_student_record_from_date1($from_date,$to_date,$class,$medium,$division,$gr_no,$stud_name,$from_year); if(!empty($data)) { $counter = 0; foreach($data as $record) { $res_id = $data[$counter][0]; $res_class = $data[$counter][1]; $res_medium = $data[$counter][2]; $res_division = $data[$counter][3]; $res_roll_no = $data[$counter][4]; $res_surname = $data[$counter][5]; $res_stud_name = $data[$counter][6]; $res_father_name = $data[$counter][7]; $res_mother_name = $data[$counter][8]; $res_stud_cont = $data[$counter][9]; $res_father_cont = $data[$counter][10]; $res_mother_cont = $data[$counter][11]; $res_residential_no = $data[$counter][12]; $res_address = $data[$counter][13]; $res_corres_add = $data[$counter][14]; $res_child_desc = $data[$counter][15]; $res_email = $data[$counter][16]; $res_aadhar_no = $data[$counter][17]; $res_religion = $data[$counter][18]; $res_caste = $data[$counter][19]; $res_category = $data[$counter][20]; $res_mother_tongue = $data[$counter][21]; $res_nationality = $data[$counter][22]; $res_birth_palce = $data[$counter][23]; $res_birth_date = $data[$counter][24]; $res_gender = $data[$counter][25]; $res_last_school = $data[$counter][26]; $res_admission_date = $data[$counter][27]; $res_blood_group = $data[$counter][28]; $res_height = $data[$counter][29]; $res_weight = $data[$counter][30]; $res_student_image = $data[$counter][31]; $res_birth_certi = $data[$counter][32]; $res_caste_certi = $data[$counter][33]; $res_remarks = $data[$counter][34]; $res_no_of_pupil = $data[$counter][35]; $res_stud_id_for_lc = $data[$counter][36]; $res_father_quali = $data[$counter][37]; $res_father_occu = $data[$counter][38]; $res_father_income = $data[$counter][39]; $res_father_office_add = $data[$counter][40]; $res_father_resident_add = $data[$counter][41]; $res_mother_qualifi = $data[$counter][42]; $res_mother_occupa = $data[$counter][43]; $res_mother_income = $data[$counter][44]; $res_mother_office_add = $data[$counter][45]; $res_mother_resident_add = $data[$counter][46]; $res_date = $data[$counter][47]; $res_adv_board = $data[$counter][48]; $res_news_paper = $data[$counter][49]; $res_teachers = $data[$counter][50]; $res_friends = $data[$counter][51]; $res_ex_students = $data[$counter][52]; $res_pre_class = $data[$counter][53]; $res_other = $data[$counter][54]; $res_gr_no = $data[$counter][55]; $class_data = $db->get_class_title_master_details($res_class); $class_name = $class_data[1]; ?> <tr> <td><?php echo $counter+1; ?></td> <td style="text-align:left;"><?php echo $res_surname." ".$res_stud_name." ".$res_father_name; ?></td> <td><?php echo $class_name; ?></td> <td><?php echo $medium; ?></td> <td><?php echo $division; ?></td> <td class="project-actions text-left"> <input type="checkbox" value="<?php echo $res_id; ?>" name="count_<?php echo $counter; ?>" id="checkall" style="height:20px; width:20px; cursor:pointer;" class="chk_bx" /> </td> </tr> <?php $counter++; } } else { ?> <tr> <td colspan='6'>Student Data Not Available<td> </tr> <?php } ?> </tbody> </table> </div> <!-- /.card-body --> </div> <input type="hidden" name="f_counter" value="<?php echo $counter; ?>" /> <section class="content"> <div class="row"> <div class="col-md-12"> <div class="card card-primary"> <?php if($success_flag==1) { ?> <div class="alert alert-success"> <span class="alert-link">Success! </span>Record added successfully. </div> <?php } ?> <?php if($success_flag==2) { ?> <div class="alert alert-danger"> <span class="alert-link">Failed! </span>This Record Already Exist. </div> <?php } ?> <div class="card-body"> <div class="row"> <div class="form-group col-lg-3"> <label>Select To Academic Year:</label> <select name="to_year" class="form-control"> <option value="SelectYear"> Select Year</option> <?php $data1 = array(); $data1 = $db->get_all_acd_year_master_data(); if(!empty($data1)) { $counter = 0; foreach($data1 as $record) { $res_id = $data1[$counter][0]; $res_acd_year = $data1[$counter][1]; $res_date = $data1[$counter][2]; ?> <option value="<?php echo $res_id; ?>"<?php if($to_year==$res_id){ ?> selected <?php } ?>><?php echo $res_acd_year; ?></option> <?php $counter++; } } ?> </select> </div> <div class="form-group col-lg-3"> <label>To Department:</label> <select name="to_class" class="form-control"> <option value="Select Class"> Select Department</option> <?php $class_data = array(); $class_data = $db->get_all_class_title_master_data(); if(!empty($class_data)) { $counter = 0; foreach($class_data as $record) { $res_id = $class_data[$counter][0]; $res_class_title = $class_data[$counter][1]; $res_date = $class_data[$counter][2]; ?> <option value="<?php echo $res_id; ?>" <?php if($to_class==$res_id){?> Selected <?php } ?>><?php echo $res_class_title; ?></option> <?php $counter++; } } ?> <option value="10th Pass Class">10th Pass Class</option> </select> </div> <div class="form-group col-lg-3" > <label>Select Year:</label> <select class="form-control" name="to_medium"> <?php if($to_medium!="") { ?> <option value="<?php echo $to_medium; ?>"><?php echo $medium; ?></option> <?php } ?> <option value="Select Medium">Select Year</option> <option value="1st Year">1st Year</option> <option value="2nd Year">2nd Year</option> <option value="3rd Yeaar">3rd Yeaar</option> </select> </div> <div class="form-group col-lg-3"> <label>To Division: </label> <select name="to_division" class="form-control"> <?php if($to_division!="") { ?> <option value="<?php echo $to_division; ?>"><?php echo $to_division; ?></option> <?php } ?> <option value="Select Division">Select Division</option> <?php $division_data = array(); $division_data = $db->get_all_division_master_data(); if(!empty($division_data)) { $counter = 0; foreach($division_data as $record) { $res_id = $division_data[$counter][0]; $res_division = $division_data[$counter][1]; $res_date = $division_data[$counter][2]; ?> <option value="<?php echo $res_division; ?>" <?php if($to_division==$res_id){ ?> selected <?php } ?>><?php echo $res_division; ?></option> <?php $counter++; } } ?> </select> </div> <center> <br /> <input type="submit" name="submit" value="Update Record" class="btn btn-success" /> </center> </div> <!-- /.col -- </div>--> <!-- /.row --> </div> <!-- /.col --> </div> <!-- /.row --> </section> </form> <!-- /.card --> </div> </div> </section> <?php require_once('footer.php'); ?> <script src="plugins/jquery/jquery.min.js"></script> <script> $(document).ready(function() { $('#checkall').click(function () { $('input:checkbox').prop('checked', this.checked); }); }); </script>
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