admin_pm_search.htm
4.18 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
{template header}
<script src="js/common.js" type="text/javascript"></script>
<script src="js/calendar.js" type="text/javascript"></script>
<div class="container">
<div class="hastabmenu" style="height: 200px;">
<ul class="tabmenu">
<li class="tabcurrent"><a href="javascript:;" class="tabcurrent">{lang pm_search}</a></li>
<li><a href="admin.php?m=pm&a=clear">{lang pm_clear}</a></li>
</ul>
<div id="searchpmdiv" class="tabcontentcur">
<form action="admin.php?m=pm&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="dbtb">
<tr>
<th class="tbtitle">{lang pm_auhtor}:</th>
<td><input type="text" name="srchauthor" class="txt" value="$srchauthor" /></td>
</tr>
<tr>
<th class="tbtitle">{lang pm_message}:</th>
<td><input type="text" name="srchmessage" class="txt" value="$srchmessage" /></td>
</tr>
<tr>
<th class="tbtitle">{lang pm_dateline}:</th>
<td><input type="text" name="srchstarttime" class="txt" style="margin-right: 0;" value="$srchstarttime" onclick="showcalendar();" /> - <input type="text" name="srchendtime" class="txt" value="$srchendtime" onclick="showcalendar();" /></td>
</tr>
<tr>
<th class="tbtitle">{lang pm_whichtable}:</th>
<td>
<select name="srchtablename">
<option value="0"{if $srchtablename === 0} selected="selected"{/if}>pm_messages_0</option>
<option value="1"{if $srchtablename == 1} selected="selected"{/if}>pm_messages_1</option>
<option value="2"{if $srchtablename == 2} selected="selected"{/if}>pm_messages_2</option>
<option value="3"{if $srchtablename == 3} selected="selected"{/if}>pm_messages_3</option>
<option value="4"{if $srchtablename == 4} selected="selected"{/if}>pm_messages_4</option>
<option value="5"{if $srchtablename == 5} selected="selected"{/if}>pm_messages_5</option>
<option value="6"{if $srchtablename == 6} selected="selected"{/if}>pm_messages_6</option>
<option value="7"{if $srchtablename == 7} selected="selected"{/if}>pm_messages_7</option>
<option value="8"{if $srchtablename == 8} selected="selected"{/if}>pm_messages_8</option>
<option value="9"{if $srchtablename == 9} selected="selected"{/if}>pm_messages_9</option>
</select>
{lang clearpm_totalnum}: $pmnum
</td>
</tr>
<tr>
<th></th>
<td><input type="submit" value="{lang submit}" class="btn" name="searchpmsubmit" /></td>
</tr>
</table>
</form>
</div>
</div>
<h3>{lang pm_list}</h3>
<div class="mainbox">
<!--{if $pmlist}-->
<form action="admin.php?m=pm&a=delete" onsubmit="return confirm('{lang pm_delete_confirm}');" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="srchtablename" value="$srchtablename">
<input type="hidden" name="srchauthor" value="$srchauthor">
<input type="hidden" name="srchstarttime" value="$srchstarttime">
<input type="hidden" name="srchendtime" value="$srchendtime">
<input type="hidden" name="srchmessage" value="$srchmessage">
<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
<tr>
<th width="60"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('deletepmid[]')" class="checkbox" /><label for="chkall">{lang delete}</label></th>
<th width="150">{lang pm_author}</th>
<th width="120">{lang dateline}</th>
<th>{lang pm_message}</th>
</tr>
<!--{loop $pmlist $pm}-->
<tr>
<td><input type="checkbox" name="deletepmid[]" value="$pm[pmid]" class="checkbox" /></td>
<td><img src="avatar.php?uid=$pm[authorid]&size=small" align="absmiddle" width="20" /> <strong>$pm[author]</strong></td>
<td>$pm[dateline]</td>
<td>$pm[message]</td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td><input type="submit" value="{lang submit}" class="btn" /></td>
<td class="tdpage" colspan="3">$multipage</td>
</tr>
</table>
</form>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
</div>
{template footer}