-
Notifications
You must be signed in to change notification settings - Fork 5
/
pm_list_incoming.tpl
58 lines (55 loc) · 2.59 KB
/
pm_list_incoming.tpl
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
<!-- BEGIN TEMPLATE pm_list_incoming.tpl -->
{IF MESSAGECOUNT}
<table border="0" cellspacing="0" class="list">
<tr>
<th align="left" width="20">
<script type="text/javascript">
function checkAll() {
var lf=document.getElementById('phorum-pm-list');
for (var i=0;i<lf.elements.length;i++) {
var elt=lf.elements[i];
if (elt.type=='checkbox' && elt.name!='toggle') {
elt.checked = document.getElementById('toggle').checked;
}
}
}
document.write ( '<input type="checkbox" name="toggle" id="toggle" onclick="checkAll()" />' );
</script>
<noscript> </noscript>
</th>
<th align="left">{LANG->Subject}</th>
<th align="left" nowrap="nowrap">{LANG->From} </th>
<th align="left" nowrap="nowrap">{LANG->Date} </th>
</tr>
{LOOP MESSAGES}
<tr>
<td><input type="checkbox" name="checked[]" value="{MESSAGES->pm_message_id}" /></td>
<td>
<a href="{MESSAGES->URL->READ}">{MESSAGES->subject}</a>
{IF NOT MESSAGES->read_flag}
<img src="{URL->TEMPLATE}/images/flag_red.png" class="icon1616" alt="NEW!" />
{/IF}
</td>
<td nowrap="nowrap"><a href="{MESSAGES->URL->PROFILE}">{MESSAGES->author}</a> </td>
<td width="10%" nowrap="nowrap">{MESSAGES->date}</td>
</tr>
{/LOOP MESSAGES}
</table>
{IF PM_USERFOLDERS}
<select name="target_folder" style="vertical-align: middle;">
<option value=""> {LANG->PMSelectAFolder}</option>
{LOOP PM_FOLDERS}
{IF NOT PM_FOLDERS->id FOLDER_ID}
{IF NOT PM_FOLDERS->is_outgoing}
<option value="{PM_FOLDERS->id}"> {PM_FOLDERS->name}</option>
{/IF}
{/IF}
{/LOOP PM_FOLDERS}
</select>
<input type="submit" name="move" value="{LANG->PMMoveToFolder}" />
{/IF}
<input type="submit" name="delete" value="{LANG->Delete}" onclick="return confirm('<?php echo addslashes($PHORUM['DATA']['LANG']['AreYouSure'])?>')" />
{ELSE}
<div class="generic">{LANG->PMFolderIsEmpty}</div>
{/IF}
<!-- END TEMPLATE pm_list_incoming.tpl -->