Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 18.221.147.141
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
oasis /
js_old /
[ HOME SHELL ]
Name
Size
Permission
Action
Report
[ DIR ]
drwxr-sr-x
base_file
[ DIR ]
drwxr-sr-x
events
[ DIR ]
drwxr-sr-x
popups
[ DIR ]
drwxr-sr-x
AbsentEntrySubjectWise.js
15.63
KB
-rwxr-xr-x
AllkeyEvent.js
38.37
KB
-rwxr-xr-x
Dispatch_answer_script.js
18.98
KB
-rwxr-xr-x
Dispatch_answer_script_qp.js
17.24
KB
-rwxr-xr-x
ECHblk.js
6.49
KB
-rwxr-xr-x
IdentifyTransactions.js
2.22
KB
-rwxr-xr-x
MainPage.js
18.24
KB
-rwxr-xr-x
Message_board.js
5.24
KB
-rwxr-xr-x
Registrationpage.js
2.22
KB
-rwxr-xr-x
UpdateCollDet.js
7.24
KB
-rwxr-xr-x
absententrysubjectwiseQP.js
17.99
KB
-rwxr-xr-x
ack_adm_application.js
45.7
KB
-rwxr-xr-x
ack_admentry_application.js
58.39
KB
-rwxr-xr-x
ack_application.js
4.37
KB
-rwxr-xr-x
ack_chalentries.js
4.16
KB
-rwxr-xr-x
ack_exam_app_form.js
3.24
KB
-rwxr-xr-x
ack_exam_app_form_bulk.js
2.28
KB
-rwxr-xr-x
ack_registration.js
2.36
KB
-rwxr-xr-x
ack_rv_rt_application.js
2.68
KB
-rwxr-xr-x
ack_rv_rt_report.js
3.63
KB
-rwxr-xr-x
adm_delete_data.js
3.44
KB
-rwxr-xr-x
admchallanpreparation.js
6.17
KB
-rwxr-xr-x
admdownloadexsheet.js
472
B
-rwxr-xr-x
admission_approve.js
21.33
KB
-rwxr-xr-x
admission_entry_reg.js
47.43
KB
-rwxr-xr-x
admission_entry_status.js
1.15
KB
-rwxr-xr-x
admissionapplist.js
3.97
KB
-rwxr-xr-x
admstuddate.js
4.36
KB
-rwxr-xr-x
admuploadexsheet.js
1.45
KB
-rwxr-xr-x
ansbookcancel.js
13.49
KB
-rwxr-xr-x
answer_book_issued.js
12.43
KB
-rwxr-xr-x
apprCandidList.js
1.07
KB
-rwxr-xr-x
appstatus.js
2.91
KB
-rwxr-xr-x
attendance.js
7.13
KB
-rwxr-xr-x
attendance_freez.js
6.15
KB
-rwxr-xr-x
attendance_freez_mth.js
7.77
KB
-rwxr-xr-x
attshort.js
1.73
KB
-rwxr-xr-x
backup.js
3.15
KB
-rwxr-xr-x
backup_restore.js
1.38
KB
-rwxr-xr-x
bcuregn.js
7.39
KB
-rwxr-xr-x
boeselection.js
8.27
KB
-rwxr-xr-x
bundle_ack.js
1.55
KB
-rwxr-xr-x
bundle_dispatch.js
8.75
KB
-rwxr-xr-x
bundle_rec_ack.js
1.19
KB
-rwxr-xr-x
bundledispatchdatewise.js
2.04
KB
-rwxr-xr-x
bundlereceive.js
1.01
KB
-rwxr-xr-x
bundlestatus.js
1.46
KB
-rwxr-xr-x
calendar-en.js
3.64
KB
-rwxr-xr-x
calendar-setup.js
8.84
KB
-rwxr-xr-x
calendar.js
49.85
KB
-rwxr-xr-x
calender.js
922
B
-rwxr-xr-x
candidate_list.js
36.74
KB
-rwxr-xr-x
centerdet.js
1.54
KB
-rwxr-xr-x
challan_entries.js
4.21
KB
-rwxr-xr-x
challan_preparation.js
2.94
KB
-rwxr-xr-x
changeAdmDegree.js
4.3
KB
-rwxr-xr-x
changeMobile.js
3.26
KB
-rwxr-xr-x
checkbrowser.js
2.58
KB
-rwxr-xr-x
cntrDeclaration.js
3.6
KB
-rwxr-xr-x
coll_exam_app_form.js
1017
B
-rwxr-xr-x
collbankdet.js
2.1
KB
-rwxr-xr-x
colldesp_ack.js
3.7
KB
-rwxr-xr-x
college.js
4.76
KB
-rwxr-xr-x
college_BEFORE_LOGINPOPUP.js
2.44
KB
-rwxr-xr-x
college_approve.js
23.99
KB
-rwxr-xr-x
college_degree_status.js
3.41
KB
-rwxr-xr-x
college_wise_degree_status.js
1.08
KB
-rwxr-xr-x
collegedet.js
1.47
KB
-rwxr-xr-x
collfundtransfer.js
5.16
KB
-rwxr-xr-x
collinfo_popup.js
12.03
KB
-rwxr-xr-x
control.js
17.74
KB
-rwxr-xr-x
convdet.js
5.9
KB
-rwxr-xr-x
createAdmission.js
4.61
KB
-rwxr-xr-x
daterange.js
10.38
KB
-rwxr-xr-x
degree.js
3.02
KB
-rwxr-xr-x
degstudymat.js
4.89
KB
-rwxr-xr-x
degstudymatdet.js
3.47
KB
-rwxr-xr-x
doc_verification.js
2.34
KB
-rwxr-xr-x
downloadFeeStatement.js
907
B
-rwxr-xr-x
downloadStudentPhotos.js
1.13
KB
-rwxr-xr-x
download_misc_files.js
1.7
KB
-rwxr-xr-x
entryexitevents.js
1.27
KB
-rwxr-xr-x
examAppChallan.js
6.7
KB
-rwxr-xr-x
examAttendanceReport.js
2.37
KB
-rwxr-xr-x
export_import.js
1.66
KB
-rwxr-xr-x
export_import_setup.js
5.81
KB
-rwxr-xr-x
fee_report.js
4.91
KB
-rwxr-xr-x
fee_report_lsys.js
1.28
KB
-rwxr-xr-x
feepaidreports.js
2.02
KB
-rwxr-xr-x
feeupdation.js
5.88
KB
-rwxr-xr-x
feeupdation_bulk.js
6.98
KB
-rwxr-xr-x
footer.js
6.59
KB
-rwxr-xr-x
form_submit.js
1.36
KB
-rwxr-xr-x
formatdate.js
12.48
KB
-rwxr-xr-x
freeze_Ad_Cl_Me.js
2.95
KB
-rwxr-xr-x
freeze_module_at_admin_college...
6.14
KB
-rwxr-xr-x
freeze_module_at_university_co...
4.99
KB
-rwxr-xr-x
freezeiaprici.js
5.66
KB
-rwxr-xr-x
grid_display.js
939
B
-rwxr-xr-x
import_marks.js
1.45
KB
-rwxr-xr-x
includeCSS.js
1.34
KB
-rwxr-xr-x
index.js
30.96
KB
-rwxr-xr-x
index_BEFORE_LOGINPOPUP.js
5.05
KB
-rwxr-xr-x
invigilators_dairy.js
5.65
KB
-rwxr-xr-x
jquery.color.js
3.69
KB
-rwxr-xr-x
jquery.js
29.16
KB
-rwxr-xr-x
load-report-js-files.js
10.98
KB
-rwxr-xr-x
load_js_files.js
736
B
-rwxr-xr-x
load_mannual_js_files.js
39.51
KB
-rwxr-xr-x
markentry_studentwise.js
10.26
KB
-rwxr-xr-x
markentry_subjectwise.js
19.5
KB
-rwxr-xr-x
markslistelement_report.js
6.72
KB
-rwxr-xr-x
mascomb.js
17.08
KB
-rwxr-xr-x
message_text.js
1.45
KB
-rwxr-xr-x
module_setup.js
4.83
KB
-rwxr-xr-x
month_cal.js
64.55
KB
-rwxr-xr-x
month_cal1.js
2.11
KB
-rwxr-xr-x
openPopUp.js
5.11
KB
-rwxr-xr-x
photoupload.js
4.78
KB
-rwxr-xr-x
popup.js
126.47
KB
-rwxr-xr-x
popupold.js
59.11
KB
-rwxr-xr-x
postnotification.js
9.57
KB
-rwxr-xr-x
printExamform.js
817
B
-rwxr-xr-x
push_data_to_studentportal.js
845
B
-rwxr-xr-x
qpindent.js
1.21
KB
-rwxr-xr-x
qpissue.js
1.48
KB
-rwxr-xr-x
receive_rv_rt_application.js
2.95
KB
-rwxr-xr-x
recociliaton.js
1.25
KB
-rwxr-xr-x
remove_exam_ack.js
1.11
KB
-rwxr-xr-x
report_SubjectListGeneral.js
3.59
KB
-rwxr-xr-x
report_exam_application_form.j...
2.57
KB
-rwxr-xr-x
report_setup.js
13.77
KB
-rwxr-xr-x
results_pdf.js
953
B
-rwxr-xr-x
resultsheet.js
3.36
KB
-rwxr-xr-x
revaluation.js
8.52
KB
-rwxr-xr-x
revaluation_oldtype.js
5.14
KB
-rwxr-xr-x
revaluation_withdegree.js
8.48
KB
-rwxr-xr-x
room_allotment.js
3.21
KB
-rwxr-xr-x
room_allotment_datewise.js
6.74
KB
-rwxr-xr-x
roomallotmantsummary.js
975
B
-rwxr-xr-x
roomdeclaration.js
6.23
KB
-rwxr-xr-x
rv_rt_guide_lines.js
477
B
-rwxr-xr-x
rvdates.js
9.23
KB
-rwxr-xr-x
sectionwisepermission.js
5.15
KB
-rwxr-xr-x
sendnotification.js
3.64
KB
-rwxr-xr-x
servicehead.js
9.98
KB
-rwxr-xr-x
serviceheadfee.js
11.71
KB
-rwxr-xr-x
services.js
8.84
KB
-rwxr-xr-x
studentWiseIAMarksPending.js
930
B
-rwxr-xr-x
student_entry.js
96.12
KB
-rwxr-xr-x
studentphotolist.js
910
B
-rwxr-xr-x
studentportal_remove.js
3.12
KB
-rwxr-xr-x
subjectAppearing_PopUp.js
1.97
KB
-rwxr-xr-x
subject_freshExam.js
12.21
KB
-rwxr-xr-x
subjectfreez.js
12.67
KB
-rwxr-xr-x
subjectwise_freezing_sectionwi...
6.3
KB
-rwxr-xr-x
subjectwise_invigilator_dairy....
1.41
KB
-rwxr-xr-x
subshort.js
4.26
KB
-rwxr-xr-x
system.js
13.49
KB
-rwxr-xr-x
system_utility.js
9.05
KB
-rwxr-xr-x
teachOficerEntry.js
3.02
KB
-rwxr-xr-x
teachers.js
32.59
KB
-rwxr-xr-x
teachersreport.js
1.28
KB
-rwxr-xr-x
topsheet.js
845
B
-rwxr-xr-x
transaction-series.js
7.11
KB
-rwxr-xr-x
updateSection.js
3.05
KB
-rwxr-xr-x
updateexamcnt.js
3.76
KB
-rwxr-xr-x
uploadStudentPhotos.js
4.03
KB
-rwxr-xr-x
upload_details.js
4.15
KB
-rwxr-xr-x
uploadzip.js
4.32
KB
-rwxr-xr-x
usersetup.js
34.35
KB
-rwxr-xr-x
usersubj_identification.js
5.93
KB
-rwxr-xr-x
validate.js
10.54
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : MainPage.js
// Get the URL Values //var $host_url = "http://"+window.location.host+"/"+window.location.pathname.split('/')[1]+"/"+window.location.pathname.split('/')[2]+"/"+window.location.pathname.split('/')[3]+"/app.php?a="; //var $image_path = "http://"+window.location.host+"/"+window.location.pathname.split('/')[1]+"/"+window.location.pathname.split('/')[2]+"/"+window.location.pathname.split('/')[3]+"/jqGrid3.5/cmes/tarka/images/"; if (location.protocol != "https:") { var protocol = "http://"; } else { var protocol = "https://"; } var urlarr = window.location.pathname.split("/"); var $url = protocol + window.location.host + "/"; var $hoststr = ""; console.log(urlarr.length); for (var j = 1; j < urlarr.length - 2; j++) { $hoststr += window.location.pathname.split("/")[j] + "/"; } var db = window.location.pathname.split("/")[urlarr.length - 2]; /*console.log($hoststr);*/ console.log(db); $host_url = $url + $hoststr + "app.php?db=" + db + "&a="; var $image_path = protocol + window.location.host + "/JQGrid3.5/cmes/tarka/images/"; var $g_str_module_name = ""; var $g_str_module_id = ""; var $loaded_js_files_arr = new Array(); // Loading Main Menu function date_format($str) { if (trim($str) == "" || $str == "undefined") return "0000-00-00"; else { var indx = $str.indexOf("/"); if (indx == -1) return $str; else { $date = $str.split("/"); return $date[2] + "-" + $date[1] + "-" + $date[0]; } } } function ui_date_format($str) { if (trim($str) == "" || $str == "undefined" || $str == "null") $date = "00/00/0000"; else $date = $str.split("-"); if ($date.length == 3) $date = $date[2] + "/" + $date[1] + "/" + $date[0]; else $date = "00/00/0000"; return $date; } function trim($str) { return jQuery.trim($str); } function loadMasters() { $is_logged_user = isLoggedIn(); $host_url = getCookie("host_url"); // window.location.reload(true); if ($is_logged_user == 1) { $.ajax({ type: "POST", //async:false, url: $host_url + "pupulateSystemMenu.demo", data: "is_logged_user=" + $is_logged_user, success: displaySystemMenuResponce }); if (getCookie("FUNIVCODE") == "030" || getCookie("FUNIVCODE") == "031") { document.getElementById("login_user_name_display").innerHTML = getCookie( "real_name" ); document.getElementById("client_name_display").innerHTML = getCookie("college_code") + "-" + getCookie("college_name"); $("#universityHome_logo").attr("src", getCookie("university_logo")); $("#jdate").html(getCookie("date")); } else { document.getElementById("login_user_name_display").innerHTML = getCookie( "real_name" ); document.getElementById("university_name").innerHTML = getCookie( "university_name" ); document.getElementById("client_name_display").innerHTML = getCookie("college_code") + "-" + getCookie("college_name"); $("#universityHome_logo").attr("src", getCookie("university_logo")); $("#jdate").html(getCookie("date")); } CheckBrowserType(); } else { alert("Please Login"); window.location.href = "indexlogin.html"; } } function displaySystemMenuResponce($responce) { $responce = eval("(" + $responce + ")"); if ($responce.error_code == 0) { document.getElementById("system_menu").innerHTML = ""; $str = "<table><tr>"; for ($i = 0; $i < $responce.data["details"].length; $i++) { $str += "<td><a class='fg-button fg-button-icon-right ui-widget ui-state-default ui-corner-all' id=tarka_main_menu_header_" + $responce.data["details"][$i].id + " style=cursor:pointer;>"; $str += "<span class='ui-icon ui-icon-triangle-1-s'> </span>" + $responce.data["details"][$i].menu_name + "</a></td>"; } $str += "</tr></table>"; $("#system_menu").html($str); $("#tarka_menu_html_div").html($responce.data["html"]); document.getElementById("login_counter").value = $responce.data["login_cnt"]; for ($i = 0; $i < $responce.data["details"].length; $i++) { var id = $responce.data["details"][$i].id; $("#tarka_main_menu_header_" + id).menu({ content: $("#tarka_main_menu_" + id).html(), flyOut: true }); } includeJsFilesMannually("JQGrid3.5/js/grid.loader.js"); } } // Check User Logged IN (or) NOT function isLoggedIn() { $.ajax({ type: "POST", async: false, url: $host_url + "isLoggedIn.demo", success: isLoggedInResponce }); function isLoggedInResponce($responce) { $responce = eval("(" + $responce + ")"); $gisLoggedInResponce = $responce.data; //$('.Content-Header').css({height:20px;}); ApplyUserSelectedTheme(); $("#page_main_div").load("homepage.html", function() { //$("#page_header").hide(); //$("#page_footer").hide(); }); } return $gisLoggedInResponce; } // Get the Cookie Details function getCookie(c_name) { if (document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + "="); if (c_start != -1) { c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(";", c_start); if (c_end == -1) c_end = document.cookie.length; return unescape(document.cookie.substring(c_start, c_end)); } } return ""; } function ApplyUserSelectedTheme() { $.cookie("jquery-ui-theme", getCookie("jquery-ui-theme_name")); var headID = document.getElementsByTagName("head")[0]; var cssNode = document.createElement("link"); cssNode.type = "text/css"; cssNode.rel = "stylesheet"; cssNode.href = "../JQGrid3.5/ThemeRoller/Tarka/jquery-ui.css"; headID.appendChild(cssNode); } // This Hide and Show main_page_div function ShowHideDiv($div_id, $span_id) { if ($("#" + $div_id).is(":visible")) { $("#" + $div_id).slideUp("slow"); $("#" + $span_id).html("Show"); } else { $("#" + $div_id).slideDown("slow"); $("#" + $span_id).html("Hide"); } } // Logout function logout() { $.ajax({ type: "POST", async: false, url: $host_url + "logout.demo", data: "login_ctr=" + $("#login_counter").val(), success: logoutResponce }); } function logoutResponce($responce) { $responce = eval("(" + $responce + ")"); window.location.href = "indexlogin.html"; //window.location.href="index.html"; } // Home function home() { $path = "homepage.html"; $("#page_main_div").load($path); //$('.Content-Header').css({height:20px;}); $("#page_header").hide(); $("#page_footer").hide(); $("#parent_menu").html(""); $("#display_module_name").html(""); } function calender_popup($input_value, $image_id) { Calendar.setup({ inputField: $input_value, // ID of the input field ifFormat: "%d/%m/%Y", // the date format button: $image_id //ID of the button }); //document.getElementById($input_value).focus(); $("#" + $input_value).focus(); } function assignYearMonthValue($month) { document.getElementById("details_" + $g_year_month_cal_text_id).value = $month + "-" + document.getElementById("year_month_cal").value; $("#sub_div_year_calander").hide(); } function getYearMonthDBValue(val) { var month_array = new Array(); month_array["Jan"] = "01"; month_array["Feb"] = "02"; month_array["Mar"] = "03"; month_array["Apr"] = "04"; month_array["May"] = "05"; month_array["Jun"] = "06"; month_array["Jul"] = "07"; month_array["Aug"] = "08"; month_array["Sep"] = "09"; month_array["Oct"] = "10"; month_array["Nov"] = "11"; month_array["Dec"] = "12"; var inp_mon_arr = val.split("-"); if (!empty(inp_mon_arr)) { in_month = inp_mon_arr[0]; in_year = inp_mon_arr[1]; num_month = month_array[in_month]; return in_year + num_month; } else return val; } function getYearMonthUIValue(val) { if (trim(val) != "") { if (val.length == 6) { var month_array = new Array(); month_array["01"] = "Jan"; month_array["02"] = "Feb"; month_array["03"] = "Mar"; month_array["04"] = "Apr"; month_array["05"] = "May"; month_array["06"] = "Jun"; month_array["07"] = "Jul"; month_array["08"] = "Aug"; month_array["09"] = "Sep"; month_array["10"] = "Oct"; month_array["11"] = "Nov"; month_array["12"] = "Dec"; in_year = val.substring(0, 4); num_month = month_array[val.substring(4, 6)]; return num_month + "-" + in_year; } else { return val; } } else { return ""; } } function getIEVersionNumber() { var ua = navigator.userAgent; var MSIEOffset = ua.indexOf("MSIE "); if (MSIEOffset == -1) { return 0; } else { return parseFloat( ua.substring(MSIEOffset + 5, ua.indexOf(";", MSIEOffset)) ); } } $g_planner_date = ""; function assignPlannerDate(p_date) { $g_planner_date = p_date; getnotesdetails(); } function getnotesdetails() { $.ajax({ type: "POST", async: false, url: $host_url + "getUserNotesDetails", data: "notedate=" + $g_planner_date + "&user_id=" + getCookie("user_id"), success: getUserNotesDetailsResponce }); } function getUserNotesDetailsResponce($responce) { $responce = eval("(" + $responce + ")"); if ($responce.error_code == 0) { $("#planner_area").val($responce.data.notes); $("#planner_area").focus(); } else { $("#planner_area").val(""); $("#planner_area").focus(); } var month_id = eval( parseInt($("#homedatepicker .ui-datepicker-month").val()) + 1 ); month_code = month_id < 10 ? "0" + month_id : month_id; var year_id = $("#homedatepicker .ui-datepicker-year").val(); getSavedEventDates(year_id, month_code); } function updatePlannerNotes() { $.ajax({ type: "POST", async: false, url: $host_url + "updatePlannerNotes", data: "notedate=" + $g_planner_date + "&user_id=" + getCookie("user_id") + "&planner_note=" + encodeURIComponent($("#planner_area").val()), success: updatePlannerNotesResponce }); } function updatePlannerNotesResponce($responce) { $responce = eval("(" + $responce + ")"); jAlert($responce.data, "Attention!"); $("#planner_area").focus(); } function mouseSelect(e) { return true; } grid_enter_events = { degree_grid: "selectDegreeCode();", sub_degree_grid: "selectSubDegreeCode();", view_student_entry: "SelectStudentRowId();", exam_grid: "selectMarkEntrySubExamCode();", subject_grid: "selectMarkEntrySubDetails();", dispatch_answer_script_grid: "selectSubjecCodeDetails();", table_regno_grid: "selectMarkEntrySubRegno();", table_grid1: "GetPopUpelementValue()", table_grid_employee_popup: "SelectEmployeePopupRow()", table_gandhi_grid: "GetGandhiGridId()", qp_grid: "SelectQpCode()" }; function GetGandhiGridId() { var gsr = jQuery("#table_gandhi_grid").getGridParam("selrow"); if (gsr) { getGGridGroupDetailsRowData(gsr); } else jAlert("Hi " + getCookie("username") + ", Please select Row", "Attention!"); } function in_array(needle, haystack, argStrict) { var key = "", strict = !!argStrict; if (strict) { for (key in haystack) { if (haystack[key] === needle) { return true; } } } else { for (key in haystack) { if (haystack[key] == needle) { return true; } } } return false; } function empty(mixed_var) { var key; if ( mixed_var === "" || mixed_var === 0 || mixed_var === "0" || mixed_var === null || mixed_var === false || typeof mixed_var === "undefined" ) { return true; } if (typeof mixed_var == "object") { for (key in mixed_var) { return false; } return true; } return false; } function array_flip(trans) { var key, tmp_ar = {}; for (key in trans) { tmp_ar[trans[key]] = key; } return tmp_ar; } function GetGroupIdForGroup(group_name) { for ($j = 0; $j < $all_multi_groups.length; $j++) { if (group_name == $all_multi_groups[$j]["group_name"]) return $all_multi_groups[$j]["group_id"]; } } function jQGridDateFormatter(cellvalue, options, rowObject) { return ui_date_format(cellvalue); } function jQGridMonthNameFormatter(cellvalue, options, rowObject) { return getYearMonthUIValue(cellvalue); } var $g_grid_row_color_arr = new Array(); function jQGridRowColor(cellvalue, options, rowObject) { if (!empty(cellvalue)) { $g_grid_row_color_arr.push(options.rowId); //$("#table_gandhi_grid #"+options.rowId).css("background","pink"); } } $.fn.focusNextInputField = function() { return this.each(function() { var fields = $(this) .parents("form:eq(0),body") .find("button,input,textarea,select"); var index = fields.index(this); if (index > -1 && index + 1 < fields.length) { fields.eq(index + 1).focus(); } return false; }); }; $.fn.focusPreviousInputField = function() { return this.each(function() { var fields = $(this) .parents("form:eq(0),body") .find("button,input,textarea,select"); var index = fields.index(this); if (index > -1 && index + 1 < fields.length) { fields.eq(index - 1).focus(); } return false; }); }; function DisplayUserSelectedPhoto() { var valid_file_extentions = new Array("jpeg", "jpg"); var ext = $("#student_entry_upload").val(); filepath = ext; ext = ext.substring(ext.length - 3, ext.length); ext = ext.toLowerCase(); if (ext != "" && !in_array(ext, valid_file_extentions)) { alert("Please Select the Valid Photo!"); return false; } /* var myFSO = new ActiveXObject("Scripting.FileSystemObject"); var thefile = myFSO.getFile(filepath); var size = thefile.size; alert(size + " bytes"); */ $.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='images/ajax-loader.gif' border='0'></h1>" }); var lstr_data = "&filepath=" + filepath; $upload = $host_url + "DiaplayUserSelectedPhoto&" + lstr_data; document .getElementById("form_module_image_upload") .setAttribute("action", $upload); return AIM.submit( document.getElementById("form_module_image_upload"), "report_display", { onComplete: DiaplayUserSelectedPhotoResponse } ); } function DiaplayUserSelectedPhotoResponse($responce) { $responce = eval("(" + $responce + ")"); $.unblockUI(); if ($responce.error_code == 0) $("#student_entry_photo").attr("src", $responce.data); else if ($responce.error_code == -1) $("#student_entry_photo").attr("src", "images/default_photo.jpg"); else if ($responce.error_code == -2) { alert($responce.data); $("#student_entry_photo").attr("src", "images/default_photo.jpg"); $("#student_entry_upload").val(""); } } function GetQueryResultSet() { $lstr_query = "&execute_query=" + encodeURIComponent( trim(document.getElementById("execute_query_details").value) ); $.ajax({ type: "POST", async: false, url: $host_url + "GetQueryResultSet", data: $lstr_query, success: GetQueryResultSetResponce }); } function GetQueryResultSetResponce($responce) { $responce = eval("(" + $responce + ")"); $("#query_result_set").html($responce.data); } function LPad(ContentToSize, PadLength, PadChar) { var PaddedString = ContentToSize.toString(); for (var i = ContentToSize.length + 1; i <= PadLength; i++) { PaddedString = PadChar + PaddedString; } return PaddedString; } function submitquery() { var femail = trim(document.getElementById("femail").value); var fsubject = trim(document.getElementById("fsubject").value); var fmessage = trim(document.getElementById("fmessage").value); /*if (femail == '') { alert("Enter Enter Email ID"); document.getElementById('femail').focus(); return; } if (fsubject == '') { alert("Enter Subject"); document.getElementById('fsubject').focus(); return; } if (fmessage == '') { alert("Enter Body"); document.getElementById('fmessage').focus(); return; } if ($('#file').val() == '') { alert("Enter Body"); document.getElementById('file').focus(); return; }*/ if ($("#file").val()) { if ($("#file")[0].files[0].size >= 2000000) { var size = $("#file")[0].files[0].size; console.log("files", size); alert("Please attach files with less size"); return; } else { var filename = $("#file").val(); } } else { var filename = ""; } var datastring = "fmessage=" + fmessage + "&fsubject=" + fsubject + "&femail=" + femail + "&file=" + filename; // console.log(datastring); $upload = $host_url + "submitquery.demo&" + datastring; console.log("upload", $upload); document.getElementById("formID").setAttribute("action", $upload); return AIM.submit(document.getElementById("formID"), " report_display", { onComplete: submitqueryresponce }); /*$.ajax({ url: $host_url + "submitquery.demo", data: "femail=" + femail + "&fsubject=" + fsubject + "&fmessage=" + fmessage, success: submitqueryresponce });*/ } function submitqueryresponce($responce) { console.log("ressss", $responce); $responce = eval("(" + $responce + ")"); if ($responce.error_code == 0) { alert( `Query has been submitted successfully. \n Your query number is ${$responce.data}.\n keep this number for future reference.\n You will get email comunication on this issue.` ); $("#fmessage").val(""); $("#fsubject").val(""); closeForm(); return; } else if ($responce.error_code == -1) { alert($responce.data); $("#fmessage").val(""); $("#fsubject").val(""); closeForm(); return; } } function addnotificationresponce($responce) { $responce = eval("(" + $responce + ")"); if ($responce.error_code == 0) { alert(`Notification has been added successfully.`); $("#fmessage").val(""); $("#fsubject").val(""); closeForm(); return; } else { alert($responce.data); $("#fmessage").val(""); $("#fsubject").val(""); closeForm(); return; } }
Close