📄 templatedetail.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<jsp:include page="../cp_header.jsp" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
<tr><td><a href="#" onclick="parent.menu.location='admincp.jsp?action=menu'; parent.main.location='admincp.jsp?action=home';return false;">系统设置首页</a> » 模板维护</td></tr>
</table>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td colspan="3">模板维护 - ${template.name}</td></tr>
<form method="post" action="admincp.jsp?action=tpladd&edit=${template.templateid}">
<tr class="altbg2">
<td width="25%">添加模板</td>
<td width="55%"><input type="text" name="name" size="40" maxlength="40"></td>
<td width="20%"><input class="button" type="submit" value="提 交"></td>
</tr>
</form>
<form method="post" action="admincp.jsp?action=templates&edit=${template.templateid}">
<tr class="altbg1">
<td>搜索模板内容</td>
<td><input type="text" name="keyword" size="40"></td>
<td><input class="button" type="submit" value="提 交"></td>
</tr>
</form>
</table>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td><div style="float:left; margin-left:0px; padding-top:8px"><a href="###" onclick="collapse_change('tip')">技巧提示</a></div><div style="float:right; margin-right:4px; padding-bottom:9px"><a href="###" onclick="collapse_change('tip')"><img id="menuimg_tip" src="images/admincp/menu_${collapsed ? 'add' : 'reduce'}.gif" border="0"/></a></div></td></tr>
<tbody id="menu_tip" style="display: ${collapsed ? 'none' : ''}">
<tr>
<td>
<c:choose>
<c:when test="${template.templateid==1}">
<ul><li>您正在修改默认模板,为了扩充其它模板的方便,强烈建议您不要对默认模板的内容进行修改。</ul>
<ul><li>如要修改请将要修改的模板文件复制到其它模板目录后再修改。</ul>
</c:when>
<c:otherwise>
<ul><li>本套系中并不要求必须完整,所缺少的模板将使用默认模板代替。</ul>
<ul><li>如果模板名称显示<font color="#FF0000">红色</font>,表示此模板与默认模板不相同;显示<font color="#00FF00">绿色</font>,表示此模板为用户添加的模板文件,默认模板没有相应的模板文件存在。</ul>
<ul><li>如果您要发布此套模板,建议您把与默认模板相同的模板文件删除后再发布。</ul>
</c:otherwise>
</c:choose>
</td>
</tr>
</tbody>
</table>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td>选择模板 <c:if test="${keyword !=''}">- 关键字 <i>${keyword}</i> - <a href="admincp.jsp?action=templates&edit=${template.templateid}">[查看全部模板]</a></c:if></td></tr>
<tr class="altbg1">
<td>
<ul>
<li><b>JspRun! 语言包</b>
<c:forEach items="${languageFiles}" var="languagefile"><ul><li>${languagefile.key} <a href="admincp.jsp?action=tpledit&templateid=${template.templateid}&fn=${languagefile.value}">[编辑]</a></ul></c:forEach>
</ul>
<ul>
<li><b>JspRun! 模板</b>
<c:forEach items="${jspFiles}" var="jspFile">
<ul>
<li><b>${jspFile.key}</b>
<ul>
<c:forEach items="${jspFile.value}" var="name">
<li>
<font color="${colors[name.key]}">${name.key}</font>
<c:choose>
<c:when test="${fsmap.admincp_tpledit>0}">
<a href="admincp.jsp?action=tpledit&templateid=${template.templateid}&fn=${name.value}&keyword=${keyword}&nosame=${colors[name.key]=='#FF0000'?'true':''}">[编辑]</a>
<a href="admincp.jsp?action=tpledit&templateid=${template.templateid}&fn=${name.value}&delete=yes">[删除]</a>
<c:if test="${colors[name.key]=='#FF0000'}"><a href="admincp.jsp?action=tpledit&templateid=${template.templateid}&fn=${name.value}&reset=yes">[恢复默认]</a></c:if>
</c:when>
<c:otherwise>
<a href="admincp.jsp?action=tpledit&templateid=${template.templateid}&fn=${name.value}&keyword=${keyword}">[查看]</a>
</c:otherwise>
</c:choose>
</c:forEach>
</ul>
</ul>
</c:forEach>
</ul>
</td>
</tr>
</table>
<jsp:include page="../cp_header.jsp" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -