<!--#include file="../prohead.asp"-->
  <!--#include file="../checkrole.asp"-->
 <%
      call checkuser("hp")
	  
if issession=0 then
gsid=Replace_Text(request.Cookies("Yxmemberid"))
else
gsid=session("id")
end if
	 %>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TABLE width=778 border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
  <TR>
    <TD 
    style="BACKGROUND-POSITION: right 50%; BACKGROUND-IMAGE: url(../images/bg1.gif); BACKGROUND-REPEAT: repeat-y; BACKGROUND-COLOR: #ffffff" 
    vAlign=top align=middle>
       <TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
        <TBODY>
        <TR>
              <TD width="181"><IMG height=32 src="../images/trust.gif" 
            border=0></TD>
              <TD width="597" background="../images/info_bg.gif">&nbsp;</TD>
        </TR>
		  </TBODY></TABLE>

      <%
id=gsid
typeid=Replace_Text(request("typeid"))
sql="select Websen_trustadv.*,Websen_corporation.name,Websen_corporation.trust_score,Websen_corporation.email from Websen_trustadv,Websen_corporation where Websen_trustadv.pjrid="&id&" and Websen_corporation.id=Websen_trustadv.bprid"
if typeid>"" then sql=sql&" and Websen_trustadv.type='"&typeid&"'"
sql=sql&" order by Websen_trustadv.id desc"
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="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <TD class=M height=40>&nbsp;&nbsp;<span style="color: #FF0000">以下是您发出的评价相关信息：</span></TD>
  </tr>
</table><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#F1F7FA">
                  <tr><td width="26%" bgcolor="#FFFFFF"><a href="index.asp"><img src="../images/av_remark_list_head1_f2.gif" width="200" height="32" border="0"></a></td>
                    <td width="74%" bgcolor="#FFFFFF"><a href="indexto.asp"><img src="../images/av_remark_list_head11_f2.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="indexto.asp" style="color: #FF0000"><%
sql="select count(id) from Websen_trustadv where Websen_trustadv.pjrid="&gsid&""
set totle=conn.execute(sql)
totle2=totle(0)
response.write"<font color='#FF0000'>"&totle2&"</font>条"
totle.close 
set totle=nothing
%></a>
                    评价 &nbsp;&nbsp;&nbsp;其中好评 
                          <a href="indexto.asp?typeid=&#22909;&#35780;" style="color: #FF0000"><%
sql="select count(id) from Websen_trustadv where Websen_trustadv.pjrid="&gsid&" and type='好评'"
set totle=conn.execute(sql)
totle2=totle(0)
response.write"<font color='#FF0000'>"&totle2&"</font>条"
totle.close 
set totle=nothing
%></a>
        </strong></a> &nbsp;&nbsp;&nbsp;<span style="">建议</span> 
        <a href="indexto.asp?typeid=&#24314;&#35758;" style="color: #FF0000"><%
sql="select count(id) from Websen_trustadv where Websen_trustadv.pjrid="&gsid&" and type='建议'"
set totle=conn.execute(sql)
totle2=totle(0)
response.write"<font color='#FF0000'>"&totle2&"</font>条"
totle.close 
set totle=nothing
%></a> 
        &nbsp;&nbsp;&nbsp;<span style="">批评</span> 
        <a href="indexto.asp?typeid=&#25209;&#35780;" style="color: #FF0000"><%
sql="select count(id) from Websen_trustadv where Websen_trustadv.pjrid="&gsid&" and type='批评'"
set totle=conn.execute(sql)
totle2=totle(0)
response.write"<font color='#FF0000'>"&totle2&"</font>条"
totle.close 
set totle=nothing
%></a></b></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="100%" 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;被评人： <%=rs("name")%>
								<br>&nbsp;&nbsp;<Font color="#666666">email: <%=rs("email")%></Font></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>
<TABLE width="100%" 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=indexto.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=indexto.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=indexto.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>
</tr>
</table>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>