{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=BlogTimes title=$locale->tr("blogtimes_plugin")}
<script type="text/javascript" src="plugins/blogtimes/js/colorpicker/picker.js"></script>
<SCRIPT type="text/javascript">
var cp = new ColorPicker('window');
</SCRIPT>
<form name="blogTimesPluginConfig" 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" />{$locale->tr("blogtimes_plugin_enabled")}
   </div>
  </div>
  
  <div class="field">
   <label for="backColor">{$locale->tr("label_backcolor")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("blogtimes_backcolor")}</div>
   <input style="width:100px;" class="text" type="text" name="backColor" id="backColor" value="{$backColor}" width="10" />
   <A HREF="#" style="border: 1px solid #000000; background:{$backColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['backColor'],'pickBackColor');return false;" NAME="pickBackColor" ID="pickBackColor">&nbsp;&nbsp;&nbsp;</A>
  </div>

  <div class="field">
   <label for="boxColor">{$locale->tr("label_boxcolor")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("blogtimes_boxcolor")}</div>
   <input style="width:100px;" class="text" type="text" name="boxColor" id="boxColor" value="{$boxColor}" width="10" />
   <A HREF="#" style="border: 1px solid #000000; background:{$boxColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['boxColor'],'pickBoxColor');return false;" NAME="pickBoxColor" ID="pickBoxColor">&nbsp;&nbsp;&nbsp;</A>
  </div>

  <div class="field">
   <label for="textColor">{$locale->tr("label_textcolor")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("blogtimes_textcolor")}</div>
   <input style="width:100px;" class="text" type="text" name="textColor" id="textColor" value="{$textColor}" width="10" />
   <A HREF="#" style="border: 1px solid #000000; background:{$textColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['textColor'],'pickTextColor');return false;" NAME="pickTextColor" ID="pickTextColor">&nbsp;&nbsp;&nbsp;</A>
  </div>

  <div class="field">
   <label for="lineColor">{$locale->tr("label_linecolor")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("blogtimes_linecolor")}</div>
   <input style="width:100px;" class="text" type="text" name="lineColor" id="lineColor" value="{$lineColor}" width="10" />
   <A HREF="#" style="border: 1px solid #000000; background:{$lineColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['lineColor'],'pickLineColor');return false;" NAME="pickLineColor" ID="pickLineColor">&nbsp;&nbsp;&nbsp;</A>
  </div>

  <div class="field">
   <label for="borderColor">{$locale->tr("label_bordercolor")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("blogtimes_bordercolor")}</div>
   <input style="width:100px;" class="text" type="text" name="borderColor" id="borderColor" value="{$borderColor}" width="10" />
   <A HREF="#" style="border: 1px solid #000000; background:{$borderColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['borderColor'],'pickBorderColor');return false;" NAME="pickBorderColor" ID="pickBorderColor">&nbsp;&nbsp;&nbsp;</A>
  </div>

  <div class="field">
   <label for="tickColor">{$locale->tr("label_tickcolor")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("blogtimes_tickcolor")}</div>
   <input style="width:100px;" class="text" type="text" name="tickColor" id="tickColor" value="{$tickColor}" width="10" />
   <A HREF="#" style="border: 1px solid #000000; background:{$tickColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['tickColor'],'pickTickColor');return false;" NAME="pickTickColor" ID="pickTickColor">&nbsp;&nbsp;&nbsp;</A>
  </div>

  <div class="field">
   <label for="title">{$locale->tr("label_title")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("blogtimes_title")}</div>
   <input class="text" type="text" name="title" id="title" value="{$title}" width="10" />
  </div>

  <div class="field">
   <label for="width">{$locale->tr("label_width")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("blogtimes_width")}</div>
   <input class="text" type="text" name="width" id="width" value="{$width}" width="10" />
  </div>

  <div class="field">
   <label for="height">{$locale->tr("label_height")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("blogtimes_height")}</div>
   <input class="text" type="text" name="height" id="height" value="{$height}" width="10" />
  </div>

  <div class="field">
   <label for="lastDays">{$locale->tr("label_lastdays")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("blogtimes_lastdays")}</div>
   <input class="text" type="text" name="lastDays" id="lastDays" value="{$lastDays}" width="10" />
  </div>  

 </fieldset>

 <div class="buttons"> 
  <input type="hidden" name="op" value="updateBlogTimesConfig" />
  <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"}