[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/skins/default/phpgw_js_menu.xsl, 1.1.2.1
From: |
nomail |
Subject: |
[Phpgroupware-cvs] api/skins/default/phpgw_js_menu.xsl, 1.1.2.1 |
Date: |
Sun, 23 May 2004 02:53:02 -0000 |
Update of /api/skins/default
Added Files:
Branch: proposal-branch
phpgw_js_menu.xsl
date: 2004/05/01 00:10:12; author: jengo; state: Exp; lines: +338 -0
Log Message:
Split the js menus and non js menus into different files, normal menus are
default ... there is currently a problem with preferences not loading correctly
bewteeen the API and apps
=====================================================================
<?xml version="1.0"?>
<!-- $Id: phpgw_js_menu.xsl,v 1.1.2.1 2004/05/01 00:10:12 jengo Exp $ -->
<!-- $Source: /cvsroot/phpgroupware/api/skins/default/Attic/phpgw_js_menu.xsl,v
$ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output indent="yes"/>
<xsl:variable name="baseurl" select="/PHPGW/API/baseurl"/>
<xsl:variable name="basepath" select="/PHPGW/API/basepath"/>
<xsl:variable name="api_image_path"><xsl:value-of
select="/PHPGW/API/basepath"/>/api/skins/<xsl:value-of
select="/PHPGW/API/prefs/api.skin" />/images</xsl:variable>
<xsl:variable name="app_image_path"><xsl:value-of
select="/PHPGW/API/basepath"/>/<xsl:value-of select="/PHPGW/API/op/appname"
/>/skins/<xsl:value-of select="/PHPGW/API/prefs/api.skin"
/>/images</xsl:variable>
<xsl:template match="/">
<html>
<head>
<title>phpGroupWare</title>
<xsl:for-each select="/PHPGW/API/css_list/css_list_item">
<link rel="stylesheet" type="text/css"
href="{$basepath}/{app}/skins/default/{file}.css"/>
</xsl:for-each>
<link rel="icon" href="favicon.ico" type="image/x-ico" />
<link rel="shortcut icon" href="favicon.ico" />
<script>
function autoshowhidediv(divid){
if(document.getElementById(divid).style.visibility == 'hidden'){
showdiv(divid);
} else {
hidediv(divid);
}
}
function showdiv(divid){
document.getElementById(divid).style.display =
'block';
document.getElementById(divid).style.visibility
= 'visible';
}
function hidediv(divid){
document.getElementById(divid).style.display =
'none';
document.getElementById(divid).style.visibility
= 'hidden';
}
</script>
</head>
<body bgcolor="#e5e5e5">
<div style="position:absolute; left:4; top:4; bottom:0; padding:0;
width:98%; height:99%;">
<table class="box" height="90%" cellSpacing="0" cellPadding="1"
width="100%" bgcolor="#ffffff" border="0">
<tr>
<td vAlign="top">
<table cellSpacing="0" cellPadding="0" width="100%"
bgcolor="#ffffff" border="0">
<tr>
<td width="185" rowspan="2"
align="center" vAlign="top" class="toppannel"><a
href="http://www.phpgroupware.org/" target="_blank"><img border="0"
title="www.phpGroupWare.org"><xsl:attribute name="src"><xsl:value-of
select="$api_image_path" />/logo.png</xsl:attribute></img></a></td>
<td colspan="2" valign="top"
style="background-repeat: repeat-x;"><xsl:attribute
name="background"><xsl:value-of select="$api_image_path"
/>/panel.png</xsl:attribute>
<table width="100%" border="0"
cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="background-repeat:
repeat-x;"><xsl:attribute name="background"><xsl:value-of
select="$api_image_path" />/panel.png</xsl:attribute>
<tr valign="center">
<td
width="1%"> </td>
<xsl:if
test="count(/PHPGW/API/apps/apps_item) = 0"><td align="center" width="10%"
height="60"> </td></xsl:if>
<xsl:for-each select="/PHPGW/API/apps/apps_item[name != 'api']">
<xsl:choose>
<xsl:when test="/PHPGW/API/form_lock = 1">
<td align="center" width="10%"><img height="60"
border="0"><xsl:attribute name="src"><xsl:value-of select="$basepath"
/>/<xsl:value-of select="icon" /></xsl:attribute></img></td>
</xsl:when>
<xsl:otherwise>
<td align="center" width="10%"><a
href="{$baseurl}&op={name}.base.start"><img height="60"
border="0"><xsl:attribute name="src"><xsl:value-of select="$basepath"
/>/<xsl:value-of select="name" />/skins/<xsl:value-of
select="/PHPGW/API/prefs/api.skin"
/>/images/icon.png</xsl:attribute></img></a></td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<td
width="*"> </td>
</tr>
<tr valign="top"
bgcolor="#FFFFFF">
<td
width="1%"> </td>
<xsl:if
test="count(/PHPGW/API/apps/apps_item) = 0"><td align="center"
class="mainnote"> </td></xsl:if>
<xsl:for-each select="/PHPGW/API/apps/apps_item[name != 'api']">
<xsl:choose>
<xsl:when test="/PHPGW/API/form_lock = 1">
<td align="center" class="mainnote"><xsl:value-of
select="title" /></td>
</xsl:when>
<xsl:otherwise>
<td align="center" class="mainnote"><a
href="{$baseurl}&op={name}.base.start"><xsl:value-of select="title"
/></a></td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<td width="*"
colspan="100"> </td>
</tr>
</table>
</td>
<td width="15" rowspan="2" vAlign="top"
class="toppannel"> </td>
</tr>
<xsl:if test="count(/PHPGW/API/apps/apps_item)
> 0">
<tr>
<td align="left" vAlign="top"
class="mainnote">
<xsl:for-each
select="/PHPGW/API/op_history/op_history_item">
<xsl:variable name="op"
select="op" />
<xsl:variable
name="title" select="title" />
<xsl:choose>
<xsl:when
test="/PHPGW/API/form_lock = 1">
<b><xsl:value-of select="$title" /></b>
</xsl:when>
<xsl:otherwise>
<b><a
href="{$baseurl}&op=api.statecache.restore&position_id={position}"><xsl:value-of
select="$title" /></a></b>
</xsl:otherwise>
</xsl:choose>
<xsl:if
test="position() != count(/PHPGW/API/op_history/op_history_item)">
 / 
</xsl:if>
</xsl:for-each>
</td>
<td align="right" vAlign="top"
class="mainnote"><b><xsl:value-of select="/PHPGW/API/user/fullname"/></b></td>
</tr>
<tr>
<td colspan="3" align="right"
vAlign="top" class="mainnote"><xsl:value-of select="/PHPGW/API/currentdate"
/><!-- current_users --></td>
</tr>
</xsl:if>
</table>
<table cellSpacing="0" cellPadding="0" width="100%"
border="0">
<tr vAlign="top">
<td width="5"> </td>
<td width="2"> </td>
<td valign="top">
<table border="0"
cellSpacing="0" cellPadding="0" width="99%">
<tr>
<td>
<!--<xsl:apply-templates select="PHPGW/API/hooks/hooks_item" />-->
<xsl:choose>
<xsl:when test="PHPGW/APP != '' or /PHPGW/APPHTML">
<form method="POST" name="phpgw_form" action="{/PHPGW/API/baseurl}">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td vAlign="top" height="100%">
<table cellSpacing="0" cellPadding="0"
width="100%" border="0"><tr align="left">
<xsl:if
test="count(/PHPGW/API/apps/apps_item) > 0">
<td align="left" width="1%">
<div
onMouseover="javascript:showdiv('apimenu{position()}');"
onMouseout="javascript:hidediv('apimenu{position()}');">
<table class="sidebox"
cellSpacing="1" cellPadding="0" width="100%" border="0">
<tr>
<td
class="sideboxtitle" align="center" height="28"><a onMouseOver="" onMouseout=""
onClick="javascript:autoshowhidediv('apimenu{position()}');"><xsl:value-of
select="/PHPGW/address@hidden'General Menu']"/></a></td>
</tr>
<tr>
<td>
<div
id="apimenu{position()}" style="float:left; width:150px;position: absolute;
visibility: hidden;">
<table
class="sideboxcontent" bgColor="#efefef" cellSpacing="0" cellPadding="0"
width="100%" border="0" valign="top">
<xsl:for-each select="/PHPGW/API/apimenu/apimenu_item">
<xsl:variable name="op" select="op" />
<tr>
<td vAlign="top" align="center"><font
color="#ff9933">*</font></td>
<xsl:choose>
<xsl:when test="/PHPGW/API/form_lock = 1">
<td width="100%" height="20" align="left"
vAlign="top"><font class="fake_link"><xsl:value-of select="title" /></font></td>
</xsl:when>
<xsl:otherwise>
<td width="100%" height="20" align="left"
vAlign="top"><a href="{$baseurl}&op={$op}"><xsl:value-of select="title"
/></a></td>
</xsl:otherwise>
</xsl:choose>
</tr>
</xsl:for-each>
</table>
</div>
</td>
</tr>
</table>
</div>
</td>
<xsl:for-each
select="/PHPGW/API/appmenus/appmenus_item">
<td align="left" width="1%">
<div
onMouseover="javascript:showdiv('appmenu{position()}');"
onMouseout="javascript:hidediv('appmenu{position()}');">
<table class="sidebox"
cellSpacing="1" cellPadding="0" width="100%" border="0">
<tr>
<td
class="sideboxtitle" align="center" height="28"><a onMouseOver="" onMouseout=""
onClick="javascript:autoshowhidediv('appmenu{position()}');"><xsl:value-of
select="title"/></a></td>
</tr>
<tr>
<td>
<div
id="appmenu{position()}" style="float:left; width:150px;position: absolute;
visibility: hidden;">
<table
class="sideboxcontent" bgColor="#efefef" cellSpacing="0" cellPadding="0"
width="100%" border="0" valign="top">
<xsl:for-each select="links/links_item">
<tr>
<td vAlign="top" align="center"><font
color="#ff9933">*</font></td>
<xsl:choose>
<xsl:when test="/PHPGW/API/form_lock = 1">
<td width="100%" height="20"
align="left" vAlign="top"><font class="fake_link"><xsl:value-of select="title"
/></font></td>
</xsl:when>
<xsl:otherwise>
<td width="100%" height="20"
align="left" vAlign="top"><a href="{$baseurl}&op={op}"><xsl:value-of
select="title" /></a></td>
</xsl:otherwise>
</xsl:choose>
</tr>
</xsl:for-each>
</table>
</div>
</td>
</tr>
</table>
</div>
</td>
</xsl:for-each>
</xsl:if>
<td width="99%"></td></tr></table>
</td>
</tr>
<tr>
<td vAlign="top" height="100%">
<table align="center" class="box"
cellSpacing="1" cellPadding="0" width="100%" border="0">
<tr>
<td height="23"
colSpan="2" align="center" class="articletitle">
<table
border="0" align="center" width="100%">
<tr>
<td align="left" width="5%">
<xsl:if test="/PHPGW/API/form_lock = 1">
<input type="image" name="op" value="api.statecache.clear"
src="{$api_image_path}/clear.png" />
</xsl:if>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="/PHPGW/API/title">
<xsl:value-of select="/PHPGW/API/title"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="app"
select="/PHPGW/API/op/appname"/>
<xsl:value-of
select="/PHPGW/API/apps/apps_item[name=$app]/title"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="/PHPGW/API/subtitle"> - <xsl:value-of
select="/PHPGW/API/subtitle"/></xsl:if>
</td>
<td align="right" width="5%">
<xsl:if test="/PHPGW/API/form_lock = 1">
<input type="image" name="op" value="api.statecache.minimize"
src="{$api_image_path}/min.png" /></xsl:if>
<xsl:if test="count(/PHPGW/API/op_history/op_history_item) != 1">
<input type="image" name="op" value="api.statecache.close"
src="{$api_image_path}/close.png" />
<input type="hidden" name="position_id"
value="{/PHPGW/API/current_history_position}" />
</xsl:if>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td height="20"
colSpan="2" bgColor="#efefef" class="mainnote">
<xsl:apply-templates select="PHPGW/API/msgbox" />
<xsl:choose>
<xsl:when test="/PHPGW/APPHTML">
<xsl:value-of disable-output-escaping="yes" select="/PHPGW/APPHTML" />
</xsl:when>
<xsl:otherwise>
<br />
<xsl:apply-templates select="PHPGW/APP" />
<br />
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="PHPGW/API/msgbox" />
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p/> <p/>
</td>
</tr>
</table>
<p align="center" class="copyright">Powered by <a
href="http://www.phpgroupware.org/" target="_new">phpGroupWare</a> version
1.9.0</p>
</div>
</body>
</html>
</xsl:template>
<!--
<xsl:template name="inside_app_box">
<xsl:param name="title" select="''" />
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td vAlign="top" height="100%">
<table align="center" class="box"
cellSpacing="1" cellPadding="0" width="100%" border="0">
<tr>
<td height="23" colSpan="2"
align="center" class="articletitle">
<table border="0"
align="center" width="100%">
<tr>
<td
align="center">
<xsl:choose>
<xsl:when test="/PHPGW/API/title">
<xsl:value-of select="/PHPGW/API/title"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="app" select="/PHPGW/API/op/appname"/>
<xsl:value-of
select="/PHPGW/API/apps/apps_item[name=$app]/title"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="/PHPGW/API/subtitle"> - <xsl:value-of
select="/PHPGW/API/subtitle"/></xsl:if>
</td>
<td
align="right" width="5%">
<input type="image" name="op" value="api.statecache.pause"
src="{$api_image_path}/min.png" /> <input type="image" name="op"
value="api.statecache.cancel" src="{$api_image_path}/close.png" />
</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td height="20" colSpan="2"
bgColor="#efefef" class="mainnote">
<xsl:apply-templates
select="PHPGW/API/msgbox" />
<xsl:choose>
<xsl:when
test="/PHPGW/APPHTML">
<xsl:value-of disable-output-escaping="yes" select="/PHPGW/APPHTML" />
</xsl:when>
<xsl:otherwise>
<br />
<xsl:apply-templates select="PHPGW/APP" />
<br />
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:template>
-->
<xsl:template match="hooks_item">
</xsl:template>
</xsl:stylesheet>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/skins/default/phpgw_js_menu.xsl, 1.1.2.1,
nomail <=