📄 g_lostdetail.asp
字号:
<!--#include file="../include/Pubconn.asp"-->
<!--#include file="../include/PubFun.asp"-->
<% username=Getuser()
userclass=TableVisitor("G_TblLostReport",username)
if userclass<1 then
response.write"<br>"
response.write"<br>"
response.write "<center><font size=2>抱歉,您没有此项操作权限!<a href=G_mainlost.asp>返回</a>"
response.end
end if
%>
<%
'***************************************
'
'Author:Ruphi Update Time:2001-06-29
'功能说明:客户丢失报告记录信息浏览
'
'**************************************
%>
<%
wid=request("wid")
sid=request("txtstuff")
%>
<%
set RSlost=server.createobject("adodb.recordset")
str="select * from G_TblLostReport where DepartID like '"&Session("DepartID")&"%' "
if wid<>"" then
str=str&"and CloseMonth='"&wid&"'"
end if
if sid<>"" then
str=str&" and StuffNum='"&sid&"'"
end if
RSlost.open str&"order by id desc",pubconn,1
'response.write str
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>单据查询</title><link href="cread.css" rel="stylesheet" type="text/css">
</head>
<script language="vbscript">
sub GoPage()
a="G_lostdetail.asp?page="+document.form1.page1.value+"&wid="+document.myform.wid.value+"&txtstuff="+document.myform.txtstuff.value
window.location=a
end sub
</script>
<body bgcolor="#FFFFFF">
<form method="post" action="G_lostdetail.asp" name="myform">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%"><b><font size="3"><img border="0" src="../pic/it_22.gif">
</font><font size="2">客户丢失报告明细查询</font></b><hr width="40%" size="1" align="left">
</td>
</tr>
</table>
<div align="center">
<center>
<table border="0" cellspacing="0" width="645" align="center" width="630" width="636">
<tr>
<td width="103" align="center" width="151" width="150" bgcolor="#F1E8DA">
<p align="right">
<font size="2">月份
</font>
</p>
</td>
<td width="118" align="center" width="104" width="104" bgcolor="#F1E8DA">
<p align="left">
<select name="wid" size="1" style="width:100">
<% if wid<>"" then%>
<option value="">全部</option>
<% for i=1 to 12 %>
<option value="<%=i%>" <% if cint(trim(wid))=i then
response.write ("selected")
end if
%>>第<%=i%>月</option>
<%next%>
<%else%>
<option value="">全部</option>
<%for i=1 to 12 %>
<option value="<%=i%>" >第<%=i%>月</option>
<%next%>
<%end if %>
</select>
</p>
</td>
<td width="55" align="center" width="96" width="123" bgcolor="#F1E8DA">
<p align="right">
<font size="2">
业务员
</font>
</p>
</td>
<td width="353" align="center" width="263" width="243" bgcolor="#F1E8DA">
<p align="left">
<select name="txtstuff" style="width:100" size="1">
<%
'业务员列表
set rst=Server.CreateObject("ADODB.RecordSet")
sql="Select * from A_StuffInfo Where SaleFlag='1'and delflag='0' and DepartCode like '"&Session("DepartID")&"%'"
rst.open sql,pubconn,1
%>
<option value="">全部</option>
<%do while not rst.eof%>
<option value="<%=rst("StuffNum")%>"
<%
if sid<>"" then
if trim(sid)=rst("StuffNum") then
response.write("selected")
end if
end if
%> ><%=rst("Name")%></option>
<%
rst.movenext
loop
set rst=nothing
%>
</select> <input type="submit" value="查询" class="hand" style="background-color: #D1D1D1; border-style: solid; border-width: 1" >
<a href="G_lostshbrow.asp">查看历史评语</a>
</td>
</tr>
</table>
</form>
<%
if RSlost.eof then%>
<center><p>
<font size="2">没有符合条件的记录!
</font>
<a href=G_mainlost.asp>
<font size="2">返回
</font>
</a></center>
<%else
if request.querystring("page")<>"" then
page=cint(request.querystring("page"))
else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -