<?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="1" cellpadding="2">
      <tr style="background:#E7EBF7;height:28px;color:#ffffff;">
        <td style="text-align:center;width:5%;" background="/forum/template/ntol/tcat.gif">
        </td>
        <td style="text-align:center;width:55%;" background="/forum/template/ntol/tcat.gif">
          <b>Chủ đề</b>
        </td>
        <td style="text-align:center;width:15%;" background="/forum/template/ntol/tcat.gif">
          <b>Bài mới</b>
        </td>
        <td style="text-align:center;width:5%;" background="/forum/template/ntol/tcat.gif">
          <b>Xem</b>
        </td>
        <td style="text-align:center;width:5%;" background="/forum/template/ntol/tcat.gif">
          <b>-</b>
        </td>
      </tr>
      <xsl:apply-templates select="Topic"></xsl:apply-templates>
    </table>
  </xsl:template>

  <xsl:template match="Topic">
    <tr>
      <td style="text-align:center;height:60px;">
        <img src="/forum/template/ntol/thread.gif" />
      </td>
      <td>
        <a style="color:#00560A;">
          <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>
          <xsl:value-of select="TopicName"></xsl:value-of>
        </a>
        <i>
          &#160;<xsl:value-of select="PostedDate"></xsl:value-of>
        </i>
        <xsl:if test="url_admin!=''">
          <a>
            <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>
        <br />
        <b>
          <xsl:value-of select="Creator"></xsl:value-of>
        </b>
        <xsl:if test="ListPage!=''">
          <br/>
          <xsl:value-of select="ListPage"  disable-output-escaping="yes"></xsl:value-of>
        </xsl:if>
      </td>
      <td style="text-align:center;">
        <xsl:value-of select="ModifyUser"></xsl:value-of>
        <br/>
        <xsl:value-of select="ModifyDate"></xsl:value-of>
      </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>

