/home3/vehiclea/public_html/admin-appleiitfoundationschools-com/student_profile.php
<?php
session_start();
$_SESSION['active'] = 'studentProfile';
include('include/header.php');
?>
<style type="text/css">
.clear{
clear:both;
margin-top: 20px;
}
#AdmNum{
list-style: none;
padding: 0px;
width: 250px;
/*position: absolute;*/
margin: 0;
}
#AdmNum li{
background: lavender;
padding: 4px;
margin-bottom: 1px;
}
#AdmNum li:nth-child(even){
background: #2FEBB5;
color: white;
}
#AdmNum li:hover{
cursor: pointer;
}
input[type=text]{
padding: 5px;
/*width: 250px;*/
letter-spacing: 1px;
}
</style>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<main id="main" class="main">
<div class="pagetitle">
<h1>Apple IIT Schools</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item ">Student Porfile</li>
</ol>
</nav>
</div>
<?php
if(!empty($_GET['act']))
{
?>
<script>
alert('Activity Data Updated Succesfully');
</script>
<?php
}
?>
<?php
if(!empty($_GET['rem']))
{
?>
<script>
alert('Remarks Data Updated Succesfully');
</script>
<?php
}
?>
<section class="section">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-lg-12 col-md-12">
<div class="row">
<div class="col-lg-4 col-md-4">
<form style="margin-left: 50px;display: flex!important;">
<b style="color:#7E57C2; margin-left: 20px; margin-left:-50px; margin-top: 15px;">Syllabus:</b>
<select class="form-control" style="margin-left: 10px; margin-top: 10px;" name="syl" id="syl">
<option value="">Please Select Syllabus</option>
<?php
$select_SyllabusData = select_SyllabusData();
while($Syllabus= mysqli_fetch_array($select_SyllabusData))
{
?>
<option value="<?= $Syllabus['name']?>"><?= $Syllabus['name']?></option>
<?php
}
?>
</select>
<b style="color:#7E57C2; margin-left: 10px; margin-left:5px; margin-top: 15px;">Name </b>
<input type="text" class="form-control" name="admission" id="admission" placeholder="Enter Student Name" style="margin-left: 10px; margin-top: 10px;">
</form>
<ul id="AdmNum"></ul>
<div class="clear"></div>
</div>
<div class="col-lg-6 col-md-6"></div>
<div class="col-lg-2 col-md-2">
<img id="image_preview1" src="assets/img/user.png" style="height:100px;width:100px; margin-top: 5px;" alt="Yor Image Preview">
</div>
</div>
<div class="col-lg-10 col-md-10" style="margin-top:-8px;">
<div class="row">
<div class="col-md-2">
Student Name
</div>
<div class="col-md-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="studentname"></span> <span style="font-weight:bold;" id="Surname"></span>
</div>
<div class="col-md-2">
Date of Birth
</div>
<div class="col-md-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="DOB"></span>
</div>
<div class="col-md-2 mt-4">
Academic Year
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="Academic_year"></span>
</div>
<div class="col-md-2 mt-4">
Father Name
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="father"></span>
</div>
<div class="col-md-2 mt-4">
Record No
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="AdmissionNo"></span>
</div>
<div class="col-md-2 mt-4">
Mother Name
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="mother"></span>
</div>
<div class="col-md-2 mt-4">
Admission Date
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="AdmissionDate"></span>
</div>
<div class="col-md-2 mt-4">
Mobile
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="mobile"></span>
</div>
<div class="col-md-2 mt-4">
Gender
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="Gender"></span>
</div>
<div class="col-md-2 mt-4">
Village/City
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="Mandal"></span>
</div>
<div class="col-md-2 mt-4">
Student Class
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="PresentClass"></span>
</div>
<div class="col-md-2 mt-4">
Blood Group
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="Blood"></span>
</div>
<div class="col-md-2 mt-4">
Student Syllabus
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="syllabus"></span>
</div>
<div class="col-md-2 mt-4">
Secretariat Name
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="SecreName"></span>
</div>
<div class="col-md-2 mt-4">
Hostel
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="Hostel"></span>
</div>
<div class="col-md-2 mt-4">
Pincode
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="PinCode"></span>
</div>
<div class="col-md-2 mt-4">
Actual Admission Amount
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="actual_admission"></span>
</div>
<div class="col-md-2 mt-4">
Offered Admission Amount
</div>
<div class="col-md-4 mt-4" style="color:#000000;font-weight:bold;">
: <span style="font-weight:bold;" id="admission_amount"></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-lg-12 col-md-12">
<div class="row">
<h6 class="mt-4" style="color:#000;"><strong>ADMISSION YEAR</strong></h6>
<div class="mt-4">
<div class="tab">
<button class="w3-bar-item w3-button tablink w3-border w3-green" onclick="openCity(event,'Marks')">Student Marks</button>
<!-- <button class="w3-bar-item w3-button tablink w3-border" onclick="openCity(event,'Admission')">Admission Fee </button> -->
<button class="w3-bar-item w3-button tablink w3-border" onclick="openCity(event, 'Study')">Study Fee</button>
<!-- <img src="assets/img/arrow.png"> -->
<button class="w3-bar-item w3-button tablink main-menu w3-border" onclick="openCity(event, 'Bus')" >Bus Fee</button>
<button class="w3-bar-item w3-button tablink w3-border" onclick="openCity(event, 'HostelData')">Hostel Fee</button>
<button class="w3-bar-item w3-button tablink w3-border" onclick="openCity(event, 'Books')">Books Fee</button>
<button class="w3-bar-item w3-button tablink w3-border" onclick="openCity(event, 'Additional')">Additional Fee</button>
<button class="w3-bar-item w3-button tablink w3-border" onclick="openCity(event, 'Remarks')">Remarks</button>
<button class="w3-bar-item w3-button tablink w3-border" onclick="openCity(event, 'Activity')">Activity</button>
<button class="w3-bar-item w3-button tablink w3-border" onclick="openCity(event, 'Promote')">Promote</button>
</div>
</div>
<div class="row tabcontent w3-container city" id="Marks">
<!--- Student Marks 1st table start --->
<div class="container">
<button type="button" onclick="student_marks_data()" class="collaps" style="margin-top: 20px;" >Acadamic Year : <b id="Academic_year15"></b> | Grade : <b id="grade"></b> </button>
<div id="student_marks_table"></div>
</div>
<!--- Student Marks 1st table end --->
<div class="container" style="display:none;">
<button type="button" class="collaps" style="margin-top: 20px;" >Acadamic Year : <b id="Academic_year15"></b> | Grade : <b id="grade"></b> </button>
<div id="student_marks_table"></div>
</div>
</div>
<!---- Admission Start----->
<!-- <div class="row tabcontent w3-container city" id="Admission" style="display:none">
<div class="container">
<button type="button" class="collaps" onclick="admission_due()" style="margin-top: 20px;" >Acadamic Year : <b id="Academic_year15"></b> | Due Amount : Rs <b id="Admission_due_amount"></b> </button>
<div class="content1" style="background: color: #f5f5f5; display:none;" id="card">
<div class="col-12">
<div style="display:inline-flex; padding: 10px 0 10px 30px; display: flex;">
<h6 class="">Actual Amount : Rs <b id="Admission_actual_amount"></b></h6> <br><h6 class="">Total : Rs <b id="Admission_total_amount"></b></h6><br> <h6 style="margin-left: 20px;">Paid : <b id="Admission_paid_amount"></b></h6> <br><h6 style="margin-left: 20px;">Due : Rs <b id="Admission_due_amount1"></b></h6>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo9" style="margin-left: 10px; background-color:#2FEBB5;" id="admi_paybtn">Pay</button>
</div>
<div class="container">
<div id="demo9" class="collapse">
<div class="col-12">
<div class=" rounded h-100 p-4" style="background-color:#f5f5f5; border: 0.1px solid gray;">
<h3 style="text-align: center; color:green; display:none;" id="Admissionerrmsg">Admission Amount Paid Successfully</h3>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">V.NO.</th>
<th scope="col">Paid By</th>
<th scope="col">Amount</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" class="form-control" value="<?= date('Y-m-d')?>" id="datepicker11" readonly>
<input type="text" class="form-control" value="<?= date('Y-m-d')?>" id="datepicker" readonly style="display: none;">
</td>
<td><input type="text" class="form-control" placeholder="Enter Vocher Number" id="Admission_invoice_value" readonly></td>
<td><input type="text" class="form-control" placeholder="Enter Paid By" id="admpaid_by"></td>
<td><input type="text" class="form-control noSpace" placeholder="Enter Amount" onkeypress="return isNumber(event)" id="admPaidAmt">
<input type="hidden" id="study_total">
<input type="hidden" id="studyAdm">
<input type="hidden" id="studyClass">
<input type="hidden" id="studyYear">
<input type="hidden" id="Branch">
</td>
<td></td>
<td><button class="button12" onclick="return admissionAmountData()">Pay </button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div id="showadmission_Table"></div><br>
<div id="admissionTableData"></div>
</div>
</div>
</div>
</div>
--> <!---- Admission end----->
<!---- study fee start ----->
<div class="row tabcontent w3-container city" id="Study" style="display:none">
<div class="container">
<!---- study 1st table start ----->
<button type="button" class="collaps" onclick="study_due()" style="margin-top: 20px;" >Acadamic Year : <b id="Academic_year1"></b> | Due Fee : Rs <b id="study_due_amount"></b> </button>
<div class="content1" style="background: color: #f5f5f5; display:none;" id="card">
<div id="show_study_data">
<div class="col-12">
<div style="display:inline-flex; padding: 10px 0 10px 30px; display: flex;">
<h6 class="">Actual Fee : Rs <b id="study_actual_amount"></b></h6><br> <h6 class=""> Offered Fee :Rs <b id="study_total_amount"></b></h6><br> <h6 style="margin-left: 20px;"> Paid Fee : Rs <b id="study_paid_amount"></b></h6> <br><h6 style="margin-left: 20px;">Due Fee : Rs <b id="study_due_amount1"></b></h6>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo" style="margin-left: 10px; background-color:#2FEBB5;">Pay</button>
</div>
<div class="container">
<div id="demo" class="collapse">
<div class="col-12">
<div class=" rounded h-100 p-4" style="background-color:#f5f5f5; border: 0.1px solid gray;">
<h3 style="text-align: center; color:green; display:none;" id="studyerrmsg">Study Amount Paid Successfully</h3>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">V.NO.</th>
<th scope="col">Paid By</th>
<th scope="col">Amount</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" class="form-control" value="<?= date('Y-m-d')?>" id="datepicker11" readonly>
</td>
<td><input type="text" class="form-control" placeholder="Enter Vocher Number" id="study_invoice_value" readonly></td>
<td><input type="text" class="form-control" placeholder="Enter Paid By" id="spaid_by"></td>
<td><input type="text" class="form-control noSpace" placeholder="Enter Amount" onkeypress="return isNumber(event)" id="sPaidAmt">
<input type="hidden" id="study_total">
<input type="hidden" id="studyAdm">
<input type="hidden" id="studyClass">
<input type="hidden" id="studyYear">
<input type="hidden" id="Branch">
</td>
<td></td>
<td><button class="button12" id="study_paybtn" onclick="return studyAmountData()">Pay </button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div><br>
<div id="showstudy_Table"></div><br>
<div id="StudyTableData"></div>
</div>
</div>
<!---- study 1st table end ----->
<!---- study 2nd table start ----->
<div id="study_2nd_table"></div>
<!---- study 2nd table end ----->
</div>
</div>
<!----- study end----->
<!----- Bus start----->
<div class="row tabcontent w3-container city" id="Bus" style="display:none">
<div class="container">
<!---- Bus 1st table start----->
<button type="button" class="collaps" onclick="bus_due()" data-target="#collapseTwo" style="margin-top: 20px;" >Acadamic Year : <b id="Academic_year2"></b> | Due Fee : Rs <b id="Bus_due_amount"></b> </button>
<div class="content1" style="background: color: #f5f5f5; display:none;" id="card">
<div class="col-12" id="collapseTwo">
<div style="display:inline-flex; padding: 10px 0 10px 30px; display: flex;">
<h6 class="">Actual Fee : Rs <b id="Bus_actual_amount"></b></h6> <br><h6 class=""> Offered Fee : Rs <b id="Bus_total_amount"></b></h6><br> <h6 style="margin-left: 20px;"> Paid Fee : Rs<b id="BusPaidAmt"></b></h6> <br><h6 style="margin-left: 20px;">Due Fee : Rs <b id="BusDueAmt"></b></h6>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo5" style="margin-left: 10px; background-color:#2FEBB5;">Pay</button>
</div>
<div class="container">
<div id="demo5" class="collapse">
<div class="col-12">
<div class=" rounded h-100 p-4" style="background-color:#f5f5f5; border: 0.1px solid gray;">
<h3 style="text-align: center; color:green; display:none;" id="buserrmsg">Bus Amount Paid Successfully</h3>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">V.NO.</th>
<th scope="col">Paid By</th>
<th scope="col">Amount</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" class="form-control" value="<?= date('Y-m-d')?>" id="datepicker1" readonly>
</td>
<td><input type="text" class="form-control" placeholder="Enter Vocher Number" id="Bus_invoice_value" readonly></td>
<td><input type="text" class="form-control" placeholder="Enter Paid By" id="bpaid_by"></td>
<td><input type="text" class="form-control noSpace" placeholder="Enter Amount" onkeypress="return isNumber(event)" id="bPaidAmt">
<input type="hidden" id="Bus_total_amount1">
<input type="hidden" id="studyAdm">
<input type="hidden" id="studyClass">
<input type="hidden" id="studyYear">
<input type="hidden" id="Branch">
</td>
<td></td>
<td ><button class="button12" id="bus_paybtn" onclick="return BusAmountData()">Pay </button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div><br>
<div id="busTableData"></div><br>
<div id="Bus_TableData"></div>
</div>
<!---- Bus 1st table end----->
<!---- Bus 2nd table start----->
<div id="Promote_bus_table"></div>
<!---- Bus 2nd table start----->
</div>
</div>
</div>
<!------ Bus end----->
<!----- Hostel Start --->
<div class="row tabcontent w3-container city" id="HostelData" style="display:none">
<div class="container">
<!---- Hostel 1st table start----->
<button type="button" class="collaps" onclick="hostel_due()" data-target="#collapseTwo" style="margin-top: 20px; margin-left: 10px;" >Acadamic Year : <b id="Academic_year4"></b> | Due Fee : Rs <b id="Hostel_due_amount"></b> </button>
<div class="content1" style="background: color: #f5f5f5; display:none;" id="card">
<div class="col-12" id="collapseTwo">
<div style="display:inline-flex; padding: 10px 0 10px 30px; display: flex;">
<h6 class="">Actual Fee : Rs <b id="Hostel_actual_amount"></b></h6><br> <h6 class="">offered Fee : Rs <b id="Hostel_total_amount"></b></h6><br> <h6 style="margin-left: 20px;"> Paid Fee : Rs <b id="HostelPaidAmt"></b></h6> <br><h6 style="margin-left: 20px;"> Due Fee : Rs <b id="HostelDueAmt"></b></h6>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo15" style="margin-left: 10px; background-color:#2FEBB5;">Pay</button>
</div>
<div class="container">
<div id="demo15" class="collapse">
<div class="col-12">
<div class=" rounded h-100 p-4" style="background-color:#f5f5f5; border: 0.1px solid gray;">
<h3 style="text-align: center; color:green; display:none;" id="hostelerrmsg">Hostel Amount Paid Successfully</h3>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">V.NO.</th>
<th scope="col">Paid By</th>
<th scope="col">Amount</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="text" class="form-control" value="<?= date('Y-m-d')?>" id="datepicker2" readonly>
</td>
<td><input type="text" class="form-control" placeholder="Enter Vocher Number" id="Hostel_invoice_value" readonly></td>
<td><input type="text" class="form-control" placeholder="Enter Paid By" id="Hpaid_by"></td>
<td><input type="text" class="form-control noSpace" placeholder="Enter Amount" onkeypress="return isNumber(event)" id="HPaidAmt">
<input type="hidden" id="Hostel_total_amount1">
<input type="hidden" id="studyAdm">
<input type="hidden" id="studyClass">
<input type="hidden" id="studyYear">
<input type="hidden" id="Branch">
</td>
<td></td>
<td ><button class="button12" id="hostel_paybtn" onclick="return HostelAmountData()">Pay </button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div><br>
<div id="HostelTableData"></div><br>
<div id="Hos_TableData"></div>
</div>
<!---- Hostel 1st table end----->
<!---- Hostel 2nd table start----->
<div id="promote_hostel_table"></div>
<!---- Hostel 2nd table start----->
</div>
</div>
</div>
<!----- Hostel end --->
<!---- Additional Start --->
<div class="row tabcontent w3-container city" id="Additional" style="display:none">
<div class="container">
<!---- Additional 1st table Start --->
<button type="button" class="collaps" onclick="additional_due()" data-target="#collapseTwo" style="margin-top: 20px;" >Acadamic Year : <b id="Academic_year3"></b> | Due Fee : Rs <b id="additional_due_amount"></b> </button>
<div class="content1" style="background: color: #f5f5f5; display:none;" id="card">
<div class="col-12" id="collapseTwo">
<div style="display:inline-flex; padding: 10px 0 10px 30px; display: flex;">
<h6 class="">Actual Fee : Rs <b id="Add_actual_amount"></b></h6> <br> <h6 class=""> Offered Fee : Rs <b id="additional_total_amount"></b></h6><br> <h6 style="margin-left: 20px;"> Paid Fee : Rs <b id="additionalPaidAmt"></b>.00</h6> <br><h6 style="margin-left: 20px;"> Due Fee : Rs <b id="additionalDueAmt">.00</b></h6>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo25" style="margin-left: 10px; background-color:#2FEBB5;">Pay</button>
</div>
<div class="container">
<div id="demo25" class="collapse">
<div class="col-12">
<div class=" rounded h-100 p-4" style="background-color:#f5f5f5; border: 0.1px solid gray;">
<h3 style="text-align: center; color:green; display:none;" id="additionalerrmsg">Additional Amount Paid Successfully</h3>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">V.NO.</th>
<th scope="col">Paid By</th>
<th scope="col">Amount</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="text" class="form-control" value="<?= date('Y-m-d')?>" id="datepicker3" readonly>
</td>
<td><input type="text" class="form-control" placeholder="Enter Vocher Number" id="Add_invoice_value" readonly></td>
<td><input type="text" class="form-control" placeholder="Enter Paid By" id="addpaid_by"></td>
<td><input type="text" class="form-control noSpace" placeholder="Enter Amount" onkeypress="return isNumber(event)" id="addPaidAmt">
<input type="hidden" id="Bus_total_amount1">
<input type="hidden" id="studyAdm">
<input type="hidden" id="studyClass">
<input type="hidden" id="studyYear">
<input type="hidden" id="Branch">
</td>
<td></td>
<td ><button class="button12" id="add_paybtn" onclick="return AdditionalAmountData()">Pay </button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div><br>
<div id="AddTableData"></div><br>
<div id="Additional_TableData"></div>
</div>
<!---- Additional 1st table end --->
<!---- Additional 2nd table Start --->
<div id="additional_promote_year"></div>
<!---- Additional 2nd table end --->
</div>
</div>
</div>
<!--- Additional End ---->
<!---- Books start ----->
<div class="row tabcontent w3-container city" id="Books" style="display:none">
<div class="container">
<!---- Books 1st table start ----->
<button type="button" class="collaps" onclick="books_due()" data-target="#collapseTwo" style="margin-top: 20px;" >Acadamic Year : <b id="Academic_year5"></b> | Due Fee : Rs <b id="Books_due_amount"></b> </button>
<div class="content1" style="background: color: #f5f5f5; display:none;" id="card">
<div class="col-12" id="collapseTwo">
<div style="display:inline-flex; padding: 10px 0 10px 30px; display: flex;">
<h6 class="">Actual Fee : Rs <b id="Books_actual_amount"></b></h6><br> <h6 class="">Offered Fee : Rs <b id="Books_total_amount"></b></h6><br> <h6 style="margin-left: 20px;"> Paid Fee : Rs <b id="BooksPaidAmt"></b>.00</h6> <br><h6 style="margin-left: 20px;"> Due Fee : Rs <b id="BooksDueAmt">.00</b></h6>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo27" style="margin-left: 10px; background-color:#2FEBB5;">Pay</button>
</div>
<div class="container">
<div id="demo27" class="collapse">
<div class="col-12">
<div class=" rounded h-100 p-4" style="background-color:#f5f5f5; border: 0.1px solid gray;">
<h3 style="text-align: center; color:green; display:none;" id="bookserrmsg">Books Amount Paid Successfully</h3>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">V.NO.</th>
<th scope="col">Paid By</th>
<th scope="col">Amount</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="text" class="form-control" value="<?= date('Y-m-d')?>" id="datepicker4" readonly>
</td>
<td><input type="text" class="form-control" placeholder="Enter Vocher Number" id="Books_invoice_value" readonly></td>
<td><input type="text" class="form-control" placeholder="Enter Paid By" id="Bookspaid_by"></td>
<td><input type="text" class="form-control noSpace" placeholder="Enter Amount" onkeypress="return isNumber(event)" id="BooksPaidAmtData">
<input type="hidden" id="Books_total_amount1">
<input type="hidden" id="studyAdm">
<input type="hidden" id="studyClass">
<input type="hidden" id="studyYear">
<input type="hidden" id="Branch">
</td>
<td></td>
<td ><button class="button12" id="books_paybtn" onclick="return BooksAmountData()">Pay </button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div><br>
<div id="BooksTableData"></div><br>
<div id="Books_TableData"></div>
</div>
<!---- Books 1st table end ----->
<!---- Books 2nd table start ----->
<div id="promote_books_table"></div>
<!---- Books 2nd table end ----->
</div>
</div>
</div>
<!----- Books End ----->
<!--- Remarks start ---->
<div class="row tabcontent w3-container city dropdown" id="Remarks" style="display:none">
<div class="container">
<button type="button" class="collaps" data-target="#collapseOne" style="margin-top: -1px; margin-left: -15px;" >Acadamic Year : <b id="Academic_year6"></b> </button>
<div class="content1 " style="background: color: #f5f5f5; margin-top: 5px; display:none;" id="card">
<h3 style="text-align: center; color:green; display:none;" id="remarkserrmsg">Remarks Data Added Successfully</h3>
<div class="col-col-lg-6 col-md-12">
<textarea id="remarks_data" name="w3review" rows="5" cols="150" placeholder="Please Enter Remarks"></textarea>
<div >
<input type="button" name="submit" id="submit" value="Submit" style=" background-color: #69F0AE; border: none;color: #fffff;padding:6px 40px;" onClick="RemarksData()">
<br><br>
</div>
</div>
<div id="RemarksTableData"></div>
</div>
<!---- 2nd remarks---->
<div id="promote_remarks_table"></div>
<!---- 2nd remarks end---->
</div>
</div>
<!--- Remarks End ---->
<!--- Activity Start ---->
<div class="row tabcontent w3-container city" id="Activity" style="display:none">
<div class="container">
<button type="button" class="collaps" data-target="#collapseOne" style="margin-top:-1px; margin-left: -15px;" >Acadamic Year : <b id="Academic_year7"></b> </button>
<div class="content1" style="background: color: #f5f5f5; margin-top: 5px; display:none;" id="card">
<h3 style="text-align: center; color:green; display:none;" id="activityerrmsg">Activity Data Added Successfully</h3>
<div class="col-col-lg-6 col-md-12">
<textarea id="activity_data" name="w3review" rows="5" cols="150" placeholder="Please Enter Activity"></textarea>
<div >
<input type="button" name="submit" onClick="ActivityData()" value="Submit" style=" background-color: #69F0AE; border: none;color: #fffff;padding:6px 40px; margin-left: 20px;">
<br><br>
</div>
</div>
<div id="showActivityTable"></div>
</div>
<!---- 2nd activity---->
<div id="promote_activity_table"></div>
<!---- 2nd activity end---->
</div>
</div>
<!--- Activity End ---->
<!--- Promote Start ---->
<div class="row tabcontent w3-container city" id="Promote" style="display:none">
<div class="container">
<!--
<button type="button" class="collaps" data-target="#collapseOne" style="margin-top: 20px;" >Acadamic Year : 2021-2022 | Due Amount : Rs 3,000 </button>
<div class="content1" style="background: color: #f5f5f5; display:none;" id="card"> -->
<div style="display:inline-flex; padding: 10px 0 10px 30px; display: flex;">
<h5 class="">Present Class:<b id="PresentClassData"></b></h5><br>
</div>
<div class="container">
<div class="col-12">
<div class=" rounded h-100 p-4" style="background-color:#f5f5f5; border: 0.1px solid gray;">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Study Total Amount</th>
<th scope="col">Study Due Amount</th>
<th scope="col">Bus Total Amount</th>
<th scope="col">Bus Due Amount</th>
<th scope="col">Hostel Total Amount</th>
<th scope="col">Hostel Due Amount</th>
<th scope="col">Books Total Amount</th>
<th scope="col">Books Due Amount</th>
<th scope="col">Additional Total Amount</th>
<th scope="col">Additional Due Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td id="prestudyamount"></td>
<td id="prestudydueamount"></td>
<td id="prebusamount"></td>
<td id="prebusdueamount"></td>
<td id="prehostelamount"></td>
<td id="prehosteldueamount"></td>
<td id="prebooksamount"></td>
<td id="prebooksdueamount"></td>
<td id="preaddamount"></td>
<td id="preadddueamount"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div style="display:flex; justify-content: space-between !important; padding: 10px 10px; display: flex;">
<h5 class="">Promoto To:
<?php
$select_classData = executework("SELECT * from class");
?>
<select class="form-control" id="promote_class" style="display:none" onchange="promoto_amounts()">
<option value=''>Please Select Class</option>
<?php
while($rowClass = mysqli_fetch_array($select_classData)){
?>
<option value='<?= $rowClass['name']?>'><?= $rowClass['name']?></option>
<?php
}
?>
</select>
</h5>
<br>
</div>
<div class="col-12" style="margin-top:20px;">
<div class=" rounded h-100 p-4" style="background-color:#f5f5f5; border: 0.1px solid gray;">
<h5 id="promoteMsg" style="display:none; color: green; text-align:center;">Promote Data Inserted Successfully</h5>
<h5 id="promoteMsg" style="display:none; color: red; text-align:center;">Promote Data Already Inserted Successfully</h5>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Academic Year</th>
<th scope="col">Roll No</th>
<th scope="col">Study Fee</th>
<th scope="col">Bus Fee</th>
<th scope="col">Hostel Fee</th>
<th scope="col">Books Fee</th>
<th scope="col">Additional Fee</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
<tr>
<?php
$select_academicsData = executework("SELECT * from academic_year order by id desc");
?>
<td>
<input type="hidden" id="Branch">
<input type="hidden" id="syllabus">
<select class="form-control" id="promoteYear" style="display: none;" onchange="promote_RollNo(); promoto_amounts()" required>
<option value=''>Please Academic Year</option>
<?php
while($rowYear = mysqli_fetch_array($select_academicsData)){
?>
<option value='<?= $rowYear['yearOf']?>'><?= $rowYear['yearOf']?></option>
<?php
}
?>
</select>
</td>
<td><input type="text" class="form-control" id="promoteRollNo" readonly></td>
<td><input type="text" class="form-control" id="promoteSTotal" placeholder="Enter Study Amount">
<input type="hidden" class="form-control" id="promoteSTotal1" placeholder="Enter Study Amount">
</td>
<td><input type="text" class="form-control" id="promoteBTotal" placeholder="Enter Bus Amount">
<input type="hidden" class="form-control" id="promoteBTotal1" placeholder="Enter Bus Amount">
</td>
<td><input type="text" class="form-control" id="promoteHTotal" placeholder="Enter Hostel Amount">
<input type="hidden" class="form-control" id="promoteHTotal1" placeholder="Enter Hostel Amount">
</td>
<td><input type="text" class="form-control" id="promoteBkTotal" placeholder="Enter Books Amount">
<input type="hidden" class="form-control" id="promoteBkTotal1" placeholder="Enter Books Amount">
</td>
<td><input type="text" class="form-control" id="promoteATotal" placeholder="Enter Additional Amount">
<input type="hidden" class="form-control" id="promoteATotal1" placeholder="Enter Additional Amount">
</td>
<td ><button class="button12" onclick="save_promoteData()">Save </button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--- Promote End ---->
</div>
</div>
</div>
</section>
</main>
<input type="hidden" id="session_name" value="<?= $_SESSION['user']?>">
<script>
function openCity(evt, cityName) {
var i, x, tablinks;
x = document.getElementsByClassName("city");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablink");
for (i = 0; i < x.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" w3-green", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " w3-green";
}
</script>
</script>
<script>
var coll = document.getElementsByClassName("collaps");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.collaps {
background-color:#7D86F8;
color: white;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.collapse1 {
background-color:#2a39485c;
color: white;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
/*.active, .collaps:hover {
background-color: #7D86F8;
}*/
.content {
padding: 0 18px;
display: none;
overflow: hidden;
background-color: #f1f1f1;
}
.button.accordion:after {
content: '\002B';
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
}
.button.accordion:after {
content: '\002B';
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
}
.button.accordion.active:after {
content: "\2212";
}
.div.panel {
padding: 0 18px;
background-color: #f1f1f1;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
color:black;
}
.button.accordion:after {
content: '\002B';
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
}
*, *:before, *:after {
box-sizing: inherit;
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style type="text/css">
.button12 {
background-color: #2FEBB5; /* Green */
border: none;
color: #111;
padding:8px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
</style>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function isNumber(evt,ref,len)
{
evt = (evt) ? evt : window.event;
var charCode = (evt.which) ? evt.which : evt.keyCode;
if(charCode == 8 || charCode == 9 ){
return true;
}
var ctrlDown = evt.ctrlKey||evt.metaKey // Mac support
if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 46 || charCode == 8 || charCode == 37 || charCode == 39 || ( ctrlDown && charCode==86)) {
return false;
}
else if(ref.val().length >= len){
return false;
}
return true;
}
</script>
<script>
$('.noSpace').keyup(function() {
this.value = this.value.replace(/\s/g,'');
});
</script>
<script>
$("#admission").keyup(function(){
var admission = document.getElementById("admission").value;
var syllabus = document.getElementById("syl").value;
if(admission != "" && syllabus != ""){
$.ajax({
url : "student_data.php",
data : {admission : admission,type:1,syllabus : syllabus},
type : 'POST',
dataType: 'json',
success : function(response) {
var len = response.length;
$("#AdmNum").empty();
for( var i = 0; i<len; i++){
var id = response[i]['id'];
var AdmissionNo = response[i]['AdmissionNo'];
$("#AdmNum").append("<li value='"+id+"'>"+AdmissionNo+"</li>");
}
$("#AdmNum li").bind("click",function(){
setText(this);
});
}
});
}
});
function setText(element){
var value = $(element).text();
var keyid = $(element).val();
$("#admission").val(value);
$("#AdmNum").empty();
$.ajax({
url : "student_data.php",
data : {keyid : keyid,type:2},
type : 'POST',
success : function(data) {
var response = JSON.parse(data);
$('#studentname').html(response.studentname);
$('#Surname').html(response.surname);
$('#DOB').html(response.Dob);
$('#Academic_year').html(response.Academic_year);
$('#Academic_year1').html(response.Academic_year);
$('#Academic_year2').html(response.Academic_year);
$('#Academic_year3').html(response.Academic_year);
$('#Academic_year4').html(response.Academic_year);
$('#Academic_year5').html(response.Academic_year);
$('#Academic_year6').html(response.Academic_year);
$('#Academic_year7').html(response.Academic_year);
$('#Academic_year15').html(response.Academic_year);
$('#studyYear').val(response.Academic_year);
$('#father').html(response.FatherName);
$('#AdmissionNo').html(response.AdmissionNo);
$('#studyAdm').val(response.AdmissionNo);
$('#Branch').val(response.Branch);
$('#mother').html(response.MotherName);
$('#AdmissionDate').html(response.AdmissionDate);
$('#mobile').html(response.FatherMobile);
$('#Gender').html(response.Gender);
$('#Mandal').html(response.Mandal);
$('#PresentClass').html(response.PresentClass);
$('#PresentClassData').html(response.PresentClass);
$('#studyClass').val(response.PresentClass);
$('#Blood').html(response.Blood);
$('#syllabus').html(response.syllabus);
$('#SecreName').html(response.SecreName);
$('#Hostel').html(response.Hostel);
$('#PinCode').html(response.PinCode);
$('#study_due_amount').html(response.study_amount);
$('#prestudydueamount').html(response.study_amount);
$('#study_due_amount1').html(response.study_amount);
$('#study_paid_amount').html(response.study_paid_amount);
$('#study_total').val(response.study_amount);
$('#study_total_amount').html(response.study_total_amount);
$('#prestudyamount').html(response.study_total_amount);
$('#study_invoice_value').val(response.invoice_value);
$('#Add_invoice_value').val(response.Addinvoice_value);
$('#Bus_invoice_value').val(response.Businvoice_value);
$('#Hostel_invoice_value').val(response.hostelinvoice_value);
$('#Books_invoice_value').val(response.booksinvoice_value);
$('#Admission_invoice_value').val(response.adminvoice_value);
$("#image_preview1").attr("src",response.file_image);
$('#Bus_due_amount').html(response.busdue_amount);
$('#prebusdueamount').html(response.busdue_amount);
$('#BusDueAmt').html(response.busdue_amount);
$('#additionalPaidAmt').html(response.Add_paid_amount);
$('#additionalPaidAmt').html(response.Add_paid_amount);
$('#preadddueamount').html(response.Adddue_amount);
// $('#preadddueamount').html(response.Adddue_amount);
$('#additionalDueAmt').html(response.Adddue_amount);
$('#additional_due_amount').html(response.Adddue_amount);
$('#BusPaidAmt').html(response.bus_paid_amount);
$('#Bus_total_amount').html(response.bus_total_amount);
$('#prebusamount').html(response.bus_total_amount);
$('#additional_total_amount').html(response.Additional_total_amount);
$('#preaddamount').html(response.Additional_total_amount);
$('#Bus_total').html(response.bus_total_amount);
$('#Bus_total').html(response.bus_total_amount);
$('#Hostel_total_amount').html(response.Hostel_total_amount);
$('#prehostelamount').html(response.Hostel_total_amount);
$('#Books_total_amount').html(response.Books_total_amount);
$('#prebooksamount').html(response.Books_total_amount);
$('#HostelPaidAmt').html(response.hoste_paid_amount);
$('#Hostel_due_amount').html(response.hostedue_amount);
$('#prehosteldueamount').html(response.hostedue_amount);
$('#HostelDueAmt').html(response.hostedue_amount);
$('#Books_due_amount').html(response.booksdue_amount);
$('#prebooksdueamount').html(response.booksdue_amount);
$('#BooksDueAmt').html(response.booksdue_amount);
$('#BooksPaidAmt').html(response.books_paid_amount);
$('#Branch').html(response.Branch);
$('#study_actual_amount').html(response.study_actual_fee);
$('#Bus_actual_amount').html(response.bus_actual_fee);
$('#Hostel_actual_amount').html(response.hostel_atcual_fee);
$('#Add_actual_amount').html(response.add_actual_amount);
$('#Books_actual_amount').html(response.books_actual_fee);
$('#Admission_total_amount').html(response.admissionAmount);
$('#Admission_actual_amount').html(response.admission_atcual_amt);
$('#Admission_due_amount').html(response.Admissionsdue_amount);
$('#Admission_due_amount1').html(response.Admissionsdue_amount);
$('#Admission_paid_amount').html(response.Admission_paid_amount);
$('#actual_admission').html(response.admission_atcual_amt);
$('#admission_amount').html(response.admission_Amount);
$('#syllabus').val(response.syllabus);
$('#study_body').show();
$('#spaybtn').show();
if(value !='')
{
$('#promote_class').show();
$('#promoteYear').show();
var session_name = $('#session_name').val();
var AdmissionNo = $('#AdmissionNo').html();
var Academic_year = $('#Academic_year').html();
var Branch = $('#Branch').val();
sdm = $('#study_due_amount').html();
if(sdm !=0){
$.ajax({
url : "study_fee_data.php",
data : {type:1,AdmissionNo : AdmissionNo,Academic_year : Academic_year,session_name : session_name},
type : 'POST',
success : function(response) {
$('#showstudy_Table').html(response);
}
});
}
else
{
alert('Your Paid Total Amount');
}
$.ajax({
url : "study_fee_data.php",
data : {type:2,AdmissionNo : AdmissionNo,Academic_year : Academic_year,session_name : session_name},
type : 'POST',
success : function(response) {
$('#busTableData').html(response);
}
});
$.ajax({
url : "study_fee_data.php",
data : {type:3,AdmissionNo : AdmissionNo,Academic_year : Academic_year,session_name : session_name},
type : 'POST',
success : function(response) {
$('#AddTableData').html(response);
}
});
$.ajax({
url : "study_fee_data.php",
data : {type:4,AdmissionNo : AdmissionNo,Academic_year : Academic_year,session_name : session_name},
type : 'POST',
success : function(response) {
$('#HostelTableData').html(response);
}
});
$.ajax({
url : "study_fee_data.php",
data : {type:5,AdmissionNo : AdmissionNo,Academic_year : Academic_year,session_name : session_name},
type : 'POST',
success : function(response) {
$('#BooksTableData').html(response);
}
});
$.ajax({
url : "study_fee_data.php",
data : {type:6,AdmissionNo : AdmissionNo,Academic_year : Academic_year,session_name : session_name},
type : 'POST',
success : function(response) {
$('#RemarksTableData').html(response);
}
});
$.ajax({
url : "study_fee_data.php",
data : {type:7,AdmissionNo : AdmissionNo,Academic_year : Academic_year,session_name : session_name},
type : 'POST',
success : function(response) {
$('#showActivityTable').html(response);
}
});
$.ajax({
url : "study_fee_data.php",
data : {type:9,AdmissionNo : AdmissionNo,Academic_year : Academic_year},
type : 'POST',
success : function(response) {
$('#showadmission_Table').html(response);
}
});
$.ajax({
url : "promote_year.php",
data : {type:1,AdmissionNo : AdmissionNo,Branch : Branch},
type : 'POST',
success : function(response) {
$('#study_2nd_table').html(response);
}
});
$.ajax({
url : "buspromote_year.php",
data : {type:1,AdmissionNo : AdmissionNo,Branch : Branch},
type : 'POST',
success : function(response) {
$('#Promote_bus_table').html(response);
}
});
$.ajax({
url : "hostel_promote_year.php",
data : {type:1,AdmissionNo : AdmissionNo,Branch : Branch},
type : 'POST',
success : function(response) {
$('#promote_hostel_table').html(response);
}
});
$.ajax({
url : "books_promote_year.php",
data : {type:1,AdmissionNo : AdmissionNo,Branch : Branch},
type : 'POST',
success : function(response) {
$('#promote_books_table').html(response);
}
});
$.ajax({
url : "additional_promote_year.php",
data : {type:1,AdmissionNo : AdmissionNo,Branch : Branch},
type : 'POST',
success : function(response) {
$('#additional_promote_year').html(response);
}
});
$.ajax({
url : "promote_remarks.php",
data : {type:1,AdmissionNo : AdmissionNo,Academic_year : Academic_year,Branch : Branch},
type : 'POST',
success : function(response) {
$('#promote_remarks_table').html(response);
}
});
$.ajax({
url : "promote_activity.php",
data : {type:1,AdmissionNo : AdmissionNo,Academic_year : Academic_year,Branch : Branch},
type : 'POST',
success : function(response) {
$('#promote_activity_table').html(response);
}
});
}
}
});
}
</script>
<script>
function studyAmountData()
{
var session_name = $('#session_name').val();
var fee_date = $('#datepicker11').val();
var amount_data =$('#sPaidAmt').val();
var paid_by = $('#spaid_by').val();
var study_amount = $('#study_total_amount').html();
var invoice_value = $('#study_invoice_value').val();
var AdmissionNo = $('#studyAdm').val();
var PresentClass = $('#studyClass').val();
var Academic_year = $('#studyYear').val();
var Branch = $('#Branch').val();
if(fee_date == '')
{
swal('Please Select Date');
return false;
}
else if(paid_by == '')
{
swal('Please Enter Paid By');
return false;
}
else if(amount_data == '')
{
swal('Please Enter Amount');
return false;
}
else
{
if(AdmissionNo !=''){
$.ajax({
url : "study_payment.php",
data : {study_amount : study_amount,type:1,amount_data:amount_data,AdmissionNo : AdmissionNo,PresentClass : PresentClass,fee_date : fee_date,Academic_year : Academic_year,paid_by : paid_by,Branch : Branch,invoice_value : invoice_value,session_name: session_name},
type : 'POST',
success : function(response) {
$('#StudyTableData').html(response);
$('#showstudy_Table').hide();
$('#sPaidAmt').val('');
$('#spaid_by').val('');
$('#studyerrmsg').show();
$('#buserrmsg').hide();
$('#additionalerrmsg').hide();
$('#hostelerrmsg').hide();
$('#bookserrmsg').hide();
$('#remarkserrmsg').hide();
$('#activityerrmsg').hide();
}
});
$.ajax({
url : "study_payment1.php",
data : {Branch : Branch,type: 1,invoice_value : invoice_value},
type : 'POST',
success : function(response1) {
$('#study_invoice_value').val(response1);
$('#Books_invoice_value').val(response1);
$('#Hostel_invoice_value').val(response1);
$('#Add_invoice_value').val(response1);
$('#Bus_invoice_value').val(response1);
// $('#remarkserrmsg').hide();
// $('#activityerrmsg').hide();
}
});
}
}
}
function BusAmountData()
{
var session_name = $('#session_name').val();
var fee_date = $('#datepicker1').val();
var amount_data =$('#bPaidAmt').val();
var paid_by = $('#bpaid_by').val();
var bus_amount = $('#Bus_total_amount').html();
var invoice_value = $('#Bus_invoice_value').val();
var AdmissionNo = $('#studyAdm').val();
var PresentClass = $('#studyClass').val();
var Academic_year = $('#studyYear').val();
var Branch = $('#Branch').val();
if(fee_date == '')
{
swal('Please Select Date');
return false;
}
else if(paid_by == '')
{
swal('Please Enter Paid By');
return false;
}
else if(amount_data == '')
{
swal('Please Enter Amount');
return false;
}
else
{
if(AdmissionNo !=''){
$.ajax({
url : "bus_payment.php",
data : {bus_amount : bus_amount,type:1,amount_data:amount_data,AdmissionNo : AdmissionNo,PresentClass : PresentClass,fee_date : fee_date,Academic_year : Academic_year,paid_by : paid_by,Branch : Branch,invoice_value : invoice_value,session_name : session_name},
type : 'POST',
success : function(response) {
$('#Bus_TableData').html(response);
$('#busTableData').hide();
$('#bPaidAmt').val('');
$('#bpaid_by').val('');
$('#buserrmsg').show();
$('#studyerrmsg').hide();
$('#additionalerrmsg').hide();
$('#hostelerrmsg').hide();
$('#bookserrmsg').hide();
$('#remarkserrmsg').hide();
$('#activityerrmsg').hide();
}
});
$.ajax({
url : "bus_payment1.php",
data : {Branch : Branch,type: 1,invoice_value : invoice_value},
type : 'POST',
success : function(response1) {
$('#Admission_invoice_value').val(response1);
$('#study_invoice_value').val(response1);
$('#Books_invoice_value').val(response1);
$('#Hostel_invoice_value').val(response1);
$('#Add_invoice_value').val(response1);
$('#Bus_invoice_value').val(response1);
// $('#remarkserrmsg').hide();
// $('#activityerrmsg').hide();
}
});
}
}
}
function AdditionalAmountData()
{
var session_name = $('#session_name').val();
var fee_date = $('#datepicker3').val();
var amount_data =$('#addPaidAmt').val();
var paid_by = $('#addpaid_by').val();
var additional_amount = $('#additional_total_amount').html();
var invoice_value = $('#Add_invoice_value').val();
var AdmissionNo = $('#studyAdm').val();
var PresentClass = $('#studyClass').val();
var Academic_year = $('#studyYear').val();
var Branch = $('#Branch').val();
if(fee_date == '')
{
swal('Please Select Date');
return false;
}
else if(paid_by == '')
{
swal('Please Enter Paid By');
return false;
}
else if(amount_data == '')
{
swal('Please Enter Amount');
return false;
}
else
{
if(AdmissionNo !=''){
$.ajax({
url : "additional_payment.php",
data : {additional_amount : additional_amount,type:1,amount_data:amount_data,AdmissionNo : AdmissionNo,PresentClass : PresentClass,fee_date : fee_date,Academic_year : Academic_year,paid_by : paid_by,Branch : Branch,invoice_value : invoice_value,session_name : session_name},
type : 'POST',
success : function(response) {
$('#Additional_TableData').html(response);
$('#AddTableData').hide();
$('#addPaidAmt').val('');
$('#addpaid_by').val('');
$('#additionalerrmsg').show();
$('#buserrmsg').hide();
$('#studyerrmsg').hide();
$('#hostelerrmsg').hide();
$('#bookserrmsg').hide();
$('#remarkserrmsg').hide();
$('#activityerrmsg').hide();
}
});
$.ajax({
url : "additional_payment1.php",
data : {Branch : Branch,type: 1,invoice_value : invoice_value},
type : 'POST',
success : function(response1) {
$('#Admission_invoice_value').val(response1);
$('#study_invoice_value').val(response1);
$('#Books_invoice_value').val(response1);
$('#Hostel_invoice_value').val(response1);
$('#Add_invoice_value').val(response1);
$('#Bus_invoice_value').val(response1);
// $('#remarkserrmsg').hide();
// $('#activityerrmsg').hide();
}
});
}
}
}
function HostelAmountData()
{
var session_name = $('#session_name').val();
var fee_date = $('#datepicker2').val();
var amount_data =$('#HPaidAmt').val();
var paid_by = $('#Hpaid_by').val();
var Hostel_amount = $('#Hostel_total_amount').html();
var invoice_value = $('#Hostel_invoice_value').val();
var AdmissionNo = $('#studyAdm').val();
var PresentClass = $('#studyClass').val();
var Academic_year = $('#studyYear').val();
var Branch = $('#Branch').val();
if(fee_date == '')
{
swal('Please Select Date');
return false;
}
else if(paid_by == '')
{
swal('Please Enter Paid By');
return false;
}
else if(amount_data == '')
{
swal('Please Enter Amount');
return false;
}
else
{
if(AdmissionNo !=''){
$.ajax({
url : "hostel_payment.php",
data : {Hostel_amount : Hostel_amount,type:1,amount_data:amount_data,AdmissionNo : AdmissionNo,PresentClass : PresentClass,fee_date : fee_date,Academic_year : Academic_year,paid_by : paid_by,Branch : Branch,invoice_value : invoice_value,session_name : session_name},
type : 'POST',
success : function(response) {
$('#Hos_TableData').html(response);
$('#HostelTableData').hide();
$('#HPaidAmt').val('');
$('#Hpaid_by').val('');
$('#hostelerrmsg').show();
$('#additionalerrmsg').hide();
$('#buserrmsg').hide();
$('#studyerrmsg').hide();
$('#bookserrmsg').hide();
$('#remarkserrmsg').hide();
$('#activityerrmsg').hide();
}
});
$.ajax({
url : "hostel_payment1.php",
data : {Branch : Branch,type: 1,invoice_value : invoice_value},
type : 'POST',
success : function(response1) {
$('#Admission_invoice_value').val(response1);
$('#study_invoice_value').val(response1);
$('#Books_invoice_value').val(response1);
$('#Hostel_invoice_value').val(response1);
$('#Add_invoice_value').val(response1);
$('#Bus_invoice_value').val(response1);
// $('#remarkserrmsg').hide();
// $('#activityerrmsg').hide();
}
});
}
}
}
function BooksAmountData()
{
var session_name = $('#session_name').val();
var fee_date = $('#datepicker4').val();
var amount_data =$('#BooksPaidAmtData').val();
var paid_by = $('#Bookspaid_by').val();
var Books_amount = $('#Books_total_amount').html();
var invoice_value = $('#Books_invoice_value').val();
var AdmissionNo = $('#studyAdm').val();
var PresentClass = $('#studyClass').val();
var Academic_year = $('#studyYear').val();
var Branch = $('#Branch').val();
if(fee_date == '')
{
swal('Please Select Date');
return false;
}
else if(paid_by == '')
{
swal('Please Enter Paid By');
return false;
}
else if(amount_data == '')
{
swal('Please Enter Amount');
return false;
}
else
{
if(AdmissionNo !=''){
$.ajax({
url : "books_payment.php",
data : {Books_amount : Books_amount,type:1,amount_data:amount_data,AdmissionNo : AdmissionNo,PresentClass : PresentClass,fee_date : fee_date,Academic_year : Academic_year,paid_by : paid_by,Branch : Branch,invoice_value : invoice_value,session_name : session_name},
type : 'POST',
success : function(response) {
$('#Books_TableData').html(response);
$('#BooksTableData').hide()
$('#BooksPaidAmtData').val('');
$('#Bookspaid_by').val('');
$('#bookserrmsg').show();
$('#hostelerrmsg').hide();
$('#additionalerrmsg').hide();
$('#buserrmsg').hide();
$('#studyerrmsg').hide();
$('#remarkserrmsg').hide();
$('#activityerrmsg').hide();
}
});
$.ajax({
url : "books_payment1.php",
data : {Branch : Branch,type: 1,invoice_value : invoice_value},
type : 'POST',
success : function(response1) {
$('#Admission_invoice_value').val(response1);
$('#study_invoice_value').val(response1);
$('#Books_invoice_value').val(response1);
$('#Hostel_invoice_value').val(response1);
$('#Add_invoice_value').val(response1);
$('#Bus_invoice_value').val(response1);
// $('#remarkserrmsg').hide();
// $('#activityerrmsg').hide();
}
});
}
}
}
function admissionAmountData()
{
var session_name = $('#session_name').val();
var fee_date = $('#datepicker11').val();
var amount_data =$('#admPaidAmt').val();
var paid_by = $('#admpaid_by').val();
var Admission_amount = $('#Admission_total_amount').html();
var invoice_value = $('#Admission_invoice_value').val();
var AdmissionNo = $('#studyAdm').val();
var PresentClass = $('#studyClass').val();
var Academic_year = $('#studyYear').val();
var Branch = $('#Branch').val();
if(fee_date == '')
{
swal('Please Select Date');
return false;
}
else if(paid_by == '')
{
swal('Please Enter Paid By');
return false;
}
else if(amount_data == '')
{
swal('Please Enter Amount');
return false;
}
else
{
if(AdmissionNo !=''){
$.ajax({
url : "admission_payment.php",
data : {Admission_amount : Admission_amount,type:1,amount_data:amount_data,AdmissionNo : AdmissionNo,PresentClass : PresentClass,fee_date : fee_date,Academic_year : Academic_year,paid_by : paid_by,Branch : Branch,invoice_value : invoice_value,session_name : session_name},
type : 'POST',
success : function(response) {
$('#admissionTableData').html(response);
$('#showadmission_Table').hide();
$('#admPaidAmt').val('');
$('#admpaid_by').val('');
$('#Admissionerrmsg').show();
$('#bookserrmsg').hide();
$('#hostelerrmsg').hide();
$('#additionalerrmsg').hide();
$('#buserrmsg').hide();
$('#studyerrmsg').hide();
$('#remarkserrmsg').hide();
$('#activityerrmsg').hide();
}
});
$.ajax({
url : "admission_payment1.php",
data : {Branch : Branch,type: 1},
type : 'POST',
success : function(response1) {
$('#Admission_invoice_value').val(response1);
$('#Books_invoice_value').val(response1);
$('#Hostel_invoice_value').val(response1);
$('#Add_invoice_value').val(response1);
$('#Bus_invoice_value').val(response1);
$('#study_invoice_value').val(response1);
// $('#remarkserrmsg').hide();
// $('#activityerrmsg').hide();
}
});
}
}
}
function RemarksData()
{
var session_name = $('#session_name').val();
var remarks_data = $('#remarks_data').val();
var AdmissionNo = $('#studyAdm').val();
var PresentClass = $('#studyClass').val();
var Academic_year = $('#studyYear').val();
var Branch = $('#Branch').val();
if(remarks_data == '')
{
swal('Please Enter Remarks');
return false;
}
else{
if(AdmissionNo !='')
{
$.ajax({
url : "remarks.php",
data : {AdmissionNo : AdmissionNo,type:1,Academic_year : Academic_year,remarks_data : remarks_data,Branch : Branch,PresentClass : PresentClass},
type : 'POST',
success : function(response) {
if(response =1){
$('#remarks_data').val('');
$('#remarkserrmsg').show();
$('#bookserrmsg').hide();
$('#hostelerrmsg').hide();
$('#additionalerrmsg').hide();
$('#buserrmsg').hide();
$('#studyerrmsg').hide();
$('#activityerrmsg').hide();
}
}
});
}
}
}
function ActivityData()
{
var session_name = $('#session_name').val();
var activity_data = $('#activity_data').val();
var AdmissionNo = $('#studyAdm').val();
var PresentClass = $('#studyClass').val();
var Academic_year = $('#studyYear').val();
var Branch = $('#Branch').val();
if(activity_data == '')
{
swal('Please Enter Activity');
return false;
}
else{
if(AdmissionNo !='')
{
$.ajax({
url : "remarks.php",
data : {AdmissionNo : AdmissionNo,type:2,Academic_year : Academic_year,activity_data : activity_data,Branch : Branch,PresentClass : PresentClass,session_name : session_name},
type : 'POST',
success : function(response) {
if(response =1){
$('#activity_data').val('');
$('#activityerrmsg').show();
$('#remarkserrmsg').hide();
$('#bookserrmsg').hide();
$('#hostelerrmsg').hide();
$('#additionalerrmsg').hide();
$('#buserrmsg').hide();
$('#studyerrmsg').hide();
}
}
});
}
}
}
</script>
<script>
function promote_RollNo()
{
var Branch = $('#Branch').val();
var AdmissionNo = $('#studyAdm').val();
var promoteYear = $('#promoteYear').val();
var promote_class = $('#promote_class').val();
if(Branch !='' && promoteYear !='' && promote_class !='')
{
$.ajax({
url : "student_data.php",
data : {Branch : Branch,promoteYear : promoteYear,type:6,promote_class:promote_class},
type : 'POST',
success : function(response) {
$('#promoteRollNo').val(response);
}
});
}
}
function promoto_amounts()
{
var Academic_year = $('#promoteYear').val();
var PresentClass = $('#promote_class').val();
var Syllabus = $('#syllabus').val();
if(Academic_year !='' && PresentClass !='')
{
$.ajax({
url : "student_data.php",
data : {Academic_year : Academic_year,type:15,PresentClass:PresentClass,Syllabus : Syllabus},
type : 'POST',
success : function(data) {
var response = JSON.parse(data);
$('#promoteSTotal').val(response.studying_amount);
$('#promoteBTotal').val(response.bus_fee);
$('#promoteHTotal').val(response.tution_fee);
$('#promoteBkTotal').val(response.books_fee);
$('#promoteATotal').val(response.addition_fee);
$('#promoteSTotal1').val(response.studying_amount);
$('#promoteBTotal1').val(response.bus_fee);
$('#promoteHTotal1').val(response.tution_fee);
$('#promoteBkTotal1').val(response.books_fee);
$('#promoteATotal1').val(response.addition_fee);
}
});
}
}
function save_promoteData()
{
var Branch = $('#Branch').val();
var Academic_year = $('#promoteYear').val();
var PresentClass = $('#promote_class').val();
var AdmissionNo = $('#studyAdm').val();
var promoteSTotal = $('#promoteSTotal').val();
var promoteBTotal = $('#promoteBTotal').val();
var promoteHTotal =$('#promoteHTotal').val();
var promoteBkTotal =$('#promoteBkTotal').val();
var promoteATotal =$('#promoteATotal').val();
var promoteSTotal123 =$('#promoteSTotal1').val();
var promoteBTotal123 =$('#promoteBTotal1').val();
var promoteHTotal123 =$('#promoteHTotal1').val();
var promoteBkTotal123 =$('#promoteBkTotal1').val();
var promoteATotal123 =$('#promoteATotal1').val();
var promoteRollNo = $('#promoteRollNo').val();
if(AdmissionNo !='' && PresentClass !='' && Academic_year !='' && promoteRollNo !='')
{
$.ajax({
url : "student_data.php",
data : {Academic_year : Academic_year,PresentClass : PresentClass,type:8,AdmissionNo:AdmissionNo,promoteSTotal : promoteSTotal, promoteSTotal123 : promoteSTotal123, promoteBTotal : promoteBTotal, promoteBTotal123: promoteBTotal123,promoteHTotal : promoteHTotal, promoteHTotal123 : promoteHTotal123,promoteBkTotal : promoteBkTotal, promoteBkTotal123 : promoteBkTotal123,promoteATotal : promoteATotal, promoteATotal123 : promoteATotal123,promoteRollNo : promoteRollNo,Branch : Branch},
type : 'POST',
success : function(response) {
if(response =1)
{
$('#promoteMsg').show();
$('#promoteRollNo').val('');
}
else
{
$('#promoteMsg1').show();
$('#promoteRollNo').val('');
}
}
});
}
else{
alert('Please Fill This Fields');
}
}
</script>
<script>
function admission_due()
{
var adm_due = $('#Admission_due_amount').html();
if(adm_due !=0)
{
}
else{
$('#admi_paybtn').hide();
}
}
function study_due(){
var adm_due = $('#study_due_amount').html();
if(adm_due !=0)
{
}
else{
$('#study_paybtn').hide();
}
}
function bus_due()
{
var adm_due = $('#Bus_due_amount').html();
if(adm_due !=0)
{
}
else{
$('#bus_paybtn').hide();
}
}
function hostel_due()
{
var adm_due = $('#Hostel_due_amount').html();
if(adm_due !=0)
{
}
else{
$('#hostel_paybtn').hide();
}
}
function books_due()
{
var adm_due = $('#BooksDueAmt').html();
if(adm_due !=0)
{
}
else{
$('#books_paybtn').hide();
}
}
function additional_due()
{
var adm_due = $('#additional_due_amount').html();
if(adm_due !=0)
{
}
else{
$('#add_paybtn').hide();
}
}
function student_marks_data()
{
var AdmissionNo = $('#AdmissionNo').html();
if(AdmissionNo !='')
{
$.ajax({
url : "student_marks_data.php",
data : {type:1,AdmissionNo : AdmissionNo},
type : 'POST',
success : function(response) {
$('#student_marks_table').html(response);
}
});
}
}
</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<?php
include('include/footer.php');
?>
@LwBee Strong Bypass
Upload File
Create New File