<%@ Page Language="C#" AutoEventWireup="true"  EnableEventValidation="false" CodeBehind="tongxunlu.aspx.cs" Inherits="jiaowu.bangong.tongxunlu" %>

<%@ Register src="../fenye.ascx" tagname="fenye" tagprefix="uc2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>用户列表</title>
		<link href="../css/table.css" rel="stylesheet" type="text/css" />
		
		 <script language="javascript" src="../js/common.js"></script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">	
		        <div class="place">
                    <asp:SiteMapPath ID="SiteMapPath1" runat="server" Height="27px" Width="309px">
                    </asp:SiteMapPath>
    </div>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr align="right">
                <td  width="95%">
        </span>
        <span class="center_title_1">	
                    <asp:CheckBox ID="CheckBox2" runat="server" 
            AutoPostBack="True" oncheckedchanged="CheckBox2_CheckedChanged" Text="全选" />
        </span>
        <img height="14" src="../images/001.gif" width="14" />
        <asp:LinkButton ID="lbadd" runat="server" PostBackUrl="tongxunluadd.aspx" Text="新增" >新增</asp:LinkButton>
        <img height="14" src="../images/010.gif" width="14" />
        <asp:LinkButton ID="lbdel" runat="server" 
            OnClientClick="return confirm('确定删除吗？无法恢复！')" onclick="LinkButton1_Click">删除</asp:LinkButton>
                    &nbsp;</span><img alt="" src="../images/excel.gif" style="width: 16px; " />&nbsp;<asp:LinkButton 
                        ID="lbtnOut" runat="server" onclick="lbtnOut_Click">导出通讯录</asp:LinkButton>
                    &nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;
        &nbsp;
                    &nbsp;</td>
            </tr>
        </table>
        <span class="center_title_1">&nbsp;
		<br>
					<asp:GridView ID="gdv" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False"
                        CssClass="sys_grid"  OnSorting="gdv_Sorting" 
            OnRowDeleting="gdv_RowDeleting"  Width="100%" EmptyDataText="没有或没有符合条件的用户信息！">
                        <HeaderStyle CssClass="sys_grid_head_cell"/>
                        <Columns>
                        <asp:TemplateField HeaderText="全选">
                            <ItemTemplate>
                             <asp:CheckBox ID="CheckBox1" runat="server" />
                            </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="id" HeaderText="ID"  SortExpression="id"/>  
                            <asp:BoundField DataField="xm" HeaderText="姓名" SortExpression="xm" />
                            <asp:BoundField DataField="xb" HeaderText="性别" SortExpression="xb" />
                            <asp:BoundField DataField="tel" HeaderText="电话" SortExpression="xb" />                            
                            <asp:BoundField DataField="email" HeaderText="邮箱" SortExpression="xb" />    
                            <asp:BoundField DataField="qq" HeaderText="QQ" SortExpression="xb" />                                
                            <asp:BoundField DataField="dizhi" HeaderText="住址" SortExpression="xb" />  
                            <asp:TemplateField HeaderText="编辑">
                    <ItemTemplate>
                    <a href="tongxunluadd.aspx?id=<%#Eval("id") %>">编辑</a>
                    </ItemTemplate>
                 </asp:TemplateField> 
                 <asp:CommandField HeaderText="删除" ShowCancelButton="False" 
                                ShowDeleteButton="True"  DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除通讯录吗？无法恢复！')&quot;&gt;删除&lt;/div&gt; "/>                                                        
                        </Columns>                        
                        <PagerSettings Visible="False" />
                        <RowStyle HorizontalAlign="Center" Height="25px" />
                    </asp:GridView>
                    </TD>
				</TR>
				<TR>
					<TD vAlign="top">
						<INPUT id="hd" type="hidden" name="hd" runat="server">
                        <uc2:fenye ID="fenye1" runat="server" />
                    </TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
