adm/style/acp_ranks.html
changeset 0 ceef6d64c21d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/adm/style/acp_ranks.html	Wed Mar 07 16:41:10 2012 +0400
     1.3 @@ -0,0 +1,98 @@
     1.4 +<!-- INCLUDE overall_header.html -->
     1.5 +
     1.6 +<a name="maincontent"></a>
     1.7 +
     1.8 +<!-- IF S_EDIT -->
     1.9 +
    1.10 +	<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>
    1.11 +
    1.12 +	<script type="text/javascript">
    1.13 +	// <![CDATA[
    1.14 +		function update_image(newimage)
    1.15 +		{
    1.16 +			document.getElementById('image').src = (newimage) ? "{RANKS_PATH}/" + encodeURI(newimage) : "./images/spacer.gif";
    1.17 +		}
    1.18 +
    1.19 +	// ]]>
    1.20 +	</script>
    1.21 +
    1.22 +	<h1>{L_ACP_MANAGE_RANKS}</h1>
    1.23 +
    1.24 +	<p>{L_ACP_RANKS_EXPLAIN}</p>
    1.25 +
    1.26 +	<form id="acp_ranks" method="post" action="{U_ACTION}">
    1.27 +	
    1.28 +	<fieldset>
    1.29 +		<legend>{L_ACP_RANKS}</legend>
    1.30 +	<dl>
    1.31 +		<dt><label for="title">{L_RANK_TITLE}:</label></dt>
    1.32 +		<dd><input name="title" type="text" id="title" value="{RANK_TITLE}" maxlength="255" /></dd>
    1.33 +	</dl>
    1.34 +	<dl>
    1.35 +		<dt><label for="rank_image">{L_RANK_IMAGE}:</label></dt>
    1.36 +		<dd><select name="rank_image" id="rank_image" onchange="update_image(this.options[selectedIndex].value);">{S_FILENAME_LIST}</select></dd>
    1.37 +		<dd><img src="{RANK_IMAGE}" id="image" alt="" /></dd>
    1.38 +	</dl>
    1.39 +	<dl>
    1.40 +		<dt><label for="special_rank">{L_RANK_SPECIAL}:</label></dt>
    1.41 +		<dd><label><input onclick="dE('posts', -1)" type="radio" class="radio" name="special_rank" value="1" id="special_rank"<!-- IF S_SPECIAL_RANK --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
    1.42 +			<label><input onclick="dE('posts', 1)" type="radio" class="radio" name="special_rank" value="0"<!-- IF not S_SPECIAL_RANK --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
    1.43 +	</dl>
    1.44 +	<!-- IF S_SPECIAL_RANK --><div id="posts" style="display: none;"><!-- ELSE --><div id="posts"><!-- ENDIF -->
    1.45 +	<dl>
    1.46 +		<dt><label for="min_posts">{L_RANK_MINIMUM}:</label></dt>
    1.47 +		<dd><input name="min_posts" type="text" id="min_posts" maxlength="10" value="{MIN_POSTS}" /></dd>
    1.48 +	</dl>
    1.49 +	</div>
    1.50 +
    1.51 +	<p class="submit-buttons">
    1.52 +		<input type="hidden" name="action" value="save" />
    1.53 +
    1.54 +		<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
    1.55 +		<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
    1.56 +		{S_FORM_TOKEN}
    1.57 +	</p>
    1.58 +	</fieldset>
    1.59 +	</form>
    1.60 +
    1.61 +<!-- ELSE -->
    1.62 +
    1.63 +	<h1>{L_ACP_MANAGE_RANKS}</h1>
    1.64 +
    1.65 +	<p>{L_ACP_RANKS_EXPLAIN}</p>
    1.66 +
    1.67 +	<form id="acp_ranks" method="post" action="{U_ACTION}">
    1.68 +	<fieldset class="tabulated">
    1.69 +	<legend>{L_ACP_MANAGE_RANKS}</legend>
    1.70 +
    1.71 +	<table cellspacing="1">
    1.72 +	<thead>
    1.73 +	<tr>
    1.74 +		<th>{L_RANK_IMAGE}</th>
    1.75 +		<th>{L_RANK_TITLE}</th>
    1.76 +		<th>{L_RANK_MINIMUM}</th>
    1.77 +		<th>{L_ACTION}</th>
    1.78 +	</tr>
    1.79 +	</thead>
    1.80 +	<tbody>
    1.81 +	<!-- BEGIN ranks -->
    1.82 +		<!-- IF ranks.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
    1.83 +		<td style="text-align: center;"><!-- IF ranks.S_RANK_IMAGE --><img src="{ranks.RANK_IMAGE}" alt="{ranks.RANK_TITLE}" title="{ranks.RANK_TITLE}" /><!-- ELSE -->&nbsp; - &nbsp;<!-- ENDIF --></td>
    1.84 +		<td style="text-align: center;">{ranks.RANK_TITLE}</td>
    1.85 +		<td style="text-align: center;"><!-- IF ranks.S_SPECIAL_RANK -->&nbsp; - &nbsp;<!-- ELSE -->{ranks.MIN_POSTS}<!-- ENDIF --></td>
    1.86 +		<td style="text-align: center;"><a href="{ranks.U_EDIT}">{ICON_EDIT}</a> <a href="{ranks.U_DELETE}">{ICON_DELETE}</a></td>
    1.87 +	</tr>
    1.88 +	<!-- END ranks -->
    1.89 +	</tbody>
    1.90 +	</table>
    1.91 +
    1.92 +	<p class="quick">
    1.93 +		<input class="button2" name="add" type="submit" value="{L_ADD_RANK}" />
    1.94 +		{S_FORM_TOKEN}
    1.95 +	</p>
    1.96 +	</fieldset>
    1.97 +	</form>
    1.98 +
    1.99 +<!-- ENDIF -->
   1.100 +
   1.101 +<!-- INCLUDE overall_footer.html -->