/
home
/
u764571690
/
domains
/
savitrfoundation.com
/
public_html
/
admin
/
pages
/
/home/u764571690/domains/savitrfoundation.com/public_html/admin/pages
mkdir
upload
Name
Size
Mode
Actions
add_admission.php
11418
0644
edit
dl
rm
add_blog.php
3882
0644
edit
dl
rm
add_campaign.php
4326
0644
edit
dl
rm
add_certificate.php
3756
0644
edit
dl
rm
add_college.php
5839
0644
edit
dl
rm
add_college_courses.php
6366
0644
edit
dl
rm
add_content.php
5380
0644
edit
dl
rm
add_course.php
3249
0644
edit
dl
rm
add_expense.php
3847
0644
edit
dl
rm
add_expenses.php
4373
0644
edit
dl
rm
add_fees.php
4576
0644
edit
dl
rm
add_gallery.php
4054
0644
edit
dl
rm
add_intern.php
29360
0644
edit
dl
rm
add_internship.php
6273
0644
edit
dl
rm
add_internship_gallery.php
5994
0644
edit
dl
rm
add_intern_blog.php
7234
0644
edit
dl
rm
add_receive.php
3836
0644
edit
dl
rm
add_service.php
2773
0644
edit
dl
rm
add_specialisation.php
3713
0644
edit
dl
rm
add_stream.php
2405
0644
edit
dl
rm
admission_report.php
10404
0644
edit
dl
rm
appointment_list.php
2138
0644
edit
dl
rm
campaign_list.php
1733
0644
edit
dl
rm
campaign_update.php
3882
0644
edit
dl
rm
certificate_edit.php
3586
0644
edit
dl
rm
contact_form.php
1972
0644
edit
dl
rm
contact_us.php
2009
0644
edit
dl
rm
content_pages.php
3154
0644
edit
dl
rm
edit_add.php
3836
0644
edit
dl
rm
edit_admission.php
8973
0644
edit
dl
rm
edit_blog.php
3913
0644
edit
dl
rm
edit_campaign.php
6227
0644
edit
dl
rm
edit_college.php
6421
0644
edit
dl
rm
edit_college_courses.php
7991
0644
edit
dl
rm
edit_course.php
3661
0644
edit
dl
rm
edit_courses_content.php
3623
0644
edit
dl
rm
edit_donation.php
3588
0644
edit
dl
rm
edit_expense.php
3865
0644
edit
dl
rm
edit_expenses.php
3911
0644
edit
dl
rm
edit_fees.php
3357
0644
edit
dl
rm
edit_fees_type.php
2850
0644
edit
dl
rm
edit_gallery.php
4658
0644
edit
dl
rm
edit_intern.php
35116
0644
edit
dl
rm
edit_internship.php
7595
0644
edit
dl
rm
edit_internship_gallery.php
7328
0644
edit
dl
rm
edit_intern_blog.php
8254
0644
edit
dl
rm
edit_invoice.php
4916
0644
edit
dl
rm
edit_report.php
19
0644
edit
dl
rm
edit_service.php
3127
0644
edit
dl
rm
edit_specialisation.php
4712
0644
edit
dl
rm
edit_stream.php
2783
0644
edit
dl
rm
edit_student_list.php
0
0644
edit
dl
rm
edit_user.php
3547
0644
edit
dl
rm
edit_volunteer.php
4110
0644
edit
dl
rm
enquiry.php
3070
0644
edit
dl
rm
fees_type.php
3127
0644
edit
dl
rm
foot.php
6385
0644
edit
dl
rm
gallery.php
3996
0644
edit
dl
rm
gallery_edit.php
3460
0644
edit
dl
rm
gallery_view.php
1734
0644
edit
dl
rm
get.php
28
0644
edit
dl
rm
head.php
13417
0644
edit
dl
rm
home.php
4504
0644
edit
dl
rm
home_enquiry.php
2024
0644
edit
dl
rm
important.php
15460
0644
edit
dl
rm
logout.php
60
0644
edit
dl
rm
postAcceptor.php
2170
0644
edit
dl
rm
student_list.php
9476
0644
edit
dl
rm
view_admission.php
2875
0644
edit
dl
rm
view_blog.php
4991
0644
edit
dl
rm
view_campaign.php
5875
0644
edit
dl
rm
view_certificate.php
1678
0644
edit
dl
rm
view_college.php
3611
0644
edit
dl
rm
view_college_courses.php
4203
0644
edit
dl
rm
view_course.php
3579
0644
edit
dl
rm
view_donation.php
1817
0644
edit
dl
rm
view_expense.php
1897
0644
edit
dl
rm
view_expenses.php
1848
0644
edit
dl
rm
view_fees.php
1825
0644
edit
dl
rm
view_fees_type.php
1679
0644
edit
dl
rm
view_gallery.php
4592
0644
edit
dl
rm
view_interns.php
4184
0644
edit
dl
rm
view_internship.php
4092
0644
edit
dl
rm
view_internship_gallery.php
5239
0644
edit
dl
rm
view_intern_blog.php
5330
0644
edit
dl
rm
view_invoice.php
15361
0644
edit
dl
rm
view_invoice2.php
1898
0644
edit
dl
rm
view_message.php
2367
0644
edit
dl
rm
view_report.php
9643
0644
edit
dl
rm
view_service.php
1691
0644
edit
dl
rm
view_specialisation.php
3605
0644
edit
dl
rm
view_stream.php
3579
0644
edit
dl
rm
view_user.php
3894
0644
edit
dl
rm
view_user2.php
1809
0644
edit
dl
rm
volunteer.php
2110
0644
edit
dl
rm
Edit:
/home/u764571690/domains/savitrfoundation.com/public_html/admin/pages/view_invoice.php
(15361B)
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <?php if(@$con){} else{ $con=connection(); } date_default_timezone_set('Asia/Kolkata'); ?> <style> #background_change{ background:#000000!important; } #image{ width:50px; height:50px; } .red-bg{ background: #fa1010; } .yellow-bg{ background: #fbff14; color: black!important; } .blue-bg{ background:blue; } .orange-bg{ background:orange; color: black!important; } span.badge{ color:#fff; } .sb2-2{ float: left; width: 100%; padding: 40px; margin:0; margin-top:4%; background: #e3e8ea; } .selectize-dropdown, .selectize-input { line-height: 22px; font-weight: bold; font-size: 15px; } #DataTables_Table_0_length{ display:none; } .dataTables_filter{ margin-top:10px; } .dataTables_filter>label{ width:100%; } .dataTables_filter .form-control { width:100%; } .badge-amount{ font-size: 16px; letter-spacing: 1px; padding: 7px 14px; font-family: 'Quicksand'; } .log-in-pop-right { float: none; width: 100%; padding: 0px; } .input-field { display: inline-block; } .log-in-pop-right form input[type="submit"],.log-in-pop-right form input[type="button"] { color: #fff; font-size: 14px; font-weight: 600; height: 43px; } .log-in-btn { background: #20bfef; color: #fff; padding: 0px 10px; font-weight: 600; } .form-control { -webkit-appearance: none; -webkit-box-shadow: none; box-shadow: none; height: 40px; border-radius: 0; border: 1px solid #e9e9e9; color: #14181c; } .modal-body { position: relative; padding: 15px; height: 100%; } .modal-header .close { margin-top: -20px; } .waves-input-wrapper { border-radius: .2em; vertical-align: top; margin-top: -17px; } .input-field label { color: #0e0e0e; font-weight: 500; position: initial; top: 14px; left: 0; font-size: 1rem; cursor: text; transition: .2s ease-out; text-align: initial; font-size: 14px; } .clear{ background: #f4364f; } @media only screen and (max-width:600px) { .waves-input-wrapper { margin: 0px; } #clear{ margin-top:10px; } .width-mobile{ width:100%!important; } } hr { display: block; margin-top: 0px; margin-bottom: 0px; margin-left: auto; margin-right: auto; border-style: inset; border-width: 1px; color: red; width: 100%; min-width: 500%; /* max-width: 123%; */ } </style> <style> .blog-catagory-card i { font-size:4rem; margin-bottom:0rem; color:#0d65f6; } .blog-catagory-card span { font-size:13px; } .amount_display { color:#000; } .amount_display i { font-size:25px; color:#000; } .trans_box { width:100%; } .bg-light-grey { background:#f5f5f5; } .date_display { background: #fff; padding: 2px; border-radius: 5px; box-shadow: 0px 3px 5px #e6e6e6; } .date_d { font-size:17px; font-weight:bold; color:#037afb; } .date_m , .date_y { font-size:12px; color:#000; } .trans_amount { font-size:20px; font-weight:bold; } .red_color { color:#d0372d; } .green_color { color:#2ca200; } .notation { font-size:14px !important; } .txn_id { font-size:12px !important; } .red-borderleft { border-left: 4px solid #ce0000 !important; border-radius: 0 !important; } .green-borderleft { border-left: 4px solid #2ca200 !important; border-radius: 0 !important; } .invoice{ margin: 1px 1px 10px 35px; } .label1{ padding: 10px 1px 0px 40px; } .buttons{ margin:5px 5px 4px 35px; } </style> <div class="content-wrapper"> <!-- Main content --> <section class="content"> <div class=""> <div class=""> <div class="card card-primary"> <div class="card-header border-0" style="background-color:#0a2558;"> <h3 class="card-title">View Invoice</h3> </div> <div class="box-inn-sp "> <div class="tab-inn ad-tab-inn"> <div class="log-in-pop-center"> <form class="" id="filter-form" method="post" action=""> <div class="row"> <div class="col-sm-4 width-mobile"> <label for="stu_id" class="label1">Student Id/Mobile no.:</label> <input type="text" name="stu_id" id="stu_id" class="form-control " required=""> </div> <!--<div class="col-sm-4 width-mobile">--> <!--<label for="mobile" class="label1">Mobile No.:</label>--> <!--<input type="text" name="mobile" id="mobile" class="form-control " required="">--> <!--</div>--> </div> <div class="input-field s4 "> <input type="submit" name="sub" value="Search" class="btn btn-info form-control buttons"> </div> <div class="input-field s4"> <input type="button" onClick="history.go(-1)" value="Clear" class="btn btn-danger waves-button-input form-control buttons"> </div> <?php $x=1; $student_id = ""; // $mobile = ""; if(isset($_POST['sub'])) { $student_id = $_POST['stu_id']; //$mobile = $_POST['mobile']; $student_detail = $student_id; // $mobile_no = $mobile; ?> <div class="row justify-content-end"> <div class="col-sm-2"> <button type="button" class="btn btn-success" data-bs-toggle="modal" data-bs-target="#exampleModal"> Receive Fees</button> </div> </div> </form> </div> </div> </div> <div class="card-body table-responsive"> <table class="table table-striped table-valign-middle" id="exampleooo"> <thead> <tr> <th>#</th> <th>Student Id</th> <th>Student Name</th> <th>Date</th> <th>Mobile Number</th> <th>Paid Amount</th> <th>Due Amount</th> <th class="">Action</th> </tr> </thead> <tbody> <?php $fetch_detail = fetchall("invoice where student_id = '$student_detail' or mobile_number = '$student_detail'"); foreach($fetch_detail as $fetch_d) { $id = $fetch_d['ID']; $s_id = $fetch_d['student_id']; $s_name = $fetch_d['student_name']; $date = $fetch_d['date']; $mob_num = $fetch_d['mobile_number']; $email = $fetch_d['email']; $address = $fetch_d['Address']; $father_name = $fetch_d['father_name']; $mother_name = $fetch_d['mother_name']; $course_name = $fetch_d['course']; $course_id = getdetail("course where ID={$course_name}","c_name"); $paid_amount = $fetch_d['paid_amount']; $due_amount = $fetch_d['due_amount']; ?> <tr> <td><div class=""><?php echo $x++?></div></td> <td><div class=""><?php echo $fetch_d['student_id'];?></div></td> <td><div class=""><?php echo $fetch_d['student_name'];?></div></td> <td><div class=""><?php echo $fetch_d['date'];?></div></td> <td><div class=""><?php echo $fetch_d['mobile_number'];?></div></td> <td><div class=""><?php echo $fetch_d['paid_amount'];?></div></td> <td><div class=""><?php echo $fetch_d['due_amount'];?></div></td> <td> <a href="admin/edit_invoice/<?php echo $id?>"class="btn btn-warning btn-sm"><i class="fa fa-edit"></i></a> <a href='javascript:void(0)' data-id='<?php echo $id?>' data-title='invoice' class='btn btn-danger btn-sm trash_me'><i class='fa fa-trash'></i></a> <a href="receipt/?p=index&invoice_id=<?php echo $fetch_d['ID']?>" class='btn btn-warning btn-sm'>view Invoice</a> </tr> <?php } } ?> </tbody> </table> </div> <!-- Modal --> <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h1 class="modal-title fs-5" id="exampleModalLabel">Add Amount</h1> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <h4 class="text-center text-red">Total Due : ₹<?=number_format($due_amount)?></h4> <form class="" action="" id="receive_fees" method="POST"> <!--<div id="result"></div>--> <div class="row"> <div class="col-sm-6"> <label for="student_id" class="col-form-label">Student Id:</label> <input type="text" class="form-control" id="student_id" name="student_id" value="<?php echo $s_id;?>"> </div> <div class="col-sm-6"> <label for="stu_name" class="col-form-label">Student Name:</label> <input type="text" class="form-control" id="stu_name" name="stu_name" value="<?php echo $s_name;?>"> </div> </div> <div class="row"> <div class="col-sm-6"> <label for="date" class="col-form-label">Date</label> <input type="date" class="form-control" id="date" name="date" value="<?php echo $date;?>"> </div> <div class="col-sm-6"> <label for="mobile_num" class="col-form-label">Mobile Number</label> <input type="text" class="form-control" id="mobile_num" name="mobile_num" value="<?php echo $mob_num;?>"> </div> </div> <div class="row"> <div class="col-sm-6"> <label for="email" class="col-form-label">Email</label> <input type="text" class="form-control" id="email" name="email" value="<?php echo $email;?>"> </div> <div class="col-sm-6"> <label for="address" class="col-form-label">Address</label> <input type="text" class="form-control" id="address" name="address" value="<?php echo $address;?>"> </div> </div> <div class="row"> <div class="col-sm-6"> <label for="father_name" class="col-form-label">Father Name</label> <input type="text" class="form-control" id="father_name" name="father_name" value="<?php echo $father_name;?>"> </div> <div class="col-sm-6"> <label for="mother_name" class="col-form-label">Mother Name</label> <input type="text" class="form-control" id="mother_name" name="mother_name" value="<?php echo $mother_name;?>"> </div> </div> <div class="row"> <div class="col-sm-6"> <label for="course" class="col-form-label">Course Name</label> <input type="text" class="form-control" id="course" name="course" value="<?php echo $course_name;?>"> </div> <div class="col-sm-6"> <label for="amount" class="col-form-label">Enter Amount:</label> <input type="text" class="form-control amt" id="amount" name="amount" value=""> </div> <div class="col-sm-6"> <label for="due_amount" class="col-form-label">Due Amount:</label> <input type="hidden" class="form-control amt1" id="due_amount" name="due_amount" value="<?php echo $due_amount;?>"> <input type="text" class="form-control amt1" id="due" name="due" readonly value=""> </div> </div> <div class="col-sm-12" style="margin: 10px 0px 10px 0px; text-align: end;"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <input type="submit" class="btn btn-success" id="submit" name="submit" value="Submit"/> </div> </form> </div> </div> </div> </div> <script> $(function() { $("#amount").on("keydown keyup", sub); function sub() { if(Number($("#due_amount").val()) - Number($("#amount").val()) <0) { alert("Entered Amount is more than due amount. Try Again."); } else { $("#due").val(Number($("#due_amount").val()) - Number($("#amount").val())); //$("#due_amount").val($("#due").val()); } } }); // $("#amount").on("keyup", function() { // var val=''; // val = this.value; // var due = $("#due_amount").val(); // var result = (due - val).toFixed(2); // //alert(result); // $("#due_amount").val(result); // // disc_percent = ((flat_discount * 100) / amount).toFixed(2); // }); </script> </div> </div> </div> </div> </section> </div>
Save
cmd:
run