123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Management.aspx.cs" Inherits="LYFZ.NationalMarketing.Management" %>
- <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <marquee direction="left">欢迎登录万众营销后台管理系统!</marquee>
- <title>万众营销后台管理系统</title>
- <link href="css/style.css" rel="stylesheet" />
- <link href="css/bootstrap.min.css" rel="stylesheet" />
- <link href="css/font-awesome.css" rel="stylesheet" />
- <link href="css/morris-0.4.3.min.css" rel="stylesheet" />
- <link href="css/jquery.gritter.css" rel="stylesheet" />
- <link href="css/animate.css" rel="stylesheet" />
- <link href="css/olio.css" rel="stylesheet" />
- <script type="text/javascript" src="js/jquery-1.6.min.js"></script>
- <script type="text/javascript" src="js/zDrag.js"></script>
- <script type="text/javascript" src="js/zDialog.js"></script>
- <script type="text/javascript" src="js/jquery.min.js"></script>
- <style type="text/css">
- th {
- font-size: 18px;
- text-align: center;
- word-wrap: break-word;
- }
- td {
- font-size: 14px;
- text-align: center;
- word-wrap: break-word;
- }
- </style>
- <script type="text/javascript">
- $(function () {
- $("#selectAll").click(function () {//全选
- $("#playList :checkbox").attr("checked", true);
- });
- $("#unSelect").click(function () {//全不选
- $("#playList :checkbox").attr("checked", false);
- });
- $("#reverse").click(function () {//反选
- $("#playList :checkbox").each(function () {
- $(this).attr("checked", !$(this).attr("checked"));
- });
- });
- });
- function getbeifen(Phone) {
- var ajaxUrl = "./ajax.aspx?type=bak&phone=" + Phone;
- var htmlobj = $.ajax({ url: ajaxUrl, async: false });
- alert(htmlobj.responseText);
- }
- function open8(ID, Phone) {
- var sd = document.getElementsByName("chkId");
- var objs = sd.length;
- var ches = "";
- for (var i = 0; i < objs; i++) {
- if (sd[i].checked == true) {
- ches += sd[i].value + ",";
- }
- }
- var diag = new Dialog();
- diag.Width = 350;
- diag.Height = 150;
- diag.URL = "Check.aspx?id=" + ches + "";
- diag.show();
- }
-
- function open17(val) {
- var diag = new Dialog();
- diag.ShowCloseButton = false;
- diag.Width = 300;
- diag.Height = 100;
- diag.URL = "test.html";
- diag.show();
- var doc = diag.innerFrame.contentWindow.document;
- doc.open();
- doc.write('<html><body></br> <img src="images/13221816.gif" /></br> 正在备份,请稍后....</body></html>');
- doc.close();
- }
- $(document).ready(function () {
- $("#form_demo").baigoCheckall();
- });
- (function ($) {
- $.fn.baigoCheckall = function () {
- var thisForm = $(this);
- $(thisForm).find(":checkbox").click(function () {
- var _child = $(this).attr("id"); //根据id设置子对象
- var _parent = $(this).attr("class"); //根据class设置父对象
- child_check(_child); //设置子对象
- parent_check(_parent); //设置父对象
- });
- //设置父对象
- var parent_check = function (_parent) {
- var _parent_num = $(thisForm).find("#" + _parent).size(); //获取父对象数量
- if (_parent_num > 0) { //如果有父对象
- var _brother_num = $(thisForm).find("." + _parent).size(); //根据parent获取兄弟对象数
- var _brother_checked_num = $(thisForm).find("." + _parent + ":checked").size(); //根据parent获取兄弟对象选中数
- if (_brother_num > 0 && _brother_checked_num < _brother_num) { //如果有兄弟对象且兄弟对象选中数小于实际数,则设置父对象未选中
- $(thisForm).find("#" + _parent).removeAttr("checked");
- } else {
- $(thisForm).find("#" + _parent).prop("checked", "checked");
- }
- var _parent_this = $(thisForm).find("#" + _parent).attr("class"); //根据该父对象的parent获取爷对象
- parent_check(_parent_this); //设置爷对象
- }
- };
- //设置子对象
- var child_check = function (_child) {
- var _child_obj = $(thisForm).find("." + _child); //获取子对象
- var _checked = $(thisForm).find("#" + _child).prop("checked"); //获取父对象的选中状态
- if (_child_obj) { //如果有子对象
- _child_obj.each(function () { //遍历
- var _disabled = $(this).attr("disabled");
- if (_checked) { //根据父对象的选中状态,设置子对象的选中状态
- if (_disabled) {
- $(this).removeAttr("checked");
- } else {
- $(this).prop("checked", "checked");
- }
- } else {
- $(this).removeAttr("checked");
- }
- var _child_this = $(this).attr("id"); //根据该子对象的id获取孙对象
- child_check(_child_this); //设置孙对象
- });
- }
- };
- };
- })(jQuery);
- </script>
- </head>
- <body style="overflow: auto;">
- <form runat="server" id="form_demo">
- <nav class="navbar-default navbar-static-side" role="navigation">
- <div class="sidebar-collapse">
- <ul class="nav" id="side-menu">
- <li class="nav-header">
- <div class="dropdown profile-element">
- <h3 style="color: white;">万众营销后台管理</h3>
- </div>
- <div class="logo-element">
- </div>
- </li>
- <li>
- <a href="Management.aspx"><i class="fa fa-columns"></i><span class="nav-label">客户管理</span></a> </li>
- <li>
- <a href="AddCustomer.aspx"><i class="fa fa fa-globe"></i><span class="nav-label">添加客户</span><span class="fa arrow"></span></a>
- </li>
- </ul>
- </div>
- </nav>
- <div id="page-wrapper" class="gray-bg dashbard-1" style="width: 100%;">
- <div class="right_con">
- <br />
-
- <input type="button" value="删除" style="height: 33px; width: 97px;" onclick="open8()" />
- <asp:Button ID="txtbeifen" runat="server" Text="一键备份" Width="97px" Height="33px" OnClientClick="open17(1)" OnClick="txtbeifen_Click" />
-
- </div>
- <br>
- <div id="playList">
- <asp:Repeater ID="ret" runat="server">
- <HeaderTemplate>
- <table style="margin-left: 7px; width: 100%;" class="hovertable">
- <tr style="background-color: #666666; color: white; height: 40px;">
- <th>
- <input type="checkbox" id="first" class="none"></th>
- <th style="width: 50px;">
- <label>编号</label></th>
- <th>
- <label>客户名称</label></th>
- <th>
- <label>联系人</label></th>
- <th>
- <label>联系电话</label></th>
- <th>
- <label>客户地址</label></th>
- <th>
- <label>注册时间</label></th>
- <th>
- <label>运行有效期</label></th>
- <th>
- <label>软件版本号</label></th>
- <th>
- <label>客户管理账号</label></th>
- <th>
- <label>客户初始密码</label></th>
- <th>
- <label>备注</label></th>
- <th>
- <label>操作</label></th>
- </tr>
- </HeaderTemplate>
- <ItemTemplate>
- <tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';" onclick="this.style.backgroundColor='#33CCFF';">
- <td style="width: 50px;">
- <input type="checkbox" id="chkId" name="chkId" value='<%#Eval("id")%>_<%#Eval("Phone")%>' class="first" />
- <asp:HiddenField ID="hidId" Value='<%#Eval("Phone")%>' runat="server" />
- </td>
- <td>
- <label><%#Eval("id") %></label></td>
- <td>
- <label><%#Eval("Name") %></label></td>
- <td>
- <label><%#Eval("Contacts") %></label></td>
- <td>
- <label><%#Eval("Phone") %></label></td>
- <td>
- <label><%#Eval("Address") %></label></td>
- <td>
- <label><%#Eval("RegistrationTime") %></label></td>
- <td>
- <label><%#Eval("EffectiveTime") %></label></td>
- <td>
- <label><%#Eval("Versions") %></label></td>
- <td>
- <label><%#Eval("Account") %></label></td>
- <td>
- <label><%#Eval("Password") %></label></td>
- <td>
- <label><%#Eval("Remark") %></label></td>
- <td><a href="#" onclick="getbeifen(<%#Eval("Phone")%>)">备份</a>
- <a href="Management.aspx?type=add&Phone=<%#Eval("Phone") %>" target="_blank">安装</a>
- <a href="Management.aspx?type=update&Phone=<%#Eval("Phone") %>&Versions=<%#Eval("Versions")%>&Id=<%#Eval("id")%>">升级</a>
- <a href="AddCustomer.aspx?ID=<%#Eval("id")%>&Name=<%#Eval("Name")%>&Address=<%#Eval("Address")%>&Contacts=<%#Eval("Contacts")%>&Phone=<%#Eval("Phone")%>&EffectiveTime=<%#Eval("EffectiveTime")%>&Remark=<%#Eval("Remark")%>&Reception=<%#Eval("Reception")%>&Backstage=<%#Eval("Backstage")%>">编辑</a>
- </td>
- </ItemTemplate>
- </asp:Repeater>
- <table class="table" style="width: 100%; margin-left: 10px;">
- <tr>
- <td class="page" style="width: 114%">
- <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
- runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页,第%CurrentPageIndex%页,每页%PageSize%条,共%RecordCount%条"
- FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageSize="15" PrevPageText="上一页"
- ShowCustomInfoSection="Left" ShowInputBox="Never" OnPageChanged="AspNetPager1_PageChanged"
- CustomInfoTextAlign="Left" LayoutType="Table">
- </webdiyer:AspNetPager>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </form>
- </body>
- </html>
|