phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/skins/default setup.xsl, 1.1.1.1.2.8, 1.1.1.1.2.9


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] api/skins/default setup.xsl, 1.1.1.1.2.8, 1.1.1.1.2.9 widgets.xsl, 1.1.1.1.2.14, 1.1.1.1.2.15
Date: Mon, 01 Dec 2003 06:17:44 +0000

Update of /cvsroot/phpgroupware/api/skins/default
In directory subversions:/tmp/cvs-serv19701/skins/default

Modified Files:
      Tag: proposal-branch
        setup.xsl widgets.xsl 
Log Message:
- Re-wrote the tabs widget, its more powered by PHP right now.  Chances are, 
this will change once I find a way to pass an array to a XSLT function.
  Also, these tabs are NOT for this template set anyway.  I created one that 
will work better for this layout, but doesn't presently work in IE.
  These tabs are for the Verdilak layout, once its ported over.
- Fixed layout a bit (Setup is going to be totally redone in the future)


Index: widgets.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/api/skins/default/widgets.xsl,v
retrieving revision 1.1.1.1.2.14
retrieving revision 1.1.1.1.2.15
diff -C2 -d -r1.1.1.1.2.14 -r1.1.1.1.2.15
*** widgets.xsl 1 Dec 2003 02:11:23 -0000       1.1.1.1.2.14
--- widgets.xsl 1 Dec 2003 06:17:42 -0000       1.1.1.1.2.15
***************
*** 116,174 ****
  </xsl:template>
  
! <xsl:template name="widget_tab_start">
!       <xsl:param name="value"/>
!       <xsl:param name="current"/>
  
!       <xsl:choose>
!               <xsl:when test="$value = $current"><td align="right"><img 
src="api/skins/default/images/tabs-start1.png"/></td></xsl:when>
!               <xsl:otherwise><td align="right"><img 
src="api/skins/default/images/tabs-start0.png"/></td></xsl:otherwise>
!       </xsl:choose>
! </xsl:template>
  
! <xsl:template name="widget_tab">
!       <xsl:param name="name"/>
!       <xsl:param name="title"/>
!       <xsl:param name="op"/>
!       <xsl:param name="value" select="$title"/>
!       <xsl:param name="current"/>
  
!       <td align="left"><img 
src="api/skins/default/images/tabs-sepm.png"/></td>
!       <xsl:choose>
!               <xsl:when test="$value = $current">
!                       <td align="left" 
background="api/skins/default/images/tabs-bg1.png"><b><a 
href="{$baseurl}&amp;op={$op}&amp;{$name}={$value}" 
class="tablink"><xsl:value-of select="$title"/></a></b></td>
!               </xsl:when>
!               <xsl:otherwise>
!                       <td align="left" 
background="api/skins/default/images/tabs-bg0.png"><b><a 
href="{$baseurl}&amp;op={$op}&amp;{$name}={$value}" 
class="tablink"><xsl:value-of select="$title"/></a></b></td>
!               </xsl:otherwise>
!       </xsl:choose>
! </xsl:template>
! <!--
  
! <table border="0" cellspacing="0" cellpadding="0">
!       <tr>
!               <td align="right"><img 
src="/phpgroupware/phpgwapi/templates/idots/images/tabs-start1.png"/></td>
!               <td align="left" 
background="/phpgroupware/phpgwapi/templates/idots/images/tabs-bg1.png">
!                       <b><a 
href="/phpgroupware/preferences/preferences.php?appname=preference13bb046a8" 
class="tablink">Your Preferences</a></b>
!               </td>
!               <td align="left"><img 
src="/phpgroupware/phpgwapi/templates/idots/images/tabs-sepr.png"/></td>
!               <td align="left" 
background="/phpgroupware/phpgwapi/templates/idots/images/tabs-bg0.png">
!                       <b><a 
href="/phpgroupware/preferences/preferences.php?appnam13bb046a8" 
class="tablink">Default Preferences</a></b>
!               </td>
!               <td align="left"><img 
src="/phpgroupware/phpgwapi/templates/idots/images/tabs-sepm.png"/></td>
!               <td align="left" 
background="/phpgroupware/phpgwapi/templates/idots/images/tabs-bg0.png">
!                       <b><a href="/phpgroupware/preferences046a8" 
class="tablink">Forced Preferences</a></b>
!               </td>
!               <td align="left"><img 
src="/phpgroupware/phpgwapi/templates/idots/images/tabs-end0.png"/></td>
! </table>
! -->
  
! <xsl:template name="widget_tab_end">
!       <xsl:param name="value" />
!       <xsl:param name="current" />
  
!       <xsl:choose>
!               <xsl:when test="$value = $current"><td align="right"><img 
src="api/skins/default/images/tabs-end1.png"/></td></xsl:when>
!               <xsl:otherwise><td align="right"><img 
src="api/skins/default/images/tabs-end0.png"/></td></xsl:otherwise>
!       </xsl:choose>
  </xsl:template>
  
--- 116,179 ----
  </xsl:template>
  
! <xsl:template name="tab_widget">
!       <xsl:param name="values" />
!       
!       <table border="0" cellspacing="0" cellpadding="0">
!               <tr>
!                       <xsl:for-each select="$values/tab_widget_item">
!                               <xsl:if test="position() = 1">
!                                       <xsl:choose>
!                                               <xsl:when test="current = 
1"><td align="right"><img 
src="api/skins/default/images/tabs-start1.png"/></td></xsl:when>
!                                               <xsl:otherwise><td 
align="right"><img 
src="api/skins/default/images/tabs-start0.png"/></td></xsl:otherwise>
!                                       </xsl:choose>
  
!                               </xsl:if>
  
!                               <xsl:choose>
!                                       <xsl:when test="current = 1">
!                                               <td align="left" 
background="api/skins/default/images/tabs-bg1.png"><b><a 
href="{$baseurl}&amp;op={op}" class="tablink"><xsl:value-of 
select="title"/></a></b></td>
!                                       </xsl:when>
!                                       <xsl:otherwise>
!                                               <td align="left" 
background="api/skins/default/images/tabs-bg0.png"><b><a 
href="{$baseurl}&amp;op={op}" class="tablink"><xsl:value-of 
select="title"/></a></b></td>
!                                       </xsl:otherwise>
!                               </xsl:choose>
  
!                               <!-- Test these as a string, or the results are 
very very fscking strange -->
!                               <xsl:if test="position() != 
count($values/tab_widget_item)">
!                                       <xsl:variable name="c" 
select="string(current)" />
!                                       <xsl:variable name="n" 
select="string(following::tab_widget_item/current[position() = 1])" />
  
!                                       <xsl:if test="$c = '0'">
!                                               <xsl:choose>
!                                                       <xsl:when test="$n = 
'1'">
!                                                               <td 
align="right"><img src="api/skins/default/images/tabs-sepl.png"/></td>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <td 
align="right"><img src="api/skins/default/images/tabs-sepm.png"/></td>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                       </xsl:if>
  
!                                       <xsl:if test="$c = '1'">
!                                               <xsl:choose>
!                                                       <xsl:when test="$n = 
'1'">
!                                                               <td 
align="right"><img src="api/skins/default/images/tabs-sepl.png"/></td>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <td 
align="right"><img src="api/skins/default/images/tabs-sepr.png"/></td>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                       </xsl:if>
!                               </xsl:if>
  
!                               <xsl:if test="position() = 
count($values/tab_widget_item)">
!                                       <xsl:choose>
!                                               <xsl:when test="current = 
1"><td align="right"><img 
src="api/skins/default/images/tabs-end1.png"/></td></xsl:when>
!                                               <xsl:otherwise><td 
align="right"><img 
src="api/skins/default/images/tabs-end0.png"/></td></xsl:otherwise>
!                                       </xsl:choose>
!                               </xsl:if>
!                       </xsl:for-each>
!               </tr>
!       </table>
  </xsl:template>
  

Index: setup.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/api/skins/default/setup.xsl,v
retrieving revision 1.1.1.1.2.8
retrieving revision 1.1.1.1.2.9
diff -C2 -d -r1.1.1.1.2.8 -r1.1.1.1.2.9
*** setup.xsl   24 Oct 2003 06:52:54 -0000      1.1.1.1.2.8
--- setup.xsl   1 Dec 2003 06:17:42 -0000       1.1.1.1.2.9
***************
*** 11,54 ****
                        <tr>
                                <td>
!                                       <table border="0" cellspacing="0" 
cellpadding="0"><tr>
!                                       <xsl:call-template 
name="widget_tab_start">
!                                               <xsl:with-param name="value" 
select="'1'"/>
!                                               <xsl:with-param name="current" 
select="stage"/>
!                                       </xsl:call-template>
!                                       <xsl:call-template name="widget_tab">
!                                               <xsl:with-param name="name" 
select="'stage'"/>
!                                               <xsl:with-param name="value" 
select="'1'"/>
!                                               <xsl:with-param name="title" 
select="'Config File'"/>
!                                               <xsl:with-param name="op" 
select="'api.setup.start'"/>
!                                               <xsl:with-param name="current" 
select="stage"/>
!                                       </xsl:call-template>
!                                       <xsl:call-template name="widget_tab">
!                                               <xsl:with-param name="name" 
select="'stage'"/>
!                                               <xsl:with-param name="value" 
select="'2'"/>
!                                               <xsl:with-param name="title" 
select="'Applications'"/>
!                                               <xsl:with-param name="op" 
select="'api.setup.start'"/>
!                                               <xsl:with-param name="current" 
select="stage"/>
!                                       </xsl:call-template>
!                                       <xsl:call-template name="widget_tab">
!                                               <xsl:with-param name="name" 
select="'stage'"/>
!                                               <xsl:with-param name="value" 
select="'3'"/>
!                                               <xsl:with-param name="title" 
select="'Configuration'"/>
!                                               <xsl:with-param name="op" 
select="'api.setup.start'"/>
!                                               <xsl:with-param name="current" 
select="stage"/>
!                                       </xsl:call-template>
!                                       <xsl:call-template name="widget_tab">
!                                               <xsl:with-param name="name" 
select="'stage'"/>
!                                               <xsl:with-param name="value" 
select="'4'"/>
!                                               <xsl:with-param name="title" 
select="'Initial Accounts'"/>
!                                               <xsl:with-param name="op" 
select="'api.setup.start'"/>
!                                               <xsl:with-param name="current" 
select="stage"/>
!                                       </xsl:call-template>
!                                       <xsl:call-template 
name="widget_tab_end">
!                                               <xsl:with-param name="value" 
select="'4'"/>
!                                               <xsl:with-param name="current" 
select="stage"/>
!                                       </xsl:call-template>
!                                       </tr></table>
                                </td>
                        </tr>
                        <tr>
                                <td>
--- 11,21 ----
                        <tr>
                                <td>
!                                       <xsl:call-template name="tab_widget">
!                                               <xsl:with-param name="values" 
select="tab_widget" />
!                                       </xsl:call-template>    
                                </td>
                        </tr>
+               </table>
+               <table border="0" width="90%" cellspacing="0" cellpadding="0" 
class="normalbox">
                        <tr>
                                <td>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]