Thread and post pages implemented (handler+template); PageOuter implemented; some fixes and features
@ -1 +1 @@ |
|||||||
159 |
179 |
After Width: | Height: | Size: 133 B |
After Width: | Height: | Size: 209 B |
After Width: | Height: | Size: 108 B |
After Width: | Height: | Size: 117 B |
After Width: | Height: | Size: 116 B |
After Width: | Height: | Size: 135 B |
After Width: | Height: | Size: 77 B |
After Width: | Height: | Size: 140 B |
After Width: | Height: | Size: 140 B |
After Width: | Height: | Size: 234 B |
After Width: | Height: | Size: 135 B |
@ -0,0 +1,80 @@ |
|||||||
|
<?xml version="1.0" encoding="Windows-1251"?> |
||||||
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
||||||
|
<xsl:import href="elems\Main.xslt"/> |
||||||
|
<xsl:import href="elems\PostInfo.xslt"/> |
||||||
|
<xsl:template name="specific"> |
||||||
|
<xsl:call-template name="threadInfo"/> |
||||||
|
<br /> |
||||||
|
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> |
||||||
|
<tr> |
||||||
|
<td> |
||||||
|
<table cellpadding="0" cellspacing="1" width="100%" class="tableborders"> |
||||||
|
<xsl:apply-templates select="posts/post"/> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
<br /> |
||||||
|
<xsl:call-template name="threadInfo"/> |
||||||
|
</xsl:template> |
||||||
|
|
||||||
|
<xsl:template name="threadInfo"> |
||||||
|
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> |
||||||
|
<tr> |
||||||
|
<td> |
||||||
|
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> |
||||||
|
<tr class="darktable"> |
||||||
|
<td> |
||||||
|
<table width="100%" cellpadding="0" cellspacing="0"> |
||||||
|
<tr class="darktable"> |
||||||
|
<td align="left" width="33%"> |
||||||
|
<font class="catandforum"> |
||||||
|
<xsl:apply-templates select="currentLocation" mode="breadcrumbs"/> |
||||||
|
</font> |
||||||
|
</td> |
||||||
|
<td width="33%" align="right"> |
||||||
|
<table border="0" class="tablesurround"> |
||||||
|
<tr> |
||||||
|
<td class="navigation" nowrap="nowrap"> |
||||||
|
<a> |
||||||
|
<xsl:attribute name="href">/Board/<xsl:value-of select="currentLocation/post/parent/thread/parent/board/id"/>/</xsl:attribute> |
||||||
|
<img src="/static/images/all.gif" alt="" border="0" width="19" height="15" style="vertical-align: text-bottom" /> |
||||||
|
<xsl:text>Ñïèñîê</xsl:text> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td class="navigation" nowrap="nowrap"> |
||||||
|
<form method="get" action="/showflat.php" name="fullview"> |
||||||
|
<select name="fullview" class="formboxes" style="font-size:10px" onchange="document.forms.fullview.submit()"> |
||||||
|
<option value="0" >Íîðì</option> |
||||||
|
<option value="1" >Îôò</option> |
||||||
|
<option value="2" selected="selected">Ìóñ</option> |
||||||
|
</select> |
||||||
|
</form> |
||||||
|
</td> |
||||||
|
<td class="navigation" nowrap="nowrap"> |
||||||
|
<a> |
||||||
|
<xsl:attribute name="href">/Thread/<xsl:value-of select="currentLocation/post/parent/thread/id"/>/p<xsl:value-of select="currentLocation/post/id"/>/</xsl:attribute> |
||||||
|
<img alt="*" src="/static/images/flat.gif" style="vertical-align: text-bottom" /> |
||||||
|
<xsl:text>Ïëîñêèé</xsl:text> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td class="navigation" nowrap="nowrap"> |
||||||
|
<a> |
||||||
|
<img src="/static/images/greythreaded.gif" border="0" style="vertical-align: text-bottom" alt="Äåðåâî" /> |
||||||
|
<xsl:text>Äåðåâî</xsl:text> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</xsl:template> |
||||||
|
|
||||||
|
</xsl:stylesheet> |
@ -0,0 +1,107 @@ |
|||||||
|
<?xml version="1.0" encoding="Windows-1251"?> |
||||||
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
||||||
|
<xsl:import href="elems\Main.xslt"/> |
||||||
|
<xsl:import href="elems\PostInfo.xslt"/> |
||||||
|
<xsl:template name="specific"> |
||||||
|
<xsl:call-template name="threadInfo"/> |
||||||
|
<br /> |
||||||
|
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> |
||||||
|
<tr> |
||||||
|
<td> |
||||||
|
<table cellpadding="0" cellspacing="1" width="100%" class="tableborders"> |
||||||
|
<tr class="tdheader"> |
||||||
|
<td> |
||||||
|
<table width="100%" cellspacing="1" cellpadding="3" border="0"> |
||||||
|
<tr> |
||||||
|
<td> |
||||||
|
<xsl:text>ñòðàíèöû:</xsl:text> |
||||||
|
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> |
||||||
|
<xsl:with-param name="baseLink">/Thread/<xsl:value-of select="currentLocation/thread/id"/>/</xsl:with-param> |
||||||
|
</xsl:apply-templates> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<xsl:apply-templates select="posts/post"/> |
||||||
|
<tr class="tdheader"> |
||||||
|
<td> |
||||||
|
<table width="100%" cellspacing="1" cellpadding="3" border="0"> |
||||||
|
<tr> |
||||||
|
<td> |
||||||
|
<xsl:text>ñòðàíèöû:</xsl:text> |
||||||
|
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> |
||||||
|
<xsl:with-param name="baseLink">/Thread/<xsl:value-of select="currentLocation/thread/id"/>/</xsl:with-param> |
||||||
|
</xsl:apply-templates> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
<br /> |
||||||
|
<xsl:call-template name="threadInfo"/> |
||||||
|
</xsl:template> |
||||||
|
|
||||||
|
<xsl:template name="threadInfo"> |
||||||
|
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> |
||||||
|
<tr> |
||||||
|
<td> |
||||||
|
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> |
||||||
|
<tr class="darktable"> |
||||||
|
<td> |
||||||
|
<table width="100%" cellpadding="0" cellspacing="0"> |
||||||
|
<tr class="darktable"> |
||||||
|
<td align="left" width="33%"> |
||||||
|
<font class="catandforum"> |
||||||
|
<xsl:apply-templates select="currentLocation" mode="breadcrumbs"/> |
||||||
|
</font> |
||||||
|
</td> |
||||||
|
<td width="33%" align="right"> |
||||||
|
<table border="0" class="tablesurround"> |
||||||
|
<tr> |
||||||
|
<td class="navigation" nowrap="nowrap"> |
||||||
|
<a> |
||||||
|
<xsl:attribute name="href">/Board/<xsl:value-of select="currentLocation/thread/parent/board/id"/>/</xsl:attribute> |
||||||
|
<img src="/static/images/all.gif" alt="" border="0" width="19" height="15" style="vertical-align: text-bottom" /> |
||||||
|
<xsl:text>Ñïèñîê</xsl:text> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td class="navigation" nowrap="nowrap"> |
||||||
|
<form method="get" action="/showflat.php" name="fullview"> |
||||||
|
<select name="fullview" class="formboxes" style="font-size:10px" onchange="document.forms.fullview.submit()"> |
||||||
|
<option value="0" >Íîðì</option> |
||||||
|
<option value="1" >Îôò</option> |
||||||
|
<option value="2" selected="selected">Ìóñ</option> |
||||||
|
</select> |
||||||
|
</form> |
||||||
|
</td> |
||||||
|
<td class="navigation" nowrap="nowrap"> |
||||||
|
<a> |
||||||
|
<img alt="*" src="/static/images/greyflat.gif" style="vertical-align: text-bottom" /> |
||||||
|
<xsl:text>Ïëîñêèé</xsl:text> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td class="navigation" nowrap="nowrap"> |
||||||
|
<a> |
||||||
|
<img src="/static/images/greythreaded.gif" border="0" style="vertical-align: text-bottom" alt="Äåðåâî" /> |
||||||
|
<xsl:text>Äåðåâî</xsl:text> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</xsl:template> |
||||||
|
|
||||||
|
</xsl:stylesheet> |
@ -0,0 +1,162 @@ |
|||||||
|
<?xml version="1.0" encoding="Windows-1251"?> |
||||||
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
||||||
|
|
||||||
|
<xsl:template match="post"> |
||||||
|
<tr> |
||||||
|
<td> |
||||||
|
<table width="100%" cellspacing="1" cellpadding="3" border="0"> |
||||||
|
<tr> |
||||||
|
<td width="120" valign="top" class="darktable" rowspan="2"> |
||||||
|
<a><xsl:attribute name="name">Post<xsl:value-of select="id"/></xsl:attribute></a> |
||||||
|
<table border="0" cellpadding="0" cellspacing="0"> |
||||||
|
<tr> |
||||||
|
<td> |
||||||
|
<a> |
||||||
|
<xsl:attribute name="href">/User/<xsl:value-of select="poster/user/id"/>/</xsl:attribute> |
||||||
|
<xsl:value-of select="poster/user/name"/> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="small"> |
||||||
|
<b><xsl:value-of select="poster/user/title"/></b> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="small"> |
||||||
|
<i></i> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="small"> |
||||||
|
<i><font color="red"></font></i> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="small"> |
||||||
|
<img src="/user/7901.jpg" alt="" width="80" height="80" /> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="small"> |
||||||
|
<xsl:text>Ðåã.: </xsl:text> |
||||||
|
<xsl:apply-templates select="poster/user/regDate/date" mode="date"/> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="small"> |
||||||
|
<xsl:text>Ñîîáùåíèé: </xsl:text> |
||||||
|
<xsl:value-of select="poster/user/totalPosts"/> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="small"> |
||||||
|
<xsl:text>Èç: </xsl:text> |
||||||
|
<xsl:value-of select="poster/user/location"/> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
<td class="subjecttable"> |
||||||
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
||||||
|
<tr> |
||||||
|
<td align="left" width="65%" valign="top"> |
||||||
|
<a target="_blank" class="separate"> |
||||||
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/</xsl:attribute> |
||||||
|
<img border="0" src="/static/images/book-notread.gif" alt="" style="vertical-align: text-bottom" /> |
||||||
|
</a> |
||||||
|
<b class="separate"><xsl:value-of select="title"/></b> |
||||||
|
<img alt="new" src="/static/images/new.gif" /> |
||||||
|
<xsl:if test="parentPost/post"> |
||||||
|
<font class="small separate"> |
||||||
|
<xsl:text>[</xsl:text> |
||||||
|
<a target="_blank"> |
||||||
|
<xsl:attribute name="href">/Post/<xsl:value-of select="parentPost/post/id"/>/</xsl:attribute> |
||||||
|
<xsl:text>re: </xsl:text> |
||||||
|
<xsl:value-of select="parentPost/post/poster/user/name"/> |
||||||
|
</a> |
||||||
|
<xsl:text>]</xsl:text> |
||||||
|
</font> |
||||||
|
</xsl:if> |
||||||
|
<br /> |
||||||
|
<font class="small" style="padding-left:2em"><xsl:apply-templates select="postDate/date" mode="dateTime"/></font> |
||||||
|
</td> |
||||||
|
<td align="right" width="35%"> |
||||||
|
<table cellpadding="0" cellspacing="0" border="0"> |
||||||
|
<tr> |
||||||
|
<td align="right"> |
||||||
|
<table class="tablesurround" border="0"> |
||||||
|
<tr> |
||||||
|
<td class="navigation"> |
||||||
|
<a> |
||||||
|
<xsl:attribute name="href">/PostReply/<xsl:value-of select="id"/>/</xsl:attribute> |
||||||
|
<img src="/static/images/reply.gif" border="0" alt="Îòâåò íà ñîîáùåíèå" width="27" height="14" title="Îòâåò íà ñîîáùåíèå" style="vertical-align: text-bottom" /> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td class="navigation"> |
||||||
|
<a> |
||||||
|
<img src="/static/images/edit.gif" border="0" alt="Ïðàâêà ñîîáùåíèÿ" title="Ïðàâêà ñîîáùåíèÿ" width="21" height="14" style="vertical-align: text-bottom" /> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td class="navigation"> |
||||||
|
<a target="_blank"> |
||||||
|
<img src="/static/images/print.gif" border="0" alt="Ïå÷àòü ñîîáùåíèÿ" title="Ïå÷àòü ñîîáùåíèÿ" /> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td class="navigation"> |
||||||
|
<a> |
||||||
|
<img src="/static/images/addreminder.gif" border="0" alt="Äîáàâèòü òåìó â íàïîìèíàíèÿ!" title="Äîáàâèòü òåìó â íàïîìèíàíèÿ!" /> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td class="navigation"> |
||||||
|
<a> |
||||||
|
<img src="/static/images/notifymod.gif" border="0" alt="Èçâåñòèòü ìîäåðàòîðà" title="Èçâåñòèòü ìîäåðàòîðà" /> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td class="navigation"> |
||||||
|
<a> |
||||||
|
<img src="/static/images/email2.gif" border="0" alt="Îòâåòèòü ïðèâàòîì" title="Îòâåòèòü ïðèâàòîì" /> |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="lighttable"> |
||||||
|
<table width="100%" cellspacing="0" cellpadding="0" style="table-layout: fixed"> |
||||||
|
<tr> |
||||||
|
<td> |
||||||
|
<br /> |
||||||
|
<font class="post"> |
||||||
|
<xsl:value-of select="body" disable-output-escaping="yes" /> |
||||||
|
<br /> |
||||||
|
<br /> |
||||||
|
</font> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<xsl:if test="poster/user/signature != ''"> |
||||||
|
<tr> |
||||||
|
<td> |
||||||
|
<div style="width:100%;max-height:50px;height: expression( this.scrollHeight > 49 ? '50px' : 'auto' );overflow:hidden"> |
||||||
|
<font size="-2"><xsl:value-of select="poster/user/signature"/><br /></font> |
||||||
|
</div> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</xsl:if> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</xsl:template> |
||||||
|
|
||||||
|
|
||||||
|
</xsl:stylesheet> |