⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 q_a_look.asp

📁 网上新闻调查发布系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="m.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
  If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
         (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
    MM_grantAccess = true
  End If
End If
If Not MM_grantAccess Then
  MM_qsChar = "?"
  If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
  MM_referrer = Request.ServerVariables("URL")
  if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
  MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
  Response.Redirect(MM_authFailedURL)
End If
%>
<!--#include file="myzb.asp" -->

<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Request.QueryString("id") <> "") Then 
  Recordset1__MMColParam = Request.QueryString("id")
End If
%>

<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_myzb_STRING
Recordset1.Source = "SELECT * FROM qa WHERE id = " + Replace(Recordset1__MMColParam, "'", "''") + ""
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()

Recordset1_numRows = 0
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
	color: #000000;
}
body {
	background-image: url(images/bg.gif);
}
-->
</style></head>

<body>
  <table width="73%" border="1" align="center">
  <tr>
   <td width="16%" align="left" valign="middle"><div align="right">问题编号</div></td>
   <td align="left" width="84%"><%=(Recordset1.Fields.Item("id").Value)%></td>
  </tr>
  <tr>
   <td width="16%" height="97" align="left" valign="middle"><div align="right">问题</div></td>
   <td width="84%" align="left" valign="top"><%=(Recordset1.Fields.Item("q").Value)%></td>
  </tr>
  <tr>
   <td width="16%" height="159" align="left" valign="middle"><div align="right">回答</div></td>
   <td width="84%" align="left" valign="top"><%=(Recordset1.Fields.Item("a").Value)%></td>
  </tr>
  <tr>
   <td width="16%" height="16" align="left" valign="middle"><div align="right">回答人</div></td>
   <td align="left" width="84%"><%=(Recordset1.Fields.Item("hdr").Value)%></td>
  </tr>
  <tr>
   <td width="16%" height="16" align="left" valign="middle"><div align="right">回答时间</div></td>
   <td align="left" width="84%"><%=(Recordset1.Fields.Item("hdtime").Value)%></td>
  </tr>
</table>
<table width="436" border="0">
    <tr align="center" valign="middle">
      <th width="308" scope="col"><div align="right">
        <input name="Submit" type="submit" class="mm_botton" onClick="javascript:history.go(-1);" value="返回上一页">
      </div></th>
      <th width="118" scope="col">        <input name="Submit" type="submit" class="mm_botton" onClick="window.open('fmsg.asp?b6=<%=(Recordset1.Fields.Item("hdr").Value)%>','callwindow','top=0,left=0,width=500,height=200,status=no,resizable=no,scrollbars=no')" value="给回答人发短信"></th>
    </tr>
</table>

<div align="center"></div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -