friendlink_main.htm
4.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{dede:config.pagesize value="20"/}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>友情链接管理</title>
<link href="css/base.css" rel="stylesheet" type='text/css'>
<script language='javascript'>
function Sel(stype)
{
for(var i=0;i < document.getElementsByName('aids').length;i++)
{
if(stype=='all') document.getElementsByName('aids')[i].checked=true;
else document.getElementsByName('aids')[i].checked=false;
}
}
function checkSubmit()
{
var str = '';
for(var i=0;i < document.getElementsByName('aids').length;i++)
{
if(document.getElementsByName('aids')[i].checked){
if(str=='') str += document.getElementsByName('aids')[i].value;
else str += ',' + document.getElementsByName('aids')[i].value;
}
}
if(str=='')
{
alert('你没选择任何内容!');
return false;
}
else
{
location="friendlink_edit.php?aids="+str+"&dopost=delall";
}
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="28" background="images/tbg.gif" colspan="8" style="padding-left:10px;">
<div style="float:left">
<b>友情链接管理</b>
</div>
<div style="float:right;padding-right:6px;">
[<a href="friendlink_add.php"><u>增加链接</u></a>]
[<a href="friendlink_type.php"><u>网站类型管理</u></a>]
[<a href='{dede:global name='cfg_phpurl' /}/flink.php' target='_blank'><u>友情链接预览</u></a>]
</div>
</td>
</tr>
<tr>
<td height="30" align="center" bgcolor="#F9FCEF" colspan="8">
<form action="friendlink_main.php" name="form1" method="get">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td>关键字:</td>
<td><input name="keyword" type="text" id="keyword" size="12" style="width:250px" value="<?php echo $keyword; ?>" /></td>
<td>
<select name="ischeck" id="ischeck">
<?php
foreach($selCheckArr as $k=>$v)
{
if($k==$ischeck) echo "<option value='$k' selected>$v</option>\r\n";
else echo "<option value='$k'>$v</option>\r\n";
}
?>
</select>
</td>
<td>
<input name="imageField" class="np" type="image" src="images/button_search.gif" width="60" height="22" border="0" />
</td>
</tr>
</table>
</form>
</td>
</tr>
<form name='form1' method='post' action='friendlink_edit.php' onSubmit='return checkSubmit();'>
<input type='hidden' name='dopost' value='delall'/>
<input type='hidden' name='allid' value=''/>
<tr align="center" bgcolor="#FBFCE2" height="26">
<td width="6%">选择</td>
<td width="23%">网站名称</td>
<td width="12%">网站Logo</td>
<td width="15%">站长Email</td>
<td width="15%">时间</td>
<td width="8%">状态</td>
<td width="8%">顺序</td>
<td width="15%">管理</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="26" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input type='checkbox' name='aids' value='{dede:field.id/}' class='np'></td>
<td><a href="{dede:field.url/}" target='_blank'>{dede:field.webname function='htmlspecialchars(@me)'/}</a></td>
<td><a href="{dede:field.url/}" target='_blank'>{dede:field.logo function="GetPic(@me)"/}</a></td>
<td>{dede:field.email/}</td>
<td>{dede:field.dtime function="MyDate('Y-m-d',@me)"/}</td>
<td>{dede:field.ischeck function="GetSta(@me)"/}</td>
<td>{dede:field.sortrank/}</td>
<td>
<a href='friendlink_edit.php?id={dede:field.id/}&dopost=getedit'>[更改]</a>
<a href='friendlink_edit.php?id={dede:field.id/}&dopost=delete'>[删除]</a>
</td>
</tr>
{/dede:datalist}
</form>
<tr bgcolor="#ffffff" height="28">
<td colspan="8">
<a href='#' onclick='Sel("all")' class='np coolbg'>[全选]</a>
<a href='#' onclick='Sel("none")' class='np coolbg'>[取消]</a>
<a href='#' onclick='checkSubmit()' class='np coolbg'>批量删除</a>
</td>
</tr>
<tr align="center" bgcolor="#F9FCEF" height="28">
<td colspan="8">
{dede:pagelist listsize=6/}
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>