<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="/forum_show">
    <table width="100%" style="border-collapse:collapse;border-color:#B8D7F3;" border="1" cellpadding="4" cellspacing="0">
      <tr  style="height:32px; background: url(/forum/template/communityserver/header_bg.jpg) repeat-x scroll left top ;color:white;">
        <td colspan="4">
          <b>Chủ đề</b>
        </td>
      </tr>
      <tr style="background:#EEEEEE;text-align:center;color:#60625F;height:32px;">
        <td style="width:60%;">
          <b>Chủ đề</b>
        </td>
        <td style="width:25%;">
          <b>Gửi cuối</b>
        </td>
        <td style="width:5%;">
          <b>Xem</b>
        </td>
        <td style="width:5%;">
          <b>-</b>
        </td>
      </tr>
      <xsl:apply-templates select="Topic"></xsl:apply-templates>
    </table>
  </xsl:template>

  <xsl:template match="Topic">
    <tr>
      <td>
        <table>
          <tr>
            <td>
              <a>
                <xsl:attribute name="href">
                  <xsl:value-of select="link"></xsl:value-of>
                </xsl:attribute>
                <img src="/forum/template/communityserver/topic.gif" border="0" />
              </a>
            </td>
            <td>
              <a style="color:#617D78">
                <xsl:attribute name="href">
                  <xsl:value-of select="link"></xsl:value-of>
                </xsl:attribute>
                <xsl:if test="AlwayTop!=''">
                  (<img src="/images/star.gif" border="0" />)&#160;
                </xsl:if>
                <b>
                  <xsl:value-of select="TopicName"></xsl:value-of>
                </b>
              </a>
              <br/>
              bởi <b><xsl:value-of select="Creator"></xsl:value-of></b>
              <xsl:if test="url_admin!=''">
                <a style="color:#617D78">
                  <xsl:attribute name="href">
                    <xsl:value-of select="url_admin"></xsl:value-of>
                  </xsl:attribute>
                  <img border="0">
                    <xsl:attribute name="src">
                      <xsl:value-of select="/forum_show/root_folder"></xsl:value-of>/images/edit.gif
                    </xsl:attribute>
                  </img>
                </a>
              </xsl:if>
              <xsl:if test="ListPage!=''">
                <br/>
                <xsl:value-of select="ListPage"  disable-output-escaping="yes"></xsl:value-of>
              </xsl:if>
            </td>
          </tr>
        </table>
      </td>
      <td>
        bởi
        <a style="color:#617D78">
          <xsl:attribute name="href">/fr_member/<xsl:value-of select="ModifyUser"/>/default.aspx</xsl:attribute>
          <xsl:value-of select="ModifyUser"></xsl:value-of>
        </a>
        <br/>
        <b><xsl:value-of select="ModifyDate"></xsl:value-of></b>
      </td>
      <td style="text-align:center;">
        <xsl:value-of select="TotalView"></xsl:value-of>
      </td>
      <td style="text-align:center;">
        <xsl:value-of select="TotalReply"></xsl:value-of>
      </td>
    </tr>
  </xsl:template>
</xsl:stylesheet>

