<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html>
<head>
<title><%=webname%>--用户评级</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</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="98%" border="1" cellspacing="0" cellpadding="1" bordercolor="#75A3D0" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td rowspan="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" 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" cellspacing="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>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
