PageRenderTime 32ms CodeModel.GetById 22ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/upload/templates/admin/admin_forums.tpl

http://torrentpier2.googlecode.com/
Smarty Template | 245 lines | 213 code | 32 blank | 0 comment | 4 complexity | 59f4187fbd4dc916431214db7edd1a76 MD5 | raw file
  1
  2<!-- IF TPL_EDIT_FORUM -->
  3<!--========================================================================-->
  4
  5<script type="text/javascript">
  6function toggle_cat_list (val)
  7{
  8	if (val == -1) {
  9		$p('cat_list').className = '';
 10		$p('show_on_index').className = 'hidden';
 11	}
 12	else {
 13		$p('cat_list').className = 'hidden';
 14		$p('show_on_index').className = '';
 15	}
 16	return false;
 17}
 18</script>
 19
 20<h1>{L_FORUM_TITLE}</h1>
 21
 22<p>{L_FORUM_EDIT_DELETE_EXPLAIN}</p>
 23<br />
 24
 25<form method="post" action="{S_FORUM_ACTION}" name="frm">
 26{S_HIDDEN_FIELDS}
 27
 28<table class="forumline pad_4">
 29<col class="row1" width="20%">
 30<col class="row2" width="80%">
 31	<tr>
 32		<th colspan="2">{L_FORUM_SETTINGS}</th>
 33	</tr>
 34	<tr>
 35		<td>{L_FORUM_NAME}</td>
 36		<td><input style="width: 96%;" type="text" name="forumname" value="{FORUM_NAME}" class="post" /></td>
 37	</tr>
 38	<tr>
 39		<td>{L_FORUM_DESC}</td>
 40		<td><textarea style="width: 96%;" rows="2" wrap="virtual" name="forumdesc" class="post">{DESCRIPTION}</textarea></td>
 41	</tr>
 42	<tr>
 43		<td>{L_SF_PARENT_FORUM}</td>
 44		<td><select onchange="toggle_cat_list(this.value)" name="forum_parent">{S_PARENT_FORUM}</select></td>
 45	</tr>
 46	<tr id="cat_list" class="{CAT_LIST_CLASS}">
 47		<td>{L_CATEGORY}</td>
 48		<td><select name="c">{S_CAT_LIST}</select></td>
 49	</tr>
 50	<tr id="show_on_index" class="{SHOW_ON_INDEX_CLASS}">
 51		<td>{L_SF_SHOW_ON_INDEX}</td>
 52		<td>
 53			<label><input type="radio" name="show_on_index" value="1" <!-- IF SHOW_ON_INDEX -->checked="checked"<!-- ENDIF -->  />{L_YES}</label>&nbsp;&nbsp;
 54			<label><input type="radio" name="show_on_index" value="0" <!-- IF not SHOW_ON_INDEX -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
 55		</td>
 56	</tr>
 57	<tr>
 58		<td>{L_FORUM_STATUS}</td>
 59		<td><select name="forumstatus">{S_STATUS_LIST}</select></td>
 60	</tr>
 61	<tr>
 62		<td>{L_REG_TORRENTS}</td>
 63		<td>{ALLOW_REG_TRACKER} &nbsp; {L_SELF_MODERATED}: {SELF_MODERATED}  &nbsp; {L_ALLOW_PORNO_TOPIC}: {ALLOW_PORNO_TOPIC}</td>
 64	</tr>
 65	<tr>
 66		<td>{L_DESIGNER}</td>
 67		<td>{TPL_SELECT} - {L_FOR_NEW_TEMPLATE}</td>
 68	</tr>
 69	<tr>
 70		<td>{L_FORUM_PRUNING}</td>
 71		<td>{L_PRUNE_DAYS} <input type="text" name="prune_days" value="{PRUNE_DAYS}" size="4" class="post" /> {L_DAYS} &nbsp;<i class="med">(0 = {L_DISABLED})</span></td>
 72	</tr>
 73	<tr>
 74		<td>{L_SORT_BY}</td>
 75		<td>
 76			<select name="forum_display_sort">{S_FORUM_DISPLAY_SORT_LIST}</select>&nbsp;
 77			<select name="forum_display_order">{S_FORUM_DISPLAY_ORDER_LIST}</select>&nbsp;
 78		</td>
 79	</tr>
 80	<tr>
 81		<td class="catBottom" colspan="2">
 82			<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" />
 83		</td>
 84	</tr>
 85</table>
 86</form>
 87
 88<!--========================================================================-->
 89<!-- ENDIF / TPL_EDIT_FORUM -->
 90
 91<!-- IF TPL_EDIT_CATEGORY -->
 92<!--========================================================================-->
 93
 94<h1>{L_EDIT_CATEGORY}</h1>
 95
 96<p>{L_EDIT_CATEGORY_EXPLAIN}</p>
 97<br />
 98
 99<form method="post" action="{S_FORUM_ACTION}">
100{S_HIDDEN_FIELDS}
101
102<table class="forumline">
103<col class="row1">
104<tr>
105	<th>{L_EDIT_CATEGORY}</th>
106</tr>
107<tr>
108	<td class="pad_12 tCenter">
109		{L_CATEGORY}:
110		<input type="text" name="cat_title" size="60" value="{CAT_TITLE}" />&nbsp;
111		<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="bold" />
112	</td>
113</tr>
114</table>
115
116</form>
117
118<!--========================================================================-->
119<!-- ENDIF / TPL_EDIT_CATEGORY -->
120
121<!-- IF TPL_DELETE_FORUM -->
122<!--========================================================================-->
123
124<h1>{DELETE_TITLE}</h1>
125
126<p>{L_FORUM_DELETE_EXPLAIN}</p>
127<br />
128
129<form method="post" action="{S_FORUM_ACTION}">
130{S_HIDDEN_FIELDS}
131
132<table class="forumline">
133<col class="row1" width="30%">
134<col class="row1" width="70%">
135<tr>
136	<th colspan="2">{DELETE_TITLE}</th>
137</tr>
138<tbody class="pad_8">
139<tr>
140	<td>{CAT_FORUM_NAME}</td>
141	<td><b>{WHAT_TO_DELETE}</b></td>
142</tr>
143<tr>
144	<td>{L_MOVE_CONTENTS}</td>
145	<td>
146		<!-- IF NOWHERE_TO_MOVE -->
147		{NOWHERE_TO_MOVE}
148		<!-- ELSE -->
149		<select name="to_id">{MOVE_TO_OPTIONS}</select>
150		<!-- ENDIF -->
151	</td>
152</tr>
153</tbody>
154<tr>
155	<td colspan="2" class="catBottom pad_4">
156		<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="bold" />
157	</td>
158</tr>
159</table>
160
161</form>
162
163<!--========================================================================-->
164<!-- ENDIF / TPL_DELETE_FORUM -->
165
166<!-- IF TPL_FORUMS_LIST -->
167<!--========================================================================-->
168
169<style type="text/css">
170table.forumline + table.forumline { border-top-width: 0px; }
171</style>
172
173<script type="text/javascript">
174function hl (id, on)
175{
176	$p(id).style.color = (on == 1) ? '#FF4500' : '';
177}
178</script>
179
180<h1>{L_FORUM_TITLE} <!-- IF FORUMS_COUNT --><b class="gen">[{L_FORUMS_IN_CAT}: {FORUMS_COUNT}]</b><!-- ENDIF --></h1>
181
182<p>{L_FORUM_EDIT_DELETE_EXPLAIN}</p>
183<br />
184
185<form method="post" action="{S_FORUM_ACTION}">
186
187<!-- BEGIN c -->
188<table class="forumline">
189	<tr class="row3">
190		<td class="tCenter"><a class="gen" title="{L_MOVE_UP}" href="{c.U_CAT_MOVE_UP}"><b>&nbsp;&#8593;&nbsp;</b></a><a class="gen" title="{L_MOVE_DOWN}" href="{c.U_CAT_MOVE_DOWN}"><b>&nbsp;&#8595;&nbsp;</b></a></td>
191		<td colspan="5" width="100%" class="nowrap">
192			<span class="floatL">
193				<a href="{c.U_VIEWCAT}"><span class="gen"><b>{c.CAT_DESC}</b></span></a>
194			</span>
195			<span class="nowrap floatR">
196				<a class="gen" href="{c.U_CREATE_FORUM}">{L_CREATE_FORUM}</a>
197				&middot;
198				<a class="gen" href="{c.U_CAT_EDIT}">{L_EDIT}</a>
199				&middot;
200				<a class="gen" href="{c.U_CAT_DELETE}">{L_DELETE}</a>
201			</span>
202		</td>
203		<td>{L_PRUNE}</td>
204	</tr>
205	<!-- BEGIN f -->
206	<tr class="row1 hl-tr" onmouseover="hl('fname_{c.f.FORUM_ID}', 1);" onmouseout="hl('fname_{c.f.FORUM_ID}', 0);">
207		<td class="gen" align="center"><a class="gen" title="{L_MOVE_UP}" href="{c.f.U_FORUM_MOVE_UP}"><b>&nbsp;&#8593;&nbsp;</b></a><a class="gen" title="{L_MOVE_DOWN}" href="{c.f.U_FORUM_MOVE_DOWN}"><b>&nbsp;&#8595;&nbsp;</b></a></td>
208		<td class="small" align="center" nowrap="nowrap"><a class="small" href="{c.f.ADD_SUB_HREF}" title="Add subforum">&nbsp;+sub&nbsp;</a><!-- <span title="Order index">{c.f.ORDER} [{c.f.FORUM_ID}-{c.f.FORUM_PARENT}]</span> --></td>
209		<td width="100%" {c.f.SF_PAD}><a title="{c.f.FORUM_DESC}" class="{c.f.FORUM_NAME_CLASS}" href="{c.f.U_VIEWFORUM}" target="_new"><!-- IF c.f.SHOW_ON_INDEX --><b><!-- ENDIF --><span id="fname_{c.f.FORUM_ID}">{c.f.FORUM_NAME}</span><!-- IF c.f.SHOW_ON_INDEX --></b><!-- ENDIF --></a></td>
210		<td class="small tCenter" title="{L_TOPICS_SHORT}"><em class="med" style="color: grey">{L_TOPICS_SHORT}:</em> {c.f.NUM_TOPICS}</td>
211		<td class="small tCenter" title="{L_POSTS_SHORT}"><em class="med" style="color: grey">{L_POSTS_SHORT}:</em> {c.f.NUM_POSTS}</td>
212		<td class="med nowrap tCenter">
213			&nbsp;
214			<a class="med" href="{c.f.U_FORUM_EDIT}">edit</a>
215			&nbsp;&middot;&nbsp;
216			<a class="med" href="{c.f.U_FORUM_PERM}">perm</a>
217			&nbsp;&middot;&nbsp;
218			<a class="med" href="{c.f.U_FORUM_RESYNC}">sync</a>
219			&nbsp;&middot;&nbsp;
220			<a class="med" href="{c.f.U_FORUM_DELETE}">x</a>
221			&nbsp;
222		</td>
223		<td class="small" align="center" nowrap="nowrap"><b>{c.f.PRUNE_DAYS}</b></td>
224	</tr>
225	<!-- END f -->
226</table>
227<!-- END c -->
228
229<table class="forumline">
230	<tr>
231		<td class="row3">
232			<input class="post" type="text" name="categoryname" />
233			<input type="submit" name="addcategory" value="{L_CREATE_CATEGORY}" />
234		</td>
235	</tr>
236</table>
237
238</form>
239
240<br />
241<p><a href="{U_ALL_FORUMS}"><b>{L_SHOW_ALL_FORUMS_ON_ONE_PAGE}</b></a></p>
242<br />
243
244<!--========================================================================-->
245<!-- ENDIF / TPL_FORUMS_LIST -->