<%@ Page Language="c#" ValidateRequest="false" CodeBehind="Basic.aspx.cs" AutoEventWireup="True"
    Inherits="MTCUN.Mobile.WeiXin.Basic" Title="系统设置-基础参数" %>

<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../User_Col/col_Header.ascx" TagName="col_Header" TagPrefix="uc3" %>
<%@ Register Src="../../UserCol/CodeBox.ascx" TagName="CodeBox" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link id="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="Form1" method="post" runat="server" enctype="multipart/form-data">
        <uc3:col_Header ID="col_Header1" runat="server" SelectedModule="xitong" />
        <div id="web_page_contents">
            <div class="search biao_zhun_suo_jin">
                <div class="kuai_show">
                        <div class="divpanel">
                            <table class="table" border="0" cellspacing="0">
                                <tr>
                                    <th colspan="2">微信基础设置
                                    </th>
                                </tr>
                                <tr>
                                    <td style="width: 150px">AppID(应用ID) ：</td>
                                    <td>
                                        <asp:TextBox ID="tbxWX_AppID" runat="server"></asp:TextBox>
                                        <span class="remark">微信公众平台-【开发】-【基本配置】。公众平台：http://mp.weixin.qq.com。 </span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>AppSecret(应用密钥)：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="tbxWX_AppSecret" runat="server"></asp:TextBox>
                                        <span class="remark">微信公众平台-【开发】-【基本配置】。</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>自动登录参数：</td>
                                    <td>
                                        <div class="striking">
                                            <table>
                                                <tr>
                                                    <td>自动登录链接：</td>
                                                    <td>
                                                        <asp:TextBox ID="tbxWX_AutoLoginUrl" runat="server" Enabled="False"></asp:TextBox><span class="remark">复制链接对接到公众号自定义菜单。</span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>网页授权回调页面域名：</td>
                                                    <td>
                                                        <asp:TextBox ID="tbxWX_WebLoginUrl" runat="server" Enabled="False"></asp:TextBox><span class="remark">复制填到公众号平台-【公众号设置】-【功能设置】-【网页授权域名】。</span></td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>微信支付参数：</td>
                                    <td>
                                        <div class="striking">
                                            <table>
                                                <tr style="display: none">
                                                    <td>URL(服务器地址)：</td>
                                                    <td>
                                                        <asp:TextBox ID="tbxWX_ServerUrl" runat="server" Width="333px" Enabled="False"></asp:TextBox>
                                                    </td>
                                                    <td>&nbsp;</td>
                                                </tr>
                                                <tr style="display: none">
                                                    <td>Token(令牌)：</td>
                                                    <td>
                                                        <asp:TextBox ID="tbxWX_Token" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td>微信支付商户号：
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="tbxWX_MCH_ID" runat="server"></asp:TextBox>
                                                        <span class="remark">微信支付平台-【帐户中心】查看。登录：https://pay.weixin.qq.com。</span></td>
                                                </tr>
                                                <tr>
                                                    <td>微信支付apikey：</td>
                                                    <td>
                                                        <asp:TextBox ID="tbxWX_APIKey" runat="server"></asp:TextBox>
                                                        <span class="remark">微信支付平台-【账户中心】-【API安全】-【设置API密钥】。</span></td>
                                                </tr>
                                                <tr>
                                                    <td>支付授权目录：</td>
                                                    <td>
                                                        <asp:TextBox ID="tbxWX_PayUrl" runat="server" Enabled="False"></asp:TextBox>
                                                        <span class="remark">复制填到公众号平台【微信支付】-【开发配置】-【支付授权目录】。</span></td>
                                                </tr>

                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>上传验证文件：</td>
                                    <td>
                                        <asp:FileUpload ID="fudV" runat="server" />
                                        <label class="lab_button">
                                            <asp:Button ID="btnUpV" runat="server" Text="上传验证文件" OnClick="btnUpV_Click" />
                                        </label>
                                        <br />
                                        <asp:GridView ID="GridView1" CssClass="subgridview" runat="server" AutoGenerateColumns="False"
                                             OnRowDeleting="GridView1_RowDeleting" DataKeyNames="FileName">
                                            <Columns>
                                                <asp:BoundField DataField="FileName" HeaderText="验证文件" />
                                                <asp:TemplateField HeaderText="删除">
                                                    <ItemTemplate>
                                                        <div class="lab_button_sub" id="divDelete" runat="server">
                                                            <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="delete" OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <label class="lab_button">
                                            <asp:Button ID="btnReset" runat="server" Text="重启" OnClick="btnReset_Click"></asp:Button>
                                        </label>
                                    </td>
                                </tr>
                            </table>
                        </div>
                </div>
            </div>
        </div>


    <div class="divpanel">
        <b>注意事项：</b><br />
        1、外部咨询地址：<%=swq.URLAuthority + swq.SystemVirtualPath %>mobile/consult.aspx?geturl=。geturl可指定返回路径。<br />
        2、外部正式报名地址：<%=swq.URLAuthority + swq.SystemVirtualPath %>mobile/reg.aspx?geturl=。geturl可指定返回路径。<br />
    </div>    </form>
</body>
</html>
