<!-- {include file="header.html"} -->
<div id="currentPosition">
	<p>{lang your_current_position} {lang templet} &raquo; {lang company_templet}</p>
</div>
<div id="rightTop"> 
    <h3>{lang company_templet}</h3> 
    <ul class="subnav">
		<li><a href="templet.php">{lang manage}</a></li>
        <li><a class="btn1" href="templet.php?do=edit&id={$item.id}"><span>{lang edit}</span></a></li>
    </ul>
</div>
<div class="info">
  <form action="templet.php" method="post" id="EditFrm" name="edit_frm" enctype="multipart/form-data">
  <input type="hidden" name="id" value="{$item.id}">
  <input type="hidden" name="type" value="{$smarty.get.type}">
  <input type="hidden" name="page" value="{$smarty.get.page}" />
    <table class="infoTable">
      <tr>
        <th class="paddingT15"> {lang template_name}</th>
        <td class="paddingT15 wordSpacing5">          
		<input class="infoTableInput2" name="data[templet][title]" value="{$item.title}" /><label class="field_notice">{lang title_display}</label>        </td>
      </tr>
	  {if $smarty.get.type=="user"}
      <tr>
        <th class="paddingT15">{lang templet_style}{lang colon}</th>
        <td class="paddingT15 wordSpacing5"><select name="data[skin]" id="skinsStyle">
			<!--{foreach from=$UserSkins item=skinitem key=skinkey}-->
			<option value="{$skinkey}">{$skinitem}</option>
			<!--{/foreach}-->
			</select>
			<!--{foreach from=$UserSkins item=skinitem key=skinkey}-->
			<input type="hidden" name="data[skins][{$skinkey}]" value="{$skinitem}">
			<!--{/foreach}-->
			</td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang applicable_membership_type}</th>
        <td class="paddingT15 wordSpacing5">
			<select multiple name="data[require_membertype][]" id="RequireMembertype">
			<option value="0">{lang no_limit}</option>
			<!--{foreach from=$Membertypes item=typename key=typekey}-->
			<option value="{$typekey}">{$typename}</option>
			<!--{/foreach}-->
			</select>{lang click_ctrl_n_select}</td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang applicable_member_group}</th>
        <td class="paddingT15 wordSpacing5">
			<select multiple name="data[require_membergroups][]" id="RequireMembergroups">
			<option value="0">{lang no_limit}</option>
			<!--{foreach from=$Membergroups item=groupitem key=groupkey}-->
			<option value="{$groupkey}">{$groupitem}</option>
			<!--{/foreach}-->
			</select>{lang click_ctrl_n_select}</td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang if_default}</th>
        <td class="paddingT15 wordSpacing5"><!--{html_radios name="data[templet][is_default]" options=$AskAction checked=$item.is_default|default:0 separator=""}--></td>
      </tr>
	  {elseif $SiteStyles}
      <tr>
        <th class="paddingT15"> {lang templet_style}</th>
        <td class="paddingT15 wordSpacing5">
			<!-- {foreach from=$SiteStyles item=templet_style key=templet_style_key} -->
			<input type="hidden" name="data[site_theme_styles][]" value="{$templet_style.entry}">
			<!-- {/foreach} -->
		<select name="data[site_style]">
			<!-- {foreach from=$SiteStyles item=templet_style key=templet_style_key} -->
			<option value="{$templet_style.entry}" {if $CurrentSiteThemeStyle==$templet_style.entry}selected="selected"{/if}>{$templet_style.name}</option>
			<!-- {/foreach} -->
		</select>
		</td>
      </tr>
	  {/if}
      <tr>
        <th class="paddingT15"> {lang if_valid}</th>
        <td class="paddingT15 wordSpacing5"><!--{html_radios name="data[templet][status]" options=$AskAction checked=$item.status|default:0 separator=""}--></td>
      </tr>
      <tr>
        <th></th>
        <td class="ptb20">
			<input class="formbtn" type="submit" name="save" value="{lang save}" />		</td>
      </tr>
    </table>
  </form>
</div>
<!-- {include file="footer.html"} -->