?? add.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 strLinkType = igec.util.Tool.getStr(request.getParameter("type"));
if(igec.util.Tool.IsEmpty(strLinkType)) strLinkType = "0";
String strPicType = igec.util.Tool.getStr(request.getParameter("pic"));
if(igec.util.Tool.IsEmpty(strPicType)) strPicType = "0";
String strCurMenuName = igec.site.base.business.SysUtilBusiness.getMenuName(strMenuId);
String strCurMenuPic = igec.site.base.business.DataUtilBusiness.getFieldValue("SHOWIMG","TAB_IGECMENU","WHERE ID='" + strMenuId + "'");
%>
<html>
<head>
<title>添加<%=strCurMenuName%>--<%=igec.site.base.bean.SitePara.strWebTitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="<%=strCssPath%>">
<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="<%=strSkinBase%>/js/forbid.js"></script>
<script language="javascript">
<!--
function addUploadFile_Show(strFilePath,strFileType){
try{
document.all("picPath").value = strFilePath;
document.all("specialShowPic").src = "<%=site.bean.SitePara.strVirtualName%>/"+strFilePath;
document.all("specialShowPic").style.display="";
}catch(e){
alert(e.description);
}
resizeWin('objBody');
}
//-->
</script>
</head>
<body class="bodycolor" topmargin="0" onload="resizeWin('objBody');setFocus('title');">
<table border="0" name="objBody" id="objBody" width="600" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="?action=save&iid=<%=strMenuId%>&type=<%=strLinkType%>" method="post" name="form1" onSubmit="return Check(this);" target="_IGEC_YL_IFRAME">
<input type="hidden" value="" name="picPath" id="picPath">
<tr>
<td colspan=2 class="TableHeader"><img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" align="absmiddle"> 基本選項 (必填) <font color="blue"><b>添加<%=strCurMenuName%></b></font>
</td>
</tr>
<tr>
<td nowrap class="TableData"> 名稱:</td>
<td class="TableData">
<input type="text" name="title" size="20" maxlength="40" class="BigInput" value="" EmptyDisable label="名稱"> <font color="#FF0000">必填</font> </td>
</tr>
<tr>
<td nowrap class="TableData"> 鏈接路徑:</td>
<td class="TableData">
<input type="text" name="linkPath" size="40" maxlength="127" class="BigInput" value="" label="鏈接路徑"></td>
</tr>
<tr>
<td colspan=2 class="TableHeader"><img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" align="absmiddle"> 高級選項 (建議使用默認值)</td>
</td>
</tr>
<tr>
<td nowrap class="TableData">是否顯示:</td>
<td class="TableData">
<input type="radio" name="showFlag" value="1" checked> 是
<input type="radio" name="showFlag" value="0"> 否
</td>
</tr>
<%
if("1".equals(strPicType)){
%>
<tr>
<td nowrap class="TableData">上傳圖片:</td>
<td valign="middle" class="TableData"><iframe class="TBGen" style="top:2px" ID="UploadFiles" src="<%=site.bean.SitePara.strVirtualName%>/inc/upload/?wt=<%=request.getParameter("wt")%>&ft=pic&recf=addUploadFile_Show" frameborder=0 scrolling=no width="350" height="25"></iframe><br>
<img src="" name="specialShowPic" style="display:none" width="100" height="45" style="cursor:hand" onclick="window.open(this.src);" alt="點擊看原圖"/></td>
</tr>
<%
}
%>
<tr>
<td nowrap class="TableData">排序號(同級信息排序):</td>
<td class="TableData">
<input type="text" name="xh" size="6" maxlength="5" class="BigInput" value="999"> 可輸入任意整數</td>
</tr>
<tr align="center" class="TableControl">
<td colspan="2" nowrap>
<input type="submit" value="保存" class="BigButton">
<input type="button" value="關閉" class="BigButton" onClick="javascript:window.close();"> </td>
</tr>
</form>
</table>
<iframe name="_IGEC_YL_IFRAME" id="_IGEC_YL_IFRAME" width="100" height="100" style="display:none"></iframe>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -