?? down_report_service.asp
字號:
<!--#INCLUDE file="../pub_fun.asp"-->
<!--#INCLUDE FILE="../conn.asp"-->
<html>
<HEAD>
<META NAME="Keywords" CONTENT="FastReport"/>
<META NAME="Description" CONTENT="The FastReport report"/>
<LINK href="../css.css" rel="stylesheet" type="text/css" media="all">
<title>反饋信息報表下載</title>
</head>
<body >
<%
''獲取查詢語句
textSql=decrypt(trim(request("sql")))
'創(chuàng)建文件名
strFileName = "r_service_" & GetAutoID() & ".csv"
strFullFileName = server.mappath("../data/" & strFileName) '帶路徑
SET objMyFile = Server.Createobject("scripting.filesystemobject")
SET objNewsFile = objMyFile.createtextfile(strFullFileName)
''從數(shù)據(jù)庫中讀出相應(yīng)的文件
SET objRs = Server.CreateObject("Adodb.RecordSet")
objRs.Open textSql,conn,3
intRC = objRs.RecordCount
strTitle = "反饋客戶,反饋主題,反饋時間,是否解決,相關(guān)產(chǎn)品,服務(wù)反饋類型"
'寫入表頭
objNewsFile.writeline(strTitle)
'寫入標(biāo)題
FOR i=1 TO intRC
strLineString=showclientname(objRs("Feedbackclientid"))&","
strLineString=strLineString&objRs("FeedbackTopic")&","
strLineString=strLineString&objRs("FeedbackDate")&","
if objRs("FeedbackOver")="0" then
strLineString=strLineString&"未解決,"
else
strLineString=strLineString&"已解決,"
end if
strLineString=strLineString&objRs("FeedbackProduct")&","
strLineString=strLineString&objRs("FeedbackSort")
objNewsFile.writeline(strLineString)
objRs.movenext
NEXT
objRs.Close
SET objRs = NOTHING
objNewsFile.close
SET objNewsFile = NOTHING
SET objMyFile = NOTHING
%>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" width="380" height="207">
<tr class="CListTTL" >
<td height="29" ><font color = yellow ><b>下載反饋信息數(shù)據(jù)</b></FONT></td>
</tr>
<tr CLASS=cROW>
<td width="100%" height="177">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="72%" id="AutoNumber2">
<tr align="center" CLASS=cROW>
<td nowrap><a href="../data/<%=strFileName%>" onMouseDown="javascript:if (event.button==1) alert('請用鼠標(biāo)右鍵點擊鏈接\n選擇目標(biāo)另存為!')"><font color=blue><strong>下 載</strong></font></a></td>
</tr>
<tr align="center" CLASS=cROW>
<td nowrap><br><br><br><font color = red>說明:用鼠標(biāo)右鍵點擊“下載”,選擇“目標(biāo)另存為...”功能</font></td>
</tr>
</table>
</center>
</td>
</tr>
</table>
</center>
</div>
</BODY>
</HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -