📄 index.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/admin.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
java.util.ArrayList lists = new java.util.ArrayList();
int iFlag = igec.site.base.business.MWorkBusiness.getUserHrefList(lists,user);
if(iFlag<0){
showError(out);
return;
}
String strNextXh = igec.site.base.business.DataUtilBusiness.getMaxField("XH","TAB_ADMINHREF");
try{
strNextXh = String.valueOf(Integer.parseInt(strNextXh,10) + 1);
}catch(Exception ee){
strNextXh = "1";
}
%>
<html>
<head>
<title>个人收藏夹设置</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="<%=strCssPath%>">
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script language="javascript">
<!--
function sendForm(loForm){
if(!Check(loForm)) return false;
try{
aJax_SendForm(loForm,"");
}catch(eee){
alert(eee.description);
}
}
function deleteHref(strId){
delRs("<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/work.do?action=dhref&ID=" + strId);
}
function clearHref(){
if(confirm("确定要删除自己的全部网址收藏吗?此操作不可恢复!")){
var strHref = "<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/work.do?action=chref&mr=" + Math.random();
__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}
}
//-->
</script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="<%=strSkinBase%>/images/notify_new.gif" align="absmiddle"><span class="big3"> 添加个人网址收藏</span>
</td>
</tr>
</table>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/work.do?action=shref" method="post" name="form1" onsubmit="sendForm(this);return false;">
<tr>
<td nowrap class="TableData">序号:</td>
<td nowrap class="TableData">
<input type="text" name="XH" class="BigInput" size="10" maxlength="25" value="<%=strNextXh%>"> 控制显示顺序
</td>
<tr>
<td nowrap class="TableData">说明:</td>
<td nowrap class="TableData">
<input type="text" name="TITLE" class="BigInput" size="25" maxlength="80" EmptyDisable label="说明">
</td>
</tr>
<tr>
<td nowrap class="TableData">网址:</td>
<td nowrap class="TableData">
<input type="text" name="HREF" class="BigInput" size="25" maxlength="127" value="http://" EmptyDisable label="网址">
</td>
</tr>
<tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="submit" value="添加" class="BigButton" title="添加网址" name="button">
<input type="button" value="返回" class="BigButton" onClick="location='../'">
</td>
</form>
</table>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
<tr>
<td background="<%=strSkinBase%>/images/dian1.gif" width="100%"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="<%=strSkinBase%>/images/notify_open.gif" align="absmiddle"><span class="big3"> 管理个人收藏夹</span>
</td>
</tr>
</table>
<br>
<div align="center">
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3">
<%
for(int i=0;i<lists.size();i++){
igec.site.base.bean.SysObj so = (igec.site.base.bean.SysObj)lists.get(i);
%>
<tr class="TableData">
<td nowrap align="center"><%=so.getStrValue4()%></td>
<td nowrap align="center"><%=so.getStrValue2()%></td>
<td nowrap align="center"><A href="<%=so.getStrValue3()%>" target="_blank"><%=so.getStrValue3()%></A></td>
<td nowrap align="center" width="80">
<a href="javascript:" onclick="openWindow('edit.jsp?ID=<%=so.getStrValue1()%>','400','200')"> 编辑</a>
<a href="javascript:deleteHref('<%=so.getStrValue1()%>');"> 删除</a>
</td>
</tr>
<%
}
%>
<thead class="TableHeader">
<td nowrap align="center">序号</td>
<td nowrap align="center">说明</td>
<td nowrap align="center">网址</td>
<td nowrap align="center">操作</td>
</thead>
<thead class="TableControl">
<td nowrap align="center" colspan="5">
<input type="button" class="BigButton" OnClick="javascript:clearHref();" value="全部删除">
</td>
</thead>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -