<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: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 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>
<br>
<TABLE width="95%" border=0 align=center cellSpacing=0 cellPadding=0  >
  <form name="add_cate" method="post" action="[$base_url]o=index::fulltext_add&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=4 id=id2 ><strong>{lang:fulltext_topic}</strong></TD>
              </TR>
              <TR align="center" class="table_td1">
                <TD >{lang:search_name}</TD>
                <TD >{lang:search_fields}</TD>
                <TD height=30 colSpan=2 >{lang::global:execute_op}</TD>
              </TR>
			  <loop $FullText key=key var=var>
			    <TR align="center" class="table_td1">
                <TD >[$var.SearchName]</TD>
                <TD >[$var.FullTextFields]</TD>
                <TD height=30 colSpan=2 ><a href="[$base_url]o=index::fulltext_del&TableID=[$setting.TableID]&SearchID=[$var.SearchID]" onclick="return confirm('{lang::global:confirm_del}')">{lang::global:del}</a></TD>
              </TR>
			  </loop>
              <TR class="table_td1">
                <TD height=30 colSpan=4 >
				  
				  {lang:add}
				  <INPUT name="fieldNum" id="fieldNum" size=5  class='flat'  value="1">
				  {lang:row}
				                   <INPUT name="submit2" type=submit value="{lang:new_fulltext}" class="button">
&nbsp;&nbsp;                </TD>
              </TR>
            </TBODY>
        </TABLE></TD>
      </TR>
    </TBODY>
    <INPUT type=hidden value=edit_submit name=action2>
  </form>
</TABLE>
<p>&nbsp;</p>
<include: file="footer.html">