📄 www_additems_interf.jsp
字号:
<%@ page contentType="text/html;charset=GBK" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<!-------------------------------------------------------------------
标准JavaScript库引用
--------------------------------------------------------------------->
<script language="JavaScript" src="public.js"></script>
<!--------------------------------------------------------------------
当前页面JavaScript函数部分,包括提交验证,页面动作,具体目标等代码
---------------------------------------------------------------------->
<script language="JavaScript">
function Check_Value(current_obj)
{
if(!current_obj.lmmc.value && current_obj.lmmc.value == "")
{
alert("请输入栏目名称!");
}
else if (!current_obj.modelfile.value && current_obj.modelfile.value == "")
{
alert("请选择模版文件!");
}
else
{
current_obj.submit();
}
}
function check_none(current_obj)
{
if (current_obj.advshow.checked)
{
current_obj.Submit1.disabled=false;
}
else
{
current_obj.Submit1.disabled=true;
}
}
</script>
<!--------------------------------------------------------------------
页面HTML表现部分
---------------------------------------------------------------------->
<html>
<head>
<title>网站后台综合管理系统</title>
<link href="style/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<logic:notEmpty name="result" scope="request">
<logic:iterate id="result1" name="result" scope="request">
<bean:define id="upItemId" name="result1" property="sjlmbs" type="java.lang.String"/>
<bean:define id="itemClass" name="result1" property="lmjb" type="java.lang.String"/>
<html:form action="/addItemInfo" enctype="multipart/form-data">
<table width="100%" border="5" cellpadding="10" cellspacing="1" align="center" bordercolor="#D1D1D1" >
<tr>
<td width="18%" class=grayD><font size="2">栏目名称:</font></td>
<td class=grayD> <font size="2">
<html:text property="lmmc" size="35" />
</font><font size="2" color=red>*</font></td>
</tr>
<tr>
<td width="18%" class=grayD><font size="2">导入模板:</font></td>
<td class=grayD><font size="2">
<html:file property="modelfile"/>
</font><font size="2" color=red>*</font>[网站需要展示的页面]</td>
</tr>
<tr>
<td width="18%"class=grayD><font size="2">首页栏目:</font></td>
<td class=grayD><font size="2">
<html:select property="showfirst" size="1">
<html:option value="0" >0:不在首页显示</html:option>
<html:option value= "1">1:在首页显示(方式一)</html:option>
<html:option value= "2">2:在首页显示(方式二)</html:option>
<html:option value= "3">3:在首页显示(方式三)</html:option>
<html:option value= "4">4:在首页显示(方式四)</html:option>
<html:option value= "5">5:在首页显示(方式五)</html:option>
</html:select>
</font>[是否需要在网站首页现实,不同的方式有不同的现实方式]</td>
</tr>
<tr>
<td width="18%" class=grayD><font size="2">栏目级别:</font></td>
<td class=grayD>
新建栏目级别:
<bean:write name="result1" property="lmjb" filter="false"/>
级
<input type=hidden name=lmjb value=<%=itemClass%>>
</td>
</tr>
<logic:greaterThan name="result1" property="lmjb" value="1">
<tr>
<td width=18% class=grayD>上级栏目名:</td>
<td class=grayD>
<input name=sjlmbs type=hidden value=<%=upItemId%>>
<bean:write name="result1" property="sjlmmc" filter="false"/>
</td>
</tr>
</logic:greaterThan>
<tr>
<td width="18%" class=grayD><font size="2">显示顺序:</font></td>
<td class=grayD> <font size="2">
<html:select property="displayrage" size="1">
<html:option value= "1">1</html:option>
<html:option value= "2">2</html:option>
<html:option value= "3">3</html:option>
<html:option value= "4">4</html:option>
<html:option value= "5">5</html:option>
<html:option value= "6">6</html:option>
<html:option value= "7">7</html:option>
<html:option value= "8">8</html:option>
<html:option value= "9">9</html:option>
<html:option value= "10">10</html:option>
</html:select>
</font>[网页导航的显示顺序]</td>
</tr>
<tr>
<td class="grayE" colspan=2>
<INPUT id=advcheck name=advshow type=checkbox value=0 onclick="check_none(this.form);">
以上资料正确无误。
<td>
</tr>
<tr>
<td colspan=2 class=grayD align="right">
<input type="button" name="Submit1" value="确定新增栏目" onclick="Check_Value(this.form)" disabled=true>
</td>
</tr>
</table>
<input type=hidden name="trade_type_code" value="0117">
</html:form>
</logic:iterate>
</logic:notEmpty>
<logic:empty name="result" scope="request">
<html:form action="/addItemInfo" enctype="multipart/form-data">
<table width="100%" border="5" cellpadding="10" cellspacing="1" align="center" bordercolor="#D1D1D1" >
<tr>
<td width="18%" class=grayD><font size="2">栏目名称:</font></td>
<td class=grayD> <font size="2">
<html:text property="lmmc" size="35" />
</font><font size="2" color=red>*</font></td>
</tr>
<tr>
<td width="18%" class=grayD><font size="2">导入模板:</font></td>
<td class=grayD><font size="2">
<html:file property="modelfile"/>
</font><font size="2" color=red>*</font>[网站需要展示的页面]</td>
</tr>
<tr>
<td width="18%"class=grayD><font size="2">首页栏目:</font></td>
<td class=grayD><font size="2">
<html:select property="showfirst" size="1">
<html:option value="0" >0:不在首页显示</html:option>
<html:option value= "1">1:在首页显示(方式一)</html:option>
<html:option value= "2">2:在首页显示(方式二)</html:option>
<html:option value= "3">3:在首页显示(方式三)</html:option>
<html:option value= "4">4:在首页显示(方式四)</html:option>
<html:option value= "5">5:在首页显示(方式五)</html:option>
</html:select>
</font>[是否需要在网站首页现实,不同的方式有不同的现实方式]</td>
</tr>
<tr>
<td width="18%" class=grayD><font size="2">栏目级别:</font></td>
<td class=grayD>
新建栏目级别:1 级
<input type=hidden name=lmjb value="1">
</td>
</tr>
<tr>
<td width=18% class=grayD>上级栏目名:</td>
<td class=grayD>
<h4>无上级栏目</4>
</td>
</tr>
<input name=sjlmbs type=hidden>
<tr>
<td width="18%" class=grayD><font size="2">显示顺序:</font></td>
<td class=grayD> <font size="2">
<html:select property="displayrage" size="1">
<html:option value= "1">1</html:option>
<html:option value= "2">2</html:option>
<html:option value= "3">3</html:option>
<html:option value= "4">4</html:option>
<html:option value= "5">5</html:option>
<html:option value= "6">6</html:option>
<html:option value= "7">7</html:option>
<html:option value= "8">8</html:option>
<html:option value= "9">9</html:option>
<html:option value= "10">10</html:option>
</html:select>
</font>[网页导航的显示顺序]</td>
</tr>
<tr>
<td class="grayE" colspan=2>
<INPUT id=advcheck name=advshow type=checkbox value=0 onclick="check_none(this.form);">
以上资料正确无误。
<td>
</tr>
<tr>
<td colspan=2 class=grayD align="right">
<input type="button" name="Submit1" value="确定新增栏目" onclick="Check_Value(this.form)" disabled=true>
</td>
</tr>
</table>
<input type=hidden name="trade_type_code" value="0117">
</html:form>
</logic:empty>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -