Location: PHPKode > projects > YaCM Portal System > yacm-0.2/themes/default/templates/theme.xsl.tpl
<smarty>* File: $Id: theme.xsl.tpl 166 2006-02-18 15:13:35Z l_a_toth $ *</smarty><xsl:stylesheet version="1.0" 
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--<xsl:output method="html" encoding="UTF-8" />-->
<xsl:preserve-space elements="TextArea"/>
<xsl:template match="/"><html><head><title><xsl:value-of select="portal/title"/></title>
<link rel="stylesheet" type="text/css" href="<smarty>$SITEROOT</smarty>/themes/theme<smarty>$THEME_CSS_APPEND</smarty>.css.php?theme=default" />
<script type="text/javascript" src="<smarty>$THEME_DIRECTORY</smarty>/menu.js"></script></head>
<body><table cellspacing="0" cellpadding="0"  style="border: 0; width: 100%"><tr><td colspan="2">
<table class="box-table" cellspacing="0" cellpadding="0"  border="0"><tr class="box_tr1"><td class="box_td11"></td><td class="box_td12"></td><td class="box_td13"></td></tr>
<tr class="box_tr2"><td class="box_td21"></td><td class="box_td22"><table width="100%" cellpadding="0" cellspacing="0"><tr><td class="logo"><a href="<smarty>$SITEROOT</smarty>" class="img"><img 
src="<smarty>$THEME_DIRECTORY</smarty>/images/logo.png" alt="logo"/></a></td><td style="vertical-align: middle; text-align: center"><h1 class="maintitle"><xsl:value-of select="portal/title"/></h1></td>
<td class="date"><xsl:apply-templates select="/portal/date"/></td></tr></table></td><td class="box_td23"></td></tr><tr class="box_tr3"><td class="box_td31">
</td><td class="box_td32"></td><td class="box_td33"></td></tr></table><p></p><div id="shadower"></div>
<xsl:apply-templates select="/portal/menu"/></td></tr><tr><xsl:apply-templates select="/portal/sidebar"/><xsl:apply-templates select="/portal/content"/></tr><tr><td colspan="2"><xsl:apply-templates select="/portal/footer"/></td></tr></table></body></html>
</xsl:template>
<xsl:template match="/portal/footer"><div id="footer"><div id="poweredby"><smarty>$POWEREDBY</smarty></div><div id="shadower-bottom"><div id="source"><a href="http://yacm.sourceforge.net/"><smarty>$SOURCE_STR</smarty></a></div><xsl:choose><xsl:when test="@email"><span><smarty>$EMAIL_STR</smarty>: <xsl:value-of select="@email"/></span></xsl:when></xsl:choose></div></div></xsl:template>
<xsl:template match="/portal/date"><div style="text-align: center"><smarty>$DATE_TEMPLATE</smarty></div></xsl:template>
<xsl:template match="/portal/sidebar"><td id="sidebar"><xsl:apply-templates/></td></xsl:template>
<xsl:template match="/portal/content"><td id="content"><xsl:apply-templates select="/portal/prevpages"/><xsl:apply-templates/></td></xsl:template>
<xsl:template match="/portal/prevpages"><xsl:apply-templates/></xsl:template>
<xsl:template match="Links"><xsl:for-each select="link"><xsl:apply-templates select="."/><br/></xsl:for-each></xsl:template>
<xsl:template match="link"><a href="{@url}" class="txt"><xsl:apply-templates/></a></xsl:template>
<xsl:template match="clink"><a href="{@url}" class="{@class}"><xsl:apply-templates/></a></xsl:template>
<xsl:template match="/portal/menu"><div id="menu"><xsl:apply-templates/></div></xsl:template>
<xsl:template match="Block-Inner"><div class="blocks-inner"><xsl:if test="@title"><div class="blocks_title"><xsl:apply-templates select="@title"/></div><hr /></xsl:if><div class="blocks-inner_content"><xsl:apply-templates/></div></div></xsl:template>
<xsl:template match="Block"><table class="box-table" cellspacing="0" cellpadding="0"  border="0"><tr class="box_tr1"><td class="box_td11"></td><td class="box_td12"></td><td class="box_td13"></td></tr>
 <tr class="box_tr2"><td class="box_td21"></td><td class="box_td22"><xsl:if test="@title"><div class="box_div_title"><xsl:apply-templates select="@title"/></div><hr /></xsl:if>
 <div class="box_div_content"><xsl:apply-templates/></div></td><td class="box_td23"></td></tr><tr class="box_tr3"><td class="box_td31"></td><td class="box_td32"></td><td class="box_td33"></td></tr></table>
</xsl:template>
<xsl:template match="noswpatents"><a href="http://212.72.72.97/" class="img"><img
 src="<smarty>$SITEROOT</smarty>/images/noepatents_liberty.png" alt=""/></a>
</xsl:template>
<xsl:template match="Table"><xsl:choose><xsl:when test="@class"><table class="{@class}"><xsl:apply-templates select="Table-Head"/><xsl:apply-templates select="Table-Body"/></table></xsl:when>
 <xsl:otherwise><table class="default"><xsl:apply-templates select="Table-Head"/><xsl:apply-templates select="Table-Body"/></table></xsl:otherwise></xsl:choose>
</xsl:template>
<xsl:template match="Table-Head"><thead><xsl:for-each select="Row"><tr><xsl:for-each select="Cell"><th class="borderedr" colspan="{@cols}" rowspan="{@rows}"><xsl:apply-templates/></th></xsl:for-each></tr></xsl:for-each></thead></xsl:template>
<xsl:template match="Table-Body"><tbody><xsl:for-each select="Row"><tr class="line{(position() + 1) mod 2 +1}"><xsl:for-each select="Cell"><td class="borderedr" colspan="{@cols}" rowspan="{@rows}" style="{@style}"><xsl:apply-templates/></td></xsl:for-each></tr></xsl:for-each></tbody></xsl:template>
<xsl:template match="MainMenu"><div id="menu-main"><ul><xsl:for-each select="MenuItem"><xsl:choose><xsl:when test="position()=1"><li class="menu-main1"><a class="menu" href="{@url}"><xsl:apply-templates/></a></li></xsl:when>
 <xsl:when test="position()=last()"><li class="menu-main-last"><a class="menu" href="{@url}"><xsl:apply-templates/></a></li></xsl:when>
 <xsl:otherwise><li class="menu-main"><xsl:choose><xsl:when test="@idx"><a class="menu" onclick="showMenu({@idx}); return false;" onmouseover="cT({@idx}); return false;" onmouseout="sT({@idx}); return false;"><xsl:apply-templates/></a></xsl:when>
 <xsl:otherwise><a class="menu" href="{@url}"><xsl:apply-templates/></a></xsl:otherwise></xsl:choose></li></xsl:otherwise></xsl:choose></xsl:for-each></ul></div>
</xsl:template>
<xsl:template match="Menu"><div id="menu-{@name}"><ul onmouseover="cT({@idx}); return false;" onmouseout="sT({@idx}); return false;">
 <xsl:for-each select="MenuItem"><xsl:choose><xsl:when test="position()=1"><li class="submenu1"><a class="menu" href="{@url}"><xsl:apply-templates/></a></li></xsl:when>
 <xsl:when test="position()=last()"><li class="submenu-last"><a class="menu" href="{@url}"><xsl:apply-templates/></a></li></xsl:when>
 <xsl:otherwise><li class="submenu"><a class="menu" href="{@url}"><xsl:apply-templates/></a></li></xsl:otherwise></xsl:choose></xsl:for-each></ul></div>
</xsl:template>
<xsl:template match="Form"><form name="{@name}" action="{@action}" method="post" enctype="multipart/form-data"><xsl:apply-templates/></form></xsl:template>
<xsl:template match="Select"><select name="{@name}"><xsl:apply-templates/></select></xsl:template>
<xsl:template match="Select/Selected"><option value="{@name}" selected="selected"><xsl:value-of select="@value"/></option></xsl:template>
<xsl:template match="Select/Item"><option value="{@name}"><xsl:value-of select="@value"/></option></xsl:template>
<xsl:template match="Input-hidden"><input type="hidden" name="{@name}" value="{@value}"/></xsl:template>
<xsl:template match="Input-text"><input type="text" size="{@size}" name="{@name}" value="{@value}" maxlength="{@maxlength}"/></xsl:template>
<xsl:template match="Input-text-disabled"><input type="text" size="{@size}" name="{@name}" value="{@value}" maxlength="{@maxlength}" disabled="disabled"/></xsl:template>
<xsl:template match="Input-submit"><input type="submit" name="{@name}" value="{@value}"/></xsl:template>
<xsl:template match="Input-reset"><input type="reset" name="{@name}" value="{@value}"/></xsl:template>
<xsl:template match="Input-file"><input type="file" size="{@size}" name="{@name}" value="{@value}" maxlength="{@maxlength}"/></xsl:template>
<xsl:template match="Input-checkbox"><input type="checkbox" name="{@name}"/></xsl:template>
<xsl:template match="Input-checkbox-checked"><input type="checkbox" name="{@name}" checked="checked"/></xsl:template>
<xsl:template match="Input-checkbox-disabled"><input type="checkbox" name="{@name}" readonly="readonly"/></xsl:template>
<xsl:template match="Input-checkbox-disabled-checked"><input type="checkbox" name="{@name}" disabled="disabled" checked="checked"/></xsl:template>
<xsl:template match="Input-password"><input type="password" size="{@size}" name="{@name}" value="{@value}" maxlength="{@maxlength}"/></xsl:template>
<xsl:template match="Input-password-disabled"><input type="password" size="{@size}" name="{@name}" value="{@value}" maxlength="{@maxlength}" disabled="disabled"/></xsl:template>
<xsl:template match="TextArea"><textarea rows="{@rows}" cols="{@cols}" name="{@name}" value="{@value}"><xsl:value-of select="."/></textarea></xsl:template>
<xsl:template match="ConfirmSubmit"><input type="submit" name="{@name}" value="{@value}" onclick="return confirm('{@confirm}');" /></xsl:template>
<xsl:template match="NL"><br/></xsl:template>
<xsl:template match="br"><br/></xsl:template>
<xsl:template match="Bold"><strong><xsl:apply-templates/></strong></xsl:template>
<xsl:template match="Emph"><em><xsl:apply-templates/></em></xsl:template>
<xsl:template match="Error"><span style="color: red"><xsl:value-of select="@title"/>: <span style="font-style: italic"><xsl:apply-templates/></span></span></xsl:template>
<xsl:template match="Mesg"><span style="color:green;font-style: italic"><xsl:apply-templates/></span></xsl:template>
<xsl:template match="img"><img src="{@src}" alt="{@alt}" class="xml_img" style="{@style}"/></xsl:template>
<xsl:template match="Code"><code><xsl:apply-templates/></code></xsl:template>
<xsl:template match="pre"><pre><xsl:apply-templates/></pre></xsl:template>
<smarty>$OTHER_TEMPLATES</smarty>
</xsl:stylesheet>
Return current item: YaCM Portal System