📄 dms_0002fsystem_0002fphrasecontext_0002ejsp_jsp.java
字号:
out.write("\r\n<html> \r\n<head>\r\n<meta http-equiv=\"Content-Language\" content=\"zh-tw\">\r\n<link rel=\"stylesheet\" href=\"/WebAgenda/workflow/css/co-css.css\" type=\"text/css\"> \r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=big5\">\r\n<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\">\r\n<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">\r\n<title>詞庫類別維護</title>\r\n</head> \r\n<script>\r\nfunction window_onLoad(){\r\n\tform1.JumpPage.value=\"");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(115,26);to=(115,34)]
out.print(jumpPage);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(115,36);to=(145,12)]
out.write("\";\t\r\n}\r\n//\r\nfunction btnFunction(Action){\r\n\t//alert(\"Action:\"+Action);\r\n\tindex=form1.num.value;\r\n\t//alert(index); \r\n\tflag=false;\r\n\tPhraseID=0;\r\n\tif(index==1){\r\n\t\tif(form1.PhraseID.checked){\r\n\t\t\tPhraseID=form1.PhraseID.value \r\n\t\t\tflag=true;\r\n\t\t}\r\n\t}\r\n\tif(index>1){\r\n\t\tfor(i=0;i<index;i++){\r\n\t\t\tif(form1.PhraseID[i].checked){\r\n\t\t\t\tPhraseID=form1.PhraseID[i].value \r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}\r\n\tif(Action==\"Delete\"||Action==\"Edit\"){ \r\n\t\tif(!flag){\r\n\t\t\talert(\"請選擇.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t}\r\n\tstrPhrase=\"");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(145,15);to=(145,26)]
out.print(strPhraseNO);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(145,28);to=(146,9)]
out.write("\";\r\n\t//alert(");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(146,12);to=(146,20)]
out.print(jumpPage);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(146,22);to=(148,113)]
out.write(");\r\n\t\r\n\tvar strPath = \"PhraseContextEdit.jsp?Action=\"+Action+\"&PhraseID=\"+PhraseID+\"&strPhrase=\"+strPhrase+\"&JumpPage=\"+");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(148,116);to=(148,124)]
out.print(jumpPage);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(148,126);to=(148,142)]
out.write("+\"&PhraseType=\"+");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(148,145);to=(148,155)]
out.print(PhraseType);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(148,157);to=(157,27)]
out.write("; \r\n\treturnValue=\"\";\r\n\tif(Action==\"Add\"||Action==\"Edit\"||Action==\"Search\"){\r\n\t\t var strFeatures = \"dialogWidth=320px;dialogHeight=190px;center=yes;help=no;status=no\";\r\n\t\t returnValue= showModalDialog(strPath, 0, strFeatures);\t\r\n\t} \r\n\t//alert(form1.PhraseType.value);\r\n\tif(returnValue==null) return;\r\n\tif(Action==\"Delete\")\r\n\t\treturnValue=\"&JumpPage=\"+");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(157,30);to=(157,38)]
out.print(jumpPage);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(157,40);to=(172,2)]
out.write("; \r\n\tform1.method=\"post\";\r\n\tform1.action=\"PhraseContext.jsp?Action=\"+Action+returnValue+\"&PhraseType=\"+form1.PhraseType.value; \r\n\tform1.submit(); \r\n}\r\n</script>\r\n<body onload=\"window_onLoad()\" > \r\n<form name=\"form1\">\r\n\t<input type=\"button\" value=\"新增\" name=\"B1\" onClick=\"btnFunction('Add')\" >\r\n\t<input type=\"button\" value=\"修改\" name=\"B2\" onClick=\"btnFunction('Edit')\" >\r\n\t<input type=\"button\" value=\"刪除\" name=\"B3\" onClick=\"btnFunction('Delete')\">\r\n\t<input type=\"button\" value=\"查詢\" name=\"B4\" onClick=\"btnFunction('Search')\">\r\n\t<input type=\"button\" value=\"返回\" name=\"B5\" onClick=\"javascript:location.href='/WebAgenda/DMS/system/PhraseType.jsp';\" >\r\n\t<font color=\"#808000\">跳到\r\n\t<select size=\"1\" name=\"JumpPage\" onChange=\"btnFunction('Jumping')\" >\r\n\t\t");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(172,4);to=(174,2)]
for(int j=1;j<=totalPages;j++){
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(174,4);to=(175,17)]
out.write("\r\n\t\t<option value=\"");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(175,20);to=(175,21)]
out.print(j);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(175,23);to=(175,25)]
out.write("\">");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(175,28);to=(175,29)]
out.print(j);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(175,31);to=(176,2)]
out.write("</option>\r\n\t\t");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(176,4);to=(178,2)]
}
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(178,4);to=(191,2)]
out.write("\r\n\t</select>\r\n\t頁 </font>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"4\" cellpadding=\"2\">\r\n <tr class=\"item_col_1\" >\r\n <td width=\"100%\" colspan=\"4\" class=\"bgcoblue4\" align=\"center\">詞庫內容維護</td>\r\n </tr>\r\n <tr class=\"item_col_1\">\r\n <td width=\"5%\" class=\"bgcoblue1\" align=\"center\">選項</td>\r\n <td width=\"24%\" class=\"bgcoblue1\" align=\"center\">詞庫代碼</td>\r\n <td width=\"37%\" class=\"bgcoblue1\" align=\"center\">詞庫內容</td>\r\n <td width=\"22%\" class=\"bgcoblue1\" align=\"center\">詞庫類別</td>\r\n </tr>\r\n ");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(191,4);to=(203,2)]
int i=0;
int tempTotalRecord=0;
int startRecord=0;
if(docPhraseInfo!=null){
startRecord=(jumpPage-1)*everyPage;
if(docPhraseInfoLength<10||jumpPage==totalPages)
tempTotalRecord=docPhraseInfoLength;
else
tempTotalRecord=jumpPage*everyPage;
//out.println(startRecord+":"+tempTotalRecord+":"+docPhraseInfoLength);
for(i=startRecord;i<tempTotalRecord;i++){
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(203,4);to=(205,83)]
out.write("\r\n\t\t\t <tr>\r\n\t\t\t <td width=\"5%\" class=\"task_col_1\" align=\"center\"><input type=\"radio\" value=\"");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(205,86);to=(205,116)]
out.print(docPhraseInfo[i].getPhraseID());
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(205,118);to=(206,56)]
out.write("\" name=\"PhraseID\"></td>\r\n\t\t\t <td width=\"24%\" class=\"bgcogray1\" align=\"center\">");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(206,59);to=(206,89)]
out.print(docPhraseInfo[i].getPhraseNO());
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(206,91);to=(207,56)]
out.write("</td>\r\n\t\t\t <td width=\"37%\" class=\"bgcogray1\" align=\"center\">");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(207,59);to=(207,87)]
out.print(docPhraseInfo[i].getPhrase());
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(207,89);to=(208,56)]
out.write("</td>\r\n\t\t\t <td width=\"22%\" class=\"bgcogray1\" align=\"center\">");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(208,59);to=(208,73)]
out.print(PhraseTypeName);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(208,75);to=(210,2)]
out.write("</td>\r\n\t\t\t </tr>\r\n ");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(210,4);to=(213,2)]
}
}
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(213,4);to=(214,41)]
out.write("\r\n <input type=\"hidden\" name=\"num\" value=\"");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(214,44);to=(214,73)]
out.print((tempTotalRecord-startRecord));
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(214,75);to=(215,44)]
out.write("\">\r\n <input type=\"hidden\" name=\"Phrase\" value=\"");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(215,47);to=(215,61)]
out.print(PhraseTypeName);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(215,63);to=(216,48)]
out.write("\"> \r\n <input type=\"hidden\" name=\"PhraseType\" value=\"");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(216,51);to=(216,61)]
out.print(PhraseType);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(216,63);to=(218,47)]
out.write("\">\r\n</table> \r\n<input type=\"hidden\" name=\"strPhraseNO\" value=\"");
// end
// begin [file="/DMS/system/PhraseContext.jsp";from=(218,50);to=(218,61)]
out.print(strPhraseNO);
// end
// HTML // begin [file="/DMS/system/PhraseContext.jsp";from=(218,63);to=(222,0)]
out.write("\">\r\n</form>\r\n</body> \r\n</html>\r\n");
// end
} catch (Throwable t) {
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -