📄 update_link_page.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java" errorPage=""%>
<%request.setCharacterEncoding("GBK");%>
<%@ page import="java.text.*"%>
<%@ page import="com.doone.webtemplate.*"%>
<%@ page import="java.util.*"%>
<%@ page import="com.doone.util.FileLogger"%>
<style type="text/css">
<!--
body {
margin-top: 0px;
}
-->
</style>
<style>
.botton {
font-size: 12px;
color: #804000;
BORDER-RIGHT: #666666 1px solid;
BORDER-TOP: #666666 1px solid;
BORDER-LEFT: #666666 1px solid;
BORDER-BOTTOM: #666666 1px solid;
BACKGROUND-COLOR: #ffffff;
}
.add_zl {
font-size: 12px;
line-height: 18px;
color: #333333;
text-decoration: none;
}
body {
margin-top: 0px;
}
.biaoti {
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
}
.style4 {
color: #FF0000;
font-weight: bold;
font-size: 12px;
}
</style>
<%
String action = request.getParameter("action");
String str = (String)request.getParameter("name");
String code = (String)request.getParameter("code");
String desc = (String)request.getParameter("desc");
String city_code = (String)request.getParameter("citycode");
if("del".equals(action)){
if(str != null && code != null){
ModuleConfig mc = TemplateFactory.getModuleConfig(code);
mc.removePage(str);
TemplateFactory.saveConfig();
}
}
if("update".equals(action)){
if(str != null && desc != null && code != null){
ModuleConfig mc = TemplateFactory.getModuleConfig(code);
mc.updatePage(str,desc);
TemplateFactory.saveConfig();
}
}
if("add".equals(action)){
//增加
if(city_code != null && desc != null && str != null && code != null){
ModuleConfig mc = TemplateFactory.getModuleConfig(code);
PageConfig pc = mc.newPageConfig();
//wull 2006-1-26增加地市区别key值
int b = str.indexOf("?");
//查看路径是否带有参数
if(b == -1){
str = str+"?city_code_id="+city_code;
}else{
str = str+"&city_code_id="+city_code;
}
pc.setName(str);//路径
pc.setDesc(desc);//说明
Date now = new Date();
pc.setCreateTime(now);
pc.setParam("citycode", city_code);
mc.appendPage(pc);
TemplateFactory.saveConfig();
//TemplateFactory.loadConfig();
}
}
%>
<link href="../../common/style/main.css" rel="stylesheet" type="text/css" />
<table id="ibtnPanel" style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
cellpadding="0" width="100%" border="0">
<tr bgcolor="#efefef" height="33">
<td align="left" valign="middle" id="ibtnaddResearch" title="" onclick="return fnToolAddResearch();" defaultclass="btnDefault" overclass="btnOver" downclass="btnDown"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="add_zl">
<tr>
<td height="27" bgcolor="#f5f5f5"> <a href="edit_web_index.jsp">返回修改首页导航</a></td>
</tr>
</table></td>
</tr>
</table>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="0" class="add_zl">
<tr>
<td> </td>
</tr>
<tr>
<td align="center">正在执行您的操作,请稍候!!!</td>
</tr>
<tr>
<td align="center"><span id=BackSecs class="style4"></span></td>
</tr>
</table>
<script>
function countDown(Secs) {
BackSecs.innerText=Secs;
if(Secs>0) {
setTimeout("countDown("+Secs+"-1)",1000);
}
else {
window.location="link_page.jsp?code=<%=code%>";
}
}
countDown(5);
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -