?? hpconf.jsp
字號:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*,java.text.*,oa.main.DealString"%>
<%
oa.bean.SysConfBean myBean = null;
try{
myBean = new oa.bean.SysConfBean();
DealString ds = new DealString();
//取得菜單類別
String strType = ds.toString((String)request.getParameter("txt_type"));
if(strType.equals(""))strType = "1";
//編號
String strId = ds.toString((String)request.getParameter("txt_id"));
//增刪改類型
String strEdit = ds.toString((String)request.getParameter("txt_edit"));
String uid = (String)session.getAttribute("zgbh");
%>
<br>
<table width="95%" cellspacing="1" cellpadding="3" bgcolor="#999999" align="center">
<tr bgcolor="#CCCCCC" align=center>
<td colspan="5"><b>主頁新聞設置</b></td>
</tr>
<tr bgcolor="#ffcc00" height=20>
<td colspan="5"></td>
</tr>
<tr align=middle bgColor=#dddddd>
<td><b>模塊序號</b></td>
<td><b>模塊名稱</b></td>
<td><b>顯示新聞條數</b></td>
<td><b>標尾是否顯示時間</b></td>
<td>管理操作</td>
<tr align=middle bgColor=#eeeeee></tr>
<%
myBean.initMain();
myBean.setType(14);
Vector vet = (Vector)myBean.getData();
for(int i=0;i<vet.size();i++)
{
Hashtable hash = (Hashtable)vet.get(i);
String strID = (String)hash.get("ID");
String strN = "";
if(strID.equals("18")||strID=="18")strN = "二級版面";
else if(strID.equals("19")||strID=="19")strN = "三級版面";
else if(strID.equals("20")||strID=="20")strN = "滾動消息";
else if(strID.equals("21")||strID=="21")strN = "焦點導讀";
else if(strID.equals("22")||strID=="22")strN = "欄目精選";
else if(strID.equals("23")||strID=="23")strN = "熱門專題";
else strN = myBean.toName(strID);
//把模塊編號轉化為模塊名稱String strName = ..............................
String strNUM = (String)hash.get("NUM");
String strIsShowtime = (String)hash.get("ISSHOWTIME");
if(strIsShowtime.equals("1")) strIsShowtime = "是";
else strIsShowtime = "否";
%>
<TR bgColor=#ffffff>
<TD align=center><%=strID%></TD>
<TD><%=strN%></TD>
<TD align=center><%=strNUM%></TD>
<TD align=center><%=strIsShowtime%></TD>
<TD align=center>
<FONT color="#99cc00">
【<A onclick="edit('<%=strID%>');" style="cursor:hand;">修改</A>】
</FONT>
</TD>
</TR>
<%
}
%>
</table>
<script>
function add(id)
{
document.all.txt_type.value = "14";
document.all.txt_id.value = "";
document.all.txt_edit.value = "1";
document.all.form1.action = "index.jsp";
document.all.form1.submit();
}
function edit(id)
{
document.all.txt_type.value = "14";
document.all.txt_id.value = id;
document.all.txt_edit.value = "2";
document.all.form1.action = "index.jsp";
document.all.form1.submit();
}
function del(id)
{
if(!confirm("是否真的要刪除?"))
{
}
else
{
document.all.txt_type.value = "14";
document.all.txt_id.value = id;
document.all.txt_edit.value = "3";
document.all.form1.action = "../../manageservlet";
document.all.form1.submit();
}
}
</script>
<%}finally{
if(myBean!=null)myBean.closeConn();
}%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -