📄 list.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/developer.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
String strModelType = igec.util.Tool.getStr(request.getParameter("iid"));
if(igec.util.Tool.IsEmpty(strModelType)){
showError("未指定模板类型!",out);
return;
}
String strModelZID = igec.util.Tool.getStr(request.getParameter("id"));
if(igec.util.Tool.IsEmpty(strModelZID)){
showError("未指定模板组ID!",out);
return;
}
String strModelTypeName = igec.site.base.business.SysUtilBusiness.getMenuName(strModelType);
String strModelZM = igec.site.base.business.DataUtilBusiness.getFieldValue("TITLE","TAB_IGECMODELZ","WHERE TYPE='" + strModelZID + "'");
java.util.ArrayList lists = new java.util.ArrayList();
int iFlag = igec.site.base.business.DataUtilBusiness.getDataList(lists,"SELECT ID,SHOWTP,TITLE,ISDEF,ISSYS FROM TAB_IGECMODELT WHERE TYPE='" + strModelZID + "' ORDER BY XH,ID",5);
if(iFlag<0){
showError(out);
return;
}
%>
<html>
<head>
<title><%=strModelTypeName%>管理</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">
<!--
var g_ShowType = "";
function openMaxWin(strHref){
openWindow(strHref,screen.availWidth,screen.availHeight);
}
function setDefault(){
var lsRsId = getRadioValue("RSID");
if(lsRsId=="NOSEL"){
alert("请选择相应的模板!");
return;
}else{
var strHref = "<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/model.do?action=zdone&iid=<%=strMenuId%>&type=<%=strModelZID%>&id=" + lsRsId + "&mr=" + Math.random();
__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}
}
function saveModelId(strResult){
if(strResult==null) return;
var strHref = "<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/model.do?action=zsel&iid=<%=strMenuId%>&type=<%=strModelZID%>&id=" + strResult + "&stype=" + g_ShowType + "&mr=" + Math.random();
__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}
function selectModel(strSelValue,strShowType,strModelType){
g_ShowType = strShowType;
openWindow('<%=strSkinBase%>/system/model.jsp?ctype=multi&recf=saveModelId&title=请选择对应的模板文件&selm=' + strSelValue + "&mtype=" + strModelType,'500','200');
}
//-->
</script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="<%=strSkinBase%>/images/notify_new.gif" align="absmiddle"><span class="big3">新建模板组风格</span><br>
</td>
</tr>
</table>
<div align="center">
<input type="button" value="新建模板组风格" class="BigButton" onClick="openWindow('add.jsp?iid=<%=strModelType%>&type=<%=strModelZID%>','200','200');" title="新建模板组风格">
<input type="button" value="信息排序" class="BigButton" onClick="openWindow('<%=strSkinBase%>/system/order.jsp?table=TAB_IGECMODELT&iid=<%=strModelType%>&type=<%=strModelZID%>','200','200');" title="模板组风格显示排序">
</div>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
<tr>
<td background="<%=strSkinBase%>/images/dian1.gif" width="100%"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="<%=strSkinBase%>/images/notify_open.gif" WIDTH="22" HEIGHT="20" align="absmiddle"> <a href="index.jsp?iid=<%=strModelType%>"><span class="big3"><%=strModelTypeName%>管理</span></a> -> <span class="big3"><%=strModelZM%></span>
</td>
</tr>
</table>
<br>
<div align="center">
<table border="0" cellspacing="1" width="600" class="small" bgcolor="#000000" cellpadding="3">
<%
for(int i=0;i<lists.size();i++){
igec.site.base.bean.SysObj so = (igec.site.base.bean.SysObj)lists.get(i);
if(so!=null){
String strSelectModel = "";
java.util.ArrayList selmList = new java.util.ArrayList();
igec.site.base.business.DataUtilBusiness.getDataList(selmList,"SELECT MODELID FROM TAB_IGECMODELD WHERE TYPE='" + strModelZID + "' AND SHOWTP='" + so.getStrValue2() + "' ORDER BY ID",1);
for(int ntt=0;ntt<selmList.size();ntt++){
if(igec.util.Tool.IsEmpty(strSelectModel)){
strSelectModel = ((igec.site.base.bean.SysObj)selmList.get(ntt)).getStrValue1();
}else{
strSelectModel += "," + ((igec.site.base.bean.SysObj)selmList.get(ntt)).getStrValue1();
}
}
%>
<tr class="TableData" align="center">
<td nowrap width="30"><input type="radio" name="RSID" id="RSID" value="<%=so.getStrValue1()%>" <%if("1".equals(so.getStrValue4())){%> checked <%}%>></td>
<td nowrap width="60"><%=so.getStrValue2()%></td>
<td nowrap><%=so.getStrValue3()%></td>
<td nowrap><a href="javascript:" onclick="openWindow('edit.jsp?iid=<%=strMenuId%>&type=<%=strModelZID%>&id=<%=so.getStrValue1()%>','200','200');">编辑</a> <a href="javascript:" onclick="selectModel('<%=strSelectModel%>','<%=so.getStrValue2()%>','<%=strModelZID%>');">选择对应模板文件</a>
<%if("0".equals(so.getStrValue5())){%>
<a href="javascript:delRs('<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/model.do?action=zdel&id=<%=so.getStrValue1()%>');">删除</a>
<%}%>
</td>
</tr>
<%}}%>
<thead class="TableHeader">
<td nowrap align="center">选择</td>
<td nowrap align="center">关键字</td>
<td nowrap align="center">名称</td>
<td nowrap align="center">操作</td>
</thead>
<tr class="TableControl" style="display:">
<td colspan="5" align="right">
<input type="button" value="设为默认" class="BigButton" onClick="setDefault();" title="设为默认模板">
</td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -