added tpl plus css

This commit is contained in:
ceb 2002-10-03 21:35:38 +00:00
parent 3d9887ad01
commit b5abff2679
7 changed files with 177 additions and 24 deletions

View File

@ -90,6 +90,10 @@ a:hover
border-style: ridge; border-style: ridge;
} }
.portal_text
{
color: #FFFFFF;
}
.bodytext .bodytext
{ {

View File

@ -1,39 +1,104 @@
<!-- BEGIN portal_box --> <!-- $Id$ -->
<p>
<table cellpadding="0" cellspacing="0" width="{outer_width}" class="portal"> <xsl:template name="portal">
<tr nowrap align="center"> <xsl:variable name="outer_width"><xsl:value-of select="outer_width"/></xsl:variable>
<td align="center" background="{header_background_image}">{title}</td>{portal_controls} <xsl:variable name="header_background_image"><xsl:value-of select="header_background_image"/></xsl:variable>
</tr> <xsl:variable name="inner_width"><xsl:value-of select="inner_width"/></xsl:variable>
<tr> <p>
<td colspan="2"> <table cellpadding="0" cellspacing="0" width="{$outer_width}" class="portal">
<table cellpadding="0" cellspacing="0" width="{inner_width}" class="portal"> <tr nowrap align="center">
{row} <td align="center" background="{$header_background_image}">
</table> <xsl:value-of select="title"/>
</td> </td>
</tr> <td valign="middle" align="right" nowrap background="{$header_background_image}">
</table> <xsl:apply-templates select="control_link"/>
</p> </td>
</tr>
<tr>
<td colspan="2">
<table cellpadding="0" cellspacing="0" width="{$inner_width}" class="portal">
<xsl:apply-templates select="portal_row"/>
</table>
</td>
</tr>
</table>
</p>
</xsl:template>
<xsl:template match="control_link">
<xsl:variable name="param_url"><xsl:value-of select="param_url"/></xsl:variable>
<xsl:variable name="link_img"><xsl:value-of select="link_img"/></xsl:variable>
<xsl:variable name="img_width"><xsl:value-of select="img_width"/></xsl:variable>
<xsl:variable name="lang_param"><xsl:value-of select="lang_param"/></xsl:variable>
<a href="{$param_url}">
<img src="{$link_img}" border="0" width="{img_width}" height="15" alt="{$lang_param}">
</a>
</xsl:template>
<xsl:template match="portal_row">
<tr>
</tr>
</xsl:template>
<xsl:variable name="select_action"><xsl:value-of select="select_action"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="cat_id" class="forms" onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_cat_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of select="lang_no_cat"/></option>
<xsl:apply-templates select="cat_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" class="forms" name="submit" value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="cat_list">
<xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected">
<option value="{$id}" selected="selected"><xsl:value-of select="name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of select="name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- END portal_box --> <!-- END portal_box -->
<!-- BEGIN portal_row --> <!-- BEGIN portal_row -->
<tr>
{output}
</tr>
<!-- END portal_row --> <!-- END portal_row -->
<!-- BEGIN portal_listbox_header --> <!-- BEGIN portal_listbox_header -->
<td> <!-- <td> -->
<ul> <!-- <ul> -->
<!-- END portal_listbox_header --> <!-- END portal_listbox_header -->
<!-- BEGIN portal_listbox_link --> <!-- BEGIN portal_listbox_link -->
<li><a href="{link}">{text}</a></li>
<!-- <li><a href="{link}">{text}</a></li> -->
<!-- END portal_listbox_link --> <!-- END portal_listbox_link -->
<!-- BEGIN portal_listbox_footer --> <!-- BEGIN portal_listbox_footer -->
</ul> </ul>
</td> </td>
<!-- END portal_listbox_footer --> <!-- END portal_listbox_footer -->
<!-- BEGIN portal_control --> <!-- BEGIN portal_control -->
<td valign="middle" align="right" nowrap background="{header_background_image}">{control_link}
</td>
<!-- END portal_control --> <!-- END portal_control -->
<!-- BEGIN link_field --> <!-- BEGIN link_field -->
{link_field_data}
<!-- END link_field --> <!-- END link_field -->

View File

@ -0,0 +1,55 @@
<!-- $Id$ -->
<xsl:template match="portal">
<xsl:variable name="outer_width"><xsl:value-of select="outer_width"/></xsl:variable>
<xsl:variable name="header_background_image"><xsl:value-of select="header_background_image"/></xsl:variable>
<xsl:variable name="inner_width"><xsl:value-of select="inner_width"/></xsl:variable>
<table cellpadding="0" cellspacing="0" width="{$outer_width}" class="portal">
<tr align="center">
<td align="center" background="{$header_background_image}" class="portal_text">
<xsl:value-of select="title"/>
</td>
<td valign="middle" align="right" background="{$header_background_image}">
<xsl:apply-templates select="control_link"/>
</td>
</tr>
<tr>
<td colspan="2">
<table cellpadding="0" cellspacing="0" width="{$inner_width}" class="portal">
<xsl:apply-templates select="portal_row"/>
</table>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="control_link">
<xsl:variable name="param_url"><xsl:value-of select="param_url"/></xsl:variable>
<xsl:variable name="link_img"><xsl:value-of select="link_img"/></xsl:variable>
<xsl:variable name="img_width"><xsl:value-of select="img_width"/></xsl:variable>
<xsl:variable name="lang_param_statustext"><xsl:value-of select="lang_param_statustext"/></xsl:variable>
<a href="{$param_url}" onMouseover="window.status='{$lang_param_statustext}';return true;" onMouseout="window.status='';return true;">
<img src="{$link_img}" border="0" width="{img_width}" height="15" onMouseover="window.status='{$lang_param_statustext}';return true;" onMouseout="window.status='';return true;" alt="{$lang_param_statustext}"/>
</a>
</xsl:template>
<xsl:template match="portal_row">
<tr>
<td>
<xsl:apply-templates select="listbox"/>
<xsl:apply-templates select="extrabox"/>
</td>
</tr>
</xsl:template>
<xsl:template match="listbox">
<xsl:variable name="link"><xsl:value-of select="link"/></xsl:variable>
<xsl:variable name="lang_link_statustext"><xsl:value-of select="lang_link_statustext"/></xsl:variable>
<ul>
<li>
<a href="{$link}" onMouseover="window.status='{$lang_link_statustext}';return true;" onMouseout="window.status='';return true;">
<xsl:value-of select="text"/>
</a>
</li>
</ul>
</xsl:template>

View File

@ -84,6 +84,11 @@ a:hover
border-style: ridge; border-style: ridge;
} }
.portal_text
{
color: #FFFFFF;
}
.bodytext .bodytext
{ {
font-family: Verdana,Arial,Helvetica,sans-serif; font-family: Verdana,Arial,Helvetica,sans-serif;

View File

@ -79,6 +79,14 @@ a:hover
.portal .portal
{ {
background-color: #80BBFF; background-color: #80BBFF;
border-width: 1px;
border-color: #000000;
border-style: ridge;
}
.portal_text
{
color: #FFFFFF;
} }
.bodytext .bodytext

View File

@ -79,6 +79,14 @@ a:hover
.portal .portal
{ {
background-color: #80BBFF; background-color: #80BBFF;
border-width: 1px;
border-color: #000000;
border-style: ridge;
}
.portal_text
{
color: #FFFFFF;
} }
.bodytext .bodytext

View File

@ -79,6 +79,14 @@ a:hover
.portal .portal
{ {
background-color: #80BBFF; background-color: #80BBFF;
border-width: 1px;
border-color: #000000;
border-style: ridge;
}
.portal_text
{
color: #FFFFFF;
} }
.bodytext .bodytext