<?php mymps_admin_tpl_global_head();?>
<style>
.vtop{ background-color:#ffffff}
.smalltxt{ font-size:12px!important; color:#999!important; font-weight:100!important}
.altbg1{ background-color:#f1f5f8; width:45%;}
</style>
<div id="<?=MPS_SOFTNAME?>">
<table border="0" cellspacing="0" cellpadding="0" class="vbm">
  <tr class="firstr">
  	<td colspan="2">技巧提示</td>
  </tr>
  <tr bgcolor="#ffffff">
    <td id="menu_tip">
    <li>本手机功能页仅支持WAP2.0(XHTML方式)以上的手机浏览器进行访问。</li>
	<li>手机版网站logo文件为根目录下<font color="red">/wap/waplogo.jpg</font>，您可以替换waplogo.jpg为你的图片文件，但文件名必须为waplogo.jpg,
图片尺寸像素为<font color="red">111*26</font></li>
    </td>
  </tr>
</table>
</div>
<form method="post" action="?">
<input name="return_url" value="<?php echo GetUrl();?>" type="hidden">
<div id="<?=MPS_SOFTNAME?>">
<table border="0" cellspacing="0" cellpadding="0" class="vbm">
    <tr class="firstr"><td colspan="2">手机版全局设置</td></tr>
    <tbody style="display: yes; background-color:white">
        <tr>
            <td class="altbg1" ><b>开启手机版:</b><br /><span class="smalltxt">开启本功能，用户将能访问手机版</span></td><td class="altbg2">
			<label for="allowmobile1"><input class="radio" type="radio" name="settings[allowmobile]" value="1" id="allowmobile1" onclick="$('hidden_settings_mobile').style.display = '';" <? if($mobile[allowmobile] == 1) echo 'checked';?>> 是</label> &nbsp; &nbsp; 
            <label for="allowmobile0"><input class="radio" type="radio"  name="settings[allowmobile]" value="0" id="allowmobile0" onclick="$('hidden_settings_mobile').style.display = 'none';" <? if(empty($mobile[allowmobile])) echo 'checked';?>> 否</label>
            </td>
        </tr>
    <tbody>
    <tbody id="hidden_settings_mobile" style="background-color:white;<?php if(empty($mobile[allowmobile])) echo 'display:none;'?>">
		<tr>
			<td class="altbg1" ><b>开启手机浏览器自动跳转:</b><br /><span class="smalltxt">开启后用户使用手机浏览器访问网站功能页以外页面时自动跳转到网站首页进行访问。<br /></span></td><td class="altbg2"><label for="autorefresh1"><input class="radio" type="radio" name="settings[autorefresh]" value="1" id="autorefresh1" <?php if($mobile[autorefresh] == 1){echo 'checked';} ?>> 是</label> &nbsp; &nbsp; 
			<label for="autorefresh0"><input class="radio" type="radio"  name="settings[autorefresh]" value="0" id="autorefresh0" <?php if(empty($mobile[autorefresh])){echo 'checked';} ?>> 否</label>
			</td>
		</tr>
		<tr>
			<td class="altbg1" ><b>是否允许手机版注册:</b><br /><span class="smalltxt">是否开启手机版注册功能，手机注册不会对用户栏目中的注册页必填项进行检测<br />请谨慎开启</span></td><td class="altbg2"><label for="register1"><input class="radio" type="radio" name="settings[register]" value="1" id="register1" <?php if($mobile[register] == 1){echo 'checked';} ?>> 是</label> &nbsp; &nbsp; 
			<label for="register0"><input class="radio" type="radio"  name="settings[register]" value="0" id="register0" <?php if(empty($mobile[register])){echo 'checked';} ?>> 否</label>
			</td>
		</tr>
		<tr>
			<td class="altbg1" ><b>是否开启验证码:</b><br /><span class="smalltxt">不开启则手机注册、登录、发布等操作均无验证码</span></td><td class="altbg2"><label for="authcode1"><input class="radio" type="radio" name="settings[authcode]" value="1" id="authcode1" <?php if($mobile[authcode] == 1){echo 'checked';} ?>> 是</label> &nbsp; &nbsp; 
			<label for="authcode0"><input value="0" id="authcode0" class="radio" type="radio"  name="settings[authcode]" <?php if(empty($mobile[authcode])){echo 'checked';} ?>> 否</label>
			</td>
		</tr>
		<tr>
			<td class="altbg1" ><b>每页显示主题数:</b><br /><span class="smalltxt">主题列表页每页显示主题个数，推荐值为10</span></td><td class="altbg2"><input name="settings[mobiletopicperpage]" value="<?php echo $mobile[mobiletopicperpage] ? $mobile[mobiletopicperpage] : 10 ;?>" type="text" class="txt"   />
			</td>
		</tr>
		<tr>
			<td class="altbg1" ><b>手机版访问域名:</b><br /><span class="smalltxt">如http://m.mymps.com.cn，默认请留空</span></td><td class="altbg2"><input name="settings[mobiledomain]" type="text" class="text" value="<?php echo $mobile[mobiledomain]; ?>"/>
			</td>
		</tr>
    </tbody>
</table>
</div>
<center><input name="<?php echo CURSCRIPT; ?>_submit" type="submit" value="提 交" class="mymps large"/></center>
</form>
<?php mymps_admin_tpl_global_foot();?>