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

<form action="settings.php" method="post">

<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td colspan="2" class="header">{$langadmin.menue_generalsettings}</td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.adminskin}
	</td>
    <td class="secondrow">
	<select name="skinsel" id="skinsel">
	{$skinsel}
    </select></td>
  </tr>
  <tr>
    <td width="30%" class="firstrow">{$langadmin.lang_user}</td>
    <td class="secondrow">
	<select name="lang" id="lang"> 
	{foreach from=$items item=la}
	<option value="{$la->code}" {if $row->lang==$la->code}selected="selected"{/if}>{$la->code|upper}</option>
	{/foreach}
	</select>
	</td>
  </tr>
  <tr>
    <td width="30%" class="firstrow">{$langadmin.lang_admin}</td>
    <td class="secondrow">
	
	<select name="langadmin" id="langadmin"> 
	{foreach from=$items2 item=la2}
	<option value="{$la2->code}" {if $row->langadmin==$la2->code}selected="selected"{/if}>{$la2->code|upper}</option>
	{/foreach}
	</select>
	</td>
  </tr>
  <tr>
    <td colspan="2" class="theader">{$langadmin.datetimeformat}</td>
    </tr>
  <tr>
    <td width="30%" class="firstrow">{$langadmin.dateformat}</td>
    <td class="secondrow">
		<select name="tformat">
		<option value="d-m-Y" {if $row->tformat=="d-m-y"}selected="selected"{/if}>{$smarty.now|date_format:"%d-%m-%Y"} (DD-MM-YYYY)</option>
		<option value="d/m/Y" {if $row->tformat=="d/m/Y"}selected="selected"{/if}>{$smarty.now|date_format:"%d/%m/%Y"} (DD/MM/YYYY)</option>
		<option value="d.m.Y" {if $row->tformat=="d.m.Y"}selected="selected"{/if}>{$smarty.now|date_format:"%d.%m.%Y"} (DD.MM.YYYY)</option>
		<option value="m-d-Y" {if $row->tformat=="m-d-Y"}selected="selected"{/if}>{$smarty.now|date_format:"%m-%d-%Y"} (MM-DD-YYYY)</option>
		<option value="m/d/Y" {if $row->tformat=="m/d/Y"}selected="selected"{/if}>{$smarty.now|date_format:"%m/%d/%Y"} (MM/DD/YYYY)</option>
		<option value="Y-m-d" {if $row->tformat=="Y-m-d"}selected="selected"{/if}>{$smarty.now|date_format:"%Y-%m-%d"} (YYYY-MM-DD)</option>
		</select>

	</td>
  </tr>
  <tr>
    <td width="30%" class="firstrow">{$langadmin.timeformat}</td>
    <td class="secondrow">
	<select name="tformat_h">
     <option value=", H:i:s" {if $row->tformat_h==", H:i:s"}selected="selected"{/if}> {$smarty.now|date_format:"%H:%I:%S"} (HH:II:SS)</option>
	 <option value=", H.i:s" {if $row->tformat_h==", H.i:s"}selected="selected"{/if}> {$smarty.now|date_format:"%H.%I:%S"} (HH.II:SS)</option>
	 <option value=", H:i" {if $row->tformat_h==", H:i"}selected="selected"{/if}> {$smarty.now|date_format:"%H:%I"} (HH:II)</option>
	 <option value=", H.i" {if $row->tformat_h==", H.i"}selected="selected"{/if}> {$smarty.now|date_format:"%H.%I"} (HH.II)</option>
	 
	 <option value=", h:i:s (a)" {if $row->tformat_h==", h:i:s (a)"}selected="selected"{/if}> {$smarty.now|date_format:"%H:%I:%S"} (HH:II:SS /am-pm)</option>
	 <option value=", h.i:s (a)" {if $row->tformat_h==", h.i:s (a)"}selected="selected"{/if}> {$smarty.now|date_format:"%H.%I:%S"} (HH.II:SS /am-pm)</option>
	 <option value=", h:i (a)" {if $row->tformat_h==", h:i (a)"}selected="selected"{/if}> {$smarty.now|date_format:"%H:%I"} (HH:II /am-pm)</option>
	 <option value=", h.i (a)" {if $row->tformat_h==", h.i (a)"}selected="selected"{/if}> {$smarty.now|date_format:"%H.%I"} (HH.II /am-pm)</option>
    </select>
	
	</td>
  </tr>
  <tr>
    <td colspan="2" class="theader">{$langadmin.bbcodeoptions}</td>
    </tr>
  <tr>
    <td width="30%" class="firstrow">{$langadmin.bbcodesite}</td>
    <td class="secondrow"><input name="bbcodesite" type="checkbox" id="bbcodesite" value="1" {if $row->bbcodesite==1}checked="checked"{/if}></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.bbcodecomments}</td>
    <td class="secondrow"><input name="bbcodecomments" type="checkbox" id="bbcodecomments" value="1" {if $row->bbcodecomments==1}checked="checked"{/if}></td>
  </tr>
  <tr>
    <td width="30%" class="firstrow">{$langadmin.imgcode}</td>
    <td class="secondrow"><input name="imgcode" type="checkbox" id="imgcode" value="1" {if $row->imgcode==1}checked="checked"{/if}></td>
  </tr>
  <tr>
    <td width="30%" class="firstrow">{$langadmin.smilieallowed}</td>
    <td class="secondrow"><input name="smilies" type="checkbox" id="smilies" value="1" {if $row->smilies==1}checked="checked"{/if}></td>
  </tr>
  <tr>
    <td width="30%" valign="top" class="firstrow">{$langadmin.smilieallowed_comments}</td>
    <td class="secondrow"><input name="smileycomments" type="checkbox" id="smilies" value="1" {if $row->smileycomments==1}checked="checked"{/if}></td>
  </tr>
  <tr>
  <td width="30%" class="firstrow">{$langadmin.smiliebr}</td>
   <td class="secondrow"><input name="smiliebr" type="text" id="smiliebr" value="{$row->smiliebr}" size="10" maxlength="2"></td>
  </tr>
  <tr>
    <td colspan="2" valign="top" class="theader">{$langadmin.censorebanned}</td>
    </tr>
  <tr>
    <td width="30%" valign="top" class="firstrow">{$langadmin.banneduser}<br>
      <small>{$langadmin.bannedunamestext}</small> </td>
    <td class="secondrow">
<textarea name="banned" cols="50" rows="5" id="banned">{section name=bu loop=$banneduser}{$banneduser[bu].banned}{/section}</textarea></td>
  </tr>
  <tr>
    <td valign="top" class="firstrow">{$langadmin.bannedemails}<br>
 <small>{$langadmin.banneduemailstext}</small>
</td>
   <td class="secondrow">
<textarea name="bannede" cols="50" rows="5" id="bannede">{section name=be loop=$bannedemails}{$bannedemails[be].bannedm}{/section}</textarea></td>
  </tr>
  <tr>
    <td valign="top" class="firstrow">{$langadmin.censoredwords}<br>
 <small>{$langadmin.censoredwordstext}</small>
</td>
    <td class="secondrow">
<textarea name="baw" cols="50" rows="5" id="baw">{section name=bw loop=$badwords}{$badwords[bw].baw}{/section}</textarea></td>
  </tr>
  <tr>
    <td width="30%" valign="top" class="firstrow">{$langadmin.censorewordswith}</td>
    <td class="secondrow"><input name="badwords_replace" type="text" size="50" value="{$row->badwords_replace|escape:"htmlall"}"></td>
  </tr>
  <tr>
    <td colspan="2" class="theader">{$langadmin.registeroptions}</td>
    </tr>
  <tr>
    <td width="30%" class="firstrow">{$langadmin.registermode}</td>
    <td class="secondrow">
	<select name="regtype" id="regtype">
      <option value="norm" {if $row->regtype=="norm"}selected="selected"{/if}>{$langadmin.registernorm}</option>
      <option value="admin" {if $row->regtype=="admin"}selected="selected"{/if}>{$langadmin.registeradmin}</option>
      <option value="now" {if $row->regtype=="now"}selected="selected"{/if}>{$langadmin.registernow}</option>
    </select></td>
  </tr>
  <tr>
    <td width="30%" class="firstrow">{$langadmin.mailbyregister}</td>
    <td class="secondrow"><input name="mailbyregister" type="checkbox" id="mailbyregister" value="1" {if $row->mailbyregister==1}checked="checked"{/if}></td>
  </tr>
  <tr>
    <td colspan="2" class="theader">{$langadmin.codeboxes}</td>
    </tr>
  <tr>
    <td class="firstrow">{$langadmin.codeboxes_comments}</td>
    <td class="secondrow"><input name="boxwidthcomm" type="text" id="boxwidthcomm" size="10" maxlength="10" value="{$row->boxwidthcomm}"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.codeboxes_forums}</td>
    <td class="secondrow"><input name="boxwidthforums" type="text" id="boxwidthforums" size="10" maxlength="10" value="{$row->boxwidthforums}"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.codeboxes_maxlines}</td>
    <td class="secondrow"><input name="maxlines" type="text" id="maxlines" size="10" maxlength="4" value="{$row->maxlines}"></td>
  </tr>
  <tr>
    <td colspan="2" class="theader">{$langadmin.gallerysettings}</td>
    </tr>
  <tr>
    <td class="firstrow">{$langadmin.galpicspr}</td>
    <td class="secondrow"><input name="picspr" type="text" id="picspr" size="10" maxlength="2" value="{$row->picspr}"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.galpicspp}</td>
    <td class="secondrow"><input name="picspp" type="text" id="picspp" size="10" maxlength="3" value="{$row->picspp}"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.galwidth}</td>
    <td class="secondrow"><input name="galwidth" type="text" id="galwidth" size="10" maxlength="10" value="{$row->galwidth}"></td>
  </tr>
  <tr>
    <td class="c1">{$langadmin.galheightautono}</td>
    <td class="c1"><input name="nofactor" type="checkbox" id="nofactor" value="1" {if $row->nofactor==1}checked="checked"{/if} >      </td>
  </tr>
  <tr>
    <td class="c1">{$langadmin.galheight_t}</td>
    <td class="c1"><input name="galheight" type="text" id="galheight" size="10" maxlength="3" value="{$row->galheight}"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.thumbcomp}</td>
    <td class="secondrow"><input name="thumbcomp" type="text" id="thumbcomp" value="{$row->thumbcomp}" size="10" maxlength="3"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.addwatermark}<br>
      <small>{$langadmin.addwatermark_desc}</small></td>
    <td class="secondrow"><input name="imagewatermark" type="checkbox" id="imagewatermark" value="1" {if $row->imagewatermark==1}checked="checked"{/if}></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.addwatermark_path}</td>
    <td class="secondrow"><input name="watermark" type="text" id="watermark" value="{$row->watermark}" size="50"htmlall"}"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.addwatermark_trans}<br>
      <small>{$langadmin.addwatermark_trans_desc}</small></td>
    <td class="secondrow"><input name="watermarktrans" type="text" id="watermarktrans" value="{$row->watermarktrans}" size="10" maxlength="3"></td>
  </tr>
  <tr>
    <td colspan="2" class="theader">{$langadmin.commentglobal}</td>
    </tr>
  <tr>
    <td class="firstrow">{$langadmin.commentnews}</td>
    <td class="secondrow"><input name="commentnews" type="checkbox" id="commentnews" value="1" {if $row->commentnews==1}checked="checked"{/if}></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.activate_spamprotect}</td>
    <td class="secondrow"><input name="spamprotect" type="checkbox" id="spamprotect" value="1" {if $row->spamprotect==1}checked="checked"{/if}></td>
  </tr>
  
  <tr>
    <td class="firstrow">{$langadmin.spamprotect_time}</td>
    <td class="secondrow"><input name="spamprotect_time" type="text" id="spamprotect_time" value="{$row->spamprotect_time}" size="5" maxlength="4"></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.mail_by_comment}</td>
    <td class="secondrow"><input name="mailbycomment" type="checkbox" id="mailbycomment" value="1" {if $row->mailbycomment==1}checked="checked"{/if}></td>
  </tr>
  <tr>
    <td class="firstrow">{$langadmin.general_wordwrap}</td>
    <td class="secondrow"><input name="maxlengthword" type="text" id="maxlengthword" value="{$row->maxlengthword}" size="5"></td>
  </tr>
  <tr>
    <td class="firstrow">&nbsp;</td>
    <td class="secondrow">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="secondrow"><input accesskey="s" type="submit" class="button" value="{$langadmin.edit}">
      <input name="savesettings" type="hidden" id="savesettings" value="1"></td>
    </tr>
</table>
</form>
{include file="../foot.tpl"}
