1 Star 3 Fork 0

Admin/MyWebSms

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
usersearch.aspx 11.44 KB
一键复制 编辑 原始数据 按行查看 历史
Ai鹿子 提交于 2022-04-24 10:09 . 01
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="usersearch.aspx.cs" Inherits="usersearch" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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>
<title>管理客户</title>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link href="css/layer.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/draw.js"></script>
<script type="text/javascript" src="js/tipswindown.js"></script>
<script type="text/javascript" src="js/calendar.js"></script>
<script type="text/javascript">
var pre;
var tmp="";
function selectArow(s)
{
$(s).attr("style", "background-color:#D2EAEC;color:#913005");
if (pre != null && pre != s) $(pre).attr("style", "background-color:;color:");
pre = s;
tmp = s.id;
document.getElementById("HidID").value = s.id;
}
function Lock_Confirm()
{
if(tmp != "")
{
event.returnValue = confirm("确认要操作吗?");
}
else
{
alert("请选择一条数据!");
event.returnValue = false;
}
}
function Delete_Confirm()
{
if(tmp != "")
{
event.returnValue = confirm("确认要删除吗?");
}
else
{
alert("请选择一条数据!");
event.returnValue = false;
}
}
function CheckSearch()
{
var cUserName = value("sUserName");
var cTrueName = value("sTrueName");
var cDate = value("sDate");
var cMobile = value("sMobile");
if(cUserName=="" && cTrueName=="" && cDate=="" && cMobile=="" )
{
alert("检索条件至少有一项不能空。");
return false;
}
else
{
window.location.href = "usersearch.aspx?u="+cUserName+"&t="+cTrueName+"&m="+cMobile+"&d="+cDate;;
}
return true;
}
</script>
</head>
<body style="background-color: #fff">
<form id="form1" runat="server">
<div id="maintitle">
<div id="mainico">
</div>
<div id="maintip">
<strong>位置:</strong>客户管理</div>
</div>
<div id="mybox" style="padding: 0px 4px 2px 2px;">
<table width="100%" id="add_table" style="border-collapse: collapse;" bordercolor="#F7FBFE"
cellspacing="0" bgcolor="#D2EAEC" border="1">
<tr>
<td height="25" class="left" align="left" id="TD1" runat="server">
<label>
客户帐号:</label>
<input id="sUserName" style="width: 90px" name="sUserName" value="" type="text"
class="input" runat="server" />
<label>
客户名称:</label>
<input id="sTrueName" style="width: 90px" name="sTrueName" value="" type="text" class="input" runat="server" />
<label>
手机:</label><input id="sMobile" style="width: 90px" name="sMobile" value="" type="text"
class="input" runat="server" />
<label>
开通时间:</label><input id="sDate" name="sDate" value="" type="text"
class="input" runat="server" onclick="setday(this);" style="width: 154px;" />
<input type="button" class="btn5" value=" 查 询 " title="查询" id="Button1" runat="server" onclick="CheckSearch();">
</td>
<td align="right" width="175" id="TD2" runat="server" ><asp:button id="AllBtn" runat="server" CssClass="btn5" Text=" 全 部 " ToolTip="全部" OnClick="AllBtn_Click"></asp:button>&nbsp;<asp:button id="LockBtn" runat="server" CssClass="btn5" Text=" 锁 定 " ToolTip="锁定" OnClick="LockBtn_Click"></asp:button>&nbsp;<asp:button id="DeleteBtn" runat="server" CssClass="btn5" Text=" 删 除 " ToolTip="删除" OnClick="DeleteBtn_Click"></asp:button></td>
</tr>
</table>
<table id="mytable" width="100%"
style="margin-top: 2px; border-collapse: collapse; border: 1px solid #C1DAD7;"
cellspacing="0" cellpadding="0">
<tr>
<th width="60">
客户ID</th>
<th width="80">
客户帐号</th>
<th width="70" style="text-align:center;">
客户类型</th>
<th width="80">
联系人</th>
<th>
手机号码</th>
<th width="70">
付费方式</th>
<th width="60">
单价(元)</th>
<% if (CurrentUser.UserPID == -1)
{ %>
<th width="70">
总价(元)</th>
<% } %>
<th width="70">
充值总量</th>
<th width="110">
已发/剩余</th>
<th width="120">
有效期</th>
<th width="40" style="text-align:center;">状态</th>
<th width="40" style="text-align:center;">充值</th>
<th width="40" style="text-align:center;">回收</th>
<th width="60" style="text-align:center;">操作</th>
</tr>
<tr runat="server" id="message" visible="false"><td colspan="14" height="30" align="center">没有找到符合条件的记录!</td></tr>
<tr runat="server" id="message0" visible="false"><td colspan="15" height="30" align="center">没有找到符合条件的记录!</td></tr>
<asp:Repeater runat="server" ID="rep_parent" OnItemCommand="rep_parent_ItemCommand" OnItemDataBound="rep_parent_ItemDataBound">
<ItemTemplate>
<tr id="<%#Eval("UserID")%>" onclick="selectArow(this);">
<td>
&nbsp;NO.<%#Eval("UserID")%></td>
<td>
<a href="send_detail.aspx?c=<%#getm(Eval("UserName").ToString())%>"><%#Eval("UserName")%></a>
</td>
<td align="center">
<%#ChangeName(Eval("UserType").ToString(), Eval("UserID").ToString())%>
</td>
<td>
<%#Eval("TrueName")%>
</td>
<td>
<%#Eval("Mobile")%>&nbsp;</td>
<td align="center">
<%#Eval("PayType")%>
</td>
<td>
<%#Eval("PerPrice")%>
</td>
<td runat="server" id="lisprice" visible="false" style="color:Red">
<%#getPriceCount(Eval("UserID").ToString())%>
</td>
<td>
<%#(bool)(int.Parse(Eval("CurrentCount").ToString()) + int.Parse(Eval("SendCount").ToString()) > 100) ? string.Format("{0:0,00}", int.Parse(Eval("CurrentCount").ToString()) + int.Parse(Eval("SendCount").ToString())) : (int.Parse(Eval("CurrentCount").ToString()) + int.Parse(Eval("SendCount").ToString())).ToString()%>
</td>
<td>
<%#(bool)(int.Parse(Eval("SendCount").ToString()) > 100) ? string.Format("{0:0,00}", Eval("SendCount")) : Eval("SendCount")%>
/ <%#(bool)(int.Parse(Eval("CurrentCount").ToString()) > 100) ? string.Format("{0:0,00}", Eval("CurrentCount")) : Eval("CurrentCount")%> 条
</td>
<td>
<%#Convert.ToDateTime(Eval("EndDate").ToString()).ToLongDateString()%>
</td>
<td align="center">
<asp:LinkButton runat="server" ID="lnkbtnpower" Text='<%#Eval("UserPower").ToString().Replace("1", "正常").Replace("0", "<font color=#913005>锁定</font>")%>'
CommandName="btnpower" CommandArgument='<%#Eval("UserID")%>'></asp:LinkButton></td>
<td align="center">
<a onclick='tipsWindown("给<<%#Eval("UserName")%>>充值短信","iframe:chongzhi.aspx?c=<%#getm(Eval("UserID").ToString())%>","300","272","true","","1","exa");'>充值</a></td>
<td align="center">
<a onclick='tipsWindown("回收<<%#Eval("UserName")%>>的短信","iframe:huishou.aspx?c=<%#getm(Eval("UserID").ToString())%>","300","252","true","","1","exa");'>回收</a></td>
<td align="center">
<A href="useredit.aspx?u=<%#getm(Eval("UserID").ToString())%>">编辑</A>
<asp:Label runat="server" ID="plset"><a onclick='tipsWindown("设置<<%#Eval("UserName")%>>发送比例","iframe:sendset.aspx?c=<%#getm(Eval("UserID").ToString())%>","240","200","true","","1","exa");'>设置</a></asp:Label>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
<table width="100%" id="dh_table" bordercolor="#C1DAD7" cellspacing="0" bgcolor="#D2EAEC" border="1">
<tr>
<td valign="top">
<webdiyer:AspNetPager CssClass="anpager" PageSize="16" CurrentPageButtonClass="cpb"
NumericButtonCount="10" ID="pagelist" AlwaysShow="False" UrlPaging="True" runat="server"
OnPageChanging="PageChanging" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
PrevPageText="上一页" CustomInfoHTML="<div style='margin-top:2px;margin-bottom:2px;font-family:Microsoft YaHei;letter-spacing:1px;'>当前第<font color=#1F3A87>%CurrentPageIndex%</font>页 共<font color=#1F3A87>%PageCount%</font>页 每页<font color=#1F3A87>%PageSize%</font>条 总计<font color=#1F3A87>%RecordCount%</font>条</div>"
ShowCustomInfoSection="left" PagingButtonSpacing="3px" ShowBoxThreshold="9" ShowNavigationToolTip="True"
SubmitButtonClass="pagebutton" SubmitButtonText="转向" CustomInfoSectionWidth="280"
Wrap="False" CustomInfoStyle="" Direction="LeftToRight">
</webdiyer:AspNetPager>
</td>
</tr>
</table>
<input id="HidID" type="hidden" name="HidID" runat="server">
</div>
</form>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/huanghe_1_0/my-web-sms.git
git@gitee.com:huanghe_1_0/my-web-sms.git
huanghe_1_0
my-web-sms
MyWebSms
master

搜索帮助