1master_Vn_st_info.php
<?php $fileName = 'VnST'; $fileNameSearch = 'master_Vn_st_info'; include('db.php'); if($_GET['id'] == '') { $fileTitle = "Add ".$fileName; $title = "Add ".$fileName; } else { $fileTitle = "Edit ".$fileName; $title = "Edit ".$fileName; } $fileTitleSub = $fileName; $fileTitleSub1 = "View ".$fileName; $fileLink = "master_Vn_st_info.php"; $fileLinkAdd = "master_Vn_st_info"; $fileAddStatus = "add-VnSt"; $filEditStatus = "edit-VnSt"; $fileTable = "tbl_master_vnst"; $fieldTableId = 'vnstId'; ?> <!DOCTYPE html> <html lang="en"> <head> <?php include('meta-fevicon.php') ?> <!-- App favicon --> <!-- App css --> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/theme.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/custom.css" rel="stylesheet" type="text/css" /> </head> <body onload="searchTableData('search-<?php echo $fileNameSearch; ?>');"> <?php include('top-menu.php') ?> <div class="row p-12"> <div class="col-md-4 col-12 p-l-5 p-r-5"> <div class="card m-b-60"> <div class="card-header"> <h4> Add Vn C ST</h4> </div> <div class="card-body"> <form id="myForm"> <?php $query = mysqli_query($con,"SELECT * FROM ".$fileTable." WHERE ".$fieldTableId." = '".base64_decode($_GET['id'])."' "); $row = mysqli_fetch_array($query); ?> <div class="form-row"> <div class="col-md-12"> <input type="hidden" name="baseUrl" id="baseUrl" value="<?php echo $adminImageUploadUrl; ?>"> <div class="row"> <div class="col-md-12 form-group p-l-5 p-r-5"> <label class="text-capitalize">Name :<span class="text-warning">*</span></label> <input type="text" name="name" id="name" class="form-control required-field" placeholder="name" value="<?php echo $row['name']; ?>"> </div> <div class="col-md-12 form-group p-l-5 p-r-5"> <?php if($_GET['id'] == '') { ?> <button class="btn btn-success btnColor" type="button" onclick="insertData()">Add</button> <?php } else { ?> <button class="btn btn-success btnColor" id="update_button" type="button" onclick="updateData()">Update</button> <?php } ?> </div> </div> </div> </div> </form> </div> </div> </div> <!-- end col --> <div class="col-md-8 col-12 p-l-5 p-r-5"> <div class="card m-b-60"> <div class="card-header"> <h4>Vn C ST list</h4> </div> <div class="card-body"> <?php include('show-entries.php') ?> <table class="table table-striped"> <thead class=""> <tr> <th>Sr.No</th> <th>Name</th> <th>Action</th> </tr> </thead> <tbody id="getData"> </tbody> </table> <?php include('pagination.php') ?> </div> </div> </div> </div> <?php include('footer.php') ?> <!-- Overlay--> <div class="menu-overlay"></div> <!-- jQuery --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/bootstrap.bundle.min.js"></script> <script src="assets/js/jquery.slimscroll.min.js"></script> <!-- App js --> <script src="assets/js/theme.js"></script> <!-- Datatables init --> <script type="text/javascript"> function insertData() { $('.text-danger').remove(); const requiredFieldsClass = '.required-field'; let isValid = true; $(requiredFieldsClass).each(function() { if (!$(this).val()) { $(this).after('<small class="text-danger">This field is required !</small>'); isValid = false; } }); if (isValid) { var fd = new FormData($('#myForm')[0]); // Create FormData object from the form fd.append('status', "<?php echo $fileAddStatus; ?>"); $.ajax({ type: "POST", url: "<?php echo $ajax_add_path; ?>", data: fd, contentType: false, processData: false, beforeSend: function () { $("#loader").show(); }, success: function (data) { console.log(data); if (data == 0) { alert("Success"); window.location.href = "<?php echo $fileLink; ?>"; } else if (data == '2') { alert("Data already exist"); } else { alert("Error"); } }, complete: function () { $("#loader").hide(); } }); } } function updateData() { $('.text-danger').remove(); const requiredFieldsClass = '.required-field'; let isValid = true; $(requiredFieldsClass).each(function() { if (!$(this).val()) { $(this).after('<small class="text-danger">This field is required !</small>'); isValid = false; } }); if (isValid) { var fd = new FormData($('#myForm')[0]); // Create FormData object from the form var id = '<?php echo base64_decode($_GET['id']); ?>'; var whareDetails = '<?php echo $fieldTableId; ?> = '+id; var whareDetails1 = '<?php echo $fieldTableId; ?> != '+id; fd.append('whareDetails',whareDetails); fd.append('whareDetails1',whareDetails1); fd.append('status',"<?php echo $filEditStatus; ?>"); fd.append('id',id); $.ajax({ type: "POST", url: "<?php echo $ajax_edit_path; ?>", data: fd, contentType: false, processData: false, beforeSend: function() { $("#loader").show(); }, success: function(data) { console.log(data); if (data == '0') { alert("Success"); window.location.href="<?php echo $fileLink; ?>?msg=Add"; } else if (data == '2') { alert("Data already exist"); } else { alert("Something went wrong"); } }, complete:function(data){ $("#loader").hide(); } }); } } function deleteData(id) { var result = confirm("Are you sure to want to delete?"); if (result) { var whareDetails = '<?php echo $fieldTableId; ?> = '+id; var setDetails = 'deleteStatus = 1'; var tableName = '<?php echo $fileTable; ?>'; var fd = new FormData(); fd.append('whareDetails',whareDetails); fd.append('setDetails',setDetails); fd.append('tableName',tableName); $.ajax({ type: "POST", url: "<?php echo $ajax_delete_path; ?>", data: fd, contentType: false, processData: false, beforeSend: function() { $("#loader").show(); }, success: function(data) { console.log(data); if (data == 0) { searchTableData('search-<?php echo $fileNameSearch; ?>'); } else { alert("Something went wrong"); } }, complete:function(data){ $("#loader").hide(); } }); } } </script> </body> </html>
docroot:
/home/u856302147/domains/creativegardendesign.in/public_html
curdir: /home/u856302147/domains/vparking.live/public_html/doctor/MyDesk-18-9
.
4096
..
4096
CSV
4096
X
ac.php
10930
X
addpatient.php
71032
X
ajax-edit.php
9426
assets
4096
X
camera.png
8216
X
caseType.php
12012
X
chiefComplaint.php
12297
X
city.php
14102
X
conj.php
10948
X
cornea.php
10966
X
covertest.php
10993
X
db.php
386
X
demo.php
7031
X
diagnosis.php
12264
X
disc.php
10948
X
district.php
14113
X
doctor.php
19479
X
dosage.php
10962
X
duration.php
10942
X
em.php
10930
X
foc.php
19623
X
footer.php
14383
X
fr.php
10930
X
index.php
67221
X
iris.php
10948
X
kco.php
10921
X
lens.php
10948
X
lid.php
10939
X
location.php
12032
X
login.php
6430
X
logout.php
679
X
master_Dist.php
47475
X
master_NCT_info.php
10936
X
master_SAC_info.php
23989
X
master_TN_Wt_info.php
23890
X
master_Vn_gi_info.php
10961
X
master_Vn_gl_info.php
10954
X
master_Vn_info.php
10935
X
master_Vn_st_info.php
10954
X
master_axis.php
10923
X
master_eys_input_info.php
25324
X
master_near.php
47475
X
master_nr_GI_info.php
10962
X
master_nr_Vn_info.php
10948
X
master_pn_Vn_info.php
10958
X
master_sph_cyl_info.php
11880
X
medicine.php
22328
X
medicineInstruction.php
11083
X
medicineType.php
11022
X
medicinecategory.php
11044
X
medicinegroup.php
43187
X
meta-fevicon.php
688
X
online.php
52036
X
onlinetable.php
5051
X
onlineview.php
0
X
pagination.php
900
X
paginationDemo.php
892
X
paginationNew.php
892
X
paginationNew2.php
910
X
patient-list.php
19334
X
patienthistory.php
17432
X
patienttable.php
8680
plugins
4096
X
primary-patient.php
295540
X
pupil.php
10957
X
reception.php
17734
X
referedBy.php
11010
X
report.php
15845
X
sac.php
10939
X
secondary-patient.php
314503
X
secondary-patient.zip
20049
X
setting.php
44844
X
show-entries.php
1445
X
show-entriesDemo.php
1451
X
show-entriesNew.php
1459
X
show-entriesNew2.php
1471
X
slot.php
10946
X
specialAdvice.php
13473
X
state.php
11263
X
switch_doctor.php
631
X
test.php
20763
X
test1.php
2253
X
top-menu.php
22349
uploads
4096
X
viewmedicinegroup.php
8067