📄 servicelist.asp
字号:
<!--#include file="../function/connect.asp"-->
<%
meth=request("meth")
client_ID=request("client_ID")
if client_ID="all" then
client_ID=""
end if
if meth="del" and request("IID")<>"" then
strsql="delete from Service where Service_ID in (" & request("IID") &")"
objConn.execute strsql
end if
strsql="select s.*,c1.cat1_name,c2.cat2_name,cl.client_name,co.Contact_Name,p.product_name,st.Service_Type from Service s,cat1 c1,cat2 c2,clients cl,Contacts co,products p,Dict_ServiceTypes st where product_cat1_id=cat1_id and product_cat2_id=cat2_id and cl.client_id=s.client_id and co.Contact_ID=s.Contact_ID and p.Product_ID=s.Product_ID and st.Service_Type_ID=s.Service_Type_ID "
'response.write strsql
if client_ID<>"" then
strsql=strsql & " and s.client_ID=" & client_ID
end if
Set objRs = Server.CreateObject("adodb.recordset")
objRs.Open strsql,objConn,1,1
%>
<html>
<head>
<title>产品</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../cssD.css" rel=stylesheet>
<script>
function checkNum()
{
rNum=0;
var actID=document.all.IID;
for(i=1;i<actID.length;i++){
if(actID[i].checked==true){
rNum=rNum +1 ;
}
}
return rNum;
}
function checkAll()
{
var actID=document.all.IID;
if(document.form1.checkall.checked==false){
for(i=0;i<actID.length;i++){
actID[i].checked=false;
}
}else{
for(i=0;i<actID.length;i++){
actID[i].checked=true;
}
}
}
function modify()
{
if(checkNum()!=1)
{
alert('修改的项目只能是一个.');
}else{
document.form1.action="editservice.asp";
document.form1.submit();
}
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="103%" border="1" cellspacing="0" cellpadding="2" bordercolorlight='#000000' bordercolordark='#FFFFFF'>
<form name="form1" method="post" action="productlist.asp">
<tr class="tablehead">
<td width="4%"><input type="checkbox" name="checkall" value="1" onclick="checkAll();"><input type="checkbox" name="IID" value="0" disabled style="display:none;"></td>
<td width="30%" nowrap>
<div align="center">反馈主题</div>
</td>
<td width="10%" nowrap>
<div align="center">反馈日期</div>
</td>
<td width="10%" nowrap>
<div align="center">相关客户</div>
</td>
<td width="10%" nowrap>
<div align="center">相关联系人</div>
</td>
<td width="10%" nowrap>
<div align="center">相关产品</div>
</td>
<td width="10%" nowrap>
<div align="center">服务反馈类型</div>
</td>
<td width="10%" nowrap>
<div align="center">详细描述</div>
</td>
<td width="10%" nowrap>
<div align="center">状态</div>
</td>
</tr>
<%if not objrs.eof then
do while not objrs.eof
%>
<tr align="center">
<td width="4%" class="tablehead">
<input type="checkbox" name="IID" value="<%=objrs.fields("Service_ID")%>">
</td>
<td width="30%" nowrap> <a href="editservice.asp?IID=<%=objrs.fields("Service_ID")%>"><%=objrs.fields("Regarding")%></a></td>
<td width="10%" nowrap> <%=objrs.fields("Start_Date")%></td>
<td width="10%" nowrap> <%=objrs.fields("client_name")%></td>
<td width="10%" nowrap> <%=objrs.fields("Contact_Name")%></td>
<td width="10%" nowrap> <%=objrs.fields("product_name")%></td>
<td width="10%" nowrap> <%=objrs.fields("Service_Type")%></td>
<td width="10%" nowrap> <%=objrs.fields("Details")%></td>
<%
Closed=objrs.fields("Closed")
if Closed=1 then
strClosed="已结束"
else
strClosed="进行中"
end if
%>
<td width="10%" nowrap> <%=strClosed%></td>
</tr>
<%
objrs.movenext
loop
else%>
<tr align="center">
<td colspan="9">
没有反馈
</td>
</tr>
<%end if%>
<input type="hidden" name="meth" value="del">
<tr align="center">
<td colspan="9">
<input type="button" value=" 添加 " class="button" onclick="window.open('feedback.asp?ID=<%=ID%>','服务反馈','left=150,top=150,width=630,height=360');"> <input type="submit" value=" 删除 " class="button"> <input type="button" value=" 修改 " class="button" onclick="modify();">
</td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -