<%
Sub GuestArea(GuestType,RepListNum,RepRetUrl,RepEnabled,ShowRepLink)
%>
<div id="GuestArea" style="margin:auto;text-align:center;background-color:#fff;">
  <div id="GHeader<%=i%>" style="margin:auto;width:99%;height:30px;background-image:url(<% =GBSkin %>/guest_top.gif);text-align:left;cursor:pointer;" onClick="ShowHideArea('GContent<%=i%>');">
    <div class="guest_flag" style="float:left;width:15%;padding:8px 0 0 25px;"><a name="<%=rs("id")%>"></a>
      <%If GuestType=1 Then%>
      [置顶公告]
      <%Else%>
      <%If rs("TopG")=True Then%>
      [置顶留言]
      <%Else%>
      [普通留言]
      <%End If%>
      <%End If%>
    </div>
    <div style="float:left;width:40%;padding-top:8px;" class="guest_name">
      <%If GuestType=1 Then%>
      <%=rs("name")%>
      <%Else%>
      <% =rs("name") %>
      [
      <% =rs("sex") %>
      ]
      <%End If%>
    </div>
    <div style="float:right;width:40%;padding-top:6px;"> <a href="mailto:<% =rs("email") %>"><img src="images/email.gif" alt="<% =rs("email") %>" border="0"></a>&nbsp;&nbsp;<a href="<% =rs("homepage") %>" target="_blank"><img src="images/home.gif" alt="<% =rs("homepage") %>" border="0"></a>&nbsp;&nbsp;<a href="http://friend.qq.com/cgi-bin/friend/user_show_info?ln=<% =rs("Oicq") %>" target="_blank"><img src="images/oicq.gif" alt="<% =rs("Oicq") %>" width="16" height="16" border="0"></a>&nbsp;&nbsp;<img src="images/ip.gif" alt="<% =rs("ip") %>" width="16" height="15">&nbsp;&nbsp;<img src="images/help.gif" alt="帮助" width="16" height="16">&nbsp;</div>
  </div>
  <div id="GContent<%=i%>" style="margin:auto;width:99%;background-image:url(<%=GBSkin%>/guest_bg.gif);text-align:left">
    <div style="float:left;width:20%;text-align:center;">
	  <div style="margin:auto;width:110px;font:0;height:30px;background:url(<%=GBSkin%>/gb_pic_r.gif) top right no-repeat;"></div>
      <div style="margin:auto;width:110px;background:url(<%=GBSkin%>/gb_pic_r.gif) right bottom no-repeat;text-align:center;">
	    <img src="images/<%=rs("headpic")%>.gif" class="mytext"></div>
      <div style="margin:auto;width:110px;font:0;height:10px;background:url(<%=GBSkin%>/gb_pic_b.gif) right no-repeat;"></div>
    </div>
    <div style="float:right;width:80%;table-layout:fixed;">
      <p style="margin:0;border:0;padding:8px 0 5px 5px;font-weight:bold;" class="guest_name">
        <b style="float:left;width:80%;"><% =rs("Title") %></b><b style="float:right;padding-right:60px;font-weight:normal;"><%If ShowRepLink=True Then%><a href="RepGuest.asp?GID=<%=rs("ID")%>&pn=<%=Request("pn")%>&ipn=<%=Request("ipn")%>&RetUrl=<%=RepRetUrl%>">回复</a><font style="color:#F00;font-size:10px;"><%If RepEnabled=True And GRepEnabled(rs("RepUnabled"),IfNeedAuditing,rs("ifHadDealAuditing"),rs("ifHadPassAuditing"),rs("sec"))=True Then%>开放<%Else%>关闭<%End If%></font><%End If%></b>
      </p>
	  <div class="bline"></div>
      <p style="margin:0;border:0;padding:0;width:90%;height:2px;font-size:0;background-image:url(<%=GBSkin%>/line.gif);"></p>
	  <%Call GuestContent(GuestType,IfNeedAuditing,rs("ifHadDealAuditing"),rs("ifHadPassAuditing"),rs("content"),rs("sec"))%>
      <p style="margin:0;border:0;"> <font style="padding:4px;background-color:#fff;" class="line_around"> &nbsp;留言日期：
        <% =rs("Date") %>
        &nbsp;
        <% =rs("Time") %>
        &nbsp;</font> </p>
      <%If GuestType=1 Then%>
      <p> <font style="padding:4px;" class="guest_jm">
        <% =GBNsLb %>
        </font> </p>
      <p></p>
      <%Else%>
      <p>
	  <%If RepListNum>0 Then%><%Call ReplyArea(rs("ID"),RepListNum,False,"GuestDetail.asp","",rs("ReNoView"))%><%End If%>
      </p>
      <%End If%>
    </div>
    <div style="font:0px/0px sans-serif;clear:both;display:block;"> </div>
    <div style="font:0;height:10px;background-image:url(<% =GBSkin %>/guest_b.gif);"></div>
  </div>
</div>
<%
End Sub
%>