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

<form action="smileys.php?action=save&area={$smarty.request.area}" method="post" enctype="multipart/form-data" name="kform">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td colspan="6" class="header">{$langadmin.smileys}</td>
    </tr>
  
    <tr class="secondrow">
      <td colspan="6" class="firstrow">{$info}</td>
    </tr>
    <tr class="secondrow">
      <th nowrap>{$langadmin.smiley_once}</th>
      <th nowrap>{$langadmin.active}</th>
      <td><div align="center">{$langadmin.smileycode}</div></td>
      <th>{$langadmin.smiley_src}</th>
      <th>{$langadmin.pos}</th>
      <td><div align="center">
        {$langadmin.delete}<br>
          <input name="allbox" type="checkbox" id="d" onclick="selall();" value="" />
      </div></td>
    </tr>
	{foreach from=$smileys item="sm"}
 
	<tr  class="{cycle name='sm1' values='firstrow,secondrow'}">
      <td width="5%" nowrap>
	    <div align="center"><img src="../templates/{$usertheme}/img/smilies/{$sm->path}" alt="" />
        </div></td>
      <td width="20%" nowrap><div align="center">
          <input type="radio" name="active[{$sm->id}]" value="1" {if $sm->active==1}checked{/if}> {$langadmin.yes}
      <input type="radio" name="active[{$sm->id}]" value="2" {if $sm->active==2}checked{/if}> {$langadmin.no}</div></td>
      <td width="20%" nowrap><div align="center">
        <input name="code[{$sm->id}]" type="text" id="code[{$sm->id}]" value="{$sm->code}" size="10">
      </div></td>
      <td width="20%" nowrap><div align="center">
        <input name="path[{$sm->id}]" type="text" id="path[{$sm->id}]" value="{$sm->path}" size="15">
      </div></td>
      <td><div align="center">
        <input name="posi[{$sm->id}]" type="text" id="posi[{$sm->id}]" value="{$sm->posi}" size="5">
      </div></td>
      <td><div align="center">
      <input name="del[{$sm->id}]" type="checkbox" id="d" value="1" /></div></td>
    </tr>
  {/foreach}
  <tr >
  <td colspan="6" class="firstrow">
  <input type="submit" class="button" value="{$langadmin.save}" />
  </td>
  </tr>
  </table>
</form>
<form action="smileys.php?action=new&area={$smarty.request.area}" method="post" enctype="multipart/form-data" name="adds" id="adds">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td colspan="2" class="header">{$langadmin.add_smilies}</td>
    </tr>
    <tr>
      <td colspan="2" class="firstrow">{$info}</td>
    </tr>
    <tr class="secondrow">
      <td>{$langadmin.smileycode}</td>
      <td>{$langadmin.smiley_src}</td>
    </tr>
 {section name="new" loop=5}
  {assign var="count" value=$count+1}
     <tr  class="{cycle name='sm2' values='firstrow,secondrow'}">
      <td width="10%"><div align="center">
        <input name="code[]" type="text" id="code[]">
      </div></td>
      <td>        <input name="path[]" type="text" id="path[]">      </td>
    </tr>
 {/section}
    <tr>
      <td colspan="2" class="firstrow"><input type="submit" class="button" value="{$langadmin.add_smilies}" /></td>
    </tr>
  </table>
</form>
{include file="../foot.tpl"}