📄 supplierlist_right.asp
字号:
<%@language="vbscript" codepage="936"%>
<%response.buffer = true%>
<%Public HOME_PATH:HOME_PATH = "../"%>
<!--#include file="../db.asp"-->
<!--#include file="../inc/function.asp"-->
<%
Public title:title = "用户列表"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><%=title%></title><%
if isLogin = false then
Response.Write viewinfo("Logingo","","")
Response.end
end if
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<link href="<%=HOME_PATH%>css/style.css" rel="stylesheet" type="text/css">
<script type = 'text/javascript' src = '<%=HOME_PATH%>js/layer00.js'></script>
<style type = 'text/css'>
.tempA td {border-top:solid 0px #fff;border-left:solid 0px #fff;border-right:solid 1px #d6d3ce;border-bottom:solid 1px #d6d3ce;}
.clicked { background-color:#08246B;color:#ffffff;}
</style>
<script language="JavaScript">
<!--
function clicked_(s) {
var td_len = td_.length;
if (td_len == undefined) {
td_.className = 'clicked';
form.box_.checked = true;
}else{
for(i_ = 0 ; i_<td_len;i_++) {
if(s!=i_) {
td_[i_].className = '';
form.box_[i_].checked = false;
}else{
td_[i_].className = 'clicked';
form.box_[i_].checked = true;
}
}
}
}
function checked_(s) {
var selLen = form.selAnnounce.length ;
if (selLen==undefined) {
if(form.selAnnounce.checked == true) {
selid_.className = 'clicked' ;
}else{
selid_.className = '' ;
}
}else{
if(form.selAnnounce[s].checked == true) {
selid_[s].className = 'clicked';
}else{
selid_[s].className = '';
}
}
}
//-->
</script>
</head>
<body style = 'margin:0px;'>
<div style = 'text-align:center;'>
<table border = '1' cellspacing = '0' cellpadding = '1' borderColorLight='#000000' borderColorDark='#eeeeee' style = 'width:100%;border-bottom:0px solid;border-right:0px solid;border-top:0px solid;border-left:0px solid;'/>
<form method='post' action="" name = 'form'>
<input type = 'hidden' name = 'Options'/>
<input type = 'hidden' name = 'Execute'/>
<tr>
<td style ='height:20px;'>序号</td>
<td>代码</td>
<td>名称</td>
<td>联系人</td>
<td>电话</td>
<td>手机</td>
<td>经营范围</td>
<td style = 'text-align:center;'>相关支付</td>
<td style = 'width:35px;text-align:center;'>选择</td>
</tr>
<tr>
<td style ='height:1px;line-height:1px;background-color:#adaaad;border-style:none;' colspan = '9'></td>
</tr>
<%
Rmainid = GetText("maintypeid","G","number",1,10,0)
Rsubid = GetText("subtypeid","G","number",1,10,0)
mainSQL = v1v2(Rmainid,0,""," and uTypeid in(select uTypeid from usertype where uTypeSelect = " & Rmainid & ") ")
subSQL = v1v2(Rsubid,0,""," and uTypeid=" & Rsubid & "")
SQL = "select * from supplier where not disabled = 0 " & mainSQL & subSQL & " Order By uid desc"
Rs.Open(SQL),Conn,1,1
if not Rs.eof then
%>
<%
dim uCount
uCount = Rs.RecordCount
thisPageSize = 20
LinkFile = SELVAR("FN","supplierlist_right.asp")
LUrl = "&maintypeid=" & Rmainid & "&subtypeid=" & Rsubid
PageWrite = PaginatinoGoogle(Rs,noteTotal,thisPageSize,LinkFile,LUrl,LArr)
for i_u = 1 to thisPageSize
if Rs.eof then exit for
uid = Rs("uid")
Code = Rs("Code")'代码
ForShort = Rs("ForShort")'简称
HelpMarkCode = Rs("HelpMarkCode")'助记码
FullName = Rs("FullName")'全称
Linkman = Rs("Linkman")'联系人
Place = Rs("Place")'职位
LinkPhone = Rs("LinkPhone")'联系电话
mobileTelehone = Rs("mobileTelehone")'手机
fax = Rs("fax")'
Email = Rs("Email")'
ArrearageTime = Rs("ArrearageTime")'欠款期限
ArrearageTether = Rs("ArrearageTether")'欠款限额
BankNumber = Rs("BankNumber")'银行帐号
WebSite = Rs("WebSite")'网址
ScopeOfOperation = Rs("ScopeOfOperation")'经营范围
Address = Rs("Address")'详细地址
disabled = Rs("disabled")'是否可用
PriceType = Rs("PriceType")'价格类型
utypeid = Rs("utypeid")'注册到-相应id
%>
<tr ondblclick = "javascript:WindowOpen('supplierview.asp?uid=<%=uid%>','supplierview',768,450,'');" style = 'background-color:#ffffff;' class = 'tempA' style='cursor: default;' onclick="clicked_('<%=i_u-1%>');">
<td id = 'td__' style = 'text-align:center;padding:2px;'><%=uid%></td>
<td id = 'td_'><%=Code%></td>
<td ondblclick = "javascript:WindowOpen('supplierview.asp?uid=<%=uid%>','supplierview',768,450,'');" ><%=FullName%></td>
<td><%=Linkman%></td>
<td><%=LinkPhone%></td>
<td><%=mobileTelehone%></td>
<td><%=ScopeOfOperation%><input type = 'checkbox' name = 'box_' id = 'box_' value = '<%=uid%>' style = 'visibility:hidden;height:10px;'/></td>
<td style = 'text-align:center;'><a href = "javascript:SDD('ssList.asp?uid=<%=uid%>','mxss',800,520,'');">点击查看</a></td>
<td style = 'text-align:center;' id = 'selid_'><input type = 'checkbox' style = 'border-style:none;widht:15px;height:15px;' name = 'selAnnounce' onClick = "javascript:checked_(<%=i_u-1%>);" onfocus="this.blur();" value = '<%=uid%>'/></td>
</tr>
<%
Rs.movenext
next
Response.Write"<tr><td style = 'text-align:center;' colspan = '9'>" & PageWrite & "</td></tr>"
else
%>
<tr style = 'background-color:#ffffff;' class = 'tempA'>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<%
end if
Rs.Close
%></form></table>
<%
if trim(Request.Form("Options")) = "delTrue" then
Set c01 = new CL01
ExecuteList = c01.splitList(trim(Request.Form("Execute")),",",0)
SQL = "delete from supplier where uid in(" & ExecuteList & ")"
SQLPAY = "delete from payment where supplierid in(" & ExecuteList & ")"
'Response.Write SQL
Conn.Execute(SQL)
Conn.Execute(SQLPAY)
Response.Write viewinfo("divLoca","正在执行删除操作.请稍候…","")
Response.Write viewinfo("LocaTimeself","",SELVAR("FN","supplier_right.asp"))
end if
ConnClose()
Set c01 = nothing
%>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -