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 | : 3.144.98.43
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 : control.js
var fldorder = ''; var mandfields = ''; function onfocusvalidate(event) { function processkey3() { } document.body.onkeydown = processkey3; forder = {}; mfields = {}; if(fldorder.length == fldorder.lastIndexOf(",")+1) var tflorder = fldorder.substring(0, fldorder.length - 1); else var tflorder = fldorder; if(mandfields.length == mandfields.lastIndexOf(",")+1) var tmfields = mandfields.substring(0, mandfields.length - 1); else var tmfields = mandfields; var forder = tflorder.split(','); var mfields = tmfields.split(','); if ( event.keyCode == 9 ) { event.preventDefault(); event.stopPropagation(); } if(event.keyCode == 13) { var focusid = document.activeElement.id; return formcontrol(forder,mfields,focusid); } /* if(event.keyCode == 9) { var focusid = document.activeElement.id; return formcontrol(forder,mfields,focusid); } */ if(event.keyCode == 38) { var focusid = document.activeElement.id; var Tindex = forder.indexOf(focusid); if(Tindex > 0) document.getElementById(forder[Tindex-1]).focus(); } if(event.keyCode == 40) { var focusid = document.activeElement.id; var Tindex = forder.indexOf(focusid); if(Tindex > 0 && Tindex< forder.length-1) document.getElementById(forder[Tindex+1]).focus(); } } function onsavevalidate(lobj,lval) { forder = {}; msfields = {}; findex = {}; if(mandfields.length == mandfields.lastIndexOf(",")+1) var mdfields = mandfields.substring(0, mandfields.length - 1); else var mdfields = mandfields; var msfields = mdfields.split(','); var validateStr =''; var findex = new Array(); for(var i=0,j=0;i<msfields.length;i++) { if(trim(document.getElementById(msfields[i]).value) == '') { findex[j]=msfields[i]; fieldtitle = document.getElementById(msfields[i]).title; fieldtitlearr = fieldtitle.split(','); validateStr += fieldtitlearr[0]+'\r\n'; j++; } } if(validateStr != '') { alert("Following fields are missing / invalid\r\n\r\n"+validateStr); document.getElementById(findex[0]).focus(); return findex[0]; } else { return 999; } } function formcontrol(fcorder,mffields,lastfocus) { var Tindex = mffields.indexOf(lastfocus); if(Tindex != -1) { if(trim(document.getElementById(lastfocus).value) =='') { fieldtitle = document.getElementById(lastfocus).title; fieldtitlearr = fieldtitle.split(','); alert("Enter " +fieldtitlearr[0]); document.getElementById(lastfocus).focus(); return lastfocus; } else { var Tcurrindex = fcorder.indexOf(lastfocus); if(Tcurrindex < fcorder.length-1) { document.getElementById(fcorder[Tcurrindex+1]).focus(); return 999; } else { return 999; } } } else { var Tcurrindex = fcorder.indexOf(lastfocus); if(Tcurrindex < fcorder.length-1) { document.getElementById(fcorder[Tcurrindex+1]).focus(); return false; } else { return 999; } } } var GTName=''; var GTFields; var GTSFields = new Array(); var GTLeftFields = new Array(); var GTWhere ; var GTTwidth; var GTColwidth; var GTHeader; var GTColcnt; var GTFirst; var GPK; function srchHeaderGrid(TName,TFields,TWhere,TTwidth,TColwidth,THeader,TColcnt,TPK) { var event = ''; var id = '' ; GTFirst = true; GTName = TName; GTFields = TFields; GTWhere = TWhere; GTTwidth = TTwidth; GTColwidth = TColwidth; GTHeader = THeader; GTColcnt = TColcnt; GPK = TPK; var tabHeader =''; tabHeader +="<table class='scroll' align='center' width='"+TTwidth+"px' cellspacing='0' cellpadding='0' border='0px' id='item_table' >"; tabHeader +="<tr class='ui-state-default ui-jqgrid-hdiv'>"; for(var hindex=0;hindex<TColcnt;hindex++) tabHeader +="<td style='padding:2px; width:"+TColwidth[hindex]+"px; text-align:center;border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>"+THeader[hindex]+"</td>"; tabHeader +="</tr><tr>"; tabHeader +="<td style='padding:2px; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>"; tabHeader +="<input style='width:"+TColwidth[0]+"px;' class='form-control input-md'/></td>"; for(var hindex=0;hindex<TColcnt-1;hindex++) { var srchid = TFields[hindex].toUpperCase(); var strext = srchid.search(' AS '); if(strext > 0) { var strid = srchid.split(' AS '); GTSFields[hindex] = strid[1]; GTLeftFields[hindex] = strid[0].toLowerCase(); } else { GTSFields[hindex] = srchid; GTLeftFields[hindex] = srchid; } tabHeader +="<td style='padding:2px; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>"; tabHeader +="<input id='"+GTLeftFields[hindex]+"' style='width:"+TColwidth[hindex+1]+"px;' onkeyup='srchDetailGrid(event,this.id);' value ='' class='form-control input-md'/></td>"; } tabHeader +="</tr></table><div id='dynamicrow'></div>"; document.getElementById('grid_view').innerHTML =tabHeader; $("#grid_view").show(); srchDetailGrid(event,id); document.getElementById(GTLeftFields[0]).focus(); return false; } function srchDetailGrid(event,id) { if(event.keyCode!=38 && event.keyCode != 40 && event.keyCode != 13) { var fckempty = ''; var srcfield=''; var srchKeyqry = ''; for(var i=0;i<GTColcnt-1;i++) { var fckempty = trim(document.getElementById(GTLeftFields[i]).value); if(fckempty.length >0 && fckempty.length !=0) srchKeyqry += " and "+GTLeftFields[i]+" like "+"'"+document.getElementById(GTLeftFields[i]).value+"%'"; } if(trim(srchKeyqry).length > 0 || GTFirst==true ) { var dataString = '&TName='+GTName+'&TFields='+GTFields+"&TWhere="+GTWhere+"&TColcnt="+GTColcnt+"&srchKeyqry="+srchKeyqry; $.ajax({ type:"POST", url:$host_url+"srchDetailGrid", data:dataString, cache:false, success:function($responce) { $responce=eval('('+ $responce+')'); if($responce.error_code==0) { if(trim(srchKeyqry).length >= 1) GTFirst=true; else GTFirst=false; var modulename = document.getElementById('module_name_for_save').value; var count=$responce.data.length; var new_row =''; var arrIndex = 0; new_row +="<div class='CSSTableGenerator'><table class='scroll' align='center' width=''"+GTTwidth+"px' cellspacing='0' cellpadding='0' border='0px' id='mstrTable' >"; for(var rows=0;rows< count;rows++) { var index = rows+1; var rowdt = $responce.data[rows]; lsupcode = rowdt[GTSFields[0]]; catcode = rowdt[GTSFields[1]]; feecode = rowdt[GTSFields[2]]; if(modulename == 'HeadFee') click = "ondblclick = edit"+modulename+"Master('"+lsupcode+"','"+catcode+"','"+feecode+"')"; else click = "ondblclick = edit"+modulename+"Master('"+lsupcode+"')"; new_row +="<tr id="+lsupcode+" "+click+" "+" onkeydown='processkey()'>"; new_row +="<td style='width:"+GTColwidth[0]+"px;text-align:center;border:1px solid #C5DBEC;padding:5px' >"+index+"</td>"; for(var i=0;i<GTColcnt-1;i++) { var rowfname = GTSFields[i]; new_row +="<td style='width:"+GTColwidth[i+1]+"px;padding:5px;border:1px solid #C5DBEC;' >"+rowdt[rowfname] +"</td>"; } new_row +="</tr>"; } new_row +="</table></div>"; document.getElementById('dynamicrow').innerHTML = new_row; var trows = document.getElementById('mstrTable').rows; var t = trows.length; var trow; function processkey(e){ if(document.getElementById('is_add_edit').value == 'view') { e = e || event; switch(e.keyCode){ case 38: {//up arrow return movehighlightUP(-1, e); } case 40: {//down arrow return movehighlight(1, e); } case 13:{ return selecthighlight(1, e); } default: { return true; } } } } while (--t > -1) { trow = trows[t]; trow.className = 'normal'; //trow.onclick = highlightRow; }//end while function highlightRow(gethighlight) { gethighlight = gethighlight === true; var t = trows.length, hrow; while (--t > -1) { trow = trows[t]; if(gethighlight && trow.className === 'highlighted'){ return t;} else if (!gethighlight && trow !== this) { trow.className = 'normal'; } }//end while return gethighlight? null : this.className = this.className === 'highlighted'? 'normal' : 'highlighted'; }//end function function movehighlight(way, e){ //e.preventDefault && e.preventDefault(); //e.returnValue = false; var idx = highlightRow(true), nextrow; if(typeof idx === 'number'){ idx += way; if(idx && (nextrow = trows[idx])){ return highlightRow.apply(nextrow); } else if(idx){ return highlightRow.apply(trows[0]); } return highlightRow.apply(trows[trows.length - 1]); } return highlightRow.apply(trows[way > 0? 0 : trows.length-1]); } function movehighlightUP(way, e){ //e.preventDefault && e.preventDefault(); //e.returnValue = false; var idx = highlightRow(true), nextrow; if(typeof idx === 'number'){ if(idx !=1) idx += way; else { return highlightRow.apply(trows[0]); } if(idx && (nextrow = trows[idx])){ return highlightRow.apply(nextrow); } else if(idx){ return highlightRow.apply(trows[0]); } return highlightRow.apply(trows[trows.length - 1]); } return highlightRow.apply(trows[way > 0 ? 0 :trows.length-1]); } function selecthighlight(way, e){ //e.preventDefault && e.preventDefault(); e.returnValue = false; gethighlight=true; gethighlight = gethighlight === true; var t = trows.length, hrow; while (--t > -1) { trow = trows[t]; if(gethighlight && trow.className === 'highlighted'){ method_prefix = "edit"+modulename+"Master"; window[method_prefix](trow.id); exit(); } } } document.body.onkeydown = processkey; /* var t = trows.length; while (--t > -1) { trow = trows[t]; alert(trow.id); document.getElementById(trow.id).onkeydown = processkey; }// document.getElementById('mstrTable').onkeydown = processkey; */ } else { var new_row =''; GTFirst=true; document.getElementById('dynamicrow').innerHTML = new_row; } } }); } } } var PGTName=''; var PGDbclick =''; var PGTFields; var PGTSFields = new Array(); var PGTLeftFields = new Array(); var PGTWhere ; var PGTTwidth; var PGTColwidth var PGTHeader; var PGTColcnt; var GTFirst; function srchPOPHeaderGrid(PTName,PTFields,PTWhere,PDbclick,PTTwidth,PTColwidth,PTHeader,PTColcnt) { var event =''; var id = ''; GTFirst = true; PGTName = PTName; PGTFields = PTFields; PGTWhere = PTWhere; PGDbclick = PDbclick; PGTTwidth = PTTwidth; PGTColwidth = PTColwidth; PGTHeader = PTHeader; PGTColcnt = PTColcnt; var tabHeader =''; tabHeader +="<table class='scroll' align='center' width='"+PTTwidth+"px' cellspacing='0' cellpadding='0' border='0px' id='item_table' >"; tabHeader +="<tr class='ui-state-default ui-jqgrid-hdiv'>"; for(var hindex=0;hindex<PTColcnt;hindex++) tabHeader +="<td style='padding:2px; width:"+PTColwidth[hindex]+"px; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>"+PTHeader[hindex]+"</td>"; tabHeader +="</tr><tr>"; tabHeader +="<td style='padding:2px; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>"; tabHeader +="<input style='width:"+PTColwidth[0]+"px;' class='form-control input-md'/></td>"; for(var hindex=0;hindex<PTColcnt-1;hindex++) { var srchid = PTFields[hindex].toUpperCase(); var strext = srchid.search(' AS '); if(strext > 0) { var strid = srchid.split(' AS '); PGTSFields[hindex] = strid[1]; PGTLeftFields[hindex] = strid[0].toLowerCase(); } else { PGTSFields[hindex] = srchid; PGTLeftFields[hindex] = srchid; } tabHeader +="<td style='padding:2px; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>"; tabHeader +="<input id='"+PGTLeftFields[hindex]+"' style='width:"+PTColwidth[hindex+1]+"px;' onkeyup='srchPopupDetailGrid(event,this.id)' class='form-control input-md'/></td>"; } tabHeader +="</tr></table><div id='dynamicrow'></div>"; document.getElementById('popupgrid_view').innerHTML =tabHeader; $("#popupgrid_view").show(); document.getElementById(PGTLeftFields[0]).focus(); srchPopupDetailGrid(event,id); } function srchPopupDetailGrid(event,id) { if(event.keyCode!=38 && event.keyCode != 40 && event.keyCode != 13) { var srcfield=''; var srchKeyqry = ''; for(var i=0;i<PGTColcnt-1;i++) { if(trim(document.getElementById(PGTLeftFields[i]).value) != '') srchKeyqry += " and "+PGTLeftFields[i]+" like "+"'"+document.getElementById(PGTLeftFields[i]).value+"%'"; } if(trim(PGTWhere).length > 0) { var dataString = '&TName='+PGTName+'&TFields='+PGTFields+"&TWhere="+PGTWhere+"&TColcnt="+PGTColcnt+"&srchKeyqry="+srchKeyqry; $.ajax({ type:"POST", url:$host_url+"srchDetailGrid", data:dataString, cache:false, success:function($responce) { $responce=eval('('+ $responce+')'); if($responce.error_code==0) { //loadDynamicSrchTable($responce.data); var modulename = document.getElementById('module_name_for_save').value; var count=$responce.data.length; var new_row =''; GTFirst=false; var arrIndex = 0; new_row +="<div class='CSSTableGenerator' ><table class='scroll' align='center' onkeydown ='processkey()' width=''"+PGTTwidth+"px' cellspacing='0' cellpadding='0' border='0px' id='mstrTable1' >"; for(var rows=0;rows< count;rows++) { var index = rows+1; var rowdt = $responce.data[rows]; new_row +="<tr id ='"+rowdt[PGTSFields[0]]+"' ondblclick=select"+PGDbclick+"('"+rowdt[PGTSFields[0]]+"') >"; new_row +="<td style='width:"+PGTColwidth[0]+"px;text-align:center;border:1px solid #C5DBEC;padding:5px' >"+index+"</td>"; for(var i=0;i<PGTColcnt-1;i++) { var rowfname = PGTSFields[i]; new_row +="<td style='width:"+PGTColwidth[i+1]+"px;padding:5px;border:1px solid #C5DBEC;' >"+rowdt[rowfname] +"</td>"; } new_row +="</tr>"; } new_row +="</table></div>"; document.getElementById('dynamicrow').innerHTML = new_row; var trows = document.getElementById('mstrTable1').rows; var t = trows.length; var trow; while (--t > -1) { trow = trows[t]; trow.className = 'normal'; //trow.onclick = highlightRow; }//end while function highlightRow(gethighlight) { gethighlight = gethighlight === true; var t = trows.length, hrow; while (--t > -1) { trow = trows[t]; if(gethighlight && trow.className === 'highlighted'){ return t;} else if (!gethighlight && trow !== this) { trow.className = 'normal'; } }//end while return gethighlight? null : this.className = this.className === 'highlighted'? 'normal' : 'highlighted'; }//end function function movehighlight(way, e){ //e.preventDefault && e.preventDefault(); //e.returnValue = false; var idx = highlightRow(true), nextrow; if(typeof idx === 'number'){ idx += way; if(idx && (nextrow = trows[idx])){ return highlightRow.apply(nextrow); } else if(idx){ return highlightRow.apply(trows[0]); } return highlightRow.apply(trows[trows.length - 1]); } return highlightRow.apply(trows[way > 0? 0 : trows.length-1]); } function movehighlightUP(way, e){ //e.preventDefault && e.preventDefault(); //e.returnValue = false; var idx = highlightRow(true), nextrow; if(typeof idx === 'number'){ if(idx !=1) idx += way; else { return highlightRow.apply(trows[0]); } if(idx && (nextrow = trows[idx])){ return highlightRow.apply(nextrow); } else if(idx){ return highlightRow.apply(trows[0]); } return highlightRow.apply(trows[trows.length - 1]); } return highlightRow.apply(trows[way > 0 ? 0 :trows.length-1]); } function selecthighlight(way, e){ //e.preventDefault && e.preventDefault(); //e.returnValue = false; gethighlight=true; gethighlight = gethighlight === true; var t = trows.length; var trow; while (--t > -1) { var trow = trows[t]; if(gethighlight && trow.className === 'highlighted') { method_prefix = "select"+PGDbclick; window[method_prefix](trow.id); return 0; } } } function processkey2() { } function processkey(e){ e = e || event; switch(e.keyCode){ case 38: {//up arrow return movehighlightUP(-1, e); } case 40: {//down arrow return movehighlight(1, e); } case 13:{ document.body.onkeydown = processkey2; return selecthighlight(1, e); } default: { return true; } } } document.body.onkeydown = processkey; } else { var new_row =''; document.getElementById('dynamicrow').innerHTML = new_row; } } }); } } } function processkey2() { } ////// open file in html page and link to print function viewReportToPrint(report_filename) { url = 'printpreview.html'; var win = window.open(url, '_blank'); setCookie('reporturl',report_filename); }
Close