-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcc_subscriptions.tpl
87 lines (84 loc) · 4.43 KB
/
cc_subscriptions.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
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
<!-- BEGIN TEMPLATE cc_subscriptions.tpl -->
<form action="{URL->ACTION}" method="POST">
{POST_VARS}
<div class="generic">
{LANG->Activity}
<select name="subdays">
<option value="1"{IF SELECTED 1} selected="selected"{/IF}>1 {LANG->Day}</option>
<option value="2"{IF SELECTED 2} selected="selected"{/IF}>2 {LANG->Days}</option>
<option value="7"{IF SELECTED 7} selected="selected"{/IF}>7 {LANG->Days}</option>
<option value="30"{IF SELECTED 30} selected="selected"{/IF}>1 {LANG->Month}</option>
<option value="180"{IF SELECTED 180} selected="selected"{/IF}>6 {LANG->Months}</option>
<option value="365"{IF SELECTED 365} selected="selected"{/IF}>1 {LANG->Year}</option>
<option value="0"{IF SELECTED 0} selected="selected"{/IF}>{LANG->AllDates}</option>
</select>
{LANG->ActivityPost}
<input type="submit" value="{LANG->Go}" />
</div>
</form>
{IF TOPICS}
<form action="{URL->ACTION}" method="POST" id="phorum-sub-list">
{POST_VARS}
<input type="hidden" name="subdays" value="{SELECTED}" />
<table cellspacing="0" class="list">
<tr>
<th align="left" nowrap="nowrap">
<script type="text/javascript">
function checkAll() {
var lf=document.getElementById('phorum-sub-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>
{LANG->Delete}
</th>
<th align="left">{LANG->Subject}</th>
<th align="left" nowrap="nowrap">{LANG->LastPost}</th>
{IF ALLOW_EMAIL_NOTIFY_COUNT}
<th align="left" nowrap="nowrap">{LANG->Email}</th>
{/IF}
</tr>
{LOOP TOPICS}
{IF altclass ""}
{VAR altclass "alt"}
{ELSE}
{VAR altclass ""}
{/IF}
<tr>
<td width="5%"><input type="checkbox" name="delthreads[]" value="{TOPICS->thread}" /></td>
<td width="65%" class="message-subject {altclass}">
<a href="{TOPICS->URL->READ}">
{IF TOPICS->new}<img src="{URL->TEMPLATE}/images/flag_red.png" class="icon1616" alt="{LANG->New}" title="{LANG->New}"/>{/IF}
{TOPICS->subject}</a><br />
<small>{LANG->Forum}: {TOPICS->forum}</small>
</td>
<td width="15%" class="{altclass}" nowrap="nowrap">{TOPICS->lastpost}<br/>{IF TOPICS->URL->RECENT_AUTHOR_PROFILE}<a href="{TOPICS->URL->RECENT_AUTHOR_PROFILE}">{/IF}{TOPICS->recent_author}{IF TOPICS->URL->RECENT_AUTHOR_PROFILE}</a>{/IF}</td>
{IF ALLOW_EMAIL_NOTIFY_COUNT}
<td width="5%">
{IF TOPICS->ALLOW_EMAIL_NOTIFY}
<input type="hidden" name="thread_forum_id[{TOPICS->thread}]" value="{TOPICS->forum_id}" />
<input type="hidden" name="old_sub_type[{TOPICS->thread}]" value="{TOPICS->sub_type}" />
<select name="sub_type[{TOPICS->thread}]">
<option {if TOPICS->sub_type PHORUM_SUBSCRIPTION_MESSAGE}selected="selected"{/IF} value="{PHORUM_SUBSCRIPTION_MESSAGE}">{LANG->Yes}</option>
<option {if TOPICS->sub_type PHORUM_SUBSCRIPTION_BOOKMARK}selected="selected"{/IF} value="{PHORUM_SUBSCRIPTION_BOOKMARK}">{LANG->No}</option>
</select>
{ELSE}
{LANG->No}
{/IF}
</td>
{/IF}
</tr>
{/LOOP TOPICS}
</table>
<input type="submit" name="button_update" value="{LANG->Update}" />
</form>
{ELSE}
<div class="generic">{LANG->NoFollowedThreads}</div>
{/IF}
<p>{LANG->HowToFollowThreads}</p>
<!-- END TEMPLATE cc_subscriptions.tpl -->