<?xml version="1.0"  encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="gb2312" omit-xml-declaration="yes" />
<xsl:variable name="show_method" select="number(root/@show_method)"/>
<xsl:variable name="isOwner" select="number(root/@isOwner)"/>
<xsl:variable name="comments" select="number(root/@comments)"/>
<xsl:variable name="digest" select="number(root/@digest)"/>
<xsl:variable name="reads" select="number(root/@reads)"/>
<xsl:variable name="blockid" select="number(root/@blockid)"/>
<xsl:strip-space elements="*"/> 
<xsl:template match="root">
<table width="100%" border="0" cellpadding="0" cellspacing="3" id="pubTab{$blockid}">
<xsl:if test="$isOwner = 1">
		  <tr>
		    <td colspan="2" align="right">
		      <img src="images/common/issue_art2.gif" width="14" height="15"/>
		      <a href="javascript:void(0)" onclick="start_hall_bank_editor({$blockid})" class="F12_0759c9_L_B_U" id='publishArticle{$blockid}'>发布日志</a>
		    </td>
		  </tr>
		  <tr>
		    <td class="gk" colspan="2"></td>
		  </tr>
</xsl:if>
</table>
<!--文章列表开始-->
<table width="100%" border="0" cellpadding="0" cellspacing="3">
  <xsl:choose>
    <xsl:when test="$show_method='2'">
      <xsl:call-template name="title"/>
    </xsl:when>
    <xsl:when test="$show_method='3'">
      <xsl:call-template name="all"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="summary"/>
    </xsl:otherwise>
  </xsl:choose>
</table>

<script defer="defer" type="text/javascript">
<xsl:comment>
<![CDATA[
var blockid = ']]><xsl:value-of select="$blockid"/><![CDATA[';
var show_method = ']]><xsl:value-of select="$show_method"/><![CDATA[';
function changeImageSize(objImage,article_id)
{
    if(!objImage || !article_id)return;
	if(show_method==2)
	{
	    $("articleSummary_"+blockid+article_id).style.display = '';
		objImage.width = objImage.width <=300 ? objImage.width :300;
		$("articleSummary_"+blockid+article_id).style.display = "none";
	}
	else
	{
	    objImage.width = objImage.width <= 300 ? objImage.width : 300;
    }
}
if(hallClass.isVip)$('publishArticle'+blockid).innerHTML='发布文章';
]]>
</xsl:comment>
</script>

<!--文章列表结束-->
</xsl:template>
<xsl:template name="summary">
<xsl:for-each select="list/item">
  <tr>		  
    <td width="760" height="25" valign="middle">		
      <div>	
	<span class="F12_349102">
	<xsl:choose>
	  <xsl:when test="number(posit)=1">
	  <img src="images/common/ding.gif" border="0" align="absmiddle" />
	  </xsl:when>
	  <xsl:when test="number(posit)=-1">
	  <img src="images/common/di.gif" border="0" align="absmiddle" />
	  </xsl:when>
	</xsl:choose>									
	</span>
	<xsl:if test="number(is_elite)=1">
	<img src="images/common/jing.gif" border="0" align="absmiddle" />
	</xsl:if>		
	<a href="http://www.boogu.com/articleContent_{user_id}_{article_id}.html" class="F14_000000_L_B" target="_blank">
	<xsl:value-of select="title" />
	</a>
      </div>
    </td>
    <td width="10" align="center" onClick="" style="cursor:hand">
      <img src="images/common/ico-arc.gif" onclick="$('articleSummary_'+{$blockid}{article_id}).style.display=$('articleSummary_'+{$blockid}{article_id}).style.display==''?'none':''"/>
    </td>
  </tr>
  <tr>
    <td colspan="2" id="articleSummary_{$blockid}{article_id}">
      <span class="F14_000000_L" style="line-height:30px"><xsl:value-of select="summary" disable-output-escaping="yes"/></span>
      <xsl:if test="$show_method!='3'">
      <p><a href="http://www.boogu.com/articleContent_{user_id}_{article_id}.html" class="F12_FF0000_L_U" target="_blank">查看全文</a></p>
      </xsl:if>
    </td>
  </tr>
  <tr>
    <td height="22" align="right" colspan="2">
      <div  class="autohidden_13">
      <!--	
      <xsl:if test="$hasPara!=1 or $pub_time=1">
      -->
        <span class="F12_484848"><xsl:value-of select="pub_time" />&#160;</span>
      <xsl:if test="$comments=1">
	<span class="F12_FF6600">| 评论</span>
	<span class="F12_FF6600">(<xsl:value-of select="comments" />)</span>
      </xsl:if>
      <xsl:if test="$reads=1">
	<span class="F12_FF6600">| 阅读</span>
	<span class="F12_FF6600">(<xsl:value-of select="hits" />)</span>
      </xsl:if>
      </div>
    </td>
  </tr>
  <xsl:if test="position()!=last()">
  <tr>
    <td class="gk" colspan="2"></td>
  </tr>
  </xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="title">
<xsl:for-each select="list/item">
  <tr>		  
    <td width="760" height="25" valign="middle">		
      <div>	
	<span class="F12_349102">
	<xsl:choose>
	  <xsl:when test="number(posit)=1">
	  <img src="images/common/ding.gif" border="0" align="absmiddle" />
	  </xsl:when>
	  <xsl:when test="number(posit)=-1">
	  <img src="images/common/di.gif" border="0" align="absmiddle" />
	  </xsl:when>
	</xsl:choose>									
	</span>
	<xsl:if test="number(is_elite)=1">
	<img src="images/common/jing.gif" border="0" align="absmiddle" />
	</xsl:if>		
	<a href="http://www.boogu.com/articleContent_{user_id}_{article_id}.html" class="F14_000000_L_B" target="_blank">
	<xsl:value-of select="title" />
	</a>
      </div>
    </td>
    <td width="10" align="center" onClick="" style="cursor:hand">
      <img src="images/common/ico-arc.gif" onclick="$('articleSummary_'+{$blockid}{article_id}).style.display=$('articleSummary_'+{$blockid}{article_id}).style.display==''?'none':''"/>
    </td>
  </tr>
  <tr>
    <td colspan="2" id="articleSummary_{$blockid}{article_id}" style="display:none">
      <span class="F14_000000_L" style="line-height:30px"><xsl:value-of select="summary" disable-output-escaping="yes"/></span>
      <xsl:if test="$show_method!='3'">
      <p><a href="http://www.boogu.com/articleContent_{user_id}_{article_id}.html" class="F12_FF0000_L_U" target="_blank">查看全文</a></p>
      </xsl:if>
    </td>
  </tr>
  <tr>
    <td height="22" align="right" colspan="2">
      <div  class="autohidden_13">
      <!--	
      <xsl:if test="$hasPara!=1 or $pub_time=1">
      -->
        <span class="F12_484848"><xsl:value-of select="pub_time" />&#160;</span>
      <xsl:if test="$comments=1">
	<span class="F12_FF6600">| 评论</span>
	<span class="F12_FF6600">(<xsl:value-of select="comments" />)</span>
      </xsl:if>
      <xsl:if test="$reads=1">
	<span class="F12_FF6600">| 阅读</span>
	<span class="F12_FF6600">(<xsl:value-of select="hits" />)</span>
      </xsl:if>
      </div>
    </td>
  </tr>
  <xsl:if test="position()!=last()">
  <tr>
    <td class="gk" colspan="2"></td>
  </tr>
  </xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="all">
<xsl:for-each select="list/item">
  <tr>		  
    <td width="760" height="25" valign="middle">		
      <div>	
	<span class="F12_349102">
	<xsl:choose>
	  <xsl:when test="number(posit)=1">
	  <img src="images/common/ding.gif" border="0" align="absmiddle" />
	  </xsl:when>
	  <xsl:when test="number(posit)=-1">
	  <img src="images/common/di.gif" border="0" align="absmiddle" />
	  </xsl:when>
	</xsl:choose>									
	</span>
	<xsl:if test="number(is_elite)=1">
	<img src="images/common/jing.gif" border="0" align="absmiddle" />
	</xsl:if>		
	<a href="http://www.boogu.com/articleContent_{user_id}_{article_id}.html" class="F14_000000_L_B" target="_blank">
	<xsl:value-of select="title" />
	</a>
      </div>
    </td>
    <td width="10" align="center" onClick="" style="cursor:hand">
      <img src="images/common/ico-arc.gif" onclick="$('articleSummary_'+{$blockid}{article_id}).style.display=$('articleSummary_'+{$blockid}{article_id}).style.display==''?'none':''"/>
    </td>
  </tr>
  <tr>
    <td colspan="2" id="articleSummary_{$blockid}{article_id}">
      <span class="F14_000000_L" style="line-height:30px"><xsl:value-of select="content" disable-output-escaping="yes"/></span>
      <xsl:if test="$show_method!='3'">
      <p><a href="http://www.boogu.com/articleContent_{user_id}_{article_id}.html" class="F12_FF0000_L_U" target="_blank">查看全文</a></p>
      </xsl:if>
    </td>
  </tr>
  <tr>
    <td height="22" align="right" colspan="2">
      <div  class="autohidden_13">
      <!--	
      <xsl:if test="$hasPara!=1 or $pub_time=1">
      -->
        <span class="F12_484848"><xsl:value-of select="pub_time" />&#160;</span>
      <xsl:if test="$comments=1">
	<span class="F12_FF6600">| 评论</span>
	<span class="F12_FF6600">(<xsl:value-of select="comments" />)</span>
      </xsl:if>
      <xsl:if test="$reads=1">
	<span class="F12_FF6600">| 阅读</span>
	<span class="F12_FF6600">(<xsl:value-of select="hits" />)</span>
      </xsl:if>
      </div>
    </td>
  </tr>
  <xsl:if test="position()!=last()">
  <tr>
    <td class="gk" colspan="2"></td>
  </tr>
  </xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>