
<form action="index.php?md=Affiliate_Merchants_Views_Ucenter" method="POST">
<table width="560" cellspacing="0" cellpadding="3" border="0" class="listing mb10">
<tr>
    <td colspan="2" class="tableheader"><?php echo L_G_UCENTER_SETTINGS; ?></td>
</tr>
<tr>
    <td width="120">是否开启Ucenter：</td>
    <td>
        <label><input type="radio" name="uc_enable" value="1" <?php echo $_POST['uc_enable']?'checked="checked"':''; ?> />开启</label>
        <label><input type="radio" name="uc_enable" value="0" <?php echo !$_POST['uc_enable']?'checked="checked"':''; ?> />关闭</label>
    </td>
</tr>
<tr>
    <td width="120">UCenter 应用 ID：</td>
    <td><input type="text" class="input" name="uc_appid" size="32" value="<?php echo $_POST['uc_appid']; ?>" /></td>
</tr>
<tr>
    <td width="120">UCenter 通信密钥：</td>
    <td><input type="text" class="input" name="uc_appkey" size="32" value="<?php echo $_POST['uc_appkey']; ?>" /></td>
</tr>
<tr>
    <td width="120">UCenter 访问地址：</td>
    <td><input type="text" class="input" name="uc_url" size="32" value="<?php echo $_POST['uc_url']; ?>" /> 最后不要加"/"</td>
</tr>
<tr>
    <td width="120">UCenter IP地址：</td>
    <td><input type="text" class="input" name="uc_ip" size="32" value="<?php echo $_POST['uc_ip']; ?>" /> 可不填</td>
</tr>
<tr>
    <td width="120">UCenter 连接方式：</td>
    <td><label><input id="type_mysql" type="radio" name="uc_method" value="mysql" <?php echo $_POST['uc_method']=='mysql'?'checked="checked"':''; ?> />数据库方式</label> <label><input id="type_post" type="radio" name="uc_method" value="post" <?php echo $_POST['uc_method']=='post'?'checked="checked"':''; ?> />接口方式</label></td>
</tr>
<tr id="uc_dbconfig" class="listrow1" <?php echo $_POST['uc_method']=='post'?'style="display:none;"':''; ?>>
    <td width="120">&nbsp;</td>
    <td>
        <p>UCenter 数据库服务器：<br /><input type="text" class="input" name="uc_dbserver" size="32" value="<?php echo $_POST['uc_dbserver']; ?>" /></p>
        <p>UCenter 数据库用户名：<br /><input type="text" class="input" name="uc_dbusername" size="32" value="<?php echo $_POST['uc_dbusername']; ?>" /></p>
        <p>UCenter 数据库密码：<br /><input type="password" class="input" name="uc_dbpasswd" size="32" value="<?php echo $_POST['uc_dbpasswd']; ?>" /></p>
        <p>UCenter 数据库名：<br /><input type="text" class="input" name="uc_dbname" size="32" value="<?php echo $_POST['uc_dbname']; ?>" /></p>
        <p>UCenter 表前缀：<br /><input type="text" class="input" name="uc_tableprefix" size="32" value="<?php echo $_POST['uc_tableprefix']; ?>" /></p>
    </td>
</tr>
<tr>
    <td colspan="2" align="center"><input type="submit" value="保存配置信息" class="formbutton" /></td>
</tr>
</table>
<input type="hidden" name="commited" value="yes" />
</form>

<script type="text/javascript" src="../scripts/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){

$('#type_mysql').click(function(){
    $('#uc_dbconfig').fadeIn('fast');
});

$('#type_post').click(function(){
    $('#uc_dbconfig').fadeOut('fast');
});

});
</script>

