{include file="../head.tpl"}


<form action="forum.php?action=save&amp;what=rank" method="post">
<table width="100%"  border="0" cellspacing="1" cellpadding="5" class="tableborder">
<tr>
  <td colspan="3" class="header">{$langadmin.user_ranking}</td>
  </tr>
<tr class="firstrow">
	  <td width="20%"><strong>
	    {$langadmin.title}
	  </strong></td>
	  <td width="20%"><strong>
	    {$langadmin.posts}
	  </strong></td>
	  <td>&nbsp;</td>
    </tr>
{foreach from=$ranks item=rank}
	
	<tr>
		<td width="20%" class="firstrow">
			<input type="text" name="title[{$rank->id}]" value="{$rank->title|escape:'html'|sslash}" size="50" maxlength="100" />
		</td>
		<td width="20%" class="secondrow">
			<input type="text" name="count[{$rank->id}]" value="{$rank->count}" size="6" maxlength="7" />
		</td>
		<td class="firstrow">
			<input onclick="location.href = 'forum.php?action=delete&amp;what=rank&amp;id={$rank->id}';" type="button" class="button" value="{$langadmin.delete}">
		</td>
	</tr>
{/foreach}
	<tr>
		<td class="firstrow" colspan="3">
			<input type="submit" class="button" value="{$langadmin.save}">
	  </td>
	</tr>
</table>
</form>

<form action="forum.php?action=add&amp;what=rank" method="post">
<table width="100%"  border="0" cellspacing="1" cellpadding="5" class="tableborder">
	<tr>
	  <td colspan="2" class="header">{$langadmin.user_ranking_new}</td>
    </tr>
	<tr class="firstrow">
	  <td><strong>
	    {$langadmin.title}
	  </strong></td>
	  <td><strong>
	    {$langadmin.posts}
	  </strong></td>
    </tr>
	<tr>
		<td width="20%" class="firstrow">
			<input type="text" name="title" value="{$smarty.post.title}" size="50" maxlength="100" />
		</td>
		<td class="secondrow">
			<input type="text" name="count" value="{$smarty.post.count}" size="6" maxlength="7" />
		</td>
	</tr>
	<tr>
	  <td colspan="2" class="firstrow">	    <input type="submit" class="button" value="{$langadmin.save}">	  </td>
    </tr>
</table>
</form>
{include file="../foot.tpl"}