forked from extern/egroupware
added tpl plus css
This commit is contained in:
parent
3d9887ad01
commit
b5abff2679
@ -90,6 +90,10 @@ a:hover
|
||||
border-style: ridge;
|
||||
}
|
||||
|
||||
.portal_text
|
||||
{
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.bodytext
|
||||
{
|
||||
|
@ -1,39 +1,104 @@
|
||||
<!-- BEGIN portal_box -->
|
||||
<p>
|
||||
<table cellpadding="0" cellspacing="0" width="{outer_width}" class="portal">
|
||||
<tr nowrap align="center">
|
||||
<td align="center" background="{header_background_image}">{title}</td>{portal_controls}
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table cellpadding="0" cellspacing="0" width="{inner_width}" class="portal">
|
||||
{row}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
<!-- $Id$ -->
|
||||
|
||||
<xsl:template name="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>
|
||||
<p>
|
||||
<table cellpadding="0" cellspacing="0" width="{$outer_width}" class="portal">
|
||||
<tr nowrap align="center">
|
||||
<td align="center" background="{$header_background_image}">
|
||||
<xsl:value-of select="title"/>
|
||||
</td>
|
||||
<td valign="middle" align="right" nowrap 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>
|
||||
</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 -->
|
||||
|
||||
<!-- BEGIN portal_row -->
|
||||
<tr>
|
||||
{output}
|
||||
</tr>
|
||||
|
||||
<!-- END portal_row -->
|
||||
|
||||
<!-- BEGIN portal_listbox_header -->
|
||||
<td>
|
||||
<ul>
|
||||
<!-- <td> -->
|
||||
<!-- <ul> -->
|
||||
<!-- END portal_listbox_header -->
|
||||
|
||||
<!-- BEGIN portal_listbox_link -->
|
||||
<li><a href="{link}">{text}</a></li>
|
||||
|
||||
<!-- <li><a href="{link}">{text}</a></li> -->
|
||||
|
||||
<!-- END portal_listbox_link -->
|
||||
|
||||
<!-- BEGIN portal_listbox_footer -->
|
||||
</ul>
|
||||
</td>
|
||||
<!-- END portal_listbox_footer -->
|
||||
|
||||
<!-- BEGIN portal_control -->
|
||||
<td valign="middle" align="right" nowrap background="{header_background_image}">{control_link}
|
||||
</td>
|
||||
|
||||
<!-- END portal_control -->
|
||||
|
||||
<!-- BEGIN link_field -->
|
||||
{link_field_data}
|
||||
|
||||
<!-- END link_field -->
|
||||
|
55
phpgwapi/templates/default/portal.xsl
Normal file
55
phpgwapi/templates/default/portal.xsl
Normal 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>
|
@ -84,6 +84,11 @@ a:hover
|
||||
border-style: ridge;
|
||||
}
|
||||
|
||||
.portal_text
|
||||
{
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.bodytext
|
||||
{
|
||||
font-family: Verdana,Arial,Helvetica,sans-serif;
|
||||
|
@ -79,6 +79,14 @@ a:hover
|
||||
.portal
|
||||
{
|
||||
background-color: #80BBFF;
|
||||
border-width: 1px;
|
||||
border-color: #000000;
|
||||
border-style: ridge;
|
||||
}
|
||||
|
||||
.portal_text
|
||||
{
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.bodytext
|
||||
|
@ -79,6 +79,14 @@ a:hover
|
||||
.portal
|
||||
{
|
||||
background-color: #80BBFF;
|
||||
border-width: 1px;
|
||||
border-color: #000000;
|
||||
border-style: ridge;
|
||||
}
|
||||
|
||||
.portal_text
|
||||
{
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.bodytext
|
||||
|
@ -79,6 +79,14 @@ a:hover
|
||||
.portal
|
||||
{
|
||||
background-color: #80BBFF;
|
||||
border-width: 1px;
|
||||
border-color: #000000;
|
||||
border-style: ridge;
|
||||
}
|
||||
|
||||
.portal_text
|
||||
{
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.bodytext
|
||||
|
Loading…
Reference in New Issue
Block a user