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

📄 pingji.asp

📁 创建和运行动态、交互的Web服务器应用程序
💻 ASP
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<title>用户评级</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="3" topmargin="3" marginwidth="0" marginheight="0">
<%dim bookid,action
action=request.QueryString("action")
bookid=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
rs.open "select bookid,bookname,pingji,pingjizong from shop_books where bookid="&bookid,conn,1,3
if action="save" then
if session("bookid")=bookid then
response.write "<br><br><br><center><font color=red size=2>对不起,您不能连续对同一本书评级!</font></center>"
response.End
end if
rs("pingji")=rs("pingji")+1
rs("pingjizong")=rs("pingjizong")+request("radiobutton")
rs.update
response.write "<br><br><br><table width=96% border=0 align=center cellpadding=0 cellspacing=0><tr><td height=86 bgcolor=#F5F5F5><div align=center>"
response.write "您对这本书的评论星级已成功提交!!<br><br><a href=javascript:window.close()>关闭窗口</a></div></td></tr></table>"
rs.close
set rs=nothing
session("bookid")=bookid
session.timeout=1
response.End
end if
%>
<table width="96%" border="0" cellpadding="2" cellspacing="1">
  <tr> 
    <td height="15"><img src="images/myreviews1.gif" width="279" height="21"></td>
  </tr>
  <tr><form name="form1" method="post" action="pingji.asp?action=save&id=<%=rs("bookid")%>">
    <td height="33">
        <table width="100%" border="0" cellpadding="2" cedlspacing="1" bgcolor="#FFFFFF">
          <tr bgcolor="#F5F5F5"> 
            <td colspan="2">您对《<%=trim(rs("bookname"))%>》这本书的评级是:</td>
          </tr>
          <tr bgcolor="#F5F5F5"> 
            <td width="50%"><input name="radiobutton" type="radio" value="10" checked> <img src="images/pingji/10.gif" width="79" height="14"></td>
            <td width="54%"><input type="radio" name="radiobutton" value="9"> 
              <img src="images/pingji/9.gif" width="79" height="14"></td>
          </tr>
          <tr bgcolor="#F5F5F5"> 
            <td><input type="radio" name="radiobutton" value="8"> <img src="images/pingji/8.gif" width="79" height="14"></td>
            <td><input type="radio" name="radiobutton" value="7"> <img src="images/pingji/7.gif" width="79" height="14"></td>
          </tr>
          <tr bgcolor="#F5F5F5"> 
            <td><input type="radio" name="radiobutton" value="6"> <img src="images/pingji/6.gif" width="79" height="14"></td>
            <td><input type="radio" name="radiobutton" value="5"> <img src="images/pingji/5.gif" width="79" height="14"></td>
          </tr>
          <tr bgcolor="#F5F5F5"> 
            <td><input type="radio" name="radiobutton" value="4"> <img src="images/pingji/4.gif" width="79" height="14"></td>
            <td><input type="radio" name="radiobutton" value="3"> <img src="images/pingji/3.gif" width="79" height="14"></td>
          </tr>
          <tr bgcolor="#F5F5F5"> 
            <td><input type="radio" name="radiobutton" value="2"> <img src="images/pingji/2.gif" width="79" height="14"></td>
            <td><input type="radio" name="radiobutton" value="1"> <img src="images/pingji/1.gif" width="79" height="14"></td>
          </tr>
          <tr bgcolor="#F5F5F5"> 
            <td colspan="2"><div align="center">
                <input type="submit" name="Submit" value="提 交">
              </div></td>
          </tr>
        </table>
      </td></form>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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