<!--#include file="../prohead.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TABLE cellSpacing=0 cellPadding=0 width=778 border=0>
  <TBODY>
  <TR>
    <TD vAlign=top align=middle width=150>
      <SCRIPT LANGUAGE='JavaScript' SRC='../images/left.js' TYPE='text/javascript'></script>

      <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
        <TBODY>
        <TR>
          <TD vAlign=top align=middle width=150 
          background=../images/leftmanu_bg.gif>
            <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
              <TBODY>
              <TR>
                <TD width=150 
                  background=../images/leftmanu_topbg.gif><IMG height=30 
                  src="../images/leftmanu_top.gif" 
              width=150></TD></TR></TBODY></TABLE>
            <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
              <TBODY>
              <TR>
                <TD class=leftmenu1 
                onclick="location.href='../index.asp'"><IMG 
                  height=18 src="../images/leftmanu_home.gif" width=16 
                  align=absMiddle> 商务助手首页</TD></TR><TR>
                <TD class=leftmenu1 
                onclick=javascript:menu_display(table1,img1);><IMG id=img1 
                  height=16 src="../images/fold_2.gif" width=16 
                  align=absMiddle> 发布商业信息</TD></TR>
              <TBODY id=table1><!-- 正常情况下  -->
              <TR>
                   <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../tradeinfo/add_info.asp">发布供求信息</A> </TD>
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../tradeinfo/edit.asp">管理供求信息</A> </TD>
                    </TR><!-- 正常情况下  -->
			  <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../productshow/add_product.asp">发布产品信息</A> </TD>
                    </TR><!-- 正常情况下  -->
			   <TR>

                      <TD class=leftmenu2><IMG src="../images/plus.gif"> 

					  <A 

                  class=linkstyle2 

                  href="../productshow/edit.asp">管理产品信息</A></TD>

                    </TR><!-- 正常情况下  --><TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../modify/modify_mine.asp">展会信息管理</A> </TD>
                    </TR>



              



              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../corporation/company_edit.asp">公司介绍</A></TD>
                    </TR><!-- 正常情况下  -->
					<TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../bizre/index.asp">商贸通档案</A></TD>
                    </TR></TBODY>
              <TBODY>
              <TR>
                <TD class=leftmenu1 onclick=menu_display(table2,img2)><IMG 
                  id=img2 height=16 src="../images/fold_2.gif" width=16 
                  align=absMiddle> 查看商业往来</TD></TR>
              <TBODY id=table2><!-- 正常情况下  -->
               <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../getprice/receivemessagelist.asp">我收到的留言</A> </TD>
                    </TR>
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../getprice/sendmessagelist.asp">我发出的留言</A> </TD>
                    </TR>
					              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../getprice/sendnewmessage.asp">发新留言</A> </TD>
                    </TR><!-- 正常情况下  -->
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../myemail/index.asp">我订阅的信息</A></TD>
                    </TR><!-- 正常情况下  -->
              <TR>

                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 

                  class=linkstyle2 

                  href="../myfriend/index.asp">我的商业伙伴</A> </TD>

                    </TR><TR>

                      <TD class=leftmenu3 height=29><IMG src="../images/minus.gif"> <A 

                  class=linkstyle3 

                  href="../trust/index.asp"><strong>会员评价</strong></A> <IMG src="../images/now.gif"></TD>

                    </TR></TBODY>
              
              <TR>
                    <TD class=leftmenu1 onclick=menu_display(table3,img3)><IMG 
                  id=img3 height=16 src="../images/fold_1.gif" width=14 
                  align=absMiddle> 我的会员资料</TD>
                  </TR>
              <TBODY id=table3 style="DISPLAY: none"><!-- 正常情况下  -->
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../modify/modify_info.asp">修改注册信息</A> </TD>
                    </TR><!-- 正常情况下  -->
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../modify/modify_pass.asp">修改密码</A> </TD>
                    </TR><!-- 正常情况下  -->
                    <TD class=leftmenu1 onclick=menu_display(table4,img4)><IMG 
                  id=img4 height=16 src="../images/fold_1.gif" width=14 
                  align=absMiddle> 我的自助网站</TD>
                  </TR>
              <TBODY id=table4 style="DISPLAY: none">
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../corporation/webmod.asp">网站模板选择</A></TD>
                    </TR>
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../corporation/cimg_add.asp?id=<%=session("id")%>">上传公司图片</A> </TD>
                    </TR>
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../feedback/contact_edit.asp?id=<%=session("id")%>">客户反馈管理</A></TD>
                    
                    </TR>
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../work/work.asp">发布招聘信息</A></TD>
                    </TR>
			  <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../work/edit.asp">管理招聘信息</A></TD>
                    </TR>
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../../companyweb.asp" 
                  target=_blank>浏览我的网站</A></TD>
                    </TR></TBODY>
              <TBODY>
              <TR>
                <TD class=leftmenu1 
                onclick="javascript:window.open('../../help/index.asp')"><IMG 
                  id=img5 src="../images/leftmenu_help.gif" 
                  align=absMiddle> 帮助</TD></TR></TBODY></TABLE>
            <IMG height=6 
            src="../images/leftmanu_bottom.gif" width=150><BR><BR>
            <!--#include file="../guestsubmit.asp"-->
            
            <BR><BR></TD></TR>
        </TABLE><BR><BR><BR></TD>
    <TD 
    style="BACKGROUND-POSITION: right 50%; BACKGROUND-IMAGE: url(../images/bg1.gif); BACKGROUND-REPEAT: repeat-y; BACKGROUND-COLOR: #ffffff" 
    vAlign=top align=middle width=628>
      <TABLE cellSpacing=0 cellPadding=0 width=628 border=0>
        <TBODY>
        <TR>
          <TD width=459><IMG height=30 
            src="../images/leftmanu_top1.gif" width=459></TD>
          <TD vAlign=top width=141 
          background=../images/top_nav_bg2.gif></TD>
          <TD width=28><IMG height=30 src="../images/top_nav_5.gif" 
            width=28></TD></TR></TBODY></TABLE><BR>
      <TABLE cellSpacing=0 cellPadding=0 width=578 border=0>
        <TBODY>
        <TR>
              <TD><IMG height=32 src="../images/trust.gif" width=578 
            border=0></TD>
            </TR>
		  </TBODY></TABLE>

<%
id=session("id")
typeid=request("typeid")
sql="select trustadv.*,corporation.name,corporation.trust_score,corporation.email from trustadv,corporation where trustadv.bprid="&id&" and corporation.id=trustadv.pjrid"
if typeid>"" then sql=sql&" and trustadv.type='"&typeid&"'"
sql=sql&" order by trustadv.id desc"
'response.write sql
set rs=server.createobject("adodb.recordset") 
rs.open sql,conn,1,1 

msg_per_page=5 '定义每页显示记录条数
rs.pagesize=msg_per_page '定义分页记录集每页显示记录数

if not (rs.eof and rs.bof) then
	totalrec=RS.RecordCount'总记录条数
	if rs.recordcount mod msg_per_page=0 then'计算总页数,recordcount:数据的总记录数
		n=rs.recordcount\msg_per_page'n:总页数
	else
		n=rs.recordcount\msg_per_page+1                        
	end if                                                                
	currentpage=request("page")'currentpage:当前页
	If currentpage <> "" then
		currentpage =  cint(currentpage)
		if currentpage < 1 then  
			currentpage = 1
		end if  
		if err.number <> 0 then '错误处理
			err.clear
			currentpage=1
		end if
	else
		currentpage=1
	End if                                                                
	if currentpage*msg_per_page > totalrec and not((currentpage-1)*msg_per_page < totalrec)then 
		currentPage=1
	end if
	rs.absolutepage=currentpage'absolutepage：设置指针指向某页开头
	rowcount=rs.pagesize'pagesize：设置每一页的数据记录数
end if
%>
<table width="578" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <TD class=M height=40>&nbsp;&nbsp;<span style="color: #FF0000">以下是您收到的评价相关信息：</span></TD>
  </tr>
</table>
<table width="578"  border="0" cellpadding="0" cellspacing="0" bgcolor="#F1F7FA">
                  <tr><td><a href="index.asp"><img src="../images/av_remark_list_head1.gif" width="200" height="32" border="0"></a></td>
                    <td><a href="indexto.asp"><img src="../images/av_remark_list_head11.gif" width="378" height="32" border="0"></a></td>
                  </tr>
				  <tr>
                    <td height="30" colspan="2" style='border-left:#CAE0EB 1 solid;border-right:#CAE0EB 1 solid;border-bottom:#CAE0EB 1 solid'>&nbsp;<img src="../images/classpic.gif" width="6" height="12" align="baseline">
<b>共获得 
<a href="index.asp" style="color: #FF0000"><%
sql="select count(id) from trustadv where trustadv.bprid="&session("id")&""
set totle=conn.execute(sql)
totle=totle(0)
response.write"<font color='#FF0000'>"&totle&"</font>条"
totle.close 
set totle=nothing
%></a>
评价 &nbsp;&nbsp;&nbsp;好评
<a href="index.asp?typeid=&#22909;&#35780;" style="color: #FF0000"><%
sql="select count(id) from trustadv where trustadv.bprid="&session("id")&" and type='好评'"
set totle=conn.execute(sql)
totle=totle(0)
response.write"<font color='#FF0000'>"&totle&"</font>条"
totle.close 
set totle=nothing
%></a></strong></a>
( <%
sql="select count(id) from trustadv where trustadv.bprid="&session("id")&" and type='好评' and pass=1"
set totle=conn.execute(sql)
totle=totle(0)
response.write"<font color='#FF0000'>"&totle&"</font> 条"
totle.close 
set totle=nothing
%>已加分) &nbsp;&nbsp;&nbsp;建议
<a href="index.asp?typeid=&#24314;&#35758;" style="color: #FF0000"><%
sql="select count(id) from trustadv where trustadv.bprid="&session("id")&" and type='建议'"
set totle=conn.execute(sql)
totle=totle(0)
response.write"<font color='#FF0000'>"&totle&"</font>条"
totle.close 
set totle=nothing
%></a> &nbsp;&nbsp;&nbsp;批评
<a href="index.asp?typeid=&#25209;&#35780;" style="color: #FF0000"><%
sql="select count(id) from trustadv where trustadv.bprid="&session("id")&" and type='批评'"
set totle=conn.execute(sql)
totle=totle(0)
response.write"<font color='#FF0000'>"&totle&"</font>条"
totle.close 
set totle=nothing
%></a></b>
（<%
sql="select count(id) from trustadv where trustadv.bprid="&session("id")&" and type='批评' and pass=1"
set totle=conn.execute(sql)
totle=totle(0)
response.write"<font color='#FF0000'>"&totle&"</font> 条"
totle.close 
set totle=nothing
%>已减分)
</td>
             </tr>
        </table>
<%if rs.eof then
response.write"<font class=L color=silver><br><br>目前尚未有其他会员对您作出任何评价！<br><br></font>"
else%>		  <br>		  <TABLE style="WORD-BREAK: break-all" cellSpacing=0 
                        cellPadding=0 width="578" border=0>
						<%do while not rs.eof and rowcount > 0%>
                          <TBODY>
                          <TR>
                            <TD>
                              <TABLE cellSpacing=1 cellPadding=5 width="100%" 
                              align=center bgColor=#cae0eb border=0>
                                <TBODY>
                                <TR>
                                <TD class=C width=250 
                                bgColor=#ffffe1>&nbsp;&nbsp;评价人：<img src="../../images/trust.gif" width="22" height="14" align="absmiddle"><a href="mailto:<%=rs("email")%>"><%=rs("name")%></a></TD>
                                              <TD class=c align=left 
                                bgColor=#ffffe1>商贸通指数：<FONT 
                                color=red><B><%=rs("trust_score")%></B></FONT></TD>
                                <TD class=c align=middle 
                                bgColor=#ffffe1>身份：<FONT 
                                color=red><B><%=rs("role")%></B></FONT></TD></TR>
                                <TR>
                                <TD class=c bgColor=#ffffe1>&nbsp;&nbsp;<B>评价性质：</B> <span style="font-weight: bold; color: #006600;"><%=rs("type")%></span> &nbsp; 
                              </TD>
                                <TD colspan="2" bgColor=#ffffe1 class=c align=left>评价时间：(<%=FormatDate(rs("dateandtime"),1)%>）</TD>
                                </TR></TBODY></TABLE></TD></TR>
                          <TR>
                            <TD>
                              <TABLE width="100%" border=0 
                              align=center cellPadding=5 cellSpacing=0 bgcolor="#F1F7FA">
                                <TBODY>
                                <TR vAlign=top>
                                <TD class=c 
                                width="27%">&nbsp;&nbsp;<B>评价内容：</B></TD>
                                <TD 
                                class=sg><%=rs("content")%> 
                                <BR><BR> 
        </TD></TR></TBODY></TABLE></TD></TR>
                          <TR>
                            <TD bgcolor="#FFFFFF">&nbsp;</TD>
                          </TR>
            </TBODY>
		<%
rowcount=rowcount-1
rs.movenext
loop
%></TABLE>
		  <br>
<TABLE width="578" border="1" cellpadding="4" cellspacing="0" bordercolor="#111111" bordercolorlight="#FCDFB4" bordercolordark="#FCDFB4" style="border-collapse: collapse">
<TR height=25 bgcolor="#FCDFB4"> <td bgcolor="#FEF8E2" align="center"><%call listPages()%></td>
</tr></table>
<BR><BR>

<%


sub listPages() 
   if not (rs.eof and rs.bof) then
	gopage=currentpage
	totalpage=n
	blockPage=Int((gopage-1)/10)*10+1
	if blockPage = 1 Then
		Response.Write "<span disabled>【←前10页</span>&nbsp;&nbsp;"
	Else
		Response.Write("<span disabled>【</span><a href=index.asp?page="&blockPage-10&">←前10页</a>&nbsp;&nbsp;")
	End If
   i=1
   Do Until i > 10 or blockPage > n
    If blockPage=int(gopage) Then
		Response.Write("<font color=#FF0000>[<b>"&blockPage&"</b>]</font>")
	Else
		Response.Write("<a href=index.asp?page="&blockPage&">["&blockPage&"]</a>")
    End If
    blockPage=blockPage+1
    i = i + 1
    Loop
	if blockPage > totalpage Then
		Response.Write "&nbsp;&nbsp;<span disabled>后10页→】"
	Else
		Response.Write("&nbsp;&nbsp;<a href=index.asp?page="&blockPage&">后10页→</a><span disabled>】")
	End If
		Response.Write("&nbsp;&nbsp;共"&n&"页 每页"&msg_per_page&"条记录 共"&totalrec&"条记录")
end if
end sub
%>
<%end if%>
            <BR></TD></TR></TBODY></TABLE>
</TABLE>
</tr>
</table>

<IMG 
height=10 src="../images/bottom.gif" width=778><BR>
<!--#include file="../end.asp"-->
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>