{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=Smileys title=$locale->tr("smileys_plugin")}
<form name="smileysPluginConfig" method="post">
 <fieldset class="inputField">
 <legend>{$locale->tr("label_configuration")}</legend> 
  {include file="$admintemplatepath/successmessage.template"}
  {include file="$admintemplatepath/errormessage.template"}
  <div class="field">
   <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
   <span class="required"></span>
   <div class="formHelp">
     <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" {user_cannot_override key=plugin_smileys_enabled}disabled="disabled"{/user_cannot_override} /> {$locale->tr("smileys_plugin_enabled")}
   </div>
  </div> 

  <div class="field">
  <label for="default">{$locale->tr("label_default")}</label>
  <span class="required"></span>
  <div class="formHelp">{$locale->tr("smileys_default")}</div>
    <table>
    <thead>
     <tr>
      <th style="width:20px;"></th>
      <th style="width:130px;">{$locale->tr("smileys_name")}</th>
      <th style="width:450px;">{$locale->tr("smileys_image")}</th>
     </tr>
    </thead>
    <tbody> 
     {foreach from=$smileysets item=set key=setkey}
     <tr>
      <td>
       <input class="radio" type="radio" name="setId" id="setId" value="{$setkey}" {if $smileyset==$setkey} checked="checked" {/if} />
      </td>
      <td>
       {$set.description}
      </td>
      <td>
       {foreach from=$set.smileys key=smiley item=img}
        <img src="{$url->getUrl("/plugins/smileys/icons/$setkey/$img")}" alt="{$smiley}" />
       {/foreach}
     </tr> 
     {/foreach}
    </tbody>
   </table>
    </div>
 </fieldset>
 <div class="buttons">
  <input type="hidden" name="op" value="updateSmileysConfig" />
  <input type="reset" name="{$locale->tr("reset")}" />
  <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
 </div>
</form>
{include file="$admintemplatepath/footernavigation.template"}
{include file="$admintemplatepath/footer.template"}