📄 edit.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/super.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
String strId = igec.util.Tool.getStr(request.getParameter("id"));
if(igec.util.Tool.IsEmpty(strId)){
showError("请指定要查看的帮助信息ID!",out);
return;
}
String strCurMenuPic = igec.site.base.business.DataUtilBusiness.getFieldValue("SHOWIMG","TAB_IGECMENU","WHERE ID='" + strMenuId + "'");
igec.site.base.bean.HelpInfo help = new igec.site.base.bean.HelpInfo();
help.setStrId(strId);
int iFlag = igec.site.base.business.HelpBusiness.getHelpInfo(help);
if(iFlag<0){
showError(out);
return;
}
%>
<html>
<head>
<title>编辑系统帮助信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="<%=strCssPath%>">
<script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/js/clear.jsp"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script Language="JavaScript">
<!--
function addPic(strFileName){
}
function CheckForm(loObj){
if (editor.EditMode.checked==true)
document.myform.Content.value=editor.HtmlEdit.document.body.innerText;
else
document.myform.Content.value=editor.HtmlEdit.document.body.innerHTML;
if(!Check(loObj)) return false;
if(document.myform.Content.value==""){
alert("信息内容不能为空!");
editor.HtmlEdit.focus();
return false;
}
document.myform.Content.value = clearSiteUrl(document.myform.Content.value);
//检查是否SESSION已经丢失
var strHref = "<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/work.do?action=timeout&recf=timeIsOut&mr=" + Math.random();
__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
return false;
}
function timeIsOut(lsValue){
if(lsValue=="0"){//没有超时
document.myform.submit();
}else{//超时
alert("警告:您的登录有效期已过,请将当前编辑的信息另外保存,重新登录之后再进行操作!");
}
}
//-->
</script>
</head>
<body class="bodycolor" topmargin="5" onload="resizeWin('objBody');">
<table border="0" name="objBody" id="objBody" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/syshelp.do?action=update&ID=<%=strId%>&CID=<%=help.getStrCid()%>" method="post" name="myform" onsubmit="return CheckForm(this);" target="_Igec_Help_RunForm">
<tr>
<td nowrap class="TableHeader" colspan="2"><img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" align="absMiddle"> 基本选项 (必填):</td>
</tr>
<tr>
<td nowrap class="TableContent" width="120">ID标志:</td>
<td nowrap class="TableContent">
<span class="big3"><%=help.getStrId()%></span>
</td>
</tr>
<tr>
<td nowrap class="TableContent" width="120">标题:</td>
<td nowrap class="TableContent">
<input type="text" name="TITLE" class="BigInput" size="50" maxlength="100" EmptyDisable label="标题" value="<%=help.getStrTitle()%>"> <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td nowrap class="TableContent" width="120">关键字:</td>
<td nowrap class="TableContent">
<input type="text" name="KEY" class="BigInput" size="40" maxlength="100" label="关键字" value="<%=help.getStrKey()%>"> 以"|"进行分割
</td>
</tr>
<tr>
<td nowrap class="TableHeader" colspan="2"><img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" align="absMiddle"> 帮助内容:</td>
</tr>
<tr>
<td width="100" align="right" valign="top" class="TableData"><p><strong>信息内容:</p>
<p align="left"><font color="#006600">
· 换行请按Shift+Enter</font><br>
<font color="#006600">·另起一段请按Enter</font><br>
<font color="#006600">·上传WORD中的图片请将本站加入信任站点</font>
</p></td>
<td class="TableData">
<textarea name="Content" style="display:none" rows="1" cols="20"><%=help.getStrContent()%></textarea>
<iframe ID="editor" src="<%=site.bean.SitePara.strVirtualName%>/IgecEditor/editor.jsp?id=Content" frameborder=1 scrolling=no width="600" height="405"></iframe>
</td>
</tr>
<tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="submit" value="更 新" class="BigButton" title="更新系统帮助信息" name="button">
<input type="button" value="关 闭" class="BigButton" title="关闭窗口" onclick="window.close();">
</td>
</form>
</table>
<iframe id="_Igec_Help_RunForm" name="_Igec_Help_RunForm" src="" width="0" height="0" style="display:none"></iframe>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -