?? 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 + -