📄 showinfoedit.jsp
字号:
<%@ page import="com.doone.uurm.Sys_Organise,
com.doone.data.*,
com.doone.fj1w.common.TD_City,
com.doone.uurm.WebAuth,
com.doone.fj1w.fjmgr.useroperinfo.Opershowinfo,
com.doone.util.FileLogger,java.util.*"%>
<%@ page contentType="text/html; charset=GBK" %>
<%request.setCharacterEncoding("gb2312");%>
<%String sPurvICode="NGB002003";%>
<%
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;
}
String strshowinfoid=request.getParameter("SHOWINFOID");
if(strshowinfoid==null || strshowinfoid.equals("")){
response.sendRedirect("Showinfoframe.jsp");
}
session.setAttribute("SHOWINFOID",strshowinfoid);
DataTable dtshowinfo=null;
try{
Opershowinfo copershowinfo=new Opershowinfo();
dtshowinfo=copershowinfo.queryshowinfo("td_showinfo","SHOWINFOID",strshowinfoid);
}catch(Exception ex){
FileLogger.getLogger().error(ex);
String strinfo="资源忙,请稍候!";
session.setAttribute("OPERRESULT",strinfo);
response.sendRedirect("resultinter.jsp");
}
String showinfoid="";
String citycode="";
String infocode="";
String infocomm="";
String cityname="";
if(dtshowinfo!=null){
for(int t=0;t<dtshowinfo.getRows().getCount();t++){
DataRow drshowinfo = dtshowinfo.getRow(t);
showinfoid=drshowinfo.getString(0);
citycode=drshowinfo.getString(1);
infocode=drshowinfo.getString(2);
infocomm=drshowinfo.getString(3);
cityname=drshowinfo.getString(4);
}
}else{
String strinfo="资源忙,请稍候!";
session.setAttribute("OPERRESULT",strinfo);
response.sendRedirect("resultinter.jsp");
}
String cityCode = request.getParameter("citycode");
String cityName = "福建省";
if ( cityCode == null || cityCode.length() == 0 ) cityCode = "0590";
else cityName = com.doone.fj1w.common.CityBean.getNameByCode(cityCode);
%>
<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>
function check()
{
if(document.all.CityCode.value=="")
{
alert("请选择地市信息!");
document.all.CityCode.focus();
return false;
}
if(document.all.INFOCODE.value=="")
{
alert("请填写信息名称!");
document.all.INFOCODE.focus();
return false;
}
if(document.all.INFOCONTENT.value=="")
{
alert("请填写信息内容!");
document.all.INFOCONTENT.focus();
return false;
}
}
</SCRIPT>
</head>
<body>
<script language="JavaScript" src="../../common/script/ChangeStyle.js"></script>
<DIV id=overDiv style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute"></DIV>
<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>
<form action="Operresult.jsp?TYPE=2" method="post" name="insertfrm">
<input type="hidden" name="citycode" value="<%= cityCode%>">
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="InnerTable">
<tr>
<td class="OuterHead" colspan="9">
<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><span id="ItemTitle">所属城市:<%= cityName%></span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="InnerHead" style="text-align:right" width="15%"><font color="red">*</font>信息名称:</td>
<td class="InnerMain" width="85%"><input name="INFOCODE" type="text" style="width: 100%" maxlength="30" value="<%=infocode%>"></td>
</tr>
<tr>
<td class="InnerHead" style="text-align:right" valign="top"><font color="red">*</font>信息内容:</td>
<td class="InnerMain" >
<textarea name="INFOCONTENT" rows="15" style="width: 100%"><%=infocomm%></textarea>
</tr>
<tr>
<td class="OuterFoot" colspan="2" align="right">
<input type="submit" class="button" value="确认" onClick="return check()">
<input type="reset" class="button" value="关闭" onclick="self.close();">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -