<%@ Page Language="C#" AutoEventWireup="true"  Inherits="alimnmy.alimnAdmin.Adminin,alimnmy" %>

<!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">
    <title>管理员管理</title>
    <link href="images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
	font-size:12px;
}
div.top{ padding-left:20px;}
-->
</style>
</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">管理员权限</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top">&nbsp;</td>
        <td>&nbsp;</td>
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="4"  style="_height:350px; min-height:350px; vertical-align:top;">
             <div style="_height:350px; min-height:350px;">
<%--             <span style="font-size:14px; margin-right:10px;">搜索:</span><asp:TextBox ID="txtsou" runat="server" Width="100" ></asp:TextBox><asp:Button 
                     ID="Btnsou" runat="server" Text="搜索"  Height="20" onclick="Btnsou_Click" />
            <br />--%>
            <p>
            <div class="top">
                 <%--<asp:CheckBox ID="CBox" Text="全选" runat="server" AutoPostBack="True"   oncheckedchanged="CBox_CheckedChanged" />--%> 
                       <script language="javascript">
                          function selectAll(flag) {
                              {
                                  var myForm = window.document.forms[0];
                                  if (document.form1.btnJSSelectAll.value == "JS全选") {
                                      for (var i = 0; i < myForm.length; i++) {
                                          c = myForm.elements[i].type;
                                          if (c == "checkbox") {
                                              myForm.elements[i].checked = true;
                                          }
                                      }
                                      document.form1.btnJSSelectAll.value = "JS全不选";
                                  }
                                  else {
                                      for (var i = 0; i < myForm.length; i++) {
                                          c = myForm.elements[i].type;
                                          if (c == "checkbox") {
                                              myForm.elements[i].checked = false;
                                          }
                                      }
                                      document.form1.btnJSSelectAll.value = "JS全选";
                                  }
                              }
                              }
                 </script>
                  <input id="btnJSSelectAll" type="checkbox" onclick="selectAll(1)" value="JS全选" />
                 <a onclick="selectAll(1)" href="javascript:void(0)">全选</a>
                 &nbsp;&nbsp;<a href="AdmininAdd.aspx">添加</a>&nbsp;&nbsp;
     &nbsp;&nbsp;
                     <asp:LinkButton ID="lbdel" OnClientClick="return confirm('确定要删除所选信息吗？')" runat="server" onclick="lbdel_Click">删除</asp:LinkButton>
            </div>
                 <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                     AutoGenerateColumns="False" CellPadding="4" ForeColor="Black" GridLines="None" 
                     onpageindexchanging="GridView1_PageIndexChanging" PageSize="8" 
                     style="text-align: center" Width="800px">
                     <RowStyle BackColor="#EFF3FB" />
                     <Columns>
                         <asp:TemplateField HeaderText="选择">
                             <ItemTemplate>
                                 <asp:CheckBox ID="CheckBox1" runat="server" />
                             </ItemTemplate>
                             <HeaderStyle Width="50px" />
                         </asp:TemplateField>
                         <asp:BoundField DataField="typ" HeaderText="类型">
                             <HeaderStyle Width="90px" />
                         </asp:BoundField>
                         <asp:BoundField DataField="name" HeaderText="名称" />
                         <asp:BoundField DataField="Addtime" HeaderText="添加时间">
                             <HeaderStyle Width="100px" />
                         </asp:BoundField>
                         <asp:HyperLinkField DataNavigateUrlFields="id" HeaderText="修改" Text="修改" 
                             DataNavigateUrlFormatString="AdmininEdit.aspx?id={0}">
                             <HeaderStyle Width="50px" />
                         </asp:HyperLinkField>
                     </Columns>
                     <FooterStyle BackColor="White" Font-Bold="True" ForeColor="White" />
                     <PagerStyle ForeColor="Black" HorizontalAlign="Center" />
                     <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                     <HeaderStyle BackColor="#003366" Font-Bold="True" ForeColor="White" />
                     <EditRowStyle BackColor="#2461BF" />
                     <AlternatingRowStyle BackColor="White" />
                 </asp:GridView>
             </p>
             </div>
              </td>
      </tr>
      <tr>
        <td height="40" colspan="4"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
          <tr>
            <td></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td width="2%">&nbsp;</td>
        <td width="51%" class="left_txt"><img src="images/icon-mail2.gif" width="16" height="11"> 
            客户服务邮箱：server@alimmy.com<br>
              <img src="images/icon-phone.gif" width="17" height="14"> 
            官方网站：http://www.alimnmy.com</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
    </form>
</body>
</html>
