<include: file="header.html">
<script>
function tplSelect(tpl,form, element) 
{
	//showModalDialog
	var arr = showModalDialog("admin_select.php?sId=[$sId]&o=tpl&tpl=" + tpl,"color","dialogWidth:428px;dialogHeight:266px;help:0;status:0;scroll:no");
	if(arr != null) {
		with(form){

			eval(element + ".value= '" +  arr + "'")

		}


	}
	 //window.open("admin_select.php?sId=[$sId]&o=psn&psn=" + psn,"psnselect","toolbar=0,resizable=yes,width=415,height=235,scrollbars=no")
	 // if (arr != null) format('forecolor',arr);
	 // else idEdit.focus();
}
</script>
<TABLE width="95%" border=0 align=center cellSpacing=0 cellPadding=0  >
  <form name="add_cate" method="post" action="[$base_url]o=index::setting_submit&TableID=[$setting.TableID]">
    <TBODY>
<TR>
        <TD vAlign=top align=middle width="50%">
		<TABLE cellspacing="1" cellpadding="4" width="100%"  border=0 class="table_border">
            <TBODY>
              <TR class="table_header" > 
                <TD height=25 colSpan=2 id=id2 ><strong>{lang:topic}</strong></TD>
              </TR>
              <TR class="table_td1" > 
                <TD width="210"  > {lang:content_model} <em></em></TD>
                <TD  id=id2> [$setting.Name] 
                  </TD>
              </TR>
              <TR class="table_header" >
                <TD height=25 colSpan=2 id=id2 ><strong>{lang:comment_setting}</strong></TD>
              </TR>
              <tr >
                <td class="table_td1">{lang:comment_mode}</td>
                <td class="table_td2">
				<if $setting.CommentMode == 1>
                  <input name="data_CommentMode" type="radio" id="data_CommentMode" value="0" >
                  <label for="data_CommentMode">{lang:anonymous}</label>
                  <input type="radio" name="data_CommentMode" id="data_CommentMode1" value="1" checked>
                  <label for="data_CommentMode1">{lang:bbsInterface}</label>	
				<else>
                  <input name="data_CommentMode" type="radio" id="data_CommentMode" value="0" checked>
                  <label for="data_CommentMode">{lang:anonymous}</label>
                  <input type="radio" name="data_CommentMode" id="data_CommentMode1" value="1">
                  <label for="data_CommentMode1">{lang:bbsInterface}</label>				
				</if>

                </td>
              </tr>
              <tr >
                <td class="table_td1">{lang:comment_tpl}</td>
                <td class="table_td2">
                  <INPUT name=data_CommentTpl id="data_CommentTpl" size=50  class='flat'  value="[$setting.CommentTpl]">
                  <input type='button' tabindex='13' value='...' onclick="tplSelect('[$setting.CommentTpl]',this.form,'data_CommentTpl')">
                </td>
              </tr>
              <tr >
                <td class="table_td1">{lang:comment_page_offset}</td>
                <td class="table_td2">
                  <INPUT name=data_CommentPageOffset id="data_CommentPageOffset" size=10  class='flat'  value="[$setting.CommentPageOffset]">
                </td>
              </tr>
              <tr >
                <td class="table_td1">{lang:comment_length}</td>
                <td class="table_td2">
                  <INPUT name=data_CommentLength id="data_CommentLength" size=10  class='flat'  value="[$setting.CommentLength]">
                </td>
              </tr>
              <tr >
                <td class="table_td1">{lang:comment_cache}</td>
                <td class="table_td2"> 
				<if $setting.CommentCache == 1>
	  <input name="data_CommentCache" type="radio" id="data_CommentCache" value="1" checked>
							 <label for="data_CommentCache">{lang::global:yes}</label>
			        <input type="radio" name="data_CommentCache" id="data_CommentCache1" value="0">
					<label for="data_CommentCache1">{lang::global:no}</label>                  
			 <else>
			        
			        <input type="radio" name="data_CommentCache" id="data_CommentCache" value="1"><label for="data_CommentCache">{lang::global:yes}</label>
			        <input type="radio" name="data_CommentCache" id="data_CommentCache1" value="0" checked><label for="data_CommentCache1">{lang::global:no}</label>
	
			</if>
</td>
              </tr>
              <tr >
                <td class="table_td1">{lang:comment_ip_hidden}</td>
                <td class="table_td2">
    				<if $setting.IpHidden == 1>
               <input name="data_IpHidden" type="radio" id="data_IpHidden" value="1" checked>
							 <label for="data_IpHidden">{lang::global:yes}</label>
			        <input type="radio" name="data_IpHidden" id="data_IpHidden1" value="0">
					<label for="data_IpHidden1">{lang::global:no}</label>
			  <else>
	               <input name="data_IpHidden" type="radio" id="data_IpHidden" value="1" >
							 <label for="data_IpHidden">{lang::global:yes}</label>
			        <input type="radio" name="data_IpHidden" id="data_IpHidden1" value="0" checked>
					<label for="data_IpHidden1">{lang::global:no}</label>
		  </if>
			  </td>
              </tr>
              <tr >
                <td class="table_td1">{lang:comment_allow_bbcode}</td>
                <td class="table_td2">
                  <input name="data_AllowBBcode" type="checkbox" id="data_AllowBBcode" value="1" disabled></td>
              </tr>
              <tr >
                <td class="table_td1">{lang:comment_allow_smilies}</td>
                <td class="table_td2">
                  <input name="data_AllowSmilies" type="checkbox" id="data_AllowSmilies" value="1" disabled></td>
              </tr>
              <tr >
                <td class="table_td1">{lang:comment_allow_html}</td>
                <td class="table_td2">
                  <input name="data_AllowHtml" type="checkbox" id="data_AllowHtml" value="1" disabled></td>
              </tr>
			     <tr > 
      <td class="table_td1">{lang:comment_allow_imgcode}</td>
      <td class="table_td2"> <input name="data_AllowImgcode" type="checkbox" id="data_AllowImgcode" value="1" disabled> </td>
    </tr>
			     <TR class="table_header" >
                   <TD height=25 colSpan=2 id=id2 ><strong>{lang:search_setting}</strong></TD>
	          </TR>
			     <tr >
                   <td class="table_td1">{lang:search_mode}</td>
                   <td class="table_td2"> <if $setting.SearchMode == 1>
                     <input name="data_SearchMode" type="radio" id="data_SearchMode" value="0" >
                     <label for="data_SearchMode">{lang:anonymous}</label>
                     <input type="radio" name="data_SearchMode" id="data_SearchMode1" value="1" checked>
                     <label for="data_SearchMode1">{lang:bbsInterface}</label>
                     <else>
                     <input name="data_SearchMode" type="radio" id="data_SearchMode" value="0" checked>
                     <label for="data_SearchMode">{lang:anonymous}</label>
                     <input type="radio" name="data_SearchMode" id="data_SearchMode1" value="1">
                     <label for="data_SearchMode1">{lang:bbsInterface}</label>
                   </if> </td>
	          </tr>
			     <tr >
                   <td class="table_td1">{lang:search_tpl}</td>
                   <td class="table_td2">
                     <INPUT name="data_SearchTpl" id="data_SearchTpl" size=50  class='flat'  value="[$setting.SearchTpl]">
                     <input type='button' tabindex='13' value='...' onclick="tplSelect('[$setting.SearchTpl]',this.form,'data_SearchTpl')">
                   </td>
	          </tr>
			     <tr >
                   <td class="table_td1">{lang:searchpro_tpl}</td>
                   <td class="table_td2">
                     <INPUT name="data_SearchProTpl" id="data_SearchProTpl" size=50  class='flat'  value="[$setting.SearchProTpl]">
                     <input type='button' tabindex='13' value='...' onclick="tplSelect('[$setting.SearchProTpl]',this.form,'data_SearchProTpl')">
                   </td>
	          </tr>
			     <tr >
                   <td class="table_td1">{lang:search_page_offset}</td>
                   <td class="table_td2">
                     <INPUT name="data_SearchPageOffset" id="data_SearchPageOffset" size=10  class='flat'  value="[$setting.SearchPageOffset]">
                   </td>
	          </tr>
			     <tr >
                   <td class="table_td1">{lang:allow_search_field}</td>
                   <td class="table_td2">
                     <input name="data_AllowSearchField" type="text" class="flat" id="data_AllowSearchField" value="[$setting.AllowSearchField]" size="60">
                     <span class="table_td1">{lang:allow_search_field_help}</span> </td>
	          </tr>
              <TR class="table_td1"> 
                <TD height=30 colSpan=2 align=middle > <INPUT name="submit" type=submit value="{lang::global:submit_value}" class="button"> 
                  &nbsp;&nbsp; <INPUT name="reset" type=reset value="{lang::global:reset_value}"  class="button"> 
                </TD>
              </TR>
            </TBODY>
          </TABLE></TD>
      </TR></TBODY><INPUT type=hidden value=edit_submit name=action></form></TABLE>
<include: file="footer.html">