{:tpl head}
<table cellpadding="0" cellspacing="1" class="table_list">
 <caption>模块管理</caption>
  <tr>
   <td>
    <strong>管理选项：</strong>
    <a href="?c=module&a=add">安装模块</a> |
    <a href="?c=module">管理模块</a>
   </td>
  </tr>
</table>
<div class="tabshead">
 <span>会员模块配置</span>
 <ul class="tabs" id="tabs_list">
  <li class="active">基本配置</li>
  <li>通行证配置</li>
 </ul>
</div>
<form action="?c=member&a=config" method="post" name="myform">
<input type="hidden" name="forward" value="{:$referer}" />
<div>
<table cellpadding="0" cellspacing="1" class="table_form" id="tabs_list_0">
 <tr>
  <td align="right" width="30%">网址模型：</td>
  <td>
   <select name="info[urlmodel]">
    {:Tag::option('0_动态|2_伪静态', $data['urlmodel'])}
   </select>
  </td>
 </tr>
 <tr>
  <td align="right">会员注册选项：</td>
  <td>
   <input type="checkbox" name="info[isreg]" value="1"{:Tag::checked($data['isreg'], 1)} />开放&nbsp;
   <input type="checkbox" name="info[ischeck]" value="1"{:Tag::checked($data['ischeck'], 1)} />审核
  </td>
 </tr>
 <tr>
  <td align="right">注册验证码：</td>
  <td>
   <input type="radio" name="info[captcha_reg]" value="1"{:Tag::checked($data['captcha_reg'],'1')}>是&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="info[captcha_reg]" value="0"{:Tag::checked($data['captcha_reg'],'0')}>否
  </td>
 </tr>
 <tr>
  <td align="right">登录验证码：</td>
  <td>
   <input type="radio" name="info[captcha_login]" value="1"{:Tag::checked($data['captcha_login'],'1')}>是&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="info[captcha_login]" value="0"{:Tag::checked($data['captcha_login'],'0')}>否
  </td>
 </tr>
 <tr>
  <td align="right">密码安全验证码：</td>
  <td>
   <input type="radio" name="info[captcha_password]" value="1"{:Tag::checked($data['captcha_password'],'1')}>是&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="info[captcha_password]" value="0"{:Tag::checked($data['captcha_password'],'0')}>否
  </td>
 </tr>
 <tr>
  <td align="right">后台登录验证码：</td>
  <td>
   <input type="radio" name="info[captcha_admin_login]" value="1"{:Tag::checked($data['captcha_admin_login'],'1')}>是&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="info[captcha_admin_login]" value="0"{:Tag::checked($data['captcha_admin_login'],'0')}>否
  </td>
 </tr>
 <tr>
  <td align="right">用户名最小字节数：</td>
  <td><input type="text" size="20" value="{:$data['regminname']}" name="info[regminname]"></td>
 </tr>
 <tr>
  <td align="right">用户名最大字节数：</td>
  <td><input type="text" size="20" value="{:$data['regmaxname']}" name="info[regmaxname]"></td>
 </tr>
 <tr>
  <td align="right">用户名禁止的字符：</td>
  <td><input type="text" size="55" value="{:$data['fbname']}" name="info[fbname]"></td>
 </tr>
</table>
<table cellpadding="0" cellspacing="1" class="table_form" id="tabs_list_1" style="display:none">
 <tr>
  <td class="align_r" width="30%">是否启用通行证</td>
  <td>
   <input type="radio" name="info[enablepassport]" value="1"{:Tag::checked($data['enablepassport'],'1')}>是&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="info[enablepassport]" value="0"{:Tag::checked($data['enablepassport'],'0')}>否
  </td>
 </tr>
 <tr>
  <td class="align_r">整合程序</td>
  <td>
   <script type="text/javascript">
    function set_passport(str){
		if(str == 'uc'){
			$('#notuc').hide();
			$('#uc').show();	
		} else {
			$('#uc').hide();	
			$('#notuc').show();
			if(str == 'discuz') $('#passporturl').val('http://www.***.com/bbs/api/passport.php');
			else $('#passporturl').val('http://www.***.com/bbs/');
		}
    }
   </script>
   <select name="info[passportfile]" onchange="set_passport(this.value);">
    {:Tag::option('uc_uc', $data['passportfile'])}
   </select>
  </td>
 </tr>
 <tbody id="notuc"{:if $data['passportfile']=='uc'} style="display:none"{:/if}>
 <tr>
  <td class="align_r">整合程序字符集</td>
  <td>
   <select name="info[passportcharset]">
    {:Tag::option('gbk_GBK/GB2312|utf-8_utf-8', $data['passportcharset'])}
   </select>
  </td>
 </tr>
 <tr>
  <td class="align_r">通行证接口地址<br>多个接口地址请用逗号","分隔</td>
  <td><input type="text" size="55" value="{:$data['passporturl']}" name="info[passporturl]" id="passporturl"></td>
 </tr>
 <tr>
  <td class="align_r">通行证私有密钥<br>请填写通行证私有密钥</td>
  <td><input type="text" size="30" value="{:$data['passportkey']}" name="info[passportkey]" id="passportkey"></td>
 </tr>
 </tbody>
 <tbody id="uc"{:if $data['passportfile']!='uc'} style="display:none"{:/if}>
 <!--{:if $uc_dbtablepre}-->
 <tr>
  <td class="align_r">UCenter 的 URL</td>
  <td><input type="text" size="50" value="{:UC_API}" name="uc[api]" id="uc_api"><br />例如：http://www.jxcms.com/ucenter</td>
 </tr>
 <tr>
  <td class="align_r">UCenter 的 IP</td>
  <td><input type="text" size="35" value="{:UC_IP}" name="uc[ip]" id="uc_ip"><br />一般不用填写,遇到无法同步时,请填写ucenter主机的IP地址</td>
 </tr>
 <tr>
  <td class="align_r">Ucenter 字符集</td>
  <td>
   <select name="uc[charset]" id="uc_charset">
   	{:Tag::option('gbk_GBK/GB2312|utf8_UTF-8', UC_CHARSET)}
   </select>
  </td>
 </tr>
 <tr>
  <td class="align_r">Ucenter 数据库主机名</td>
  <td><input type="text" name="uc[dbhost]" value="{:UC_DBHOST}" id="uc_dbhost" size="30"></td>
 </tr>
 <tr>
  <td class="align_r">Ucenter 数据库用户名</td>
  <td><input type="text" name="uc[dbuser]" value="{:UC_DBUSER}" size="30" id="uc_dbuser"></td>
 </tr>
 <tr>
  <td class="align_r">Ucenter 数据库密码</td>
  <td><input type="password" name="uc[dbpw]" value="" size="20" id="uc_dbpw"> <span class="fblue">留空则保持不变</span></td>
 </tr>
 <tr>
  <td class="align_r">Ucenter 数据库名</td>
  <td><input type="text" name="uc[dbname]" value="{:UC_DBNAME}" id="uc_dbname" size="30"></td>
 </tr>        
 <tr>
  <td class="align_r">Ucenter 数据库表前缀</th>
  <td><input type="text" name="uc[dbtablepre]" id="uc_dbpre" value="{:$uc_dbtablepre}" size="30"></td>
 </tr>
 <tr>
  <td class="align_r">Ucenter 数据库字符集</td>
  <td>
   <select name="uc[dbcharset]" id="uc_dbcharset">
   	{:Tag::option('gbk_GBK/GB2312|utf8_UTF-8', UC_DBCHARSET)}
   </select>
  </td>
 </tr>
 <tr>
  <td class="align_r">应用id(APP ID)</td>
  <td><input type="text" name="uc[appid]" value="{:UC_APPID}" size="20"></td>
 </tr>
 <tr>
  <td class="align_r">Ucenter 通信密钥</td>
  <td><input type="text" name="uc[key]" value="" size="40"> <span class="fblue">留空则保持不变</span></td>
 </tr>
 <!--{:else}-->
 <tr>
  <td colspan="2" class="align_c">请输入已安装UCenter的信息</td>
  </tr>
  <tr>
  <td class="align_r">UCenter 的 URL</td>
  <td><input type="text" size="50" value="http://" name="uc_api" id="uc_api"><br />例如：http://www.jxcms.com/ucenter，结尾不要加"/"</td>
 </tr>
 <tr>
  <td class="align_r">UCenter 的创始人密码</td>
  <td><input type="password" size="20" value="" name="ucfounderpw" id="ucfounderpw"></td>
 </tr>
 <tr>
  <td class="align_r">UCenter 的 IP</td>
  <td><input type="text" size="35" value="" name="uc_ip" id="uc_ip"><br />一般不用填写,遇到无法同步时,请填写ucenter主机的IP地址</td>
 </tr>
 <!--{:/if}-->
 </tbody>
</table>
</div>
<div style="text-align:center">
<button name="submit" type="submit">提交</button>
<button name="back" type="button" onclick="history.go(-1)">返回</button>
</div>
</form>
{:tpl foot}