[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/skins/default widgets.xsl, 1.1.1.1.2.7, 1.1.1.1.2
From: |
Joseph Engo <address@hidden> |
Subject: |
[Phpgroupware-cvs] api/skins/default widgets.xsl, 1.1.1.1.2.7, 1.1.1.1.2.8 |
Date: |
Tue, 28 Oct 2003 10:13:32 +0000 |
Update of /cvsroot/phpgroupware/api/skins/default
In directory subversions:/tmp/cvs-serv15056/api/skins/default
Modified Files:
Tag: proposal-branch
widgets.xsl
Log Message:
Started working on the preferences interface, its not fully working it
currently only displays the static values
It doesn't save or read the users preferences yet
Index: widgets.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/api/skins/default/widgets.xsl,v
retrieving revision 1.1.1.1.2.7
retrieving revision 1.1.1.1.2.8
diff -C2 -d -r1.1.1.1.2.7 -r1.1.1.1.2.8
*** widgets.xsl 27 Oct 2003 08:54:09 -0000 1.1.1.1.2.7
--- widgets.xsl 28 Oct 2003 10:13:29 -0000 1.1.1.1.2.8
***************
*** 166,169 ****
--- 166,291 ----
</xsl:choose>
</xsl:template>
+
+ <xsl:template match="pref_widget">
+ <br />
+ <form method="POST">
+ <input type="hidden" name="form_submit" value="True" />
+
+ <table class="normalbox" cellSpacing="1" cellPadding="0" width="50%"
border="0">
+ <tr>
+ <td class="sideboxtitle" align="center" height="28"
width="100%">Preferences</td>
+ </tr>
+ <tr>
+ <td class="sideboxcontent" bgColor="#efefef">
+ <table class="sideboxtext" cellSpacing="1"
cellPadding="1" width="80%" border="0" valign="top" align="center">
+ <xsl:for-each select="pref_widget_item">
+ <xsl:choose>
+ <xsl:when test="type =
'checkbox'">
+
<xsl:call-template name="checkbox">
+
<xsl:with-param name="name" select="name" />
+
<xsl:with-param name="value" select="value" />
+
<xsl:with-param name="label" select="label" />
+
<xsl:with-param name="checked" select="checked" />
+
</xsl:call-template>
+ </xsl:when>
+
+ <xsl:when test="type =
'inputbox'">
+
<xsl:call-template name="inputbox">
+
<xsl:with-param name="name" select="name" />
+
<xsl:with-param name="value" select="value" />
+
<xsl:with-param name="label" select="label" />
+
</xsl:call-template>
+ </xsl:when>
+
+ <xsl:when test="type =
'selectbox'">
+
<xsl:call-template name="selectbox">
+
<xsl:with-param name="name" select="name" />
+
<xsl:with-param name="label" select="label" />
+
<xsl:with-param name="values" select="values" />
+
<xsl:with-param name="multiple" select="multiple" />
+
<xsl:with-param name="size" select="size" />
+
</xsl:call-template>
+ </xsl:when>
+
+ <xsl:otherwise>
+ Unknown type -
<xsl:value-of select="type" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ <tr>
+ <td colspan="2"> </td>
+ </tr>
+ <tr>
+ <td align="left"><input
type="image" name="op" src="{$api_image_path}/cancel.png"
value="api.base.start" alt="Cancel" title="Cancel" /></td>
+ <td align="right"><input
type="image" name="op" src="{$api_image_path}/save.png" value="api.base.prefs"
alt="Create" title="Create" /></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </xsl:template>
+
+ <xsl:template name="checkbox">
+ <xsl:param name="name" />
+ <xsl:param name="value" />
+ <xsl:param name="label" />
+ <xsl:param name="checked" />
+
+ <tr>
+ <td valign="top"><xsl:value-of select="$label" />:</td>
+ <xsl:choose>
+ <xsl:when test="$checked = 1">
+ <td align="left"><input type="checkbox" name="{$name}"
value="{$value}" checked="checked" /></td>
+ </xsl:when>
+
+ <xsl:otherwise>
+ <td align="left"><input type="checkbox" name="{$name}"
value="{$value}" /></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ </xsl:template>
+
+ <xsl:template name="inputbox">
+ <xsl:param name="name" />
+ <xsl:param name="value" />
+ <xsl:param name="label" />
+
+ <tr>
+ <td valign="top"><xsl:value-of select="$label" />:</td>
+ <td align="left"><input name="{$name}" value="{$value}" /></td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template name="selectbox">
+ <xsl:param name="name" />
+ <xsl:param name="label" />
+ <xsl:param name="values" />
+ <xsl:param name="multiple" />
+ <xsl:param name="size" select="'5'"/>
+
+ <tr>
+ <td valign="top"><xsl:value-of select="$label" />:</td>
+ <td align="left"><select name="{$name}">
+
+ <xsl:if test="multiple = 1">
+ <xsl:attribute name="multiple">multiple</xsl:attribute>
+ </xsl:if>
+
+ <xsl:for-each select="values/values_item">
+ <xsl:choose>
+ <xsl:when test="selected = 1">
+ <option value="value"
selected="selected"><xsl:value-of select="text" /></option>
+ </xsl:when>
+
+ <xsl:otherwise>
+ <option value="value"><xsl:value-of
select="text" /></option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </select></td>
+ </tr>
+ </xsl:template>
+
<!--
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/skins/default widgets.xsl, 1.1.1.1.2.7, 1.1.1.1.2.8,
Joseph Engo <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] phpgroupware test_xmlrpc.php,NONE,1.1.2.1
- Next by Date:
[Phpgroupware-cvs] api class.account_mgr.php, 1.1.2.7, 1.1.2.8 class.base.php, 1.1.1.1.2.6, 1.1.1.1.2.7 class.phpgw.php, 1.1.1.1.2.11, 1.1.1.1.2.12
- Previous by thread:
[Phpgroupware-cvs] phpgroupware test_xmlrpc.php,NONE,1.1.2.1
- Next by thread:
[Phpgroupware-cvs] api class.account_mgr.php, 1.1.2.7, 1.1.2.8 class.base.php, 1.1.1.1.2.6, 1.1.1.1.2.7 class.phpgw.php, 1.1.1.1.2.11, 1.1.1.1.2.12
- Index(es):