BLACKSITE
:
216.73.216.50
:
174.141.238.224 / www.sscmp.com
:
Windows NT WIN-17DAGV8E5LJ 10.0 build 20348 (Windows Server 2016) AMD64
C:
/
Inetpub
/
vhosts
/
sscmp.com
/
httpdocs
/
dist
/
js
/
Upload File:
files >> C:/Inetpub/vhosts/sscmp.com/httpdocs/dist/js/custom.js
var url_root = "http://localhost/dbr_cms/admin/"; // Verify School For Upload Photo function verify_school(xx){ var y = confirm("Are You Sure To Verify This School"); if(y){ window.location.href = url_root + "controllers/verify-school.php?sid="+xx; } } // Unverify School For Upload Photo function unverify_school(xx){ var y = confirm("Are You Sure To Unverify This School"); if(y){ window.location.href = url_root + "controllers/unverify-school.php?sid="+xx; } } // Edit School Detail function edit_school(xx){ var y = confirm("Are You Sure To Modify This School's Detail"); if(y){ window.location.href = url_root + "edit-school/"+xx+".htm"; } } // Delete School Detail function remove_school(xx,zz){ var y = confirm("Are You Sure To Remove This School"); if(y){ $.ajax({ type: "POST", url: url_root + "controllers/remove_school.php", data: {school_id: xx}, success: function(data) { if(data == "1"){ alert("Record Deleted Successfully."); window.location.href = url_root + zz +".htm"; } else if(data == "3"){ alert("Record Could Not Be Delete Because Related Data Exist."); } else { alert("Record Could Not Be Delete"); } } }); } } // Edit Gallery function edit_gllery(xx){ var y = confirm("Are You Sure To Modify This Gallery"); if(y){ window.location.href = url_root + "edit-gallery/"+xx+".htm"; } } // Delete Gallery function remove_gallery(xx){ var y = confirm("Are You Sure To Remove This Gallery"); if(y){ window.location.href = url_root + "controllers/delete-gallery.php?gid="+xx; } } // Delete DBR Gallery function remove_dbr_gallery(xx){ var y = confirm("Are You Sure To Remove This Gallery"); if(y){ window.location.href = url_root + "controllers/remove_dbr_gallery.php?gid="+xx; } } // Delete Image function delete_image(xx){ var y = confirm("Are You Sure To Remove This Images"); if(y){ $.ajax({ type: "POST", url: url_root + "controllers/delete-image.php", data: {img_id: xx}, success: function(data) { if(data == "1"){ $("#img_thumb_"+xx).css("display","none"); } else { alert("File Could Not Be Delete"); } } }); } } /////////////////// // Open BDR Gallery function verify_gallery_images(xx){ var y = confirm("Do You Want To Verify Images From This Gallery"); if(y){ window.location.href = url_root + "dbr-gallery-edit/"+xx+".htm"; } } ////////////////////////// // Update Image Detail function update_image_detail(xx){ var yy = confirm("Are You Sure To Update This Image Detail"); var pp = $("#image_cation_"+xx).val(); var qq = $("#capture_date_"+xx).val(); if(yy){ $.ajax({ type: "POST", url: url_root + "controllers/update_image_detail.php", data: {id: xx, image_cation: pp, capture_date: qq}, success: function(data) { if(data == "1"){ alert("Record Updated Successfully"); } else { alert("Record Could Not Be Update"); } } }); } } /////////////////// // Unverify Image Detail function unverfy_image_detail(xx){ var y = confirm("Are You Sure To Unverify This Image Detail"); if(y){ $.ajax({ type: "POST", url: url_root + "controllers/unverfy_image_detail.php", data: {id: xx}, success: function(data) { if(data == "1"){ alert("Unverified Successfully"); $("#status_btn_"+xx).attr("onclick","verify_image_detail("+xx+")"); $("#status_btn_"+xx).empty().append("<i class='glyphicon glyphicon-ok'></i> Verify"); } else { alert("Could Not Be Unverify"); } } }); } } /////////////////// // Verify Image Detail function verify_image_detail(xx){ var y = confirm("Are You Sure To Verify This Image Detail"); if(y){ $.ajax({ type: "POST", url: url_root + "controllers/verify_image_detail.php", data: {id: xx}, success: function(data) { if(data == "1"){ alert("Verified Successfully"); $("#status_btn_"+xx).attr("onclick","unverfy_image_detail("+xx+")"); $("#status_btn_"+xx).empty().append("<i class='glyphicon glyphicon-ban-circle'></i> Un-verify"); } else { alert("Could Not Be Verify"); } } }); } } /////////////////// // Delete Image Detail function remove_image_detail(xx,yy){ var y = confirm("Are You Sure To Remove This Image Detail"); if(y){ $.ajax({ type: "POST", url: url_root + "controllers/delete-image.php", data: {img_id: xx}, success: function(data) { if(data == "1"){ window.location.href = url_root + "dbr-gallery-edit/"+yy+".htm"; } else { alert("Record Could Not Be Delete"); } } }); } } /////////////////// // Remove Student function remove_admin_student(xx,yy){ var y = confirm("Are You Sure To Remove This Student Detail"); if(y){ $.ajax({ type: "POST", url: url_root + "controllers/remove_admin_student.php", data: {sid: xx}, success: function(data) { if(data == "1"){ window.location.href = url_root + "edit-school/"+yy+".htm"; } else if(data == "3"){ alert("Record Could Not Be Delete, Because Relative Data Exist"); }else { alert("Record Could Not Be Delete"); } } }); } } /////////////////// // Update Student function edit_admin_student(xx){ var y = confirm("Are Want To Modify This Student Detail"); if(y){ var name = $("#name_"+xx).val(); var gender = "Male"; var selected = $("input[type='radio'][name='gender_"+xx+"']:checked"); if (selected.length > 0) { gender = selected.val(); } var student_class = $("#class_"+xx).val(); $.ajax({ type: "POST", url: url_root + "controllers/edit_admin_student.php", data: {id: xx, name: name, gender: gender, student_class: student_class}, success: function(data){ if(data == "1"){ alert("Record Updated Successfully"); } else { alert("Record Could Not Be Update"); } } }); } }