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.118.252.215
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 /
html /
dud /
js /
[ HOME SHELL ]
Name
Size
Permission
Action
New folder
[ DIR ]
drwxr-xr-x
Report
[ DIR ]
drwxr-xr-x
base_file
[ DIR ]
drwxr-xr-x
events
[ DIR ]
drwxr-xr-x
nitte
[ DIR ]
drwxr-xr-x
popups
[ DIR ]
drwxr-xr-x
AbsentEntrySubjectWise.js
14.12
KB
-rwxr-xr-x
AbsentEntrySubjectWise_old.js
13.91
KB
-rwxr-xr-x
AbsentEntrySubjectWiseold.js
14.12
KB
-rwxr-xr-x
AllkeyEvent.js
33.05
KB
-rwxr-xr-x
AllkeyEvent_10082018.js
32.5
KB
-rwxr-xr-x
Dispatch_answer_script.js
17.91
KB
-rwxr-xr-x
Dispatch_answer_script_qp.js
16.33
KB
-rwxr-xr-x
Dispatch_answer_script_qpold.j...
16.33
KB
-rwxr-xr-x
ECHblk.js
6.67
KB
-rwxr-xr-x
IdentifyTransactions.js
2.13
KB
-rwxr-xr-x
MainPage.js
16.39
KB
-rwxr-xr-x
Message_board.js
5.02
KB
-rwxr-xr-x
SubjectAppearingPopup.js
12.78
KB
-rwxr-xr-x
absententrysubjectwiseQP.js
16.36
KB
-rwxr-xr-x
absententrysubjectwiseQPold (2...
16.33
KB
-rwxr-xr-x
absententrysubjectwiseQPold.js
16.33
KB
-rwxr-xr-x
ack_adm_application.html
1.79
KB
-rwxr-xr-x
ack_adm_application.js
46.4
KB
-rwxr-xr-x
ack_admentry_application.js
57.73
KB
-rwxr-xr-x
ack_admentry_application_06102...
26.13
KB
-rwxr-xr-x
ack_chalentries.js
3.79
KB
-rwxr-xr-x
ack_exam_app_form.js
2.85
KB
-rwxr-xr-x
ack_exam_app_form_19112018.js
2.52
KB
-rwxr-xr-x
ack_exam_app_form_bulk - Copy....
2.06
KB
-rwxr-xr-x
ack_exam_app_form_bulk.js
2.06
KB
-rwxr-xr-x
ack_exam_app_form_oldformat.js
2.44
KB
-rwxr-xr-x
ack_registration.js
2.11
KB
-rwxr-xr-x
ack_rv_rt_application.js
2.45
KB
-rwxr-xr-x
adm_delete_data.js
3.29
KB
-rwxr-xr-x
admchallanpreparation.js
5.59
KB
-rwxr-xr-x
admdownloadexsheet.js
376
B
-rwxr-xr-x
admission_approve.js
21.39
KB
-rwxr-xr-x
admission_entry_reg.js
46.14
KB
-rwxr-xr-x
admission_entry_status.js
1.06
KB
-rwxr-xr-x
admissionapplist.js
3.79
KB
-rwxr-xr-x
admuploadexsheet.js
1.32
KB
-rwxr-xr-x
ansbookcancel.js
12.07
KB
-rwxr-xr-x
answer_book_issued.js
11.15
KB
-rwxr-xr-x
appstatus.js
2.57
KB
-rwxr-xr-x
attendance.js
6.64
KB
-rwxr-xr-x
attendance_freez.js
5.7
KB
-rwxr-xr-x
attendance_freez_mth.js
7.05
KB
-rwxr-xr-x
attshort.js
1.52
KB
-rwxr-xr-x
backup.js
2.73
KB
-rwxr-xr-x
backup_restore.js
1.36
KB
-rwxr-xr-x
boeselection.js
7.62
KB
-rwxr-xr-x
bundle_dispatch.js
7.82
KB
-rwxr-xr-x
bundlereceive.js
971
B
-rwxr-xr-x
bundlestatus.js
1.28
KB
-rwxr-xr-x
calendar-en.js
3.52
KB
-rwxr-xr-x
calendar-setup.js
8.65
KB
-rwxr-xr-x
calendar.js
48.08
KB
-rwxr-xr-x
calender.js
903
B
-rwxr-xr-x
candidate_list.js
39.62
KB
-rwxr-xr-x
candidate_list_com27092016.js
30.36
KB
-rwxr-xr-x
challan_entries.js
3.92
KB
-rwxr-xr-x
challan_preparation.js
2.77
KB
-rwxr-xr-x
changeAdmDegree.js
4.01
KB
-rwxr-xr-x
changeMobile.js
3.03
KB
-rwxr-xr-x
checkbrowser.js
2.46
KB
-rwxr-xr-x
cntrDeclaration.js
3.12
KB
-rwxr-xr-x
collbankdet.js
1.91
KB
-rwxr-xr-x
colldesp_ack.js
3.3
KB
-rwxr-xr-x
college.js
4.56
KB
-rwxr-xr-x
college_BEFORE_LOGINPOPUP.js
2.33
KB
-rwxr-xr-x
college_approve.js
19.79
KB
-rwxr-xr-x
college_degree_status.js
3.29
KB
-rwxr-xr-x
college_wise_degree_status.js
962
B
-rwxr-xr-x
collfundtransfer.js
2.85
KB
-rwxr-xr-x
collinfo_popup.js
11.62
KB
-rwxr-xr-x
control.js
17.13
KB
-rwxr-xr-x
convdet.js
5.9
KB
-rwxr-xr-x
convdet_12242019.js
5.78
KB
-rwxr-xr-x
createAdmission.js
4.44
KB
-rwxr-xr-x
cronjob_sendsms.php
2.94
KB
-rwxr-xr-x
daterange.js
9.18
KB
-rwxr-xr-x
degree.js
2.86
KB
-rwxr-xr-x
display_details_in_grid.php
101.68
KB
-rwxr-xr-x
doc_verification.js
1.8
KB
-rwxr-xr-x
downloadFeeStatement.js
770
B
-rwxr-xr-x
downloadStudentPhotos.js
1.08
KB
-rwxr-xr-x
downloadStudentPhotosold.js
1.08
KB
-rwxr-xr-x
download_misc_files.js
817
B
-rwxr-xr-x
entryexitevents.js
1.23
KB
-rwxr-xr-x
export_import.js
1.83
KB
-rwxr-xr-x
export_import_setup.js
5.47
KB
-rwxr-xr-x
fee_report.js
4.38
KB
-rwxr-xr-x
feeupdation.js
5.43
KB
-rwxr-xr-x
feeupdation_bulk.js
6.38
KB
-rwxr-xr-x
footer.js
6.32
KB
-rwxr-xr-x
form_submit.js
1.3
KB
-rwxr-xr-x
formatdate.js
12.14
KB
-rwxr-xr-x
freeze_Ad_Cl_Me.js
2.83
KB
-rwxr-xr-x
freeze_module_at_admin_college...
5.69
KB
-rwxr-xr-x
freeze_module_at_university_co...
4.55
KB
-rwxr-xr-x
freezeiaprici.js
5.22
KB
-rwxr-xr-x
grid_display.js
901
B
-rwxr-xr-x
import_marks.js
1.37
KB
-rwxr-xr-x
includeCSS.js
1.28
KB
-rwxr-xr-x
index.js
24.14
KB
-rwxr-xr-x
index_BEFORE_LOGINPOPUP.js
4.88
KB
-rwxr-xr-x
index_old.js
20.17
KB
-rwxr-xr-x
invigilators_dairy.js
4.79
KB
-rwxr-xr-x
jquery.color.js
3.57
KB
-rwxr-xr-x
jquery.js
29.15
KB
-rwxr-xr-x
load-report-js-files.js
9.7
KB
-rwxr-xr-x
load_js_files.js
637
B
-rwxr-xr-x
load_mannual_js_files.js
37.9
KB
-rwxr-xr-x
load_mannual_js_files_10082018...
29.09
KB
-rwxr-xr-x
load_mannual_js_files_before_u...
11.57
KB
-rwxr-xr-x
markentry_studentwise.js
9.29
KB
-rwxr-xr-x
markentry_subjectwise.js
17.75
KB
-rwxr-xr-x
markslistelement_report.js
5.92
KB
-rwxr-xr-x
mascomb.js
15.34
KB
-rwxr-xr-x
message_text.js
1.33
KB
-rwxr-xr-x
module_setup.js
4.44
KB
-rwxr-xr-x
month_cal.js
63.03
KB
-rwxr-xr-x
month_cal1.js
1.96
KB
-rwxr-xr-x
openPopUp.js
4.94
KB
-rwxr-xr-x
photoupload.js
4.45
KB
-rwxr-xr-x
popup.js
108.42
KB
-rwxr-xr-x
popup_10082018.js
106.93
KB
-rwxr-xr-x
popupold.js
57.4
KB
-rwxr-xr-x
postnotification.js
9.28
KB
-rwxr-xr-x
postnotification_25102019.js
3.32
KB
-rwxr-xr-x
printExamform.js
718
B
-rwxr-xr-x
push_data_to_studentportal.js
771
B
-rwxr-xr-x
receive_rv_rt_application.js
2.66
KB
-rwxr-xr-x
recociliaton.js
1.11
KB
-rwxr-xr-x
report_SubjectListGeneral.js
3.26
KB
-rwxr-xr-x
report_exam_application_form.j...
1.89
KB
-rwxr-xr-x
report_setup.js
12.46
KB
-rwxr-xr-x
results_pdf.js
851
B
-rwxr-xr-x
resultsheet.js
3.21
KB
-rwxr-xr-x
revaluation.js
7.56
KB
-rwxr-xr-x
revaluation_oldtype.js
4.65
KB
-rwxr-xr-x
revaluation_withdegree.js
7.5
KB
-rwxr-xr-x
room_allotment.js
2.94
KB
-rwxr-xr-x
room_allotment_datewise.js
6.52
KB
-rwxr-xr-x
room_allotment_old_03082018.js
4.79
KB
-rwxr-xr-x
roomallotmantsummary.js
859
B
-rwxr-xr-x
roomdeclaration.js
5.42
KB
-rwxr-xr-x
rv_rt_guide_lines.js
428
B
-rwxr-xr-x
rvdates.js
8.08
KB
-rwxr-xr-x
sectionwisepermission.js
4.71
KB
-rwxr-xr-x
servicehead.js
9.02
KB
-rwxr-xr-x
serviceheadfee.js
10.71
KB
-rwxr-xr-x
services.js
7.96
KB
-rwxr-xr-x
student.php
5.23
KB
-rwxr-xr-x
studentWiseIAMarksPending.js
814
B
-rwxr-xr-x
student_entry.js
87.78
KB
-rwxr-xr-x
student_entry24.js
50.71
KB
-rwxr-xr-x
student_entry_14062018.js
44.4
KB
-rwxr-xr-x
student_entry_24112017.js
43.39
KB
-rwxr-xr-x
student_entry_kswu.js
37.89
KB
-rwxr-xr-x
student_entryold.js
33.98
KB
-rwxr-xr-x
studentphotolist.js
1.63
KB
-rwxr-xr-x
studentportal_remove.js
2.95
KB
-rwxr-xr-x
subjectAppearing_PopUp.js
1.92
KB
-rwxr-xr-x
subject_freshExam.js
11.11
KB
-rwxr-xr-x
subjectfreez.js
11.69
KB
-rwxr-xr-x
subjectwise_freezing_sectionwi...
5.79
KB
-rwxr-xr-x
subjectwise_invigilator_dairy....
1.23
KB
-rwxr-xr-x
sum.php
116
B
-rwxr-xr-x
system.js
12.41
KB
-rwxr-xr-x
system_utility.js
8.69
KB
-rwxr-xr-x
teachers.js
21.63
KB
-rwxr-xr-x
teachersOLD.js
13.7
KB
-rwxr-xr-x
teachersnew.js
21.4
KB
-rwxr-xr-x
topsheet.js
765
B
-rwxr-xr-x
transaction-series.js
6.5
KB
-rwxr-xr-x
updateSection.js
2.74
KB
-rwxr-xr-x
updateexamcnt.js
3.55
KB
-rwxr-xr-x
uploadStudentPhotos.js
3.84
KB
-rwxr-xr-x
uploadStudentPhotos_beforedown...
3.52
KB
-rwxr-xr-x
upload_details.js
4.03
KB
-rwxr-xr-x
uploadzip.js
3.95
KB
-rwxr-xr-x
usersetup.js
30.93
KB
-rwxr-xr-x
usersubj_identification.js
4.53
KB
-rwxr-xr-x
validate.js
10.16
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : usersetup.js
var $g_is_change_pwd_requested = 0; var $g_normal_update = 0; var $g_is_update_by_editing = 0; var $g_user_rights_details = ''; function CallenableUserSetUp() { $g_normal_update = 1; $g_is_update_by_editing = 0; $g_formula_value = ''; window.enable_proper_module = "enableUserSetUp"; $('#page_main_div').load("html_modules/Setup_user_set_up.html", function () { getUserDetais('0'); document.getElementById('login_id').disabled = true; }); EnablePageHeaderFooter(); if (getCookie('user_type') != 'Admin' && getCookie('user_type') != 'Super Wiser') { $("#header_view_row").hide(); $("#footer_view_row").hide(); } $('#display_module_name').html('User Set up'); document.getElementById('module_name_for_save').value = 'saveUserSetUpDetails'; //closeChangePwd(); //get_help_text('UserSetup'); //onclick first time we are passing 0 value and using session id we will get the details in PHP // if Specicific id is passed we are getting the Required user info } function getUserDetais($u_id) { $.ajax({ type: "POST", data: "get_user_id=" + $u_id, url: $host_url + "getUserSetupDetails.demo", success: populateUserSetupDetailsResponse }); } function saveUserSetUpDetails() { if (trim(document.getElementById('user_type').value) == '0') { alert('Please Select the User Type'); document.getElementById('user_type').focus(); return; } else if (trim(document.getElementById('login_id').value) == '') { alert('Please Enter the Login Id'); document.getElementById('login_id').focus(); return; } else if ($g_is_change_pwd_requested == 1) { /* if(getCookie('user_type').toLowerCase()!='lsys' && getCookie('user_type')!='Admin' && (document.getElementById('old_password').value=='' ) && getCookie('user_type')!='super' ) { alert('Please Enter the Valid Old Password'); document.getElementById('old_password').focus(); return; } */ if (document.getElementById('new_password').value == '') { alert('Please Enter the New Password'); document.getElementById('new_password').focus(); return; } else if (document.getElementById('retype_new_password').value == '') { alert('Please Re-Enter the New Password'); document.getElementById('retype_new_password').focus(); return; } else if (document.getElementById('retype_new_password').value != document.getElementById('new_password').value) { alert('New Password and Re-Entered password\'s are not matching'); document.getElementById('retype_new_password').focus(); return; } } else if (trim(document.getElementById('user_real_name').value) == '') { alert('Please Enter the User Name'); document.getElementById('user_real_name').focus(); return; } /* else if(!validateemail(trim(document.getElementById('user_email_id').value))) { alert('Please Enter the Valid Email Id'); document.getElementById('user_email_id').focus(); return; } */ $can_edit_help_text = 0; $lstr_data = "is_normal_update=" + $g_normal_update; $lstr_data += "&is_update_by_editing=" + $g_is_update_by_editing; $lstr_data += "&user_type_id=" + document.getElementById('user_type').value; $lstr_data += "&login_id=" + trim(encodeURIComponent(document.getElementById('login_id').value)); $lstr_data += "&user_real_name=" + trim(encodeURIComponent(document.getElementById('user_real_name').value)); $lstr_data += "&user_email_id=" + trim(encodeURIComponent(document.getElementById('user_email_id').value)); $lstr_data += "&user_group=" + trim(encodeURIComponent(document.getElementById('user_group').value)); $lstr_data += "&super_wiser=" + trim(encodeURIComponent(document.getElementById('user_superwiser').value)); var user_theme = $('.jquery-ui-themeswitcher-title').text().replace("Theme: ", ""); $lstr_data += "&user_theme=" + user_theme; if (document.getElementById('user_can_edit_help').checked == true) $can_edit_help_text = 1; $lstr_data += "&can_edit_help_text=" + $can_edit_help_text; $lstr_data += "&is_password_changed=" + $g_is_change_pwd_requested; $lstr_data += "&user_college_code=" + trim(encodeURIComponent(document.getElementById('user_setup_college_code').value)); $lstr_data += "&sysusrkey=" + encodeURIComponent(document.getElementById('new_password').value); $.ajax({ type: "POST", data: $lstr_data, url: $host_url + "updateUserSetUpDetails.demo", success: updateUserSetUpDetailsResponse }); } function updateUserSetUpDetailsResponse($responce) { $responce = eval('(' + $responce + ')'); alert($responce.data); home(); //$g_is_update_by_editing=0; } $g_user_type_obj = new Object(); function populateUserSetupDetailsResponse($responce) { $responce = eval('(' + $responce + ')'); getDefaultHeadFooterLinks('User Setup'); document.getElementById('user_type').focus(); document.getElementById('user_type').options.length = 0; document.getElementById('user_superwiser').options.length = 0; document.getElementById('user_group').options.length = 0; $op = new Option('Select One', '0'); $op.id = '0'; document.getElementById('user_type').options.add($op); $op = new Option('Select One', '0'); $op.id = '0'; document.getElementById('user_superwiser').options.add($op); $op = new Option('Select One', '0'); $op.id = '0'; document.getElementById('user_group').options.add($op); for ($i = 0; $i < $responce.data['user_type'].length; $i++) { $op = new Option($responce.data['user_type'][$i]['value'], $responce.data['user_type'][$i]['internal_code']); $op.id = $responce.data['user_type'][$i]['internal_code'];//specifying the id for options document.getElementById('user_type').options.add($op); $g_user_type_obj[$responce.data['user_type'][$i]['value']] = $responce.data['user_type'][$i]['internal_code']; } for ($i = 0; $i < $responce.data['super_wiser'].length; $i++) { $op = new Option($responce.data['super_wiser'][$i]['value'], $responce.data['super_wiser'][$i]['internal_code']); $op.id = $responce.data['super_wiser'][$i]['internal_code'];//specifying the id for options document.getElementById('user_superwiser').options.add($op); } for ($i = 0; $i < $responce.data['Group'].length; $i++) { $op = new Option($responce.data['Group'][$i]['value'], $responce.data['Group'][$i]['internal_code']); $op.id = $responce.data['Group'][$i]['internal_code'];//specifying the id for options document.getElementById('user_group').options.add($op); } document.getElementById('login_id').value = $responce.data['user_details'].sysusr; document.getElementById('user_type').value = $responce.data['user_details'].user_type; document.getElementById('user_real_name').value = $responce.data['user_details'].real_name; document.getElementById('user_email_id').value = $responce.data['user_details'].email_id; document.getElementById('user_superwiser').value = $responce.data['user_details'].super_wiser; document.getElementById('user_group').value = $responce.data['user_details'].user_group; document.getElementById('user_setup_college_code').value = $responce.data['user_details'].college_code; if ($responce.data['user_details'].can_edit_help_text == '1') document.getElementById('user_can_edit_help').checked = true; else document.getElementById('user_can_edit_help').checked = false; //if(getCookie('user_type')!='Admin' ) if (getCookie('user_type').toLowerCase() == 'user') { document.getElementById('user_can_edit_help').disabled = true; document.getElementById('user_group').disabled = true; document.getElementById('user_superwiser').disabled = true; document.getElementById('user_type').disabled = true; document.getElementById('add_new_user').style.display = 'none'; document.getElementById('tr_user_setup_college_code').style.display = 'none'; } if (getCookie('user_type').toLowerCase() == 'admin') { document.getElementById('user_can_edit_help').disabled = true; document.getElementById('user_group').disabled = true; document.getElementById('user_superwiser').disabled = true; document.getElementById('user_type').disabled = true; document.getElementById('add_new_user').style.display = 'block'; document.getElementById('tr_user_setup_college_code').style.display = 'none'; } } function openChangePwd() { if (getCookie('user_type') == 'Admin') { document.getElementById('row_old_password').style.display = 'none'; } else document.getElementById('row_old_password').style.display = ''; document.getElementById('row_new_password').style.display = ''; document.getElementById('row_retype_new_password').style.display = ''; document.getElementById('change_pwd').style.display = 'none'; document.getElementById('cancel_change_pwd').style.display = ''; document.getElementById('old_password').value = ''; document.getElementById('new_password').value = ''; document.getElementById('retype_new_password').value = ''; $g_is_change_pwd_requested = 1; } function closeChangePwd() { document.getElementById('row_new_password').focus(); document.getElementById('row_old_password').style.display = 'none'; document.getElementById('row_new_password').style.display = 'none'; document.getElementById('row_retype_new_password').style.display = 'none'; document.getElementById('change_pwd').style.display = ''; $g_is_change_pwd_requested = 0; } function addNewUsers() { openChangePwd(); //document.getElementById('user_type').disabled=true; document.getElementById('user_type').focus(); if (getCookie('user_type').toLowerCase() == 'admin') { document.getElementById('user_type').value = $g_user_type_obj["User"]; } else document.getElementById('user_type').value = $g_user_type_obj["Admin"]; document.getElementById('login_id').value = ''; document.getElementById('user_real_name').value = ''; document.getElementById('user_email_id').value = ''; document.getElementById('user_superwiser').value = '0'; document.getElementById('user_group').value = '0'; document.getElementById('user_can_edit_help').checked = false; document.getElementById('login_id').disabled = false; document.getElementById('cancel_change_pwd').style.display = 'none'; document.getElementById('row_old_password').style.display = 'none'; document.getElementById('change_pwd').style.display = 'none'; document.getElementById('user_setup_college_code').disabled = true; $g_normal_update = 0; } function getUserSetUpDetails($id) { $('#page_main_div').load("html_modules/Setup_user_set_up.html"); //closeChangePwd(); $g_is_change_pwd_requested = 0; getUserDetais($id); $g_normal_update = 1; $g_is_update_by_editing = $id; } // user rights starts here 27 oct function CallenableUserRightsSetUp() { window.enable_proper_module = "enableUserRightsSetUp"; //document.getElementById('user_rights_table_data').innerHTML=''; //enable_left_navi_div('user_rights'); $('#page_main_div').load("html_modules/Setup_user_rights.html"); document.getElementById('display_module_name').innerHTML = 'User Rights'; document.getElementById('module_name_for_save').value = 'saveUserRightsDetails'; //get_help_text('UserSetupRights'); //document.getElementById('vertical_space_div').style.height='25px'; getDefaultHeadFooterLinks("User Rights"); $.ajax({ type: "POST", //data:"user_id="+$u_id, url: $host_url + "getUserRightsDetails.demo", success: populateUserRightsDetailsResponse }); } function populateUserRightsDetailsResponse($responce) { $responce = eval('(' + $responce + ')'); document.getElementById('user_rights_user').options.length = 0; document.getElementById('user_rights_module_type').options.length = 0; $op = new Option('Select One', '0'); $op.id = '0'; document.getElementById('user_rights_user').options.add($op); $op = new Option('Select One', '0'); $op.id = '0'; document.getElementById('user_rights_module_type').options.add($op); for ($i = 0; $i < $responce.data['user_rights_user'].length; $i++) { $op = new Option($responce.data['user_rights_user'][$i]['value'], $responce.data['user_rights_user'][$i]['internal_code']); $op.id = $responce.data['user_rights_user'][$i]['internal_code'];//specifying the id for options document.getElementById('user_rights_user').options.add($op); } for ($i = 0; $i < $responce.data['user_rights_module_type'].length; $i++) { $op = new Option($responce.data['user_rights_module_type'][$i]['value'], $responce.data['user_rights_module_type'][$i]['internal_code']); $op.id = $responce.data['user_rights_module_type'][$i]['internal_code'];//specifying the id for options document.getElementById('user_rights_module_type').options.add($op); } document.getElementById('user_rights_table_data_div').innerHTML = ''; //getUserRightModuleNames(0, ''); } function getUserRightModuleNames($id, $serach_value) { if ($serach_value == '') { document.getElementById('search_user_right_module_name').value = ''; } $user_id = document.getElementById('user_rights_user').value; $.ajax({ type: "POST", data: "module_type=" + $id + "&serach_value=" + trim($serach_value) + "&user_id_value=" + $user_id, url: $host_url + "getUserRightsModuleNames.demo", success: UserRightsModuleNamesResponse }); } function UserRightsModuleNamesResponse($responce) { $responce = eval('(' + $responce + ')'); $g_user_rights_details = $responce; if ($responce.error_code == '0') { document.getElementById('user_rights_table_data_div').innerHTML = ''; //$table_format="<table style='padding:3px 4px 3px 3px;' id='user_rights_table_data' width='100%' border='0' cellspacing='0' cellpadding='0'>"; document.getElementById('user_rights_table_data_div').innerHTML = $responce.data.module_data; $('.jqgrow').bind('mouseover', function (e) { ptr = $(e.target).parents("tr.jqgrow"); if ($(ptr).attr("class") !== "subgrid") { $(ptr).addClass("ui-state-hover"); } return false; }).bind('mouseout', function (e) { ptr = $(e.target).parents("tr.jqgrow"); $(ptr).removeClass("ui-state-hover"); return false; }); } } function saveUserRightsDetails() { if (document.getElementById('user_rights_user').value == '0') { alert('Please Select the User/Group'); document.getElementById('user_rights_user').focus(); return; } else if (document.getElementById('user_rights_module_type').value == '0') { alert('Please Select Module Tye'); document.getElementById('user_rights_module_type').focus(); return; } $view_arr = new Object(); for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $id = $g_user_rights_details.data['module_id_details'][$i].internal_code; $view_arr[$i] = new Object(); $view_arr[$i]['id'] = $id; if (document.getElementById('view_own_' + $id).checked == true) { $view_arr[$i]['view_own'] = '1'; } else $view_arr[$i]['view_own'] = '0'; if (document.getElementById('view_group_' + $id).checked == true) { $view_arr[$i]['view_group'] = '1'; } else $view_arr[$i]['view_group'] = '0'; if (document.getElementById('view_dep_' + $id).checked == true) { $view_arr[$i]['view_dep'] = '1'; } else $view_arr[$i]['view_dep'] = '0'; if (document.getElementById('view_all_' + $id).checked == true) { $view_arr[$i]['view_all'] = '1'; } else $view_arr[$i]['view_all'] = '0'; if (document.getElementById('add_' + $id).checked == true) { $view_arr[$i]['add'] = '1'; } else $view_arr[$i]['add'] = '0'; if (document.getElementById('edit_own_' + $id).checked == true) { $view_arr[$i]['edit_own'] = '1'; } else $view_arr[$i]['edit_own'] = '0'; if (document.getElementById('edit_group_' + $id).checked == true) { $view_arr[$i]['edit_group'] = '1'; } else $view_arr[$i]['edit_group'] = '0'; if (document.getElementById('edit_dep_' + $id).checked == true) { $view_arr[$i]['edit_dep'] = '1'; } else $view_arr[$i]['edit_dep'] = '0'; if (document.getElementById('edit_all_' + $id).checked == true) { $view_arr[$i]['edit_all'] = '1'; } else $view_arr[$i]['edit_all'] = '0'; if (document.getElementById('delete_own_' + $id).checked == true) { $view_arr[$i]['delete_own'] = '1'; } else $view_arr[$i]['delete_own'] = '0'; if (document.getElementById('delete_group_' + $id).checked == true) { $view_arr[$i]['delete_group'] = '1'; } else $view_arr[$i]['delete_group'] = '0'; if (document.getElementById('delete_dep_' + $id).checked == true) { $view_arr[$i]['delete_dep'] = '1'; } else $view_arr[$i]['delete_dep'] = '0'; if (document.getElementById('delete_all_' + $id).checked == true) { $view_arr[$i]['delete_all'] = '1'; } else $view_arr[$i]['delete_all'] = '0'; } var myJSONText = JSON.stringify($view_arr); $lst_data = "user_rights_user=" + document.getElementById('user_rights_user').value + "&module_type=" + document.getElementById('user_rights_module_type').value; $.ajax({ type: "POST", async: false, url: $host_url + "addUserRightsDetails.demo", data: $lst_data + "&user_rights_data=" + myJSONText, success: addUserRightsDetailsResponce }); } function addUserRightsDetailsResponce($responce) { $responce = eval('(' + $responce + ')'); alert($responce.data); } function checkIsViewChecked($id) { document.getElementById('view_own_' + $id).checked = true; // to check the Group details if (document.getElementById('edit_own_' + $id).checked == true) { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $c_id = $g_user_rights_details.data['module_id_details'][$i].internal_code; if ($c_id == $id && $g_user_rights_details.data['module_id_details'][$i].group_id == '0') { $arr_group_id_for_check = $g_user_rights_details.data['module_id_details'][$i].group_id_for_check; $spl_data = $arr_group_id_for_check.split(','); for ($k = 0; $k < $spl_data.length; $k++) { $("#view_own_" + $id + "_" + $spl_data[$k]).attr('checked', true); $("#edit_own_" + $id + "_" + $spl_data[$k]).attr('checked', true); //document.getElementById('view_own_'+$id+"_"+$spl_data[$k]).checked=true; //document.getElementById('edit_own_'+$id+"_"+$spl_data[$k]).checked=true; } } } } else if (document.getElementById('edit_own_' + $id).checked == false) { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $c_id = $g_user_rights_details.data['module_id_details'][$i].internal_code; if ($c_id == $id && $g_user_rights_details.data['module_id_details'][$i].group_id == '0') { $arr_group_id_for_check = $g_user_rights_details.data['module_id_details'][$i].group_id_for_check; $spl_data = $arr_group_id_for_check.split(','); for ($k = 0; $k < $spl_data.length; $k++) { if (document.getElementById('edit_own_' + $id + "_" + $spl_data[$k])) document.getElementById('edit_own_' + $id + "_" + $spl_data[$k]).checked = false; } } } } // for to check add if (document.getElementById('add_' + $id).checked == true) { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $c_id = $g_user_rights_details.data['module_id_details'][$i].internal_code; if ($c_id == $id && $g_user_rights_details.data['module_id_details'][$i].group_id == '0') { $arr_group_id_for_check = $g_user_rights_details.data['module_id_details'][$i].group_id_for_check; $spl_data = $arr_group_id_for_check.split(','); for ($k = 0; $k < $spl_data.length; $k++) { if (document.getElementById('add_' + $id + "_" + $spl_data[$k])) document.getElementById('add_' + $id + "_" + $spl_data[$k]).checked = true; if (document.getElementById('view_own_' + $id + "_" + $spl_data[$k])) document.getElementById('view_own_' + $id + "_" + $spl_data[$k]).checked = true; } } } } else if (document.getElementById('add_' + $id).checked == false) { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $c_id = $g_user_rights_details.data['module_id_details'][$i].internal_code; if ($c_id == $id && $g_user_rights_details.data['module_id_details'][$i].group_id == '0') { $arr_group_id_for_check = $g_user_rights_details.data['module_id_details'][$i].group_id_for_check; $spl_data = $arr_group_id_for_check.split(','); for ($k = 0; $k < $spl_data.length; $k++) { if (document.getElementById('add_' + $id + "_" + $spl_data[$k])) document.getElementById('add_' + $id + "_" + $spl_data[$k]).checked = false; } } } } } /* function CheckAllColumnValue($id) { if(document.getElementById('column_view').checked==true) { } } */ function uncheckIsViewChecked($id) { if (document.getElementById('view_own_' + $id).checked == false) { document.getElementById('view_group_' + $id).checked = false; document.getElementById('view_dep_' + $id).checked = false; document.getElementById('view_group_' + $id).checked = false; document.getElementById('view_all_' + $id).checked = false; document.getElementById('delete_own_' + $id).checked = false; document.getElementById('delete_dep_' + $id).checked = false; document.getElementById('delete_group_' + $id).checked = false; document.getElementById('delete_all_' + $id).checked = false; document.getElementById('edit_own_' + $id).checked = false; document.getElementById('edit_dep_' + $id).checked = false; document.getElementById('edit_group_' + $id).checked = false; document.getElementById('edit_all_' + $id).checked = false; document.getElementById('add_' + $id).checked = false; } // to check the Group details if (document.getElementById('view_own_' + $id).checked == true) { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $c_id = $g_user_rights_details.data['module_id_details'][$i].internal_code; if ($c_id == $id && $g_user_rights_details.data['module_id_details'][$i].group_id != '0') { $arr_group_id_for_check = $g_user_rights_details.data['module_id_details'][$i].group_id_for_check; $spl_data = $arr_group_id_for_check.split(','); for ($k = 0; $k < $spl_data.length; $k++) { document.getElementById('view_own_' + $id + "_" + $spl_data[$k]).checked = true; } } } } else if (document.getElementById('view_own_' + $id).checked == false) { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $c_id = $g_user_rights_details.data['module_id_details'][$i].internal_code; if ($c_id == $id && $g_user_rights_details.data['module_id_details'][$i].group_id != '0') { $arr_group_id_for_check = $g_user_rights_details.data['module_id_details'][$i].group_id_for_check; $spl_data = $arr_group_id_for_check.split(','); for ($k = 0; $k < $spl_data.length; $k++) { document.getElementById('view_own_' + $id + "_" + $spl_data[$k]).checked = false; } } } } } function checkAllRights() { if ($g_user_rights_details != '') { if (document.getElementById('check_all_rights').checked == true) { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $id = $g_user_rights_details.data['module_id_details'][$i].internal_code; document.getElementById('delete_own_' + $id).checked = true; document.getElementById('delete_group_' + $id).checked = true; document.getElementById('delete_dep_' + $id).checked = true; document.getElementById('delete_all_' + $id).checked = true; document.getElementById('edit_own_' + $id).checked = true; document.getElementById('edit_group_' + $id).checked = true; document.getElementById('edit_dep_' + $id).checked = true; document.getElementById('edit_all_' + $id).checked = true; document.getElementById('add_' + $id).checked = true; document.getElementById('view_own_' + $id).checked = true; document.getElementById('view_group_' + $id).checked = true; document.getElementById('view_dep_' + $id).checked = true; document.getElementById('view_all_' + $id).checked = true; } } else { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $id = $g_user_rights_details.data['module_id_details'][$i].internal_code; document.getElementById('delete_own_' + $id).checked = false; document.getElementById('delete_group_' + $id).checked = false; document.getElementById('delete_dep_' + $id).checked = false; document.getElementById('delete_all_' + $id).checked = false; document.getElementById('edit_own_' + $id).checked = false; document.getElementById('edit_group_' + $id).checked = false; document.getElementById('edit_dep_' + $id).checked = false; document.getElementById('edit_all_' + $id).checked = false; document.getElementById('add_' + $id).checked = false; document.getElementById('view_own_' + $id).checked = false; document.getElementById('view_group_' + $id).checked = false; document.getElementById('view_dep_' + $id).checked = false; document.getElementById('view_all_' + $id).checked = false; } } } } function checkAllDepUserRights() { if ($g_user_rights_details != '') { if (document.getElementById('check_all_dep_user_rights').checked == true) { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $id = $g_user_rights_details.data['module_id_details'][$i].internal_code; document.getElementById('delete_own_' + $id).checked = true; document.getElementById('delete_group_' + $id).checked = true; document.getElementById('delete_dep_' + $id).checked = true; document.getElementById('edit_own_' + $id).checked = true; document.getElementById('edit_group_' + $id).checked = true; document.getElementById('edit_dep_' + $id).checked = true; document.getElementById('add_' + $id).checked = true; document.getElementById('view_own_' + $id).checked = true; document.getElementById('view_group_' + $id).checked = true; document.getElementById('view_dep_' + $id).checked = true; } } else { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $id = $g_user_rights_details.data['module_id_details'][$i].internal_code; document.getElementById('delete_own_' + $id).checked = false; document.getElementById('delete_group_' + $id).checked = false; document.getElementById('delete_dep_' + $id).checked = false; document.getElementById('edit_own_' + $id).checked = false; document.getElementById('edit_group_' + $id).checked = false; document.getElementById('edit_dep_' + $id).checked = false; document.getElementById('add_' + $id).checked = false; document.getElementById('view_own_' + $id).checked = false; document.getElementById('view_group_' + $id).checked = false; document.getElementById('view_dep_' + $id).checked = false; } } } } function CheckAllColumnValue(type) { var check_box_id = ""; var own_id = ""; var dep_id = ""; var grp_id = ""; var all_id = ""; if (type == 'View') { check_box_id = 'column_view'; own_id = 'view_own_'; grp_id = 'view_group_'; dep_id = 'view_dep_'; all_id = 'view_all_'; } else if (type == 'Add') { check_box_id = 'column_add'; own_id = 'add_'; grp_id = 'add_'; dep_id = 'add_'; all_id = 'add_'; } else if (type == 'Edit') { check_box_id = 'column_edit'; own_id = 'edit_own_'; grp_id = 'edit_group_'; dep_id = 'edit_dep_'; all_id = 'edit_all_'; } else if (type == 'Delete') { check_box_id = 'column_delete'; own_id = 'delete_own_'; grp_id = 'delete_group_'; dep_id = 'delete_dep_'; all_id = 'delete_all_'; } if ($g_user_rights_details != '') { if (document.getElementById(check_box_id).checked == true) { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $id = $g_user_rights_details.data['module_id_details'][$i].internal_code; document.getElementById(own_id + $id).checked = true; document.getElementById(grp_id + $id).checked = true; document.getElementById(dep_id + $id).checked = true; document.getElementById(all_id + $id).checked = true; } } else { for ($i = 0; $i < $g_user_rights_details.data['module_id_details'].length; $i++) { $id = $g_user_rights_details.data['module_id_details'][$i].internal_code; document.getElementById(own_id + $id).checked = false; document.getElementById(grp_id + $id).checked = false; document.getElementById(dep_id + $id).checked = false; document.getElementById(all_id + $id).checked = false; } } } } function CheckAllRowValues($id) { if (document.getElementById('check_row_' + $id).checked == true) { document.getElementById('delete_own_' + $id).checked = true; document.getElementById('delete_group_' + $id).checked = true; document.getElementById('delete_dep_' + $id).checked = true; document.getElementById('delete_all_' + $id).checked = true; document.getElementById('edit_own_' + $id).checked = true; document.getElementById('edit_group_' + $id).checked = true; document.getElementById('edit_dep_' + $id).checked = true; document.getElementById('edit_all_' + $id).checked = true; document.getElementById('add_' + $id).checked = true; document.getElementById('view_own_' + $id).checked = true; document.getElementById('view_group_' + $id).checked = true; document.getElementById('view_dep_' + $id).checked = true; document.getElementById('view_all_' + $id).checked = true; } else { document.getElementById('delete_own_' + $id).checked = false; document.getElementById('delete_group_' + $id).checked = false; document.getElementById('delete_dep_' + $id).checked = false; document.getElementById('delete_all_' + $id).checked = false; document.getElementById('edit_own_' + $id).checked = false; document.getElementById('edit_group_' + $id).checked = false; document.getElementById('edit_dep_' + $id).checked = false; document.getElementById('edit_all_' + $id).checked = false; document.getElementById('add_' + $id).checked = false; document.getElementById('view_own_' + $id).checked = false; document.getElementById('view_group_' + $id).checked = false; document.getElementById('view_dep_' + $id).checked = false; document.getElementById('view_all_' + $id).checked = false; } } function displayUserSetUpDetails() { $main = "<table id='table_grid' class='scroll' ondblclick='selectRowId();' ></table> <div id='sub_grid_div' class='scroll' style='text-align:center;'></div>"; document.getElementById('page_main_div').innerHTML = $main; if (getCookie('user_type') == 'Admin') $del = true; else $del = false; jQuery("#table_grid").jqGrid( { //url:'http://localhost/activity/app.php?a=display_user_schema_group_master_grid.demo', url: $host_url + 'displayUserSetUpDetails.demo', datatype: "json", colNames: ['College Code', 'User Id', 'Pass Word', 'User Type', 'Real Name', 'Email Id'], colModel: [ { name: 'grid_college_code', index: 'grid_college_code', width: 70 }, { name: 'grid_sysusr', index: 'grid_sysusr', width: 70 }, { name: 'grid_sysusrkey', index: 'grid_sysusrkey', width: 70, hidden: true }, { name: 'grid_user_type', index: 'grid_user_type', width: 70 }, { name: 'grid_real_name', index: 'grid_real_name', width: 70 }, { name: 'grid_email_id', index: 'grid_email_id', width: 70 } ], rowNum: 10, rowList: [15, 20, 25, 30, 35], imgpath: $img_path, pager: jQuery('#sub_grid_div'), sortname: 'id', height: '250', width: '845', viewrecords: true, cellEdit: true, sortorder: "desc", multiselect: false, caption: "User Details", editurl: $host_url + 'deleteUserSetUpDetails.demo' } ).navGrid('#sub_grid_div', { edit: false, add: false, del: false }). navButtonAdd('#sub_grid_div', { caption: "Edit", onClickButton: function () { selectRowId(); } }); }
Close