📄 reposadd.jsp
字号:
<%@ page import="com.doone.uurm.Sys_Organise,
java.util.Date,
com.doone.uurm.Sys_Purview,
com.doone.data.DacClient,
com.doone.uurm.WebAuth,
com.doone.uurm.Purview"%>
<%@ page contentType="text/html; charset=GBK" %>
<%request.setCharacterEncoding("GBK");%>
<%String sPurvICode="NGB002001";%>
<%
String sCity=(String)request.getParameter("CITY");
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;
}
long id=Long.parseLong(request.getParameter("id"));
%>
<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="JavaScript" src="../../common/script/Calendar.js"></script>
<script language="JavaScript" src="../../common/script/CalendarLib30.js"></script>
<script language="JavaScript" src="../../common/script/CheckInfo.js"></script>
<script language="JavaScript" src="../../common/mainTool.js"></script>
<SCRIPT language=JavaScript>
function check(theForm)
{
if(theForm.TITLE.value=="")
{
alert("请填写知识库标题!");
theForm.TITLE.focus();
return false;
}
if(theForm.TITLE.length>50)
{
alert("知识库标题过长,请重新填写!");
theForm.TITLE.focus();
return false;
}
if(theForm.starttime.value=="")
{
alert("请选择有效起始时间!");
theForm.starttime.focus();
return false;
}
if(theForm.endtime.value=="")
{
alert("请选择截止有效时间!");
theForm.endtime.focus();
return false;
}
if(!CheckDate(theForm.starttime.value))
{
alert("请正确填写有效起始时间,例如“2005-01-01”!");
theForm.starttime.focus();
return false;
}
if(!CheckDate(theForm.endtime.value))
{
alert("请正确填写截止有效时间,例如“2008-01-01”!");
theForm.endtime.focus();
return false;
}
return true;
}
</SCRIPT>
</head>
<body>
<div id="overDiv" style="z-index: 1000; visibility: hidden; position: absolute">
</div>
<script language="JavaScript" src="../../common/script/ChangeStyle.js"></script>
<form action="/manager/insertrepos" method="post" name="insertfrm" onsubmit="return check(this);">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="OuterTable">
<tr>
<td class="InnerHead" colspan="7">
<jsp:include page="../../common/inc_top.jsp" >
<jsp:param name="purvCode" value="<%=sPurvICode%>"/>
</jsp:include>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="OuterTable">
<tr class="OuterHead" >
<td class="title_td" colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td nowrap="nowrap" style="text-align:left"> <span id="ItemTitle"><font face="webdings">8</font>添加知识库信息</span></td>
<td align="right" nowrap> </td>
</tr>
</table></td>
</tr>
<tr>
<td class="InnerHead" style="text-align:right" colspan="2">
<input name="ID" type="hidden" value="<%=id%>"></input><input name="CITY" type="hidden" value="<%=sCity%>"></input>
</td>
</tr>
<tr>
<td class="InnerHead" style="text-align:right" width="25%"><font color="red">*</font>知识库标题</td>
<td class="InnerMain" width="75%"><input name="TITLE" type="text" maxlength="50" value="" style="width: 100%;0" /></td>
</tr>
<tr>
<td class="InnerHead" style="text-align:right"><p><font color="red">*</font>知识库状态</p>
</td>
<td class="InnerMain"><input name="STATE" type="radio" value="E" checked>在用</input><input name="STATE" type="radio" value="D">禁止</input>
</td>
</tr>
<tr>
<td class="InnerHead" style="text-align:right"><font color="red">*</font>有效起始时间</td>
<td class="InnerMain"><input name="starttime" type="text" size="20" maxlength="20"></input>
<A onmouseover="window.status='日期选择器'; overlib('点击选择当前日期-只显示当月的日历'); return true;"
onmouseout="window.status=''; nd(); return true;"
href="javascript:show_calendar('insertfrm.starttime');"><IMG height=16 src="../../common/images/selectdate.gif" width=16 border=0>
</A>
</td>
</tr>
<tr>
<td class="InnerHead" style="text-align:right"><font color="red">*</font>截止有效时间</td>
<td class="InnerMain"><input name="endtime" type="text" size="20" maxlength="20"></input>
<A onmouseover="window.status='日期选择器'; overlib('点击选择当前日期-只显示当月的日历'); return true;"
onmouseout="window.status=''; nd(); return true;"
href="javascript:show_calendar('insertfrm.endtime');"><IMG height=16 src="../../common/images/selectdate.gif" width=16 border=0>
</A>
</td>
</tr>
<tr>
<td class="InnerHead" style="text-align:right" valign="top">正文</td>
<td class="InnerMain"><textarea cols=120 rows=16 name="CONTENT" type="text" size="50" maxlength="20" value=""></textarea></td>
</tr>
<tr>
<td class="OuterFoot" colspan="2" align="right">
<input type="submit" class="button" value="确认">
<input type="reset" class="button" value="重写">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -