📄 userlist.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="userlist.aspx.cs" Inherits="ljian_admin_user_userlist" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!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="../../../ljian/admin/style/style_main.css" rel="stylesheet" type="text/css" />
<script language="javascript" type ="text/javascript">
function document.onkeydown()
{
var e=event.srcElement;
if(event.keyCode==13&&e==document.getElementById("sn"))
{
document.getElementById("LinkButton1").click();
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div style="margin: 10px 0px 0px 10px; background-color: #EEFBFF; border: solid 1px #E3E3E3;
padding: 10px 0px 4px 0px; text-align: left">
<span style="color: Green; font-weight: bold; font-size: 16px; padding-left:10px">查找会员:
</span>
<br />
<div class="desearch" style ="padding-left:10px">
<div class="desearch" style="height: 55px; margin-top: 5px;padding-left:10px">
会员编号: <asp:TextBox ID="sn" runat="server"
Height="14px" Width="130px"></asp:TextBox><cc1:AutoCompleteExtender id="AutoCompleteExtender1" runat="server" ServicePath="user.asmx" ServiceMethod="GetCompletionList" EnableCaching="False" CompletionInterval="100" TargetControlID="sn" MinimumPrefixLength="1">
</cc1:AutoCompleteExtender>
身份证:
<asp:TextBox ID="idcard" runat="server" Height="14px" Width="154px"></asp:TextBox>
会员名: <asp:TextBox ID="username" runat="server" Height="14px" Width="117px"></asp:TextBox>
<br />
<br />
会员类别:
<asp:DropDownList ID="usertype" runat="server">
</asp:DropDownList>
会员状态: <asp:DropDownList ID="userstatus" runat="server">
</asp:DropDownList>
添加日期:
<asp:TextBox ID="date1" runat="server" Height="14px" Width="64px"></asp:TextBox><cc1:CalendarExtender CssClass="MyCalendar" ID="CalendarExtender1" runat="server" Format="yyyy-MM-dd" TargetControlID="date1" />
至
<asp:TextBox ID="date2" runat="server" Height="14px" Width="64px"></asp:TextBox><cc1:CalendarExtender CssClass="MyCalendar" ID="CalendarExtender2" runat="server" Format="yyyy-MM-dd" TargetControlID="date2" />
<asp:LinkButton Width="100px" OnClick="LinkButton1_Click" CssClass="act" ID="LinkButton1"
runat="server">开始搜索</asp:LinkButton></div>
</div>
</div>
<asp:UpdateProgress runat="server" ID="up" AssociatedUpdatePanelID="list">
<ProgressTemplate>
<div id="duquzhong" style="text-align: center; position: absolute; bottom: 350px;
left: 50%; width: 220px; padding: 10px 0px 10px 0px; border: 1px solid #ACC1E8;
background-color: #ECF2FD; font-size: 16px">
<img src="../../images/loading.gif" alt="读取中..." />正在读取,请稍后...</div>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel runat="server" ID="list">
<ContentTemplate>
<div style ="border-bottom: #cc6600 1px dotted; font-weight :bold; text-align :left;">
<ul style="width:100%; margin-left :2px; background-image:url(../../images/center.gif); color :White; font-size:14px; line-height:20px">
<li style ="float :left; list-style :none; width:15%; text-align :center; ">会员编号</li><li style ="float :left; list-style :none; width:14%; font-weight:bold; text-align :center;">会员性别</li><li style ="float :left; list-style :none; width:15%; font-weight:bold; text-align :center;">会员类别</li><li style ="float :left; list-style :none; width:15%; font-weight:bold; text-align :center;">会员状态</li><li style ="float :left; list-style :none; width:15%; font-weight:bold; text-align :center;">会员余额</li><li style ="float :left; list-style :none; width:15%; font-weight:bold; text-align :center;">会员积分</li><li style ="float:left; list-style :none; width:10%; text-align :center;">操作</li></div>
<asp:Repeater runat="server" ID="rep" DataSourceID="SqlDataSource1"><ItemTemplate>
<div style="padding-right: 0px; padding-left: 0px; min-height: 10px; padding-bottom: 2px;margin: 5px 0px 5px 0px; padding-top: 2px; border-bottom: #cccccc 1px dotted;text-align: left" id="blist">
<ul style="width:100%; margin-left :2px; margin-bottom :3px">
<li style ="float :left; list-style :none; width:15%"><a href="modifyuser.aspx?userid=<%#Eval("Id") %>"><%#Eval("Serialnumber") %></a></li>
<li style ="float :left; list-style :none; width:14%; text-align :center"><%#Eval("Sex").ToString ()=="True"?"女":"男" %></li>
<li style ="float :left; list-style :none; width:15%; font-weight:bold; color:#cc6600; text-align :center"><%#Eval("Usertype_name") %></li>
<li style ="float :left; list-style :none; width:15%; text-align :center"><%#Eval("Userstatus") %></li>
<li style ="float :left; list-style :none; width:15%; text-align :center"><%#Eval("Rmb") %></li>
<li style ="float :left; list-style :none; width:15%; text-align :center"><%#Eval("integral") %></li>
<li style ="float:left; list-style :none; width:10%; text-align :center"><asp:LinkButton runat="server" ID="delete" OnClientClick="javascript:if(confirm('确定删除该用户吗?')) return true;else return false;" CssClass ="act" ToolTip ='<%#Eval("Id") %>'>删除</asp:LinkButton></li>
</ul>
</div>
</ItemTemplate></asp:Repeater>
<div style="text-align: right">
<asp:Label ID="ye" runat="server" Text=""></asp:Label>
<asp:LinkButton ID="shouye" OnClick="shouye_Click" runat="server" CssClass="act" CausesValidation="False">首页</asp:LinkButton>
<asp:LinkButton ID="shang" CssClass="act" OnClick="shang_Click" runat="server" CausesValidation="False">上一页</asp:LinkButton>
<asp:LinkButton ID="xia" CssClass="act" OnClick="xia_Click" runat="server" CausesValidation="False">下一页</asp:LinkButton>
<asp:LinkButton ID="weiye" CssClass="act" OnClick="weiye_Click" runat="server" CausesValidation="False">尾页</asp:LinkButton>
<asp:Label ID="yeci" runat="server"></asp:Label>
跳转到: <asp:TextBox ID="jiye" runat="server" Width="20px" Height="12px"></asp:TextBox>
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="jiye"
FilterType="Numbers">
</cc1:FilteredTextBoxExtender>
<asp:LinkButton ID="go" OnClick="go_Click" runat="server" CausesValidation="False">GO</asp:LinkButton></div>
<asp:SqlDataSource ID="SqlDataSource1" OnSelected="SqlDataSource1_Selected" runat="server" ConnectionString="<%$ ConnectionStrings:OnlineBookSellConnectionString %>"
SelectCommand="SearchUser" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter Name="idcard" Type="String" DefaultValue ="-1" />
<asp:Parameter Name="username" Type="String" DefaultValue ="-1"/>
<asp:Parameter Name="serialnumber" Type="String" DefaultValue ="-1"/>
<asp:Parameter Name="usertype" Type="Int32" DefaultValue ="-1"/>
<asp:Parameter Name="userstatus" Type="Int32" DefaultValue ="-1"/>
<asp:Parameter Name="addtime1" Type="String" DefaultValue ="1900-01-01"/>
<asp:Parameter Name="addtime2" Type="String" DefaultValue ="2900-01-01"/>
<asp:Parameter Name="pageindex" Type="Int32" DefaultValue ="1"/>
<asp:Parameter Name="pagesize" Type="Int32" DefaultValue ="1"/>
<asp:Parameter Direction="InputOutput" Name="mycount" Type="Int32" DefaultValue ="0" />
</SelectParameters>
</asp:SqlDataSource>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="LinkButton1" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -