⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phone.aspx

📁 学校的人事管理系统 适合初学者参考
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="phone.aspx.cs" Inherits="phone._Default" %>

<!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="style.css" rel="stylesheet">
</head>
<body style="text-align: center;">
<TABLE width=770 border=0 align="center" cellPadding=0 cellSpacing=0 bgColor=white>
  <TBODY>
  <TR>
      <TD width=300><img src="mhdx_1.gif" width="300" height="123"></TD>
      <TD width=470><a href="http://10.1.50.151" target="_black"><img src="mhdx_2.gif" border=0 width="470" height="123"></a></TD>
    </TR>
  </TBODY></TABLE>
<TABLE height=32 cellSpacing=0 cellPadding=0 width=770 align=center border=0 background=image/menu_title_l.gif>
  
  <TR>
    <TD width=130 align=center style="background-image: url(menu_title_l.gif)"><script language="javascript" src="date1.js"></script></TD>
    <TD width=610  align=center style="background-image: url(menu_title_l.gif)"><a class=a
     href="nettoasp.asp?type=11&id=<%=getUsername()%>" target="_blank" style="font-size:small">首页</a>|<a class=a 
     href="nettoasp.asp?type=12&id=<%=getUsername()%>" target="_blank" style="font-size:small">动态信息</a>|<a class=a 
     href="nettoasp.asp?type=13&id=<%=getUsername()%>" target="_blank" style="font-size:small">公文流传</a>|<a class=a 
     href="nettoasp.asp?type=5&id=<%=getUsername()%>" target="_blank" style="font-size:small">会议安排</a>|<a class=a 
     href="nettoasp.asp?type=2&id=<%=getUsername()%>" target="_blank" style="font-size:small">学校文件</a>|<a class=a 
     href="nettoasp.asp?type=14&id=<%=getUsername()%>" target="_blank" style="font-size:small">规章制度</a>|<a class=a 
     href="nettoasp.asp?type=15&id=<%=getUsername()%>" target="_blank" style="font-size:small">参考信息</a>|<a class=a
     href="nettoasp.asp?type=16&id=<%=getUsername()%>" target="_blank" style="font-size:small">常用信息</a>|<a class=a
     href="nettoasp.asp?type=17&id=<%=getUsername()%>" target="_blank" style="font-size:small">信访之窗</a>|<a class=a
     href="nettoasp.asp?type=18&id=<%=getUsername()%>" target="_blank" style="font-size:small"><font color="#ff0000">评建专栏</font></a></TD>
    <TD width=30 ><IMG height=32 src="menu_title_r.gif" width=30></TD>
  </TR>
  
</TABLE>
    <form id="form1" runat="server">
    <div id="DIV1" runat="server">
        <table id="TABLE1" runat="server" style="width: 770px; height: 165px">
            <tr>
                <td style="width: 70px">
                    <asp:Label ID="Label1" runat="server" Text="校机构" Width="73px"></asp:Label>
                    </td>
                <td style="width: 61px" align="left">
                    <asp:DropDownList ID="ddlSchool" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSchool_SelectedIndexChanged"  >
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList></td>
                <td style="width: 11px" align="left">
                    <asp:Label ID="Label2" runat="server" Text="本部门" Width="59px"></asp:Label></td>
                <td align="left" colspan="3">
                    <asp:DropDownList ID="ddlDeperment" runat="server" AutoPostBack="True" Width="275px" OnSelectedIndexChanged="ddlDeperment_SelectedIndexChanged"  >

                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="width: 70px; height: 9px">
                    <asp:Label ID="Label3" runat="server" Text="联系人" Width="71px"></asp:Label></td>
                <td style="width: 61px; height: 9px" align="left">
                    <asp:DropDownList ID="ddlPerson" runat="server">
                    </asp:DropDownList>
                    </td>
                <td style="width: 11px; height: 9px" align="left">
                    <asp:Label ID="Label4" runat="server" Text="电 话" Width="59px"></asp:Label></td>
                <td align="left" colspan="3" style="height: 9px">
                    <asp:DropDownList ID="province" runat="server" AutoPostBack="True" OnSelectedIndexChanged="province_SelectedIndexChanged" Width="84px">
                        <asp:ListItem Value="安徽"></asp:ListItem>
                        <asp:ListItem Value="北京"></asp:ListItem>
                        <asp:ListItem Value="福建"></asp:ListItem>
                        <asp:ListItem Value="甘肃"></asp:ListItem>
                        <asp:ListItem Value="广东"></asp:ListItem>
                        <asp:ListItem Value="广西"></asp:ListItem>
                        <asp:ListItem Value="贵州"></asp:ListItem>
                        <asp:ListItem Value="海南"></asp:ListItem>
                        <asp:ListItem Value="河北"></asp:ListItem>
                        <asp:ListItem Value="河南"></asp:ListItem>
                        <asp:ListItem Value="黑龙江"></asp:ListItem>
                        <asp:ListItem Value="湖北"></asp:ListItem>
                        <asp:ListItem Value="湖南"></asp:ListItem>
                        <asp:ListItem Value="吉林"></asp:ListItem>
                        <asp:ListItem Value="江苏"></asp:ListItem>
                        <asp:ListItem Value="江西"></asp:ListItem>
                        <asp:ListItem Value="辽宁"></asp:ListItem>
                        <asp:ListItem Value="内蒙古"></asp:ListItem>
                        <asp:ListItem Value="宁夏"></asp:ListItem>
                        <asp:ListItem Value="青海"></asp:ListItem>
                        <asp:ListItem Value="山东"></asp:ListItem>
                        <asp:ListItem Value="陕西"></asp:ListItem>
                        <asp:ListItem Value="上海"></asp:ListItem>
                        <asp:ListItem Value="四川"></asp:ListItem>
                        <asp:ListItem Selected="True" Value="天津"></asp:ListItem>
                        <asp:ListItem Value="西藏"></asp:ListItem>
                        <asp:ListItem Value="新疆"></asp:ListItem>
                        <asp:ListItem Value="云南"></asp:ListItem>
                        <asp:ListItem Value="浙江"></asp:ListItem>
                        <asp:ListItem Value="重庆"></asp:ListItem>
                        <asp:ListItem Value="其他"></asp:ListItem>
                    </asp:DropDownList><asp:DropDownList ID="City" runat="server" AutoPostBack="True" OnSelectedIndexChanged="City_SelectedIndexChanged" Width="85px">
                    </asp:DropDownList><asp:TextBox ID="txtPhone" runat="server" Width="99px" MaxLength="20">(022)</asp:TextBox>&nbsp;
                    <asp:TextBox ID="TextBox1" runat="server" Visible="False" Width="47px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 70px; height: 10px">
                    &nbsp;</td>
                <td style="width: 61px; height: 10px">
                    <asp:Button ID="Selbtn" runat="server" ForeColor="Blue" Text="查询" OnClick="Selbtn_Click" /></td>
                <td style="width: 11px; height: 10px">
                </td>
                <td style="width: 181px; height: 10px">
                </td>
                <td style="width: 25px; height: 10px">
                    <asp:Button ID="Button1" runat="server" ForeColor="Blue" Text="添加" OnClick="Button1_Click1" /></td>
                <td style="width: 134px; height: 10px">
                    </td>
            </tr>
            <tr>
                <td style="width: 70px; height: 10px">
                </td>
                <td style="width: 61px; height: 10px">
                </td>
                <td style="width: 11px; height: 10px">
                </td>
                <td style="width: 181px; height: 10px">
                </td>
                <td style="width: 25px; height: 10px">
                </td>
                <td style="width: 134px; height: 10px">
                </td>
            </tr>
            <tr>
                <td colspan="6" style="height: 1px">
                    <hr />
                    <asp:Label ID="Label5" runat="server" ForeColor="Red" Width="535px"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="6" style="height: 57px">
                    &nbsp; &nbsp;&nbsp;
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CellPadding="4" ForeColor="#333333" GridLines="None" ShowHeader="False" Width="647px" DataKeyNames="Id" DataSourceID="SqlDataSource1" OnDataBound="GridView1_DataBound" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowDataBound="GridView1_RowDataBound1">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#A2CDF9" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:TemplateField>
                                <EditItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True"
                                SortExpression="Id" />
                            <asp:BoundField DataField="UserCName" HeaderText="姓名" SortExpression="UserCName" ReadOnly="True" />
                            <asp:BoundField DataField="Office" HeaderText="职位" SortExpression="Office" ReadOnly="True" />
                            <asp:BoundField DataField="TelePhone" HeaderText="电话" SortExpression="TelePhone" />
                            <asp:TemplateField ShowHeader="False">
                                <EditItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                        OnCommand="LinkButton1_Command" Text="更新" OnClick="LinkButton1_Click1"></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                        Text="取消"></asp:LinkButton>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit"
                                        Text="修改" OnClick="LinkButton1_Click" OnCommand="LinkButton1_Command1"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                                                    <EmptyDataTemplate>
                            <h4>                           没有你要查找的联系人</h4>
                            </EmptyDataTemplate>

                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnectionString3 %>"
                        SelectCommand="SELECT Id, UserEName, UserCName, Office, OrderNum, UserKinds, DocAdmin, SysAdmin, CompanyId, SignName, MobilePhone, OnlyKey, ChangeDateTime, ChangeTimes, Duty, Post, PassWord, Disabled, TelePhone, (SELECT Company FROM Company WHERE (CompanyId = v_account.CompanyId)) AS Company FROM v_account WHERE (TelePhone <> '')" UpdateCommand="SELECT Id, UserEName, UserCName, Office, OrderNum, UserKinds, DocAdmin, SysAdmin, CompanyId, SignName, MobilePhone, OnlyKey, ChangeDateTime, ChangeTimes, Duty, Post, PassWord, Disabled, TelePhone, (SELECT Company FROM Company WHERE (CompanyId = v_account.CompanyId)) AS Company FROM v_account WHERE (TelePhone<> '')">
                    </asp:SqlDataSource>
                    &nbsp;
                    <hr />
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:Button ID="chkSelectAll" runat="server"
                        OnClick="chkSelectAll_Click" Text="全选" ForeColor="Blue" />
                    <asp:Button ID="unchkSelectAll" runat="server" ForeColor="Blue" OnClick="unchkSelectAll_Click"
                        Text="全不选" />
                    &nbsp;<asp:Button ID="delbtn" runat="server" ForeColor="Blue" Text="删除" OnClick="delbtn_Click1" />
                    &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -