<{include file="index/header.html"}> 
<div class="nav">
	<a href="?m=api&a=config_wchat"<{if $smarty.get.a == 'config_wchat'}> class="ch"<{else}><{/if}>>微信设置</a>
	<a href="?m=api&a=notice_tpl&type=wxtpl"<{if $smarty.get.type == 'wxtpl'}> class="ch"<{else}><{/if}>>微信通知模板</a> 
	<a href="?m=wchat&a=tpl"<{if $smarty.get.a == 'tpl'}> class="ch"<{else}><{/if}>>通知模板</a>
</div>
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con">
		<p>配置地址：http://mp.weixin.qq.com</p>
		<p>URL地址：<{$UQCMS.site_url}>wap.php?m=wxapi</p> 
		<p>Token(令牌)：非必须</p> 
		<p>URLEncodingAESKey：非必须</p> 
	</div>  
</div>
<div class="main">
	<form action="?m=config&a=post" method="post" back="false">
		<table width="100%" class="etable">
			<tr>
				<td width="120">开启微信：</td>
				<td>
					<label><input type="radio" name="wchat_status" value="1" <{if $UQCMS.wchat_status == '1'}>checked="checked"<{/if}>/> 开启 </label>
					<label><input type="radio" name="wchat_status" value="0" <{if $UQCMS.wchat_status == '0' || $UQCMS.wchat_status == ''}>checked="checked"<{/if}>/> 关闭 </label>
				</td>
			</tr> 
			<td>AppID(应用ID)：</td>
				<td><input type="text" size="50" name="wchat_appid" value="<{$UQCMS.wchat_appid}>"/></td>
			</tr>
			<tr>
				<td>AppSecret：</td>
				<td><input type="password" size="50" name="wchat_appsecret" value="<{$UQCMS.wchat_appsecret}>"/></td>
			</tr>
			<tr>
				<td>Token(令牌)：</td>
				<td><input type="text" size="50" name="wchat_token" value="<{$UQCMS.wchat_token}>"/></td>
			</tr>  
			<tr>
				<td>加解密密钥：</td>
				<td><input type="text" size="50" name="wchat_encoding" value="<{$UQCMS.wchat_encoding}>"/>
					<p>EncodingAESKey</p>
				</td>
			</tr>  
			<tr>
				<td>消息加解密方式：</td>
				<td>
				<label><input type="radio" name="wchat_safe_type" value="1" <{if $UQCMS.wchat_safe_type == '1' || $UQCMS.wchat_safe_type == ''}>checked="checked"<{/if}>/> 明文模式 </label>
				<label><input type="radio" name="wchat_safe_type" value="2" <{if $UQCMS.wchat_safe_type == '2'}>checked="checked"<{/if}>/> 兼容模式 </label>
				<label><input type="radio" name="wchat_safe_type" value="3" <{if $UQCMS.wchat_safe_type == '3'}>checked="checked"<{/if}>/> 安全模式（推荐） </label> 
				</td>
			</tr>  
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" id="submit" value="提交"/></td>
			</tr>
		</table> 
	</form> 
</div>
<{include file="index/footer.html"}> 