?? manage.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;
}
%>
<%
igec.site.extend.bean.VoteObj vote = (igec.site.extend.bean.VoteObj)request.getAttribute("vote");
java.util.ArrayList lists = (java.util.ArrayList) request.getAttribute("lists");
igec.site.base.bean.SysObj info = (igec.site.base.bean.SysObj) request.getAttribute("info");
if(lists==null || info==null || vote==null){
showError("獲取頁面數據失敗!",request,response);
return;
}
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(vote.getStrID());
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="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script language="javascript">
function updateSubmit(voteInfoIdTemp){
document.webVoteInfo.voteInfoID.value=voteInfoIdTemp;
if(Check(document.webVoteInfo)){
document.webVoteInfo.submit();
}else{
return false;
}
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="resizeWin('objBody');setFocus('title');">
<div name="objBody" id="objBody" width="600">
<table border="0" width="600" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big" nowrap><img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" WIDTH="22" HEIGHT="20" align="absmiddle" border="0"><span class="big3"><%=strCurMenuName%></span>
<%for(int i=0;i<pathList.size();i++){igec.site.base.bean.SysObj so = (igec.site.base.bean.SysObj)pathList.get(i);%> -> <span class="big3"><%=so.getStrValue2()%></span><%}%>
<br></td>
</tr>
</table>
<table border="0" cellspacing="0" width="95%" cellpadding="0">
<tr>
<td height="40" align="right" valign="middle">| <a href="javascript:" onClick="javascript:openWindow('?action=addInfo&iid=<%=strMenuId%>&vid=<%=vote.getStrID()%>','680','200');"><span class="big3">添加調查項</span></a> | <a href="javascript:" onClick="javascript:openWindow('<%=strSkinBase%>/system/order.jsp?iid=<%=strMenuId%>&title=NAME&table=TAB_WEBVOTEINFO&vid=<%=vote.getStrID()%>','250','300');"><span class="big3">排序</span></a></td>
</tr>
</table>
<form action="?action=&iid=<%=strMenuId%>&vid=<%=vote.getStrID()%>" name="webVoteInfo" onSubmit="return Check(this);">
<table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="2">
<tr class="TableData">
<td width="16%" align="center">ID</td>
<td width="51%" align="center">調查項名稱</td>
<td width="18%" align="center">投票數量</td>
<td width="15%" align="center">操作</td>
</tr>
<%
for(int i=0;i<lists.size();i++){
igec.site.base.bean.StandSysObj sso = (igec.site.base.bean.StandSysObj)lists.get(i);
%>
<tr class="TableData">
<td width="16%" align="center"><%=sso.getStrValue1()%></td>
<td width="51%" align="left"><%=sso.getStrValue2()%></td>
<td width="18%" align="center"><%=sso.getStrValue3()%></td>
<td width="15%" align="center">
<a href="javascript:" onClick="javascript:openWindow('?action=editInfo&iid=<%=strMenuId%>&id=<%=sso.getStrValue1()%>','680','200');">修改</a>
<a href="javascript:" onClick="javascript:delRs('?action=delInfo&iid=<%=strMenuId%>&id=<%=sso.getStrValue1()%>&vid=<%=vote.getStrID()%>');">刪除</a> </td>
</tr>
<%
}
%>
</table>
<input type="hidden" name="voteInfoID" value="">
<input type="hidden" name="voteInfo" value="voteInfo"/>
</form>
<table border="0" cellspacing="0" width="95%" cellpadding="0">
<tr><td height="40" <%if(lists.size()>0){%>align="right"<%}else{%>align="center"<%}%> valign="middle"><span class="big3"><%=info.getStrValue5()%></span></td></tr>
</table>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -