?? 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 strParentId = request.getParameter("pid");
if(igec.util.Tool.IsEmpty(strParentId)) strParentId = "0";
String strCurMenuName = igec.site.base.business.SysUtilBusiness.getMenuName(strMenuId);
String strCurMenuPic = igec.site.base.business.DataUtilBusiness.getFieldValue("SHOWIMG","TAB_IGECMENU","WHERE ID='" + strMenuId + "'");
java.util.ArrayList pathList = new java.util.ArrayList();
igec.site.base.bean.PathListObj plo = new igec.site.base.bean.PathListObj();
plo.setStrTableName("TAB_WEBVOTE");
plo.setStrIdName("ID");
plo.setStrParentIdName("PARENTID");
plo.setStrCurPId(strParentId);
plo.setStrTitleName("TOPIC");
int iFlag = igec.site.base.business.DataUtilBusiness.getPathList(pathList,plo);
if(iFlag<0){
showError("獲取路徑數據出現異常!",request,response);
return;
}
%>
<html>
<head>
<title>添加<%=strCurMenuName%>--<%=site.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="<%=igec.site.base.bean.SitePara.strVirtualName%>/js/CalendarDlg.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
</head>
<body class="bodycolor" topmargin="5" 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%>&pid=<%=strParentId%>" method="post" name="form1" onSubmit="return Check(this);" target="_IGEC_YL_IFRAME" >
<tr>
<td colspan=2 class="TableHeader"><img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" align="absmiddle"> 基本選項 (必填) <font color="blue"><b>添加<%=strCurMenuName%>--<%=site.bean.SitePara.strWebTitle%></b></font>
</td>
</tr>
<tr>
<td nowrap class="TableData"> 調查主題:</td>
<td class="TableData">
<input type="text" name="title" size="30" maxlength="50" class="BigInput" value="" EmptyDisable label="調查主題"> <font color="#FF0000">必填</font> </td>
</tr>
<tr>
<td colspan=2 class="TableHeader"><img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" align="absmiddle"> 高級選項 (建議使用默認值)</td>
</td>
</tr>
<%if("0".equals(strParentId)){%>
<tr>
<td nowrap class="TableData">是否啟用:</td>
<td class="TableData">
<input type="radio" name="stopFlag" value="0" checked>
啟用
<input type="radio" name="stopFlag" value="1">
停用 </td>
</tr>
<%}%>
<tr>
<td nowrap class="TableData">調查類型:</td>
<td class="TableData">
<input type="radio" name="voteType" value="0" checked>
單選
<input type="radio" name="voteType" value="1">
多選 </td>
</tr>
<%if("0".equals(strParentId)){%>
<%if('1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenVoteDateRange)){%>
<tr>
<td nowrap class="TableData">開始日期:</td>
<td class="TableData">
<input type="text" name="beginDate" id="beginDate" size="12" maxlength="20" class="BigInput" value="<%=igec.util.Tool.getStrTime("",1)%>" EmptyDisable label="調查開始日期">
<img align="absMiddle" src="<%=strSkinBase%>/images/calendar.gif" border="0" style="cursor:hand" onclick="fPopUpCalendarDlg('<%=igec.site.base.bean.SitePara.strVirtualName%>',getObject('beginDate'));">
格式:2007-07-07 </td>
</tr>
<tr>
<td nowrap class="TableData">結束日期:</td>
<td class="TableData">
<input type="text" name="endDate" id="endDate" size="12" maxlength="20" class="BigInput" value="<%=igec.util.Tool.getStrTime("",1)%>" EmptyDisable label="調查結束日期">
<img align="absMiddle" src="<%=strSkinBase%>/images/calendar.gif" border="0" style="cursor:hand" onclick="fPopUpCalendarDlg('<%=igec.site.base.bean.SitePara.strVirtualName%>',getObject('endDate'));">
格式:2007-07-07 </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 + -