?? index.jsp
字號:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/admin.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
/*****
*
* 功能介紹:根據當前的MenuId,對應的action名和當前用戶,判斷是否有進入此頁面的權限
*
*/
if(checkPv(strMenuId,"add",user)<0){
noPv(out);
return;
}
%>
<%
String strCurMenuName = igec.site.base.business.SysUtilBusiness.getMenuName(strMenuId);
String strCurMenuPic = igec.site.base.business.DataUtilBusiness.getFieldValue("SHOWIMG","TAB_IGECMENU","WHERE ID='" + strMenuId + "'");
String strIntroId = igec.util.Tool.getStr(request.getParameter("MenuID"));
igec.site.extend.bean.IntroObj intro = new igec.site.extend.bean.IntroObj();
if(!igec.util.Tool.IsEmpty(strIntroId)){
intro.setStrId(strIntroId);
int iFlag = igec.site.extend.business.IntroBusiness.getIntro(intro);
if(iFlag==-1){
showError(out);
return;
}
}else{
intro.setStrId("");
intro.setStrIID("");
intro.setStrContent("");
intro.setStrTitle("");
}
%>
<html>
<head>
<title><%=strCurMenuName%></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 onLoadMenuId(strId){
if(strId==""){
document.myform.MenuID.focus();
return false;
}
self.location="?iid=<%=strMenuId%>&MenuID=" + strId;
}
function addPic(strFileName){
}
function checkForm(loObj){
if (editor.EditMode.checked==true)
document.form1.Content.value=editor.HtmlEdit.document.body.innerText;
else
document.form1.Content.value=editor.HtmlEdit.document.body.innerHTML;
if(!Check(loObj)) return false;
if(document.form1.Content.value==""){
alert("信息內容不能為空!");
editor.HtmlEdit.focus();
return false;
}
document.form1.Content.value = clearSiteUrl(document.form1.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.form1.submit();
}else{//超時
alert("警告:您的登錄有效期已過,請將當前編輯的信息另外保存,重新登錄之后再進行操作!");
}
}
function init(){
SetSelValue("ClassId","<%=strIntroId%>");
}
//-->
</script>
</head>
<body class="bodycolor" topmargin="5" onload="init();">
<table border="0" width="90%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" WIDTH="22" HEIGHT="20" align="absmiddle" border="0"><a href="?iid=<%=strMenuId%>"><span class="big3"><%=strCurMenuName%></span></a>
</td>
</tr>
</table>
<form action="<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/intro.do?action=update&iid=<%=strMenuId%>&id=<%=intro.getStrId()%>&cid=<%=intro.getStrIID()%>" method="post" name="form1" id="form1" onsubmit="return checkForm(this);" target="_Igec_Intro_RunForm">
<table border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#000000" class="small" width="90%">
<tr class="TableHeader">
<td height="22" colspan="6" align="center"><b>信 息 發 布</b></td>
</tr>
<tr>
<td align="right" class="TableData"><strong>信息分類:</td>
<td class="TableData" colspan="2">
<select name="ClassId" EmptyDisable label="信息分類" onchange="onLoadMenuId(this.value);">
<option value="">請選擇分類</option>
<script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/file/static/js/introtype.js"></script>
</select> <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td align="right" class="TableData"><strong>標題:</td>
<td colspan="2" class="TableData"><input name="Title" type="text" id="Title" value="<%=intro.getStrTitle()%>" size="70" maxlength="100" label="標題" EmptyDisable> <font color="#FF0000">*</font>
</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 colspan="2" class="TableData">
<textarea name="Content" style="display:none" rows="1" cols="20"><%=intro.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>
</table>
<div align="center">
<p>
<input name="PaginationType" type="hidden" id="PaginationType" value="0">
<input name="Add" type="submit" id="Add" value=" 更 新 " style="cursor:hand;" title="將當前的介紹信息更新至數據庫">
<!--<input name="Preview" type="button" id="Preview" value=" 預 覽 " onClick="javascript:openMaxWindow('<%=site.bean.SitePara.strVirtualName%>/ShowIntro.do?action=preview');" style="cursor:hand;">-->
</p>
</div>
</form>
<iframe id="_Igec_Intro_RunForm" name="_Igec_Intro_RunForm" src="" width="0" height="0" style="display:none"></iframe>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -