83 lines
3.6 KiB
HTML
83 lines
3.6 KiB
HTML
{include file="public/header" /}
|
|
|
|
|
|
|
|
<div class="page">
|
|
<div class="fixed-bar">
|
|
<div class="item-title">
|
|
<div class="subject">
|
|
<h3>{$Think.lang.ds_account}</h3>
|
|
<h5></h5>
|
|
</div>
|
|
{include file="public/admin_items" /}
|
|
</div>
|
|
</div>
|
|
|
|
<form id="weixin_form" method="post">
|
|
<table class="ds-default-table">
|
|
<tbody>
|
|
<tr class="noborder">
|
|
<td class="required w150">{$Think.lang.weixin_isuse}</td>
|
|
<td class="vatop rowform">
|
|
<div class="onoff">
|
|
<label for="weixin_isuse_show1" class="cb-enable {if condition="$list_config.weixin_isuse eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
|
|
<label for="weixin_isuse_show0" class="cb-disable {if condition="$list_config.weixin_isuse eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
|
|
<input id="weixin_isuse_show1" name="weixin_isuse" value="1" type="radio" {if condition="$list_config.weixin_isuse eq 1"} checked="checked"{/if}>
|
|
<input id="weixin_isuse_show0" name="weixin_isuse" value="0" type="radio" {if condition="$list_config.weixin_isuse eq 0"} checked="checked"{/if}>
|
|
</div>
|
|
</td>
|
|
<td class="vatop tips"></td>
|
|
</tr>
|
|
<tr class="noborder">
|
|
<td class="required w120">{$Think.lang.weixin_appid}</td>
|
|
<td class="vatop rowform"><input type="text" name="weixin_appid" id="weixin_appid" value="{$list_config.weixin_appid}" class="w300"/></td>
|
|
<td class="vatop tips"></td>
|
|
</tr>
|
|
<tr class="noborder">
|
|
<td class="required w120">{$Think.lang.weixin_secret}</td>
|
|
<td class="vatop rowform">
|
|
<input type="text" name="weixin_secret" id="weixin_secret" value="{$list_config.weixin_secret}" class="w300"/>
|
|
</td>
|
|
<td class="vatop tips">
|
|
<a href="https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419316505&token=&lang=zh_CN" target="_blank">{$Think.lang.ds_documents}</a>
|
|
<a href="https://open.weixin.qq.com" target="_blank">{$Think.lang.ds_apply}</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tfoot>
|
|
<td class="vatop tips"></td>
|
|
<tr class="tfoot">
|
|
<td></td>
|
|
<td colspan="15"><input id="submitBtn" class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$('#weixin_form').validate({
|
|
errorPlacement: function(error, element) {
|
|
error.appendTo(element.parent().parent().find('td:last'));
|
|
},
|
|
rules: {
|
|
weixin_appid : {
|
|
required: true,
|
|
},
|
|
weixin_secret : {
|
|
required: true,
|
|
},
|
|
},
|
|
messages: {
|
|
weixin_appid : {
|
|
required: '{$Think.lang.sina_weixin_akey_error}',
|
|
},
|
|
weixin_secret : {
|
|
required: '{$Think.lang.sina_weixin_skey_error}',
|
|
},
|
|
|
|
}
|
|
});
|
|
});
|
|
</script> |