<extend name="Public/base"/>

<block name="body">

    
    <div class="cf main-place top_nav_list navtab_list">
        <h3 class="page_title">{$meta_title}</h3>
        <p class="description_text">用于配置相关微信公众号参数用来后台绑定管理员账号绑定微信功能</p>
    </div>
    
	<div class="tab-wrap">

		<div class="tab-content tabcon1711 tabcon17112">
		<div id="tab1" class="tab-pane in tab1">
		<form action="{:U('saveTool')}" method="post" class="form-horizontal qq_login form_info_ml">
      <table border="0" cellspacing="0" cellpadding="0">
          <tbody>
            <tr>
                <td class="l noticeinfo">接口URL</td>
                <td class="r table_radio">
                    <input type="text" class="text input-large" value="{$wechat_url}">
                    <span class="notice-text">请将此地址复制到微信公众平台接口URL项</span>
                </td>
            </tr><tr>
                <td class="l noticeinfo">微信AppId</td>
                <td class="r table_radio">
                    <input type="text" class="text input-large" name="config[appid]" value="{$wechat['appid']}">
                    <span class="notice-text">请与微信公众平台开发者凭据AppId保持一致</span>
                </td>
            </tr>
            <tr>
                <td class="l noticeinfo">微信AppSecret</td>
                <td class="r table_radio">
                    <input type="text" class="text input-large" name="config[appsecret]" value="{$wechat['appsecret']}">
                    <span class="notice-text">请与微信公众平台开发者凭据AppSecret保持一致</span>
                </td>
            </tr>
            <tr>
                <td class="l noticeinfo">微信Token</td>
                <td class="r table_radio">
                    <input type="text" class="text input-large" name="config[token]" value="{$wechat['token']}">
                    <span class="notice-text">请与微信公众平台Token保持一致</span>
                </td>
            </tr>
            <tr>
                <td class="l noticeinfo">消息加密KEY</td>
                <td class="r table_radio">
                    <input type="text" class="text input-large" name="config[key]" value="{$wechat['key']}">
                    <span class="notice-text">请与微信公众平台EncodingAESKey保持一致(消息加解密密钥)</span>
                </td>
            </tr>
            <tr>
                <td class="l noticeinfo">启用状态</td>
                <td class="r table_radio">
                    <span class="form_radio">
                    <label><input type="radio" class="inp_radio" value="0" name="status" <eq name="wechat_data['status']" value="0">checked="checked"</eq>>禁用</label>
                    <label><input type="radio" class="inp_radio" value="1" name="status" <eq name="wechat_data['status']" value="1">checked="checked"</eq>> 启用
                </label></span>
                    <span class="notice-text">微信公众号用状态</span>
                </td>
            </tr>
            
          </tbody>
        </table>
    
<input type="hidden" name="name" value="wechat">
</input><input type="submit" id="submit" value="保存" target-form="qq_login" class="submit_btn form_btn ajax-post mlspacing">
		</form>
		</div>
		</div>
	</div>
	
	
	<div class="common_settings">
			<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
			<form class="addShortcutIcon">
				<input type="hidden" name="title" value="{$m_title}">
				<input type="hidden" name="url" value="{$m_url}">
			</form>
			<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
		</div>
	
	
</block>

<block name="script">
<script type="text/javascript">
	//导航高亮
	highlight_subnav('{:U('Wechat/index')}');
	$(function(){
		//支持tab
		showTab();
	})
</script>
</block>