<?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:1px solid #b7b7b7;" cellpadding="6" cellspacing="0">
      <tr style="background:#E7EBF7;color:#ffffff;">
        <td style="text-align:center;width:5%;"  background="/forum/template/ddth/category.gif">
          -
        </td>
        <td style="text-align:center;width:65%;"  background="/forum/template/ddth/category.gif">
          <b>Chủ đề</b>
        </td>
        <td style="text-align:center;width:20%;"  background="/forum/template/ddth/category.gif">
          <b>Bài viết cuối</b>
        </td>
        <td style="text-align:center;width:5%;"  background="/forum/template/ddth/category.gif">
          <b>Xem</b>
        </td>
        <td style="text-align:center;width:5%;"  background="/forum/template/ddth/category.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;">
        <img src="/forum/template/ddth/thread.gif" />
      </td>
      <td style="background-color:#f9f9f9;height:60px;">
        <a style="color:#276B84;">
          <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>
        <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">/forum/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>
        <br />
        <xsl:value-of select="Creator"></xsl:value-of>
        <i>&#160;(<xsl:value-of select="PostedDate"></xsl:value-of>)</i>
      </td>
      <td style="text-align:right;">
        <font color="#27C308"><xsl:value-of select="ModifyDate"></xsl:value-of></font>
        <br/>
        <xsl:value-of select="ModifyUser"></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>

