<!--#include file="conn.asp"-->
<%
page_title=Eval("case_title"&Language)
page_keywords=Eval("case_keywords"&Language)
page_description=Eval("case_description"&Language)
if page_title="" then
page_title=city_title
page_keywords=city_keywords
page_description=city_description
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><%=page_title%></title>
<meta name="keywords" content="<%=page_keywords%>" />
<meta name="description" content="<%=page_description%>" />
<!--#include file="top.asp"-->
<!--#include file="header.asp"-->
<%
if session("user_xxx_name")="" then
response.Redirect("login.asp")
end if
%>
<link href="<%=filepath%>inc/mycenter.css" type="text/css" rel="stylesheet">
<link href="<%=filepath%>inc/style.css" type="text/css" rel="stylesheet">
<link href="<%=filepath%>inc/user.css" type="text/css" rel="stylesheet">

    <div id="wrap">
        <!--container-->
        <div class="main">
            
<!--sidebar-->
<!--#include file="Mb_left.asp"-->

<script type="text/javascript">
                try
                {
                    document.getElementById("User_Evaluation").className = "current"; //控制CSS
                }
                catch(e){}
</script>

<!--sidebar end-->

<!--main-->
<%
action=request("action")
if action<>"" then

dingdan=request.Form("dingdan")
if dingdan<>"" then
	set rs_s=server.CreateObject("adodb.recordset")
	rs_s.open "select * from shopxp_action where shopxpptid="&request.Form("proid")&" and  dingdan='"&dingdan&"'",conn,1,3
	rs_s("isbbs")=1
	rs_s.update
end if

  sql= "select * from com_message"
  Set rs0=server.CreateObject("adodb.recordset")
  rs0.open sql,conn,1,3
  
  rs0.addnew
  rs0("type")=request.Form("type")
  rs0("titlecn")=SaveRequest("title",0)
  rs0("yname")=SaveRequest("yname",0)
  rs0("tel")=SaveRequest("contact",0)
  rs0("textcn")=SaveRequest("comment",0)
  rs0("proid")=request.Form("proid")
  rs0("xjb")=request.Form("xjb")
  rs0("mydate")=Now()
  
  rs0.update
  rs0.close
  set rs0=nothing
response.write "<script LANGUAGE='javascript'>alert('提交成功，感谢您的支持！');location='orderList.asp';</script>"
response.end
end if
  %>
<div class="mainBox">
				<div class="mainContent">
				
					<div class="mycontent">
						<div class="mycontent_10">
							<span>发表评论</span>
						</div>
					</div>
						<div class="mycontent_11">截止至<%=year(date())%>年<%=month(date())%>月<%=day(date())%>日，您共有:&nbsp;&nbsp;
							<a href="MyComment.asp?Action=0">未回复评论(<span class="jfSTYLE1"><%call showBBS(0,1)%></span>)</a>&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="MyComment.asp?Action=1">已回复评论(<span class="jfSTYLE1"><%call showBBS(1,1)%></span>)</a>
						</div>
<style>.addcomment .title{line-height:27px;}.addcomment .title input.blur{border:none;background:transparent url(../cn_asp/images/icons/arrow_6.gif) no-repeat 0 50%;padding-left:15px;}
.inputstyle{border:1px solid #ccc;padding:3px 5px;border-top-color:#777;border-left-color:#777;}
.SearchBar .x-input{ margin-left:5px;_margin-left:3px; display:inline;width:40px;}
.SearchBar .inputstyle{ padding:0}
.forform th,.division .forform td{vertical-align:top;padding:5px;}.forform th{width:120px;font-size:14px;font-weight:normal;padding-left:5px;color:#777;white-space:nowrap;text-align:right;}.Numinput{padding:0 20px;position:relative;height:20px;}.Numinput input{font-size:12px;width:24px;height:15px;line-height:15px;}
</style>	
            <!--内容-->
<form class="addcomment" id="proform2" name="proform2" method="post" action="MyCommentset.asp?action=save">
                <h4>发表评论</h4>
                <div class="title">标题：
                  <input autocomplete="off" class="x-input inputstyle blur" type="text" required="true" size="50" name="title" value="[评论]<%call showTbName(request("subId"),"com_books","titlecn")%></span>" vtype="text">
				  <input type="hidden" value="1" name="type" />
				  <input type="hidden" value="<%=request("subId")%>" name="proid" />
				  <input type="hidden" value="<%=request("subcId")%>" name="procid" />
				  <input type="hidden" value="<%=session("user_xxx_name")%>" name="yname" />
				  <input type="hidden" value="<%=request("dingdan")%>" name="dingdan" />
                </div>
                <div class="division">
				
                  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="forform">
                    <tbody>
					 <tr>
                        <th><em>*</em>评分等级：</th>
                        <td><script>
var sArray = new Object;
    sArray[0] = new Image;
    sArray[0].src = "images/icon_star_1.gif";
    for (var i=1; i<6; i++) {
        sArray[i] = new Image();
        sArray[i].src = "images/icon_star_2.gif";
    }
    
    var pro ; 
    var rate ; 
    function initStar() {
        
        try {
            setProfix("xjb_");
            setStars(document.getElementById("xjb").value,'xjb');
                
        } catch(e){
        
        }    
    }
    
    function showStars(starNum,rate) {
    try {
        
        greyStars();
        colorStars(starNum);
        } catch(e){}
        //setStars(starNum,rate);
        
    }
    function setProfix(profix) {
         pro = profix ;
    }
    function colorStars(starNum) {
        try {
            for (var i=1; i <= starNum; i++) {
                var tmpStar = document.getElementById(pro + i);
                tmpStar.src = sArray[starNum].src;
            }
        } catch(e){}
    }
    function greyStars() {
        try {
            for (var i=1; i<6; i++) {
                var tmpStar = document.getElementById(pro + i);
                tmpStar.src = sArray[0].src;
            }
        } catch(e){}
    }
    
    function greyAll(curpro,currate) {
        try {
            document.getElementById(currate).value ="";    
            for (var i=1; i<6; i++) {
                var tmpStar = document.getElementById(curpro + i);
                tmpStar.src = sArray[0].src;
            }
        } catch(e){}    
    }

    function setStars(starNum,rate) {
        rate = rate ;
        try {
            
            var fuwu = document.getElementById(rate);
            fuwu.value = starNum;
            showStars(starNum);
            } catch(e){}    
    }

    function clearStars(currate) {
        rate = currate ;
        try {
            var fuwu = document.getElementById(rate);
            if (fuwu.value != '') {
                setStars(fuwu.value,rate);
            } else {
                greyStars();
            }
        } catch(e){}
    }
    
    function resetStars() {
        try {
            
            var fuwu = document.getElementById(rate);
            if (fuwu.value != '') {
                setStars(fuwu.value,rate);
            } else {
                greyStars();
            }
        } catch(e){}
    }
    
    
    
</script>
<ul class="Star" style="list-style:none;">
  <li>
      <span class="number"></span>
         <span class="Select"> 
              <a onMouseOver="javascript:setProfix('xjb_');showStars(1,'xjb');" onMouseOut="javascript:setProfix('xjb_');clearStars('xjb');" href="javascript:setProfix('xjb_');setStars(1,'xjb');"><img id="xjb_1" title="差(1)" src="images/icon_star_1.gif"></a>
              <a onMouseOver="javascript:setProfix('xjb_');showStars(2,'xjb');" onMouseOut="javascript:setProfix('xjb_');clearStars('xjb');" href="javascript:setProfix('xjb_');setStars(2,'xjb');"><img id="xjb_2" title="一般(2)" src="images/icon_star_1.gif"></a>
              <a onMouseOver="javascript:setProfix('xjb_');showStars(3,'xjb');" onMouseOut="javascript:setProfix('xjb_');clearStars('xjb');" href="javascript:setProfix('xjb_');setStars(3,'xjb');"><img id="xjb_3" title="好(3)" src="images/icon_star_1.gif"></a>
              <a onMouseOver="javascript:setProfix('xjb_');showStars(4,'xjb');" onMouseOut="javascript:setProfix('xjb_');clearStars('xjb');" href="javascript:setProfix('xjb_');setStars(4,'xjb');"><img id="xjb_4" title="很好(4)" src="images/icon_star_1.gif"></a>
              <a onMouseOver="javascript:setProfix('xjb_');showStars(5,'xjb');" onMouseOut="javascript:setProfix('xjb_');clearStars('xjb');" href="javascript:setProfix('xjb_');setStars(5,'xjb');"><img id="xjb_5" title="非常好(5)" src="images/icon_star_1.gif"></a>
         </span><span><input id="xjb" name="xjb" value="0" type="text" style="margin-left:12px; border:1px #FFFFFF solid; font-size:14px; font-weight:bold; color:#fff;" onFocus="this.blur()"><script>initStar();</script></span> 
   </li>
  
</ul></td>
                      </tr>
                      <tr>
                        <th><em>*</em>评论内容：</th>
                        <td><textarea class="x-input inputstyle" vtype="required" rows="5" name="comment" style="width:80%;"></textarea></td>
                      </tr>
                      <tr>
                        <th>联系方式：</th>
                        <td><input autocomplete="off" class="x-input inputstyle" type="text" size="20" name="contact" vtype="text">
                          <span class="infotips">(可以是电话、email、qq等).</span></td>
                      </tr>
                      <tr>
                        <td></td>
                        <td><input type="submit" value="提交评论" onclick="return CheckForm2();"></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </form>
            <!--内容end-->
 
					</div>
				</div>
			</div>
			<!--main end-->
        </div>
        <!--container end-->
        <div class="clr">
        </div>
        

  
<!--#include file="foot.asp"--> 