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

📄 pingji.asp

📁 商城程序 界面漂亮 功能强大 欢迎交流 共同进步
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html><head><title><%=webname%>--用户评级</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body leftmargin="0" topmargin="5" 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="95%" align="center" border="0" cellpadding="2" cellspacing="1" bgcolor="#cccccc">
                          <tr bgcolor="#ffffff"> 
                            <td height="15"><img src="images/myreviews1.gif" width="279" height="21"></td>
                          </tr>
                          <tr bgcolor="#ffffff">
                            <form name="form1" method="post" action="pingji.asp?action=save&id=<%=rs("bookid")%>">
                              <td height="33"> 
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                  <tr> 
                                    <td colspan="2">您对[<%=trim(rs("bookname"))%>]商品的评级是:</td>
                                  </tr>
                                  <tr> 
                                    <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> 
                                    <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> 
                                    <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> 
                                    <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> 
                                    <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> 
                                    <td colspan="2"> 
                                      <div align="center"> 
                                        <input type="image" border="0" name="submit" src="images/bc.gif" width="54" height="18" >
                                      </div>
                                    </td>
                                  </tr>
                                </table>
                              </td>
                            </form>
                          </tr>
                        </table>
</body>
</html>

⌨️ 快捷键说明

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