{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=closeComments title=$locale->tr("closeComments")}

<form name="authimageluginConfig" action="admin.php" method="post">
 <fieldset class="inputField">
 <legend>{$locale->tr("enable_plugin")}</legend> 
  {include file="$admintemplatepath/successmessage.template"}
  {include file="$admintemplatepath/errormessage.template"}
  <div class="field">
   <label for="pluginEnabled">{$locale->tr("enable_plugin")}</label>
   <div class="formHelp">
     <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled}checked="checked"{/if} value="1" {user_cannot_override key=plugin_closecomments_enabled}disabled="disabled"{/user_cannot_override} />{$locale->tr("plugin_closecomments_enabled")}
   </div>
  </div> 

  <div class="field">
   <label for="length">{$locale->tr("closecomments_period")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("closecomments_period_help")}</div>
   <select name="period" {user_cannot_override key=plugin_closecomments_enabled}disabled="disabled"{/user_cannot_override}>
	<option value="1" {if $period==1}selected="selected"{/if}>{$locale->tr("closecomments_1_day")}</option>
	<option value="7" {if $period==7}selected="selected"{/if}>{$locale->tr("closecomments_1_week")}</option>
	<option value="14" {if $period==14}selected="selected"{/if}>{$locale->tr("closecomments_2_weeks")}</option>
	<option value="30" {if $period==30}selected="selected"{/if}>{$locale->tr("closecomments_1_month")}</option>			
   </select>
  </div>
  
 </fieldset>
 <div class="buttons">
  <input type="hidden" name="op" value="updateCloseCommentsSettings" />
  <input type="reset" name="{$locale->tr("reset")}" />
  <input type="submit" name="{$locale->tr("settings")}" value="{$locale->tr("update")}" />
 </div>
</form>
{include file="$admintemplatepath/footernavigation.template"}
{include file="$admintemplatepath/footer.template"}
