[Rapforums-developer] src/stylesheets/edu/fullcoll/uportal/channels/rap/forum threadfo.xsl,NONE,1.1
Status: Beta
Brought to you by:
brippe
From: Brad R. <br...@us...> - 2005-02-04 00:36:19
|
Update of /cvsroot/rapforums/src/stylesheets/edu/fullcoll/uportal/channels/rap/forum In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13739 Added Files: threadfo.xsl unauthorizedaction.xml unauthorizedaction.xsl Log Message: no message --- NEW FILE: unauthorizedaction.xsl --- <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" indent="no"/> <xsl:param name="baseActionURL">baseActionURL_false</xsl:param> <xsl:param name="amp">&</xsl:param> <xsl:param name="nbsp"> </xsl:param> <xsl:param name="raquo">»</xsl:param> <xsl:variable name="mediaPath" select="'media/edu/fullcoll/uportal/channels/rap'"/> <xsl:template match="/"> <!-- Show our logo --> <table class="uportal-background-light" cellpadding="1" cellspacing="0" border="0" width="100%"> <tr> <td> <table class="uportal-background-light" cellpadding="6" cellspacing="0" border="0" width="100%"> <tr> <td> <a href="{$baseActionURL}"> <img src="{$mediaPath}/logo.gif" width="300" height="38" border="0"/> </a> </td> </tr> </table> </td> </tr> </table> <!-- link to home and the current forum --> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td> <img src="{$mediaPath}/blank.gif" width="1" height="10" border="0"/> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td valign="top" width="98%"> <span class="uportal-channel-text"> <b> <a href="{$baseActionURL}">Home</a> <xsl:value-of select="$nbsp"/> <xsl:value-of select="$raquo"/> <xsl:value-of select="$nbsp"/> <a href="{$baseActionURL}" class="header" title="Go back to the forum list">Forums</a> <br/> </b> </span> <br/> <span class="uportal-channel-title"> <b>Access Denied - Unauthorized Access</b> </span> <br/> </td> <td valign="top" width="1%" align="center"> <!-- Greet the user --> <table cellpadding="3" cellspacing="0" border="0" width="200"> <tr> <td colspan="2"> <font size="-1" face="arial,sans-serif"> Welcome, <xsl:value-of select="/rap/name"/> </font> </td> </tr> </table> </td> </tr> </table> <p/> <b> <div class="uportal-channel-warning"><img src="{$mediaPath}/metal-Error.gif" alt="Unauthorized Icon"/><xsl:value-of select="/rap/message"/></div> <br/><br/> <a href="{$baseActionURL}" class="header" title="Go back to the forum list">Forums Home</a> <br/> </b> <p/> <br/> <table cellpadding="6" cellspacing="0" border="0" width="100%"> <tr> <td align="center"> <hr size="1" width="75%" color="#666666"/> <font size="-2" face="verdana,arial,sans-serif"> <a href="{$baseActionURL}">Forum Home</a> | <a href="{$baseActionURL}?mode=search">Search</a> <br/> <br/> </font> </td> </tr> </table> </xsl:template> <xsl:template name="option-list"> <xsl:element name="option"> <xsl:attribute name="value"><xsl:value-of select="categoryid"/></xsl:attribute> <xsl:value-of select="categoryname"/> </xsl:element> </xsl:template> <xsl:template name="option-list-forums"> <xsl:element name="option"> <xsl:attribute name="value"><xsl:value-of select="forumid"/></xsl:attribute> <xsl:value-of select="name"/> </xsl:element> </xsl:template> </xsl:stylesheet> --- NEW FILE: threadfo.xsl --- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo"> <xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/> <!-- ========================= --> <!-- root element: projectteam --> <!-- ========================= --> <xsl:template match="rap/rapforum"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="1cm" margin-right="1cm"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="simpleA4"> <fo:flow flow-name="xsl-region-body"> <fo:block font-size="16pt" font-weight="bold" space-after="5mm">Forum Name: <xsl:value-of select="forumname"/> </fo:block> <fo:block font-size="10pt"> <fo:table table-layout="fixed"> <fo:table-column column-width="4cm"/> <fo:table-column column-width="11cm"/> <fo:table-column column-width="4cm"/> <fo:table-body> <xsl:apply-templates/> </fo:table-body> </fo:table> <fo:block text-align="center" font-size="9pt"> This was created by Fullerton College Rap Forums and Apache Foundations FOP. </fo:block> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> <!-- ========================= --> <!-- child element: member --> <!-- ========================= --> <xsl:template match="rapcomments/rapcomment"> <fo:table-row> <fo:table-cell number-columns-spanned="3"> <fo:block color="lightblue"> <fo:leader text-align="center" rule-style="dashed" rule-thickness="2pt" leader-pattern="rule" leader-length="15cm" space-after="2cm"></fo:leader> </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-size="12pt" font-weight="bold" space-after="2mm"> <xsl:value-of select="subject"/> </fo:block> </fo:table-cell> <fo:table-cell> </fo:table-cell> <fo:table-cell> <fo:block font-size="9pt" font-weight="normal" space-after="2mm" font-style="italic"> by <xsl:value-of select="userid"/> </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> </fo:table-cell> <fo:table-cell> <fo:block font-size="10pt" font-weight="normal" space-after="2mm"> <xsl:value-of select="body"/> </fo:block> </fo:table-cell> <fo:table-cell> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-size="9pt" font-weight="normal" space-after="2mm"> <xsl:value-of select="modifieddate"/> </fo:block> </fo:table-cell> <fo:table-cell></fo:table-cell> <fo:table-cell></fo:table-cell> </fo:table-row> </xsl:template> </xsl:stylesheet> --- NEW FILE: unauthorizedaction.xml --- <?xml version="1.0" encoding="utf-8"?> <rap> <username>brippe</username> <message><p>Sorry, you do not have appropriate permission to post messages to this forum.</p><p>Please contact your forum administrator for appropriate access.<br/>Thank you!</p></message> </rap> |