📄 viewanswer.asp
字号:
<!--#include file="dataconn.asp"-->
<!--#include file="ADOVBS.INC"-->
<%
Function HtmlEncode(str)
If Trim(Str)="" Or IsNull(str) Then Exit Function
str=Replace(str,Chr(32)," ")
str=Replace(str,Chr(9)," ")
HtmlEncode=str
End Function
%>
<%
id1=request("id")
id=cint(id1)
sql="select * from question where id="&id
set rscat=conn.execute(sql)
if not rscat("ifanswer") then
response.write"<script language='jscript'>"
response.write"alert('此问题没有被解答,请待查看!');"
response.write"javascript:history.go(-1);"
response.write"</script>"
response.end
end if
%>
<html>
<head>
<style type="text/css">
<!--
p{font-size:9pt};
td{font-size:9pt};
li{font-size:9pt};
select{font-size:9pt};
.forms {
BORDER-RIGHT: #254b03 1px solid; BORDER-TOP: #254b03 1px solid; MARGIN-TOP: auto; MARGIN-BOTTOM: auto; BORDER-LEFT: #254b03 1px solid; WIDTH: 80px; BORDER-BOTTOM: #254b03 1px solid; HEIGHT: 14px; BACKGROUND-COLOR: #ffffff
}
a {color:#5f5f5f;font-size: 9pt ;text-decoration:none; line-height:13.5pt}
a:hover {text-decoration:none; color:#000000;text-decoration: underline}
-->
.a10 { font-size: 10.5pt}
.bg {
background-repeat: no-repeat;
}
.t3 { color: #000000;
background-color: #eaf1fb;
border: 1px solid #3d5a83;
font-size: 12px;
font-family: "楷体_GB2312";
}
.t4 { color: #000000;
background-color: #eaf1fb;
border: 1px solid #3d5a83;
font-size: 16px;
font-family: "楷体_GB2312";
}
.text {font-size: 12px; color: #000000}
.ee {
background-color: #CEDAE0;
}
.t31 { color: #000000;
background-color: #eaf1fb;
border: 1px solid #3d5a83;
font-size: 12px;
}
.t5 { color: #000000;
background-color: #eaf1fb;
border: 1px solid #3d5a83;
font-size: 16px;
}
.t41 {font-size: 12px; color: #FF0000}
.style1 {color: #000000}
</style>
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<title>在线答疑</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body background="../images/untitled/bg.gif" leftmargin="0" topmargin="0">
<table width="760" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td background="../images/untitled/top.gif" height="15">
<div align="right"></div>
</td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><img src="../images/untitled/dayi.gif" width="760" height="78"></td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0" bordercolor="003366" align="center">
<tr>
<td background="../images/untitled/top2.gif" height="32">
<div align="right">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<div align="center"><img src="../images/untitled/top3.gif" width="197" height="32"></div>
<div align="right"></div></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0" bordercolor="003366" align="center">
<tr>
<td valign="top">
<table width="100%" height="438" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="438" align="center" valign="top" background="../images/untitled/b1.gif"><div align="center"></div>
<div align="left" class="bg">
<div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="33"> </td>
</tr>
</table>
</div>
<div align="center">
<table width="572" border="1" cellpadding="1" cellspacing="1" bordercolor="#5B82A6">
<tr>
<td height="20" width="89"><div align="center" class="text">[提问人]</div></td>
<td width="443" height="20" align="left"><div align="left" class="text"><%=rscat("student_name")%></div></td>
</tr>
<tr>
<td class="text"><br>
<div align="center" class="t41">[提问的问题]</div>
<br>
<div align="center"> </div>
<br>
</td>
<td align="left" class="text"><%=rscat("q_content")%><br>
<div align="right" class="text">[<%=rscat("q_time")%>]</div></td>
</tr>
<tr>
<td height="20" width="89" class="text"><div align="center">[回答教师]</div></td>
<td height="20"><div align="left" class="text"><%=rscat("admin_name")%></div>
<div align="center"></div></td>
</tr>
<tr>
<td height="67" class="text"><br>
<div align="center" class="t41">[参考答案]</div>
<br>
<br>
<br>
</td>
<td class="text"><% = rscat("a_content") %>
<div align="right" class="text">[<%=rscat("a_time")%>]</div></td>
</tr>
<tr>
<td height="60" colspan="2" align="center"> <br>
<img src="../images/untitled/12.gif" width="62" height="12"><a href="javascript:history.go(-1)" class="style1"> 返回</a></td>
</tr>
</table>
<br class="bg">
</div>
</div></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0" height="24" bordercolor="003366" align="center">
<tr>
<td background="../images/untitled/botton-bg.gif">
<div align="center" class="text">CopyRight @ 2005 东北师范大学网络学院</div>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -