my_operation.asp
来自「适用于网络/信息企业」· ASP 代码 · 共 288 行
ASP
288 行
<!--#include file="../INC/Conn.asp"-->
<!--#include file="inc/Check.asp"-->
<!--#include file="inc/public.asp"-->
<%
Dim Makking
Makking = Trim(Request.QueryString("Makking"))
Dim Search_key,Search_Body,Search_Type,Search_City,Search_State
Dim SQL_Search_key,SQL_Search_City,SQL_Search_Type,SQL_Search_State
Search_State = Request.QueryString("State")
IF Search_State = "" Then Search_State = Trim(Request("Search_State"))
Search_key = Trim(Request("Key"))
Search_Type = Trim(Request("Search_Type"))
Search_Body = Trim(Request("Search_Body"))
Search_City = Trim(Request("City"))
Session("My_Search_key") = Search_key
Session("My_Search_Type") = Search_Type
Session("My_Search_State") = Search_State
Session("My_Search_Body") = Search_Body
Session("My_Search_City") = Search_City
IF Search_key <> "" Then
SQL_Search_key = " and "& Search_Body &" like '%"& Search_key &"%' "
End IF
IF Search_Type <> "" Then
SQL_Search_Type = " and Operation_Type = '"& Search_Type &"' "
End IF
IF Search_State <> "" Then
SQL_Search_State = " and Operation_State = '"& Search_State &"' "
End IF
IF Search_City <> "" Then
SQL_Search_City = " and City like '"& Search_City &"%' "
End IF
'-------------------------------------------排序
Order = Trim(Request("Order"))
IF Request.QueryString("Page") = "" OR Request.QueryString("Page")<=1 Then
IF Order = Session("Order") Then Order = "-"& Order
End IF
Select Case Order
Case ""
SQL_Order = "Order by Operation.DateTime Desc"
Case "1"
SQL_Order = "Order By Pact_Name"
Case "-1"
SQL_Order = "Order By Pact_Name Desc"
Case "2"
SQL_Order = "Order By Pact_Money"
Case "-2"
SQL_Order = "Order By Pact_Money Desc"
Case "3"
SQL_Order = "Order By End_Time"
Case "-3"
SQL_Order = "Order By End_Time Desc"
Case "4"
SQL_Order = "Order By Buyer_Name"
Case "-4"
SQL_Order = "Order By Buyer_Name Desc"
End Select
Session("Order") = Order
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>亿博尔</title>
</head>
<link href="Images/Admin.css" rel="stylesheet" type="text/css">
<body>
<table width="98%" height="40" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D8D8D8">
<tr>
<td height="30" align="left" bgcolor="ffffff"><table width="100%" height="100%" border="0" cellpadding="3" cellspacing="0">
<tr bgcolor="eeeeee">
<td width="5%" align="center"><img src="Images/1.gif" width="13" height="12"></td>
<td width="78%"><span class="style2">管理中心 >>> 业务记录</span></td>
<td width="17%" align="right">
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" height="40" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D8D8D8">
<tr>
<td height="30" align="left" bgcolor="ffffff"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table width="99%" height="30" border="0" align="right" cellpadding="0" cellspacing="0">
<form name="form" method="get" action="My_Operation.asp">
<input type="hidden" name="City" value="">
<tr valign="bottom">
<td width="330" valign="middle">
<input name="key" type="text" class="box3" id="key" value="<%=Session("My_Search_key")%>" size="15">
<select name="Search_Type" id="Search_Type">
<option value="">全部类型</option>
<option value="ECMS建站" <%IF Session("My_Search_Type") = "ECMS建站" Then%>selected<%End IF%>>ECMS建站</option>
<option value="普通建站" <%IF Session("My_Search_Type") = "普通建站" Then%>selected<%End IF%>>普通建站</option>
<option value="维护服务" <%IF Session("My_Search_Type") = "维护服务" Then%>selected<%End IF%>>维护服务</option>
<option value="EIP建设" <%IF Session("My_Search_Type") = "EIP建设" Then%>selected<%End IF%>>EIP建设</option>
<option value="应用软件" <%IF Session("My_Search_Type") = "应用软件" Then%>selected<%End IF%>>应用软件</option>
<option value="网络推广" <%IF Session("My_Search_Type") = "网络推广" Then%>selected<%End IF%>>网络推广</option>
<option value="域名注册" <%IF Session("My_Search_Type") = "域名注册" Then%>selected<%End IF%>>域名注册</option>
<option value="空间租用" <%IF Session("My_Search_Type") = "空间租用" Then%>selected<%End IF%>>空间租用</option>
<option value="企业邮局" <%IF Session("My_Search_Type") = "企业邮局" Then%>selected<%End IF%>>企业邮局</option>
<option value="页面设计" <%IF Session("My_Search_Type") = "页面设计" Then%>selected<%End IF%>>页面设计</option>
</select>
<select name="Search_State">
<option value="">全部</option>
<option value="等待" <%IF Session("My_Search_State") = "等待" Then%>selected<%End IF%>>等待</option>
<option value="制作" <%IF Session("My_Search_State") = "制作" Then%>selected<%End IF%>>制作</option>
<option value="完成" <%IF Session("My_Search_State") = "完成" Then%>selected<%End IF%>>完成</option>
</select>
<select name="Search_Body">
<option value="Pact_ID" <%IF Session("My_Search_Body")="Pact_ID" Then%>selected<%End IF%>>合同编号</option>
<option value="Pact_Name" <%IF Session("My_Search_Body")="Pact_Name" Then%>selected<%End IF%>>合同名称</option>
<option value="Buyer_Name" <%IF Session("My_Search_Body")="Buyer_Name" Then%>selected<%End IF%>>客户名称</option>
<option value="Pact_Money" <%IF Session("My_Search_Body")="Pact_Money" Then%>selected<%End IF%>>合同金额</option>
<option value="Affix_To_Time" <%IF Session("My_Search_Body")="Affix_To_Time" Then%>selected<%End IF%>>签署时间</option>
<option value="End_Time" <%IF Session("My_Search_Body")="End_Time" Then%>selected<%End IF%>>截止日期</option>
<option value="Operation_Content" <%IF Session("My_Search_Body")="Operation_Content" Then%>selected<%End IF%>>业务内容</option>
</select>
</td>
<td valign="middle"><IFRAME frameBorder=0 id=FrmRight name=right src="../inc/City.asp?NumberID=<%=Session("My_Search_City")%>" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1"></IFRAME></td>
<td width="50" align="center" valign="middle"><input name="imageField" type="image" src="Images/see.gif" width="36" height="21" border="0"></td>
</tr>
</form>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" height="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D8D8D8">
<tr>
<td valign="top" bgcolor="ffffff"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="ffffff">
<table width=100% border=0 align='center' cellpadding=3 cellspacing=1 bordercolordark=#ffffff bgcolor="eaeaea">
<td width="3%">
<tr align="left" bgcolor="ffffff">
<td height="20" colspan="3" background="Images/box_bg.gif"><a href="My_Operation.asp?key=<%=Search_key%>&Search_Fashion=<%=Search_Fashion%>&Search_Body=<%=Search_Body%>&City=<%=Search_City%>&Order=1">业务名称</a></td>
<td width="12%" height="20" background="Images/box_bg.gif" bgcolor="ffffff"><a href="My_Operation.asp?key=<%=Search_key%>&Search_Fashion=<%=Search_Fashion%>&Search_Body=<%=Search_Body%>&City=<%=Search_City%>&Order=2">合同金额</a>
<td width="22%" height="20" background="Images/box_bg.gif" bgcolor="ffffff"><a href="My_Operation.asp?key=<%=Search_key%>&Search_Fashion=<%=Search_Fashion%>&Search_Body=<%=Search_Body%>&City=<%=Search_City%>&Order=3">截止日期</a></td>
<td width="25%" background="Images/box_bg.gif" bgcolor="ffffff"><a href="My_Operation.asp?key=<%=Search_key%>&Search_Fashion=<%=Search_Fashion%>&Search_Body=<%=Search_Body%>&City=<%=Search_City%>&Order=4">客户名称</a></td>
<td width="12%" background="Images/box_bg.gif" bgcolor="ffffff">在该客户中</td>
<td width="12%" background="Images/box_bg.gif" bgcolor="ffffff">操作</td>
</tr>
<%
SQL = "select Operation.*,Operation.Buyer_ID,Buyer_Info.*,Buyer_Info.Buyer_ID from Operation,Buyer_Info where (Operation.Buyer_ID = Buyer_Info.Buyer_ID) "& SQL_Search_City &" "& SQL_Search_Type &" "& SQL_Search_State &" "& SQL_Search_key &" AND "& SQL_City &" AND Employee_ID = '"& Session("Eboer_CRM_Employee_ID") &"' "& SQL_Order &""
Set rs=server.CreateObject("adodb.recordset")
rs.open SQL,Conn,1,1
IF not (rs.BOF and rs.eof) then
rs.PageSize = 18
%>
<!--#include file="../inc/page.asp"-->
<tr align="left" bgcolor="ffffff" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#F5F5F5'">
<td height="22" colspan="3"><a href="javascript:Operation_See('<%=Rs("Pact_ID")%>');"><%=Rs("Pact_Name")%></a></td>
<td width="15%" height="22"><%=Rs("Pact_Money")%></TD>
<td height="22"><%=Rs("End_Time")%></td>
<td height="22"><a href="javascript:Operation_List('<%=Rs("Buyer_ID")%>');">
<%
IF len(Rs("Buyer_Name"))>12 Then
Response.Write(left(Rs("Buyer_Name"),12)) & "..."
Else
Response.Write(Rs("Buyer_Name"))
End IF
%>
</a></td>
<td height="22"><a href="javascript:Operation_List('<%=Rs("Buyer_ID")%>');">记录</A>|<a href="javascript:Operation_Add_1('<%=Rs("Buyer_ID")%>');">添加</A></td>
<td height="22">
<%IF Rs("Employee_ID") = Session("Eboer_CRM_Employee_ID") Then%>
<a href="javascript:Operation_Add('<%=Rs("Buyer_ID")%>','<%=Rs("Pact_ID")%>');">修改</A>|<a href="javascript:Operation_Del('<%=Rs("Pact_ID")%>')" onClick="return confirm('删除后将不可恢复,您确定要这样操作吗?')">删除</A>
<%Else%>
<font color="#999999">修改|删除</font>
<%End IF%>
</td>
</tr>
<%
rs.movenext
next
end if
%>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="24" colspan="3" align="left" valign="middle" background="Images/box_bg_1.gif">
<%Call Page_See()%>
</td>
<td width="51%" height="24" align="right" valign="middle" background="Images/box_bg_1.gif">
<%Page_links="key="& Search_key &"&Search_Fashion="& Search_Fashion &"&Search_Body="& Search_Body &"&City="& Search_City &"&Order="& Order &"&"
call PageControl(iCount,maxpage,page)
rs.close
set rs=nothing
Conn.Close
Set Conn = Nothing
%></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" bgcolor="#E2E1E1"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="6"></td>
</tr>
</table>
</body>
</html>
<script language="javascript">
<!--
function Operation_See(id){
window.open("Operation_See.asp?id="+id+"","","width=500,height=420,scrollbars=yes");
}
function Buyer_Edit(id){
window.open("Buyer_Edit.asp?id="+id+"","","width=500,height=530,scrollbars=yes");
}
function Operation_List(id){
window.open("Operation_List.asp?id="+id+"","","width=500,height=420,scrollbars=yes");
}
function Operation_Add_1(id){
window.open("Operation_Add.asp?id="+id+"","","width=500,height=420,scrollbars=yes");
}
function Operation_Add(id,Pact_ID){
window.open("Operation_Add.asp?id="+id+"&Pact_ID="+Pact_ID+"","","width=500,height=420,scrollbars=yes");
}
function Operation_Del(id){
window.open("Operation_Del.asp?id="+id+"","","width=500,height=310,scrollbars=yes");
}
//-->
</script>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?