<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_contactset.aspx.cs" Inherits="Web.admin.login_contactset" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>OA标题页</title>
    <link href="../css/admincss/skin.css" rel="stylesheet" type="text/css" />
    </head>
<body>
      <form id="form1" runat="server" >
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class ="top_bg_left "></td>
    <td  class ="top_bg_center " >
    <table style ="width :100%; "  border="0" cellspacing="0"  id="table2">
      <tr>
      
<!--这里写页标题 -->
        <td style ="height :31px"><div class="titlebt">系统设置</div></td>
        
      </tr>
    </table>
    </td> 
    <td class ="top_bg_right "></td>
  </tr>
  
  <tr>
    <td style ="background :url(../css/admincss/images/mail_leftbg.gif); vertical-align :middle " >&nbsp;</td>
    <td style ="background-color :#F7F8F9; vertical-align :top " >

        <!--  一组内容模块开始   -->
    <table class ="tablezong"  border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  通知短信设置</div>
         </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>   <asp:GridView ID="GridView2" 
                  runat="server" BorderWidth="1px" 
                Width="100%" CssClass="gv" cellspacing="1" AutoGenerateColumns="False" OnRowDeleting="GridView2_RowDeleting">
                <RowStyle BorderWidth="1px" CssClass="gvrow" />
                <Columns>
           
                    <asp:BoundField DataField="messagetype" HeaderText="消息类别" ReadOnly="True" />
                <asp:BoundField DataField="norder" HeaderText="排序" ReadOnly="True" />
               

                    <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
               

                </Columns>
                <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
            </asp:GridView>
            <div>
                    通知方式：<asp:DropDownList ID="ddlMessagetype" runat="server">
                        <asp:ListItem Selected="True">邮件</asp:ListItem>
                        <asp:ListItem>短信</asp:ListItem>
                        <asp:ListItem>微信</asp:ListItem>
                    </asp:DropDownList>
                &nbsp;排序：<asp:DropDownList ID="ddlOrder" runat="server" >
                        <asp:ListItem Selected="True">1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                    </asp:DropDownList>
                &nbsp;
                    <asp:Button ID="btMessagetype" runat="server"  Text="提交" OnClick="btMessagetype_Click" /></div>
        
            <div id ="Div3" runat ="server" >
</div>
        </td>
      </tr>
      <tr><td  >
          <table cellpadding="0" cellspacing="0" style ="width :100%">
              <tr>
                  <td style =" padding-left :5px; text-align :left  "></td>
                  <td  id ="Td3" runat ="server" style ="text-align :right ;  padding-right  :5px">&nbsp;</td>
              </tr>
          </table>
          </td></tr>
    </table>
 
<!-- 一组内容模块结束 -->

<!--  一组内容模块开始   --> 
    <table class ="tablezong"  border="0"  cellpadding="0" cellspacing="0" runat="server" visible ="false" id="tableSMS">
      <tr>
        <td style ="height :40px" >
        <table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  短信设置</div>
         </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        <table border="1" style=" width :100%" class="table"  cellpadding ="0" cellspacing ="0" >
            <tr>
                <td class ="tabletd_right "  >
                    短信服务商</td>
                <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlCom" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCom_SelectedIndexChanged" >
                        <asp:ListItem>腾讯</asp:ListItem>
                        <asp:ListItem>百度</asp:ListItem>
                    </asp:DropDownList>
                &nbsp;<asp:CheckBox ID="cbStatus" runat="server" Text="启用" />
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right " >
                    账号</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbUserid" runat="server" Width="400px"></asp:TextBox>
                    短信服务商提供</td>
            </tr>
            <tr>
                <td class ="tabletd_right ">
                    Key</td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbPassword" runat="server"  Width="400px" ></asp:TextBox>
                    短信服务商提供</td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    验证码模板编号 </td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbChannel" runat="server" Width="280px"></asp:TextBox>
                    模板中只能包含1个6位数字验证码参数，且须通过短信服务商审核；验证码超时时间为10分钟</td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                   签名内容或编号</td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbSign" runat="server" Width="200px"></asp:TextBox>
                    签名须通过短信服务商审核。（腾讯填内容，百度填编号）</td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    &nbsp;</td>
                <td class ="tabletd_left">
                    <asp:Button ID="btSub" runat="server" onclick="btSub_Click" Text="提交" />
                </td>
            </tr>
            </table>
            <div id ="shuoming" runat ="server" >
</div>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->

        
<!--  一组内容模块开始   -->
    <table class ="tablezong"  border="0"  cellpadding="0" cellspacing="0" runat="server" visible ="false" id="tableSMSNotice">
      <tr>
        <td style ="height :40px" >
        <table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  通知短信设置</div>
         </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>   <asp:GridView ID="GridView1" 
                  runat="server" BorderWidth="1px" onrowdatabound="GridView1_RowDataBound" 
                Width="100%" CssClass="gv" cellspacing="1" AutoGenerateColumns="False" 
                  onrowcreated="GridView1_RowCreated" OnRowDeleting="GridView1_RowDeleting">
                <RowStyle BorderWidth="1px" CssClass="gvrow" />
                <Columns>
                <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" />
                <asp:BoundField DataField="modular" HeaderText="模块" ReadOnly="True" />
                <asp:BoundField DataField="templatecategories" HeaderText="模板用途" ReadOnly="True" />
                <asp:BoundField DataField="smsname" HeaderText="服务商" ReadOnly="True" />
                <asp:BoundField DataField="template" HeaderText="模板" ReadOnly="True" />
                <asp:BoundField DataField="smssign" HeaderText="短信签名" ReadOnly="True" />
                <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />

                </Columns>
                <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
            </asp:GridView>
        <table border="1" style=" width :100%" class="table"  cellpadding ="0" cellspacing ="0" >
            <tr>
                <td class ="tabletd_right "  >
                    短信服务商</td>
                <td class ="tabletd_left ">
                    <asp:Label ID="lbSMSname" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tabletd_right ">功能模块</td>
                <td class="tabletd_left ">
                    <asp:DropDownList ID="ddlSMSmodular" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSMSmodular_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right "  >
                    短信用途</td>
                <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlSMStemplatecategories" runat="server" >
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right "  >
                    模板内容</td>
                <td class ="tabletd_left ">
                    <asp:Button ID="btTemplate" runat="server"  Text="显示" OnClick="btTemplate_Click" />
                    &nbsp;<asp:Label ID="lbTemplate" runat="server" ></asp:Label>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right " >
                    模板编号</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbSMStemplate" runat="server" Width="400px"></asp:TextBox>
                    短信服务商提供
                              </td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                   签名内容或编号</td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbSMSNoticeSign" runat="server" Width="200px"></asp:TextBox>
                    签名须通过短信服务商审核。（腾讯填内容，百度填编号）</td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    &nbsp;</td>
                <td class ="tabletd_left">
                    <asp:Button ID="btSMSNotice" runat="server" onclick="btSMSNotice_Click" Text="提交" />
                </td>
            </tr>
            </table>
            <div id ="Div2" runat ="server" >
</div>
        </td>
      </tr>
     
    </table>
<!-- 一组内容模块结束 -->

        
<!--  一组内容模块开始   --> 
    <table class ="tablezong"  border="0"  cellpadding="0" cellspacing="0" runat="server" visible ="false" id="tableWechat">
      <tr>
        <td style ="height :40px" >
        <table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  微信设置</div>
         </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        <table border="1" style=" width :100%" class="table"  cellpadding ="0" cellspacing ="0" >
         
            <tr>
                <td class ="tabletd_right " style="width:120px">
                    开放平台AppID</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbOpenAppID" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right ">
                    开放平台AppSecret</td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbOpenAppSecret" runat="server"  Width="100%" ></asp:TextBox>
                   </td>
            </tr>
            <tr>
                <td class ="tabletd_right ">
                    服务号AppID</td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbAppID" runat="server" Width="100%"></asp:TextBox>
                   </td>
            </tr>
            <tr>
                <td class ="tabletd_right ">
                    服务号AppSecret</td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbAppSecret" runat="server"  Width="100%" ></asp:TextBox>
                   </td>
            </tr>
             <tr>
                <td class ="tabletd_right ">
                    返回域名</td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbDomain" runat="server"  Width="100%" ></asp:TextBox>
                   </td>
            </tr>         
         
            <tr>
                <td class ="tabletd_right">
                    &nbsp;</td>
                <td class ="tabletd_left">
                    <asp:Button ID="btWechat" runat="server" onclick="btWechat_Click" Text="提交" />
                      （开放平台AppID及AppSecret用于网站登录，服务号AppID及AppSecret用于接收消息）</td>
            </tr>
            </table>
         
        </td>
      </tr>

    </table>
<!-- 一组内容模块结束 -->

                
<!--  一组内容模块开始   -->
    <table class ="tablezong"  border="0"  cellpadding="0" cellspacing="0" runat="server" visible ="false" id="tbWechatNotice">
      <tr>
        <td style ="height :40px" >
        <table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  通知微信设置</div>
         </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>   <asp:GridView ID="gvWechat" 
                  runat="server" BorderWidth="1px" onrowdatabound="gvWechat_RowDataBound" 
                Width="100%" CssClass="gv" cellspacing="1" AutoGenerateColumns="False" 
                  onrowcreated="gvWechat_RowCreated" OnRowDeleting="gvWechat_RowDeleting">
                <RowStyle BorderWidth="1px" CssClass="gvrow" />
                <Columns>
                <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" />
                <asp:BoundField DataField="modular" HeaderText="模块" ReadOnly="True" />
                <asp:BoundField DataField="templatecategories" HeaderText="模板用途" ReadOnly="True" />
                <asp:BoundField DataField="template" HeaderText="模板" ReadOnly="True" />
                <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />

                </Columns>
                <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
            </asp:GridView>
        <table border="1" style=" width :100%" class="table"  cellpadding ="0" cellspacing ="0" >
            <tr>
                <td class="tabletd_right ">功能模块</td>
                <td class="tabletd_left ">
                    <asp:DropDownList ID="ddlWechatmodular" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlWechatmodular_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right "  >
                    通知微信用途</td>
                <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlWechattemplatecategories" runat="server" >
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right "  >
                    模板内容</td>
                <td class ="tabletd_left ">
                    <asp:Button ID="btWechatTemplate" runat="server"  Text="显示" OnClick="btWechatTemplate_Click" />
                    &nbsp;<asp:Label ID="lbWechatTemplate" runat="server" ></asp:Label>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right " >
                    模板编号</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbWechattemplate" runat="server" Width="400px"></asp:TextBox>
                    服务号后台申请
                              </td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    &nbsp;</td>
                <td class ="tabletd_left">
                    <asp:Button ID="btWechatNotice" runat="server" onclick="btWechatNotice_Click" Text="提交" />
                </td>
            </tr>
            </table>
            <div id ="Div4" runat ="server" >
</div>
        </td>
      </tr>
     
    </table>
<!-- 一组内容模块结束 -->


<!--  一组内容模块开始   --> 
    <table class ="tablezong"  border="0"  cellpadding="0" cellspacing="0" runat="server" visible ="false" id="tableEmail">
      <tr>
        <td style ="height :40px" >
        <table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  邮件设置</div>
         </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        <table border="1" style=" width :100%" class="table"  cellpadding ="0" cellspacing ="0" >
            <tr>
                <td class ="tabletd_right " style ="width :100px" >
                    发信邮箱</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbEmailname" runat="server" Width="283px"></asp:TextBox>
                    <span class="style1">（少于100个字符,如：abc@163.com，如不启用发信功能，请留空）</span></td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :100px" >
                    发信账号</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbUsername" runat="server" MaxLength="100" Width="203px"></asp:TextBox>
                    <span class="style1">（请填入少于50个字符,如：abc@163.com）</span></td>
            </tr>
            <tr>
                <td class ="tabletd_right ">
                    密码</td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbPasswd" runat="server" MaxLength="100" Width="198px" 
                        TextMode="Password"></asp:TextBox>
                    <span class="style1">（请填入少于25个字符）</span></td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    发信服务器</td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbSmtpname" runat="server" Width="276px"></asp:TextBox>
                    <span class="style1">（邮件服务商提供，如：smtp.163.com）</span></td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    发信端口</td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbSmtpport" runat="server" Width="57px"></asp:TextBox>
                    <span class="style1">（邮件服务商提供，缺省为25）</span></td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    邮件签名</td>
                <td class ="tabletd_left">
                    <asp:TextBox ID="tbEmailsign" runat="server" Width="200px"></asp:TextBox>
                    <span class="style1">（请填入少于25个字符,可以是单位名称）</span></td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    &nbsp;</td>
                <td class ="tabletd_left">
                    <asp:Button ID="btSubEmail" runat="server" onclick="btSubEmail_Click" 
                        Text="提交" />
                </td>
            </tr>
            </table>
            <div id ="Div1" runat ="server" >
</div>
        </td>
      </tr>
     
    </table>
<!-- 一组内容模块结束 -->


   
    </td>
    <td  style =" background-image:url(../css/admincss/images/mail_rightbg.gif )" >
    </td>
  </tr>
  <tr>
    <td  class ="buttom_bg_left "></td>
    <td class ="buttom_bg_center " ></td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>

