📄 reposmgr.jsp
字号:
<%@ page import="com.doone.uurm.Purview,
com.doone.fj1w.common.ConfigFactory,
com.doone.uurm.WebAuth,
com.doone.data.DataTable"%>
<%@ page contentType="text/html; charset=GBK"%>
<%String sPurvICode="NGB002001";%>
<%
WebAuth auth = WebAuth.getInstance(request);
if ( ! auth.IsAuthed() ) {
out.write("<script language=\"javascript\">self.parent.location.replace(\"" + request.getContextPath() + "/view/login/login.jsp" + "\");</script>");
return;
}
else if ( ! auth.CheckPurv(sPurvICode) ) {
out.write("<script language=javascript src=\"../../common/script/RightForbidden.js\"></script>");
return;
}
DataTable cityDataTable=ConfigFactory.getCityList();
StringBuffer cityList = new StringBuffer();
String cityCode = auth.getCityCode();
if ( request.getParameter("city") != null ) cityCode = request.getParameter("city");
for(int i=0;i<cityDataTable.getRows().getCount();i++){
if ( cityCode == null && i == 0) {
cityList.append("<option value=\""+cityDataTable.getRow(i).getString("CITYCODE")+"\" selected>");
cityCode = cityDataTable.getRow(i).getString("CITYCODE");
}
else if(cityDataTable.getRow(i).getString("CITYCODE").equalsIgnoreCase(cityCode))
cityList.append("<option value=\""+cityDataTable.getRow(i).getString("CITYCODE")+"\" selected>");
else
cityList.append("<option value=\""+cityDataTable.getRow(i).getString("CITYCODE")+"\">");
cityList.append(cityDataTable.getRow(i).getString("CITYNAME"));
cityList.append("</option>");
}
%>
<html>
<head>
<title>知识库管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../common/style/main.css" rel="stylesheet" type="text/css" />
<script language="JScript.Encode" src="../../common/script/tree.js"></script>
<script language="JavaScript" src="../../common/script/ChangeStyle.js"></script>
<script language="JavaScript" src="../../common/mainTool.js"></script>
<script language="javascript">
var ReposID;
var ReposName;
function ReposInit() {
ReposID=0;
ReposName="";
}
</script>
<script language="javascript">
function goifram(url,id,name,enable) {
ReposID=id;
ReposName=name;
if(enable=='E') {
document.all.updatebutton.Enabled=true;
document.all.delbutton.Enabled=true;
}
else {
document.all.updatebutton.Enabled=false;
document.all.delbutton.Enabled=false;
}
ifa.location.href=url;
}
function fn_onload() {
cltScript_Toolbar();
ReposInit();
}
function cltScript_Toolbar() {
if ( self.parent != self ){
var pel = parent.document.all.tags("frame");
for ( i=0; i< pel.length; i++){
if ( pel(i).name == "main") {
divTop.style.width = pel(i).width;
divMain.style.width = pel(i).width;
divMain.style.height = pel(i).height - divTop.clientHeight;
}
}
}
}
</script>
<SCRIPT LANGUAGE="JavaScript">
function windowOpenById(id,width,height) {
if(id==0)
window.open("ReposAdd.jsp?id="+ReposID+"&name="+ReposName+"&CITY=<%=cityCode%>","windowRef","width=" + width + ",height=" + height+",top=100,left=100,screenX=10,screenY=20");
else if(id==1)
window.open("ReposEdit.jsp?id="+ReposID+"&name="+ReposName+"&CITY=<%=cityCode%>","windowRef","width=" + width + ",height=" + height+",top=100,left=100,screenX=10,screenY=20,scrollbars=yes");
else if(id==2)
window.open("ReposDel.jsp?id="+ReposID+"&name="+ReposName+"&CITY=<%=cityCode%>","windowRef","width=" + width + ",height=" + height+",top=100,left=100,screenX=10,screenY=20");
}
function go(){
window.location='./ReposMgr.jsp?city='+document.all.go_url.options[document.all.go_url.selectedIndex].value;
}
</SCRIPT>
</head>
<body onload="fn_onload();">
<div onresize="cltScript_Toolbar();" style="width: 100%">
<div id="divTop" style="overflow: hidden">
<table id="ibtnPanel"
style="font-size: 9pt; border-bottom: #efefef 1px outset"
cellspacing="0" cellpadding="0" width="100%" border="0">
<tr bgcolor="#efefef" height="33">
<td valign="middle" align="center" width="81"
onclick="return windowOpenById(0,800,450);" id="addbutton"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault" OverClass="btnOver" DownClass="btnDown"
title="">添加知识库</td>
<td valign="middle" align="center" width="81"
onclick="return windowOpenById(1,800,450);" id="updatebutton"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault" OverClass="btnOver" DownClass="btnDown"
title="" Enabled="false">编辑知识库</td>
<td valign="middle" align="center" width="81"
onclick="return windowOpenById(2,800,450);" id="delbutton"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault" OverClass="btnOver" DownClass="btnDown"
title="" Enabled="false">删除知识库</td>
<td> </td>
</tr>
</table>
<jsp:include page="../../common/inc_top.jsp">
<jsp:param name="purvCode" value="<%=sPurvICode%>" />
</jsp:include></div>
<div id="divMain" style="overflow: auto">
<table style="font-size: 9pt; border-bottom: #efefef 1px outset"
cellspacing="0" id="AutoNumber1" cellpadding="0" width="100%"
border="0" class="OuterTable">
<tr class="OuterHead">
<td nowrap="nowrap" class="title_td" style="text-align:left">
<b>地区选择:</b>
<select id="go_url" name="go_url" onchange="go()" style="width: 50%;position: static">
<%=cityList.toString()%>
</select></td>
<td align="right" class="title_td" nowrap> </td>
</tr>
<tr>
<td class="body_td" width="30%" id="menuC1" height="400" align="left"
valign="top"></td>
<td class="body_td" width="70%" height="400" align="left" valign="top">
<iframe name="ifa" id="ifa" width="100%" height="395">
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
<tr class="OuterFoot"><td colspan="2" class="body_td"> </td></tr>
</table>
</div>
</div>
<script language="JavaScript">
var mm = new XMLTree("mm");
mm.load("/manager/repos2xml?ID=0&CITY=<%=cityCode%>",document.getElementById("menuC1"));
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -