📄 selectdealstage.asp
字号:
<!--#include file="../config.ini"-->
<%
dim theName1 : theName = Request("theName")
dim theForm : theForm = Request("theForm")
dim thefield : thefield = Request("field")
dim thevalue : thevalue=Request("value")
%>
<html>
<head>
<title>select</title>
<Script Language=JavaScript>
function pickup2(what,whatId,whatrate){
window.opener.<%=theForm%>.<%=theName%>name.value=what;
window.opener.<%=theForm%>.<%=theName%>.value=whatId;
window.opener.<%=theForm%>.<%=thefield%>.value=whatrate;
window.close();
}
</Script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../global.css" rel=stylesheet type=text/css>
</head>
<body>
<form name="theForm" method="Post" action="">
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<select name="Find" width="10">
<option value=name <%if request("Find")="name" then Response.Write "selected"%>>销售机会阶段</option>
</select>
<input type="Text" name="StartWith" size="16" value="<%=request("StartWith")%>">
<input type="Submit" name="Submit" value="搜索">
<input type="Hidden" name="theForm" value="<%=theForm%>"> <input type="Hidden" name="theName" class=black value="<%=theName%>"> </td>
<tr bgcolor="#FFFFFF">
<td height="25"><strong><font size="2" class="title">选择销售机会阶段</font></strong></td>
</tr>
<tr >
<td height="16" background="../images/title.gif"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height=4></td>
</tr>
</table>
<table width="100%" bgcolor=cdcdcd cellspacing=1>
<tr bgcolor=f1f1f1>
<td align=center height=20>销售机会流程</td>
<td align=center>销售机会阶段</td>
<td align=center>成功几率</td>
<td align=center>排序</td>
</tr>
<%
submit = Request.Form("theName")
submit = trim(submit)
dim sql
Find = Request.Form("Find")
StartWith = Request.Form("StartWith")
strwhere=" where dealprocessid='"&thevalue&"'"
if Find <>"" then
strwhere=strwhere&" and " & Find & " like N'%" + trim(StartWith) + "%'"
end if
sql = "select * from v_dealstage "&strwhere
set conn=server.CreateObject("adodb.connection")
set rs=server.CreateObject("adodb.recordset")
conn.Open connstring
rs.Open sql,conn,1,1
if not rs.EOF and not rs.BOF then
while not rs.EOF
%>
<tr bgcolor=white>
<td align="center" nowrap><%= rs("dealprocess")%></td>
<td align="center" nowrap><a href="javascript:pickup2('<%=rs("name")%>','<%=rs("dealstage")%>','<%=rs("dealrate")%>');"><%= rs("name")%></a></td>
<td align="center" nowrap><%= rs("dealrate")%></td>
<td align="center" nowrap><%= rs("seq")%></td>
</tr>
<%
rs.MoveNext
wend
%>
</table>
<%
else
Response.Write "<table width=100% cellspacing=1><tr bgcolor=white><td >无记录</td></tr></table>"
end if
rs.close
Set rs = nothing
conn.Close
set conn = nothing
%>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -