<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="xml" omit-xml-declaration = "yes" indent="yes" version="4.0"/>
<xsl:template  match="/">
<xsl:variable name="myscript"><![CDATA[
<script language="javascript" src="Dv_plus/mf1.js"></script>
]]>
</xsl:variable>
<!--жǷIEӦstyleclass-->
<xsl:variable name="postclass">
<xsl:choose>
<xsl:when test="post/agent/@browser='Microsoft Internet Explorer'">postie</xsl:when>
<xsl:otherwise>post</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="bodystyle">
<xsl:choose>
<xsl:when test="post/agent/@browser='Microsoft Internet Explorer'">height:80px;width:97%;padding-right:0px; overflow-x: hidden;</xsl:when>
<xsl:otherwise>min-height:50px;</xsl:otherwise>
</xsl:choose>font-size:<xsl:value-of select="post/setting/@fontsize" />pt;line-height:<xsl:value-of select="post/setting/@lineheight" />;text-indent:<xsl:value-of select="post/setting/@indent" />px;</xsl:variable>
<!--end -->
<xsl:variable name="mofaface"><xsl:if test="contains(post/postinfo/@expression,'|')"><xsl:value-of select="substring-before(post/postinfo/@expression,'|')" /></xsl:if></xsl:variable>
<div id="MagicFace" style="position:absolute;z-index : 99;visibility:hidden; "></div>
<xsl:value-of select="$myscript" disable-output-escaping="yes" />
<div class="main" style="margin-top:4px;height:20px;line-height:20px;margin-bottom:4px;">
<div style="float:left;"> [ǱԵĵ <b><xsl:value-of select="post/postinfo/@hits"/></b> Ķ] <xsl:choose>
<xsl:when test="post/postinfo/@skin !=1"> [<a href="?BoardID={post/postinfo/@boardid}&amp;replyID={post/postinfo/@replyid}&amp;id={post/postinfo/@topicid}&amp;skin=1" title="ʾ" >״</a>] </xsl:when>
<xsl:otherwise>[<a href="?BoardID={post/postinfo/@boardid}&amp;replyID={post/postinfo/@replyid}&amp;id={post/postinfo/@topicid}&amp;skin=0" title="ƽʾ">ֱ</a>] 
</xsl:otherwise></xsl:choose> [<a href="TopicOther.asp?t=5&amp;BoardID={post/postinfo/@boardid}&amp;id={post/postinfo/@topicid}" target="_blank" title="ıʽҳӡ"></a>]
 [<a href="query.asp?stype=8&amp;keyword={post/postinfo/@title}&amp;isWeb=2" target="_blank" title="ڻ"></a>]
<xsl:if test="post/userinfo/@userid !=0 "> [<a href="favlist.asp?action=add&amp;BoardID={post/postinfo/@boardid}&amp;id={post/postinfo/@topicid}" title="ղؼ">ղ</a>] 
<xsl:if test="post/setting/@cansendmail =1 "> [<a href="TopicOther.asp?t=7&amp;BoardID={post/postinfo/@boardid}&amp;id={post/postinfo/@topicid}" title="ƼQQ">Ƽ</a>] 
</xsl:if> [<a href="admin_postings.asp?action=޸&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title="޸ӵĻظʱ䡣"></a>] 
</xsl:if></div>
<div style="float:right;"><a href="post.asp?action=new&amp;boardid={post/postinfo/@boardid}"></a> | <a href="post.asp?action=vote&amp;boardid={post/postinfo/@boardid}">ͶƱ</a> | <a href="infolist.asp?t=smallpaper&amp;boardid={post/postinfo/@boardid}">Ϣ</a> | <a href="set.asp?boardid={post/postinfo/@boardid}" title=",Ӻͱ"><font color="#FF0000"></font></a> | 
<xsl:choose>
<xsl:when test="post/postinfo/@postuserid =0"><a href="post.asp?action=re&amp;boardid={post/postinfo/@boardid}&amp;id={post/postinfo/@topicid}&amp;star={post/postinfo/@star}&amp;page={post/postinfo/@page}&amp;guest=true">ظ</a>
</xsl:when>
<xsl:otherwise><a href="post.asp?action=re&amp;boardid={post/postinfo/@boardid}&amp;id={post/postinfo/@topicid}&amp;star={post/postinfo/@star}&amp;page={post/postinfo/@page}">ظ</a>
</xsl:otherwise>
</xsl:choose></div>
</div>
<div class="main" style="margin-top:4px;line-height:20px;margin-bottom:4px;">
<div style="float:left;">Ϊ´ղرҳ</div>
<div style="float:right;"><script language="javascript" src="Dv_plus/wz.js"></script></div>
</div>
<xsl:if test="/post/postinfo/@isvote=1"><xsl:call-template name="showvote" /></xsl:if>
<div class="th">
<div align="center" style="height:24px;text-indent:10px;font-size:13px">⣺<xsl:choose>
<xsl:when test="post/postinfo/@topicmode=0"><xsl:value-of select="post/postinfo/@title" disable-output-escaping="yes"/></xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="post/postinfo/@topicmode = 1"><xsl:value-of select="post/postinfo/@title" disable-output-escaping="yes" /></xsl:when>
<xsl:otherwise><xsl:choose>
<xsl:when test="post/postinfo/@topicmode = 2"><font color="red"><xsl:value-of select="post/postinfo/@title" disable-output-escaping="yes"/></font></xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="post/postinfo/@topicmode = 3"><font color="blue"><xsl:value-of select="post/postinfo/@title" disable-output-escaping="yes"/></font></xsl:when>
<xsl:otherwise><xsl:choose>
<xsl:when test="post/postinfo/@topicmode = 4"><font color="green"><xsl:value-of select="post/postinfo/@title" disable-output-escaping="yes"/></font></xsl:when>
<xsl:otherwise><xsl:value-of select="post/postinfo/@title"/></xsl:otherwise>
</xsl:choose></xsl:otherwise>

</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</div>
</div><xsl:for-each select="post/row">
<a name="{@announceid}" >
</a>
<xsl:variable name="userid" select="@postuserid"/>
<div class="postlary{2 - (position() mod 2)}">
<div class="{$postclass}"><div>
<div style="float:left;">
<xsl:if test="/post/setting/@isboke=1"><a href="favlist.asp?action=boke&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}" title="¼ҵĲ" target="_blank"><img src="{/post/setting/@picurl}bokefav.gif"  border="0" align="middle" /></a> </xsl:if>
<xsl:choose>
<xsl:when test="/post/postinfo/@skin !=1">
<xsl:choose>
<xsl:when test="/post/postinfo/@star =1">
<xsl:choose>
<xsl:when test="position()=1">¥</xsl:when>
<xsl:otherwise> <font color="red"><xsl:value-of select="position()"/></font> ¥</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise> <font color="red"><xsl:value-of select="position() + (/post/postinfo/@star -1) * /post/setting/@pagesize"/></font> ¥</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise><xsl:value-of select="' '"/></xsl:otherwise>
</xsl:choose>( :
<xsl:value-of select="@username" />
<xsl:variable name="userface" select="/post/userlist/user[@userid=$userid]/@userface"/>
<xsl:choose>
<xsl:when test="contains($userface,'|')">
<xsl:if test="substring-before($userface,'|') != '0'">
<xsl:text>  </xsl:text><a href="javascript:DispMagicEmot({substring-before($userface,'|')},350,500)">ħͷ</a> 
</xsl:if>
</xsl:when>
</xsl:choose><xsl:if test="/post/userlist/user[@userid=$userid]/@userclass !=0"><xsl:text> | </xsl:text>
 ȼ<xsl:value-of select="/post/userlist/user[@userid=$userid]/@userclass"/></xsl:if> | <xsl:if test="/post/setting/@usertitle=1"><xsl:if test="/post/userlist/user[@userid=$userid]/@usertitle != ''"> ͷΣ<xsl:value-of select="/post/userlist/user[@userid=$userid]/@usertitle"/> </xsl:if></xsl:if>
) [ʱ:<xsl:value-of select="@dateandtime" />]
<br />
<div >
<xsl:if test="/post/userinfo/@userid  !=0"><div class="menu_popup" id="Menu_{position()}">
<div class="menuitems">
<a href="TopicOther.asp?t=6&amp;BoardID={/post/postinfo/@boardid}&amp;id={/post/postinfo/@topicid}&amp;ReplyID={@announceid}" title="Աٱ">ٱ</a>
<xsl:if test="position() != 1 or  /post/postinfo/@star !=1">
<xsl:choose>
<xsl:when test="/post/userinfo/@userid= $userid and not (/post/userinfo/@boardmaster=1)">
<xsl:if test="/post/userinfo/@candelmypost=1">
<br /><a href="admin_postings.asp?action=dele_a&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}&amp;userid={@postuserid}">ɾ</a>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:if test="/post/userinfo/@boardmaster=1">
<br /><a href="admin_postings.asp?action=dele_a&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}&amp;userid={@postuserid}">ɾ</a>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="/post/userinfo/@boardmaster =1 ">
<br /><a href="admin_postings.asp?action=copy_a&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}&amp;userid={@postuserid}"></a>
<xsl:choose>
<xsl:when test="@isbest= 0 "><br /><a href="admin_postings.asp?action=isbest_a&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}&amp;userid={@postuserid}">Ӿ</a></xsl:when>
<xsl:otherwise><br /><a href="admin_postings.asp?action=nobest_a&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}&amp;userid={@postuserid}">⾫</a></xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="@locktopic !=2"><xsl:choose>
<xsl:when test="@locktopic =3">
<br/><a href="AccessTopic.asp?action=unlock&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}"></a>
</xsl:when>
<xsl:otherwise><br/><a href="admin_postings.asp?action=islockpage_a&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}&amp;userid={@postuserid}"></a></xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<br/><a href="admin_postings.asp?action=nolockpage_a&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}&amp;userid={@postuserid}"></a>
</xsl:otherwise>
</xsl:choose>
<br /><a href="admin_postings.asp?action=RewardMoney&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}" title="ɽ۳ûطֵ"></a>
</xsl:if>
<xsl:if test="/post/setting/@usetools =1 ">
<br /><a title="Աʹħ" href="javascript:openScript('plus_Tools_InfoSetting.asp?action=0&amp;BoardID={/post/postinfo/@boardid}&amp;TopicID={/post/postinfo/@topicid}&amp;ReplyID={@announceid}',500,400)">ħ</a>
</xsl:if>
</div>
</div></xsl:if>
<xsl:if test="(/post/postinfo/@locktopic != 1 and /post/userinfo/@canreply =1)or (/post/userinfo/@boardmaster =1 ) ">
<xsl:choose>
<xsl:when test="@postuserid=0">
<a href="post.asp?action=re&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}&amp;reply=true&amp;guest=true"></a><xsl:text> | </xsl:text><a href="post.asp?action=re&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}&amp;guest=true">ظ</a><xsl:text> | </xsl:text></xsl:when>
<xsl:otherwise>
 <a href="post.asp?action=re&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}&amp;reply=true"></a><xsl:text> | </xsl:text><a href="post.asp?action=re&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}">ظ</a><xsl:text> | </xsl:text></xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="/post/userinfo/@userid  !=0">
<xsl:choose>
<xsl:when test="/post/userinfo/@userid= $userid and not (/post/userinfo/@boardmaster=1)">
<xsl:if test="/post/userinfo/@caneditmypost=1"> <a href="post.asp?action=edit&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}">༭</a><xsl:text> | </xsl:text></xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:if test="/post/userinfo/@boardmaster=1"> <a href="post.asp?action=edit&amp;BoardID={/post/postinfo/@boardid}&amp;replyID={@announceid}&amp;ID={/post/postinfo/@topicid}&amp;star={/post/postinfo/@star}">༭</a><xsl:text> | </xsl:text></xsl:if>
</xsl:otherwise>
</xsl:choose><img src="{/post/setting/@picurl}topicmanage.gif" alt="" style="margin:0px;cursor: pointer;height=11" onmouseover="showmenu(event,'','Menu_{position()}');" /><xsl:text> | </xsl:text></xsl:if>
<xsl:if test="(not (/post/userinfo/@cananony=1) or @signflag !=2 or /post/userinfo/@truemaster=1 or /post/userinfo/@userid = @postuserid) and @postuserid!=0">
<xsl:if test="/post/setting/@isboke=1"><a href="boke.asp?UserID={@postuserid}" title="{@username}ĸ˲" target="_blank"></a><xsl:text> | </xsl:text></xsl:if>
<xsl:if test="/post/userlist/user[@userid=$userid]/@oicq !=''"><a href="http://wpa.qq.com/msgrd?V=1&amp;Uin={/post/userlist/user[@userid=$userid]/@oicq}&amp;Site=By Dvbbs&amp;Menu=yes" title="QQϢ{@username}" target="_blank"><img src="http://wpa.qq.com/pa?p=1:{/post/userlist/user[@userid=$userid]/@oicq}:4" border="0" width="16" height="12" align="middle"/></a>QQ<xsl:text> | </xsl:text></xsl:if>
<xsl:if test="/post/userinfo/@userid  !=0"><a href="messanger.asp?action=new&amp;touser={@username}" target="_blank"></a><xsl:text> | </xsl:text><a href="friendlist.asp?action=addF&amp;myFriend={@username}" target="_blank"></a><xsl:text> | </xsl:text><a href="dispuser.asp?id={@postuserid}" target="_blank"></a><xsl:text> | </xsl:text><a href="query.asp?stype=1&amp;nSearch=3&amp;keyword={@username}&amp;BoardID={/post/postinfo/@boardid}&amp;SearchDate=ALL" target="_blank">ʷ</a><xsl:text> | </xsl:text></xsl:if>
<xsl:if test="/post/userlist/user[@userid=$userid]/@useremail !=''"><a href="mailto:{/post/userlist/user[@userid=$userid]/@useremail}"></a><xsl:text> | </xsl:text></xsl:if>
<xsl:if test="/post/userlist/user[@userid=$userid]/@homepage !=''"><a href="{/post/userlist/user[@userid=$userid]/@homepage}" target="_blank">ҳ</a><xsl:text> | </xsl:text></xsl:if>
</xsl:if><script type="text/javascript" language="javascript">document.write (astro('<xsl:value-of select="/post/userlist/user[@userid=$userid]/@userbirthday"/>'));</script>
<xsl:choose><xsl:when test="@postuserid = 0">:Ϊû,Υٱ!ɹԱڽӵٱӦɾ!</xsl:when></xsl:choose> 
<xsl:choose><xsl:when test="/post/userinfo/@canlookip = 1"><a href="TopicOther.asp?t=1&amp;boardid={/post/postinfo/@boardid}&amp;userid={$userid}&amp;ip={@ip}&amp;action=lookip" target="_blank"><img border="0" src="Skins/Default/ip.gif" style="margin:4px;" alt="{@ip}" /></a>
</xsl:when></xsl:choose>
</div><hr />
<xsl:variable name="checkinfo"><xsl:call-template name="checkuser">
<xsl:with-param name="userid" select="$userid"/>
</xsl:call-template></xsl:variable>
<xsl:if test="$checkinfo !=''"><div class="lockuser"><xsl:value-of select="$checkinfo" /></div></xsl:if>
<xsl:if test="$checkinfo ='' or /post/userinfo/@boardmaster =1">
<div style="height:22px;line-height:22px;"><div style="float:left;"><img src="{/post/setting/@picurl}topicface/{@expression}" alt="" /></div><b><xsl:value-of select="@topic" disable-output-escaping="yes"/></b></div>
<div style="{$bodystyle}margin-top:10px;word-wrap : break-word ;word-break : break-all ;" onload="this.style.overflowX='auto';">
<xsl:if test="@parentid = 0"><xsl:if test="$mofaface !='' and $mofaface !='0'"><div style="float:right;width:60px;"><a href="javascript:DispMagicEmot({$mofaface},350,500)">ط<img src="dv_plus/tools/magicface/gif/{$mofaface}.gif" border="0" alt=""/></a></div>
<script type="text/javascript" language="javascript">
LoadMagicEmot(<xsl:value-of select="$mofaface" />,<xsl:value-of select="/post/postinfo/@topicid"/>);
</script></xsl:if></xsl:if><xsl:choose>
<xsl:when test="@parentid =0 and /post/postinfo/@getmoneytype=3"><xsl:call-template name="checkgetmoney" /></xsl:when>
<xsl:otherwise><xsl:value-of select="@body" disable-output-escaping="yes"/></xsl:otherwise>
</xsl:choose>
</div>
<xsl:if test="/post/userlist/user[@userid=$userid]/@usersign !='' and @signflag =1">
<div style="width:85%;overflow-x: hidden;">
<img src="{/post/setting/@picurl}sigline.gif" /><br /><xsl:value-of select="/post/userlist/user[@userid=$userid]/@usersign" disable-output-escaping="yes"/>
</div>
</xsl:if>
</xsl:if>
<xsl:if test="$checkinfo !='' and not (/post/userinfo/@boardmaster =1)">
</xsl:if>
<xsl:variable name="postinfo"><xsl:call-template name="checkpostinfo" /></xsl:variable>
<xsl:if test="$postinfo !=''"><div class="info">
<xsl:value-of select="$postinfo" disable-output-escaping="yes"/>
</div></xsl:if></div></div></div></div>

<div class="postbottom{2 - (position() mod 2)}" >
<div style="float:left;left:16px;">
<!--  ޸ģsignflag=2ʾΪûֻйԱɼʵû-->
<xsl:choose>
<xsl:when test="/post/userinfo/@cananony=1 and @signflag=2 and not (/post/userinfo/@truemaster=1) and /post/userinfo/@userid != @postuserid">Ϊû(<xsl:value-of select="substring-before(@ip,'.')" /><xsl:value-of select="substring-before(substring-after(@ip,'.'),'.')" />)
</xsl:when><xsl:when test="@postuserid = 0"><div style="float:left;left:16px;"><xsl:value-of select="@ubblist" disable-output-escaping="yes"/></div>
<div style="float:right;"><a href="#top"><img src="{/post/setting/@picurl}p_up.gif" alt="ص" style="margin:4px;border:0px;"/></a></div>
</xsl:when>
<xsl:otherwise> ߵȼ:<img style="margin:3px 0px 0px 0px;" src="{/post/setting/@picurl}star/{/post/userlist/user[@userid=$userid]/@titlepic}"/>
<xsl:if test="/post/userlist/user[@userid=$userid]/@userpower != 0"> :<font color="red"><b><xsl:value-of select="/post/userlist/user[@userid=$userid]/@userpower"/></b></font> | </xsl:if>
 :<xsl:value-of select="/post/userlist/user[@userid=$userid]/@userpost"/> | 
 Ԫ:<xsl:value-of select="/post/userlist/user[@userid=$userid]/@userep"/> | 
<xsl:variable name="groupname" select="/post/userlist/user[@userid=$userid]/@usergroup"/>
<xsl:if test="/post/setting/@menpai=1"> :<xsl:choose><xsl:when test="$groupname =''">δ | </xsl:when>
<xsl:otherwise><xsl:choose>
<xsl:when test="/post/group/groupname[@groupname=$groupname]"><xsl:value-of select="$groupname"/><font color="#FF00FF"><xsl:value-of select="/post/userlist/user[@userid=$userid]/@menpai_job"/></font> | </xsl:when>
<xsl:otherwise>δ | </xsl:otherwise></xsl:choose></xsl:otherwise>
</xsl:choose></xsl:if>
 ע:<xsl:value-of select="/post/userlist/user[@userid=$userid]/@joindate"/> | 
<xsl:choose><xsl:when test="/post/userlist/user[@userid=$userid]/@userhidden='1'">
<xsl:choose><xsl:when test="/post/userlist/user[@userid=$userid]/@usersex!='1'">Ա:Ů[] </xsl:when> 
<xsl:otherwise>Ա:˧[] </xsl:otherwise></xsl:choose></xsl:when> 
<xsl:otherwise><xsl:choose><xsl:when test="/post/userlist/user[@userid=$userid]/@usersex!='1'">Ա:Ů[] </xsl:when> 
<xsl:otherwise>Ա:˧[] </xsl:otherwise></xsl:choose></xsl:otherwise>
</xsl:choose>
<xsl:if test="/post/userinfo/@cananony=1 and @signflag=2"><font color="ff0000"></font></xsl:if>
</xsl:otherwise></xsl:choose></div>
</div>
</xsl:for-each>
<div class="postlary2"  style="height:28px;line-height:28px;border-top:0px; " >      أϢȫ취Ϣ취ӹ涨άȫľ طɹ涨,ϵͳм¼ûIPܣǷҪʱûIP͸ر飡</div>
<xsl:if test="/post/userinfo/@boardmaster=1"><div class="mainbar0" style="width:98%;height:36px;line-height:36px;">
<div style="height:36px;float:right;">
<b>߼</b>:
<xsl:if test="/post/postinfo/@getmoneytype =1">
 <a href="BuyPost.asp?Action=Close&amp;BoardID={post/postinfo/@boardid}&amp;PostTable={post/postinfo/@posttable}&amp;ID={post/postinfo/@topicid}&amp;ReplyID={post/postinfo/@replyid}" title=""></a> | 
</xsl:if>
<xsl:choose>
<xsl:when test="post/postinfo/@locktopic = 1"> <a href="admin_postings.asp?action=&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title="⿪"></a></xsl:when>
<xsl:otherwise> | <a href="admin_postings.asp?action=&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title=""></a></xsl:otherwise>
</xsl:choose>
| <a href="admin_postings.asp?action=&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title="бǰ"></a>
| <a href="admin_postings.asp?action=&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title="ŵбϿλ"></a>
| <a href="admin_postings.asp?action=&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title="ɾĸ">ظ</a>
| <a href="admin_postings.asp?action=ɾ&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title="ע⣺ɾӣָܻ">ɾ</a>
| <a href="admin_postings.asp?action=ƶ&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}&amp;replyID={post/postinfo/@replyid}" title="ƶ">ƶ</a> 
| <a href="admin_postings.asp?action=ù̶&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title="ù̶">Ϊö</a> 
| <a href="announcements.asp?BoardID={post/postinfo/@boardid}&amp;action=AddAnn">Ϣ</a> | <a href="admin_postings.asp?action=ר&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title="ר">ר</a> 
</div>
<div style="height:36px;float:left;">
<b></b>:
<xsl:if test="/post/postinfo/@getmoneytype =1"> <a href="BuyPost.asp?Action=Close&amp;BoardID={post/postinfo/@boardid}&amp;PostTable={post/postinfo/@posttable}&amp;ID={post/postinfo/@topicid}&amp;ReplyID={post/postinfo/@replyid}" title=""></a> | </xsl:if>
<xsl:if test="post/userinfo/@canlockmypost =1"><xsl:choose>
<xsl:when test="post/postinfo/@locktopic = 1"> <a href="admin_postings.asp?action=&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title="⿪"></a></xsl:when>
<xsl:otherwise> <a href="admin_postings.asp?action=&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title=""></a></xsl:otherwise>
</xsl:choose></xsl:if>
<xsl:if test="post/userinfo/@candelmypost =1"> | <a href="admin_postings.asp?action=&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title="ɾĸ">ظ</a>
 | <a href="admin_postings.asp?action=ɾ&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}" title="ע⣺ɾӣָܻ">ɾ</a>
</xsl:if>
<xsl:if test="post/userinfo/@canmovemypost =1">
 | <a href="admin_postings.asp?action=ƶ&amp;BoardID={post/postinfo/@boardid}&amp;ID={post/postinfo/@topicid}&amp;replyID={post/postinfo/@replyid}" title="ƶ">ת</a> 
</xsl:if>
</div>
</div>
</xsl:if>
<div class="main" style="width:98%;margin-bottom : 10px;"><div style="float:center;">
<script language="javascript" src="Dv_plus/wz2.js"></script></div></div>
<div class="mainbar0" style="width:98%;height:26px;text-align : left;">
<div style="height:26px;float:right;">
<xsl:choose>
<xsl:when test="/post/postinfo/@skin='0'">
<xsl:call-template name="PageList">
<xsl:with-param name="Page" select="/post/postinfo/@star"/>
<xsl:with-param name="m" select="10"/>
<xsl:with-param name="MaxRows" select="/post/setting/@pagesize"/>
<xsl:with-param name="CountNum" select="/post/postinfo/@child+1"/>
<xsl:with-param name="PageStr">dispbbs.asp?boardid=<xsl:value-of select="/post/postinfo/@boardid"/>&amp;replyid=<xsl:value-of select="/post/postinfo/@replyid"/>&amp;id=<xsl:value-of select="/post/postinfo/@topicid"/>&amp;page=<xsl:value-of select="/post/postinfo/@page"/>&amp;skin=<xsl:value-of select="/post/postinfo/@skin"/></xsl:with-param>
<xsl:with-param name="v" select="1"/>
<xsl:with-param name="pv">Star</xsl:with-param>
<xsl:with-param name="target"></xsl:with-param>
<xsl:with-param name="Forum_AllTopNum" select="0"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise><span id="showpagelist">
</span>
</xsl:otherwise>
</xsl:choose>

<span id="showclose"> </span>
</div>
</div>
<xsl:if test="/post/postinfo/@skin='1'">
<iframe style="border:0px;width:0px;height:0px;" src="loadtree.asp?boardid={post/postinfo/@boardid}&amp;star=1&amp;replyid={post/postinfo/@replyid}&amp;id={post/postinfo/@topicid}&amp;openid={post/row/@announceid}" name="hiddenframe"></iframe>
<div id="postlist" style="margin-top : 10px; margin-bottom : 10px; ">

</div><!--  ֤,1еģ-->
</xsl:if>
<xsl:if test="post/userinfo/@canreply =1 ">
<xsl:call-template name="fastre" />
</xsl:if>
<xsl:variable name="postuserid" select="post/postinfo/@postuserid"/>
<xsl:choose>
<xsl:when test="post/userinfo/@boardmaster =1"><xsl:call-template name="managemenu" /></xsl:when>
<xsl:otherwise>
<xsl:if test="post/userinfo/@userid = $postuserid ">
<xsl:call-template name="managemenume" />
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template><xsl:template name="managemenu">
</xsl:template>

<xsl:template name="checkpostinfo">
<xsl:if test="@isbest='1'"> &lt;img src="<xsl:value-of select="/post/setting/@picurl" />jing.gif" border="0" title="Ϊ" align="absmiddle"/&gt; </xsl:if>
<xsl:if test="@isagree != ''and contains(@isagree,'|')">
<xsl:if test="substring-after(@isagree,'|') &gt; 0">  &lt;img src="<xsl:value-of select="/post/setting/@picurl" />agree.gif" border="0" alt="<xsl:value-of select="substring-after(@isagree,'|')" />Ԫ" / &gt; </xsl:if>
<xsl:if test="substring-before(@isagree,'|') &gt; 0">  &lt;img src="<xsl:value-of select="/post/setting/@picurl" />DisAgree.gif" border="0" alt="۳<xsl:value-of select="substring-before(@isagree,'|')" />Ԫ"/&gt; </xsl:if>
</xsl:if>
<xsl:if test="@isupload='2' or @isupload='3'"> &lt;a href="wap.asp?Action=readme" target="_blank" &gt;&lt;img src="<xsl:value-of select="/post/setting/@picurl" />wap00.gif" border="0" alt="Wap-ֻ"/&gt;&lt;/a&gt; </xsl:if>
<xsl:if test="/post/postinfo/@usetools!='' or /post/postinfo/@getmoneytype!='0'">
 &lt;img src="<xsl:value-of select="/post/setting/@picurl" />mini_query.gif" border="0" alt="鿴ʹħϸϢ" onclick="openScript('ViewInfo.asp?t=2&amp;action=View&amp;PostTable=<xsl:value-of select="/post/postinfo/@posttable" />&amp;BoardId=<xsl:value-of select="/post/postinfo/@boardid" />&amp;ID=<xsl:value-of select="/post/postinfo/@topicid" />&amp;ReplyID=<xsl:value-of select="@announceid" />',600,450)" class="imgonclick" /&gt; 
<xsl:choose>
<xsl:when test="@parentid = 0"><xsl:call-template name="TopicSendMoneyStr">
<xsl:with-param name="i"><xsl:value-of select="/post/postinfo/@getmoneytype"/></xsl:with-param>
</xsl:call-template></xsl:when>
<xsl:otherwise><xsl:call-template name="SendMoneyStr">
<xsl:with-param name="i"><xsl:value-of select="/post/postinfo/@getmoneytype"/></xsl:with-param>
</xsl:call-template></xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>
<xsl:template name="TopicSendMoneyStr">
<xsl:param name="i"/>
<xsl:if test="$i='1'"> ͳԪҪͳ &lt;font color="red"&gt;<xsl:value-of select="@getmoney"/>&lt;/font&gt; Ԫ </xsl:if>
<xsl:if test="$i='5'"> ͳԪҪͳ &lt;font color="red"&gt;<xsl:value-of select="@getmoney"/>&lt;/font&gt; Ԫ[ѽ] </xsl:if>
<xsl:if test="$i='2'"> Ԫ &lt;font color="red"&gt;<xsl:value-of select="/post/postinfo/@getmoney"/>&lt;/font&gt; Ԫ</xsl:if>
<xsl:if test="$i='3'"> 鿴֧ &lt;font color="red"&gt;<xsl:value-of select="/post/postinfo/@getmoney"/>&lt;/font&gt; Ԫ</xsl:if>
</xsl:template>
<xsl:template name="SendMoneyStr">
<xsl:param name="i"/>
<xsl:if test="($i='1' or $i='5') and /post/postinfo/@postuserid != @postuserid ">  &lt;font color="red"&gt;<xsl:value-of select="@getmoney"/>&lt;/font&gt;Ԫ </xsl:if>
<xsl:if test="/post/postinfo/@postuserid = /post/userinfo/@userid and @postuserid!=/post/userinfo/@userid and $i!='5' and $i='1'">&lt;a href="BuyPost.asp?Action=Send&amp;PostTable=<xsl:value-of select="/post/postinfo/@posttable" />&amp;BoardId=<xsl:value-of select="/post/postinfo/@boardid" />&amp;ID=<xsl:value-of select="/post/postinfo/@topicid" />&amp;ReplyID=<xsl:value-of select="@announceid" />&amp;UserName=<xsl:value-of select="@username" />" title="ͳԪԱ<xsl:value-of select="@username" />" target="_blank"&gt;ͳԪ&lt;/a&gt;</xsl:if>
<xsl:if test="$i='2'">¥ &lt;font color="red"&gt;<xsl:value-of select="@getmoney"/>&lt;/font&gt;Ԫ</xsl:if>
</xsl:template>
<xsl:template name="checkuser">
<xsl:param name="userid"/>
<xsl:choose>
<xsl:when test="@isbest= 1 "><xsl:if test="not ( /post/userinfo/@canreadbest = 1)">Ȩ鿴</xsl:if></xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="@locktopic=2">ݱ</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="/post/userlist/user[@userid=$userid]/@lockuser=1">ûѱ</xsl:when>
<xsl:otherwise><xsl:choose>
<xsl:when test="/post/userlist/user[@userid=$userid]/@lockuser=2">ûѾ</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="@locktopic=3">ݱ̷</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="fastre">
<xsl:variable name="myscript">
<![CDATA[
<script language="Javascript" type="text/javascript">
var Dvbbs_bIsIE5=document.all;
var Dvbbs_Mode = 3;
if (Dvbbs_bIsIE5)
{var IframeID=frames["Dvbbs_Composition"];}
else
{
var IframeID=document.getElementById("Dvbbs_Composition").contentWindow;
}
function Gopreview()
{
document.preview.theBody.value=IframeID.document.body.innerHTML; 
var popupWin = window.open('', 'preview_page', 'scrollbars=yes,width=750,height=450');
document.preview.submit()
}
Dvbbs_InitDocument('Body','gb2312');
</script>
]]>
</xsl:variable>
<xsl:variable name="facpath" select="post/postface/@path"/>
<xsl:variable name="empath" select="post/emot/@path"/>
<script  language = "Javascript" src="images/post/reply.js" type="text/javascript"></script>
<form id="Dvform" name="Dvform" action="savepost.asp?action=sre&amp;method=fastreply&amp;BoardID={post/postinfo/@boardid}" onkeydown="ctlent();" onsubmit="Dvbbs_CopyData('Body');" method="post">
<input type="hidden" id="Body" name="Body" value="{post/userinfo/@postdata}" />
<input type="hidden" id="followup" name="followup" value="{post/row/@announceid}" />
<input type="hidden" id="RootID" name="RootID" value="{post/postinfo/@topicid}" />
<input type="hidden" id="star" name="star" value="{post/postinfo/@star}" />
<input type="hidden" id="TotalUseTable" name="TotalUseTable" value="{post/postinfo/@posttable}" />
<input type="hidden" id="UserName" name="UserName" value="{post/userinfo/@username}" />
<div class="th" style="margin-top : 2px;"><div style="float:left;"><xsl:text disable-output-escaping="yes" >&amp;nbsp;&amp;nbsp;</xsl:text>ۣ</div><xsl:choose>
<xsl:when test="post/postinfo/@topicmode = 1"></xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose></div>
<div class="postlary2">
<div class="postuserinfo" ><div style="height:30px;line-height:30px;"><b></b></div>
<div style="height:150px;padding:15px;text-indent:0px;overflow:none;width:185px">
<xsl:for-each select="post/postface/face">
<xsl:choose>
<xsl:when test="position()=1"><input type="radio" value="{.}" name="Expression" checked="checked" /></xsl:when>
<xsl:otherwise><input type="radio" value="{.}" name="Expression" /></xsl:otherwise>
</xsl:choose> <img src="{$facpath}{.}" alt="" />
</xsl:for-each>
 </div><xsl:choose>
<xsl:when test="/post/userinfo/@userid=0">
<input type="hidden" value="0" name="signflag" />
</xsl:when>
<xsl:otherwise>ǩ<input type="radio" value="0" name="signflag" /><input type="radio" checked="checked" value="1" name="signflag" /><xsl:if test="/post/userinfo/@cananony=1"><input type="radio" value="2" name="signflag" /></xsl:if>
</xsl:otherwise>
</xsl:choose>
<div align="center" style="height:28px;text-indent:10px"><input class="Dvbbs_Reply" disabled="disabled" maxLength="6" size="6" value="{post/setting/@maxpostlen}" name="total" />ֽ</div>
</div>
<div class="postie" style="padding:0px;height:200px; ">
<div style="width:100%;"></div>
<iframe class="Dvbbs_Reply" id="Dvbbs_Composition" marginheight="5" marginwidth="5" width="99%" height="200" onblur="CheckCount('Body','total');" ></iframe>
</div>
</div>
<div class="postlary2"  style="height:28px;line-height:28px;border-top:0px; " >
 <xsl:if test="post/setting/@piccheck =1 "><b>֤룺</b>
 <img src="DV_getcode.asp" alt= "֤,?ˢ֤" style="height : 20px;margin-top:10px;cursor : pointer;" onclick="this.src='DV_getcode.asp'"/>
 <input type="text" name="codestr" style="margin-top:6px;" size="8" /></xsl:if> <input type="button" value="Ԥ" name="Button" style="margin:3px;" onclick="Gopreview()" /> 
  <input style="margin:3px;" type="reset" name="Clear" value="ظ" onclick="ClearReset()"/>   <input type="Submit" value=" ظ " name="Submit" style="margin:3px;"/>

</div>
</form>
<form name="preview" action="preview.asp?boardid={post/postinfo/@boardid}" method="post" target="preview_page">
<input type="hidden" name="Dvtitle" value="" /><input type="hidden" name="theBody" value="" /></form>
<xsl:value-of select="$myscript" disable-output-escaping="yes" />

</xsl:template>
<xsl:template name="managemenume">
</xsl:template>
<xsl:template name="PageList">
<xsl:param name="Page"/><!--ǰҳ-->
<xsl:param name="m"/><!--һʾҳ-->
<xsl:param name="MaxRows"/><!--ÿҳ¼-->
<xsl:param name="CountNum"/><!--ܼ¼-->
<xsl:param name="PageStr"/><!--Ӳ-->
<xsl:param name="v"/><!--ʾ-->
<xsl:param name="pv"/><!--ҳ-->
<xsl:param name="target"/><!--Ŀ-->
<xsl:param name="Forum_AllTopNum"/>
<xsl:variable name="pagecount"><xsl:choose>
<xsl:when test="$CountNum mod $MaxRows=0">
<xsl:value-of select="$CountNum  div $MaxRows"/>
</xsl:when>
<xsl:otherwise><xsl:value-of select="floor($CountNum  div $MaxRows)+1"/>
</xsl:otherwise></xsl:choose>
</xsl:variable>
<xsl:if test="$v='1'">
<table class="tableborder5" cellpadding="0" cellspacing="1" style="width:100%">
<form action="{$PageStr}" method="post" name="PageForm" target="{$target}">
<tr align="center">
<td class="tabletitle1" title="" style="width:120 ">:<xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text><xsl:value-of select="$Forum_AllTopNum + $CountNum"/><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text></td>
<td class="tablebody1" title="ҳ" width="100">ҳ:<xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text>
<xsl:choose>
<xsl:when test="$Page='1'">
<xsl:choose>
<xsl:when test="$CountNum &lt; $MaxRows">
<xsl:value-of select="$Forum_AllTopNum + $CountNum"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$Forum_AllTopNum + $MaxRows"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$pagecount = $Page">
<xsl:value-of select="$CountNum - ($MaxRows*($Page - 1))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$MaxRows"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text>
</td>
<td class="tabletitle1"><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text>ǰ<xsl:value-of select="$Page"/>ҳ/<xsl:value-of select="$pagecount"/>ҳ<xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text></td>
<xsl:if test="$Page='1'">
<td class="tablebody1"><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text><img src="images/pagelist/First.gif" border="0" alt=""/><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text></td>
</xsl:if>
<xsl:if test="$Page!='1'">
<td class="tablebody1"><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text><a href="{$PageStr}&amp;{$pv}=1" target="{$target}"><img src="images/pagelist/First.gif" border="0" alt="ҳ"/></a><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text></td>
</xsl:if>
<xsl:if test="$Page &gt; $m + 1">
<td class="tablebody1"><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text><a href="{$PageStr}&amp;{$pv}={$Page - $m}" target="{$target}"><img src="images/pagelist/Previous.gif" border="0" alt="{$m}ҳ"/></a><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text></td>
</xsl:if>
<xsl:variable name="i"><xsl:choose><xsl:when test="$Page &lt; floor($m div 2) + 1 ">1</xsl:when><xsl:otherwise><xsl:value-of select="$Page - floor($m div 2)"/></xsl:otherwise></xsl:choose></xsl:variable>
<xsl:variable name="Endpage"><xsl:choose><xsl:when test="$i + $m -1 &lt; $pagecount "><xsl:value-of select="$i + $m -1 "/></xsl:when><xsl:otherwise><xsl:value-of select="$pagecount"/></xsl:otherwise></xsl:choose></xsl:variable>
<xsl:call-template name="showonepage">
<xsl:with-param name="i" select="$i"/>
<xsl:with-param name="endpage" select="$Endpage"/>
<xsl:with-param name="target" select="$target"/>
<xsl:with-param name="PageStr" select="$PageStr"/>
<xsl:with-param name="pv" select="$pv"/>
<xsl:with-param name="Page" select="$Page"/>
</xsl:call-template>
<xsl:if test="$pagecount &gt; $m + $Page">
<td class="tablebody1"><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text><a href="{$PageStr}&amp;{$pv}={$m + $Page}"  target="{$target}"><img src="images/pagelist/Next.gif" border="0" alt="{$m}ҳ"/></a><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text></td>
</xsl:if>
<xsl:if test="$Page != $pagecount">
<td class="tablebody1"><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text><a href="{$PageStr}&amp;{$pv}={$pagecount}" target="{$target}"><img src="images/pagelist/Last.gif" border="0" alt="βҳ"/></a><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text></td>
</xsl:if>
<xsl:if test="$Page = $pagecount">
<td class="tablebody1"><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text><img src="images/pagelist/Last.gif" border="0" alt=""/><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text></td>
</xsl:if>
<td class="tablebody1">ٵ<input type="text" name="{$pv}" size="1" value="{$Page}" class="PageInput"/>ҳ <input type="submit" value=" ִ " name="submit" class="PageInput"/></td>
</tr>
</form>
</table>
</xsl:if>
</xsl:template>
<xsl:template name="showonepage">
<xsl:param name="i"/>
<xsl:param name="endpage"/>
<xsl:param name="target"/>
<xsl:param name="PageStr"/>
<xsl:param name="pv"/>
<xsl:param name="Page"/>
<xsl:if test="$Page != $i">
<td class="tablebody1"><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text><a href="{$PageStr}&amp;{$pv}={$i}" target="{$target}"><xsl:value-of select="$i"/></a><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text></td>
</xsl:if>
<xsl:if test="$Page = $i">
<td class="tablebody2"><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text><font class="normalTextSmall"><u><b><xsl:value-of select="$i"/></b></u></font><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text></td>
</xsl:if>
<xsl:if test="$endpage &gt; $i">
<xsl:call-template name="showonepage">
<xsl:with-param name="i" select="$i+1"/>
<xsl:with-param name="endpage" select="$endpage"/>
<xsl:with-param name="target" select="$target"/>
<xsl:with-param name="PageStr" select="$PageStr"/>
<xsl:with-param name="pv" select="$pv"/>
<xsl:with-param name="Page" select="$Page"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template name="showvote">
<!-- ȡƱ-->
<xsl:variable name="sumvote" select="sum(post/voteinfo/voteitem/@num)" />
<form action="topicother.asp?t=4&amp;boardid={post/postinfo/@boardid}&amp;voteid={post/voteinfo/@voteid}&amp;id={post/postinfo/@topicid}" method="post">
<div class="th">
<div style="height:24px;float:left;text-indent:10px;">ͶƱ<xsl:choose>
<xsl:when test="post/postinfo/@topicmode=0"><xsl:value-of select="post/postinfo/@title"/></xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="post/postinfo/@topicmode = 1"><xsl:value-of select="post/postinfo/@title" disable-output-escaping="yes" /></xsl:when>
<xsl:otherwise><xsl:choose>
<xsl:when test="post/postinfo/@topicmode = 2"><font color="red"><xsl:value-of select="post/postinfo/@title"/></font></xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="post/postinfo/@topicmode = 3"><font color="blue"><xsl:value-of select="post/postinfo/@title"/></font></xsl:when>
<xsl:otherwise><xsl:choose>
<xsl:when test="post/postinfo/@topicmode = 4"><font color="green"><xsl:value-of select="post/postinfo/@title"/></font></xsl:when>
<xsl:otherwise><xsl:value-of select="post/postinfo/@title"/></xsl:otherwise>
</xsl:choose></xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<xsl:for-each select="post/voteinfo/voteitem">
<div class="mainbar3" style="height:28px;line-height:28px;text-align :left;text-indent:12px;">
<div style="float:left;width : 40%;"> <div style="float:left;text-indent:24px;"><xsl:value-of select="concat(position(),'.')" /></div>
<div style="float:left;margin :4px 0px 0px 0px; text-indent:0px;">
<xsl:choose>
<xsl:when test="../@votetype =0"><input type="radio" name="postvote" value="{position()-1}" /></xsl:when>
<xsl:otherwise><input type="checkbox" name="postvote_{position()-1}" value="{position()-1}" /></xsl:otherwise>
</xsl:choose>
</div>
<div style="float:left;text-indent:6px;"><xsl:value-of select="." disable-output-escaping="yes"/></div>
</div>
<div class="vote" style="width : 55%;text-indent:2px;">
<xsl:choose>
<xsl:when test="$sumvote=0">
<div style="float:left;width :40px;padding:10px 2px;"><img src="{/post/setting/@picurl}bar/bar{((position()-1) mod 10) + 1}.gif" width="0" height="8" alt=""/></div>
<div style="float:left;"><b><xsl:value-of select="@num" /> Ʊ</b>0%</div>
</xsl:when>
<xsl:otherwise><div style="float:left;width : {floor((@num div $sumvote ) * 80)}%;padding:10px 2px;"><img src="{/post/setting/@picurl}bar/bar{((position()-1) mod 10) + 1}.gif" width="100%" height="8" alt=""/></div>
<div style="float:left;"><b><xsl:value-of select="@num" /> Ʊ</b><xsl:value-of select="floor((@num div $sumvote ) * 1000) div 10" />%</div></xsl:otherwise>
</xsl:choose>
</div>
</div>
</xsl:for-each>
<div class="mainbar2" style="height:32px;line-height:32px;text-align : left;text-indent:24px;">
<div style="float:left;"> 
<xsl:choose>
<xsl:when test="post/userinfo/@userid=0">δ¼ܲͶƱ</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="post/voteinfo/@istimeout=1">ͶƱѹ</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="post/postinfo/@locktopic = 1">ѾͶƱ</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="post/voteinfo/@alreadyvote=1">ѾͶƱˣɣ</xsl:when>
<xsl:otherwise><input type="submit" name="Submit" value="Ͷ Ʊ" style="margin : 5px;"/></xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</div>
<div style="float:left;">  [Ʊ <b><xsl:value-of select="$sumvote" /> Ʊ</b> ͶƱ <b><xsl:value-of select="post/voteinfo/@voters" /></b>  ֹʱ䣺<xsl:value-of select="post/voteinfo/@timeout" /> | <a href="javascript:openScript('viewinfo.asp?t=1&amp;boardid={post/postinfo/@boardid}&amp;id={post/voteinfo/@voteid}',300,500)">鿴ͶƱû</a>]</div>
</div>
<div class="mainbar3" style="height:28px;line-height:28px;text-align : left;text-indent:24px;">
ͶƱƣҪﵽ趨ֵͶƱ <b><xsl:value-of select="post/voteinfo/@uarticle" /></b> Ԫ <b><xsl:value-of select="post/voteinfo/@uep" /></b>  <b><xsl:value-of select="post/voteinfo/@ucp" /></b>  Ǯ <b><xsl:value-of select="post/voteinfo/@uwealth" /></b>  <b><xsl:value-of select="post/voteinfo/@upower" /></b>
</div>
</form>
<br />
</xsl:template>
<!--Ƿʾж-->
<xsl:template name="checkgetmoney">
<fieldset style="border : 1px dotted #ccc;">
<xsl:choose>
<xsl:when test="/post/postinfo/@postuserid=/post/userinfo/@userid"><legend style="text-indent:0px;">Ҫ֧ <b><font color="red"><xsl:value-of select="/post/postinfo/@getmoney" /></font></b> Ԫɲ鿴ӡ</legend>
<xsl:value-of select="@body" disable-output-escaping="yes"/>
</xsl:when>
<xsl:otherwise><xsl:choose>
<xsl:when test="/post/userinfo/@boardmaster =1"><legend style="text-indent:0px;">Ҫ֧ <b><font color="red"><xsl:value-of select="/post/postinfo/@getmoney" /></font></b> Ԫɲ鿴ǹԱԿݡ</legend>
<xsl:value-of select="@body" disable-output-escaping="yes"/></xsl:when>
<xsl:otherwise><xsl:choose>
<xsl:when test="/post/postinfo/postbuyinfo/postbuyusers = /post/userinfo/@username"><legend style="text-indent:0px;">Ҫ֧ <b><font color="red"><xsl:value-of select="/post/postinfo/@getmoney" /></font></b> Ԫɲ鿴Ѿ</legend>
<xsl:value-of select="@body" disable-output-escaping="yes"/></xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="/post/userinfo/@vipgroupuser=1 and /post/postinfo/postbuyinfo/@notvipbuy=1"><legend style="text-indent:0px;">Ҫ֧ <b><font color="red"><xsl:value-of select="/post/postinfo/@getmoney" /></font></b> Ԫɲ鿴vipûΪvipû⹺鿴ֱӲ鿴</legend>
<xsl:value-of select="@body" disable-output-escaping="yes"/></xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="(/post/postinfo/postbuyinfo/@buyuser =',,' or contains(/post/postinfo/postbuyinfo/@buyuser,concat(',',/post/userinfo/@username,','))) and /post/userinfo/@userid !=0 "><legend style="text-indent:0px;">Ҫ֧ <b><font color="red"><xsl:value-of select="/post/postinfo/@getmoney" /></font></b> Ԫɲ鿴Ҫ򷽿ɿݡ</legend>
<input type="button" value="Ҫ鿴ݣ" onclick="location.href='BuyPost.asp?action=buy&amp;boardid={/post/postinfo/@boardid}&amp;id={/post/postinfo/@topicid}&amp;ReplyID={@announceid}&amp;PostTable={/post/postinfo/@posttable}'"/></xsl:when>
<xsl:otherwise>
<legend style="text-indent:0px;">Ҫ֧ <b><font color="red"><xsl:value-of select="/post/postinfo/@getmoney" /></font></b> Ԫɲ鿴Ҫ򷽿ɿݡ</legend>
<xsl:choose>
<xsl:when test="/post/userinfo/@userid !=0">¥Թ</xsl:when>
<xsl:otherwise>δ¼ܹ</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</fieldset>
</xsl:template>
</xsl:stylesheet>