member_feed_main.htm
6.54 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!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 getCheckboxItem(){
var allSel="";
if(document.form1.logs.value) return document.form1.logs.value;
for(i=0;i<document.form1.logs.length;i++)
{
if(document.form1.logs[i].checked){
if(allSel=="")
allSel=document.form1.logs[i].value;
else
allSel=allSel+"`"+document.form1.logs[i].value;
}
}
return allSel;
}
function ReSel(){
for(i=0;i<document.form1.logs.length;i++){
if(document.form1.logs[i].checked) document.form1.logs[i].checked = false;
else document.form1.logs[i].checked = true;
}
}
function DelSel(){
var nid = getCheckboxItem();
if(nid==""){
alert("请选择项目!\r\n");
return ;
}
location.href = "member_feed_edit.php?dopost=del&ids="+nid;
}
function CheckSel(){
var nid = getCheckboxItem();
if(nid==""){
alert("请选择项目!\r\n");
return ;
}
location.href = "member_feed_edit.php?dopost=check&ids="+nid;
}
function ClearLog(){
location.href = "member_feed_edit.php?dopost=clear";
}
function ClearcheckLog(){
var obj;
var deltype;
obj=document.getElementsByName('dellog');
if(obj!=null){
var i;
for(i=0;i<obj.length;i++){
if(obj[i].checked){
deltype = obj[i].value;
}
}
}
location.href = "member_feed_edit.php?dopost=clearcheck&dellog=" + deltype;
}
</script>
<style type="text/css">
.current {border:1px solid #98CAEF;padding:5px;background:#FFFEF4;color:#FF0000;}
</style>
</head>
<body background="images/allbg.gif" leftmargin='8' topmargin='8'>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center">
<tr>
<td height="28" colspan="4" background='images/tbg.gif'><table width="96%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="18" style="padding-left:10px;"><strong>会员动态记录:</strong></td>
<td width="80%" align="right"><table width="88%" border="0" cellspacing="0" cellpadding="0">
<form name='formsearch'>
<input type="hidden" value="<?php echo $ischeck;?>" name="ischeck">
<input type="hidden" value="feed" name="type">
<tr>
<td height="21" align="right"> 时间:
<select name="dtime">
<option value="0" selected>--全部--</option>
<option value="1">今天</option>
<option value="7">一周内</option>
<option value="15">15天内</option>
<option value="30">30天以内</option>
<option value="60">60天以内</option>
</select>
<input type="submit" name="Submit" value="搜索" /></td>
</tr>
</form>
</table></td>
</tr>
</table></td>
</tr>
<tr align="center" bgcolor="#ffffff">
<td height="32" colspan="4" align="left" bgcolor="#FAFAF1"><span <?php if(empty($ischeck)) echo "class='current'";?>><a href='member_info_main.php?type=feed'>全部(<?php echo $totalnum;?>)</a></span> | <span <?php if($ischeck=='1') echo "class='current'";?>><a href='member_info_main.php?type=feed&ischeck=1'>已审核(<?php echo $checknum;?>)</a></span>| <span <?php if($ischeck=='-1') echo "class='current'";?>><a href='member_info_main.php?type=feed&ischeck=-1'>未审核(<?php echo $ischecknum;?>)</a></span></td>
</tr>
<tr align="center" height="26" bgcolor="#FBFCE2">
<td width="8%">选择</td>
<td width="11%">ID</td>
<td>内容</td>
<td width="15%">时间</td>
</tr>
<form name="form1">
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input name='logs' type='checkbox' class='np' id="logs" value='{dede:field.fid/}' /></td>
<td width="11%">{dede:field.fid /} </td>
<td align="left"><a href="/member/index.php?uid={dede:field.uname /}">{dede:field.uname /}</a> {dede:field.title function='jstrimjajxlog(@me,200)'/} [{dede:field.ischeck function=IsChecklog(@me)/}]</td>
<td> {dede:field.dtime function="floorTime(time()-@me,@me)" /} </td>
</tr>
{/dede:datalist}
</form>
<tr>
<td height="30" colspan="4" bgcolor="#ffffff">
<input type="button" name="b5" value="反选" style="width:40px" class="coolbg np" onClick="ReSel();" />
<input type="button" name="b5" value="审核" style="width:40px" class="coolbg np" onClick="CheckSel();" />
<input type="button" name="b6" value="删除所选" style="width:80px" class="coolbg np" onClick="DelSel();" />
</td>
</tr>
<tr id="type" >
<form action="" method="post" name="doform">
<td height="30" colspan="4" bgcolor="#ffffff" > <strong>特别提醒:</strong> 当网站运行一段时间后,网站的会员动态记录表可能存放着大量的记录,为使系统的运行性能更佳,建议一段时间后清理一次。</br>
<strong>删除范围:</strong>
<input name="dellog" type="radio" value="7" id="dellog1" checked>
<label for="dellog1">过去7天</label>
<input name="dellog" type="radio" id="dellog2" value="15">
<label for="dellog2">过去15天</label>
<input name="dellog" type="radio" id="dellog3" value="30">
<label for="dellog3">过去30天</label>
<input name="dellog" type="radio" id="dellog4" value="60">
<label for="dellog4">过去二个月(60天)</label>
<input name="dellog" type="radio" id="dellog5" value="180">
<label for="dellog5">过去六个月(180天)</label>
<input name="dellog" type="radio" id="dellog6" value="365">
<label for="dellog6">过去一年</label>
<input type="button" name="b7" value="清空所选" style="width:100px" class="coolbg np" onClick="ClearcheckLog();" />
<input type="button" name="b8" value="清空所有记录(慎用)" style="width:140px" class="coolbg np" onClick="ClearLog();" />
</form>
</tr>
<tr bgcolor="#F9FCEF">
<td height="24" colspan="4" align="center"> {dede:pagelist listsize='5' /} </td>
</tr>
</table>
</body>
</html>