[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/templates/default accounts_popup.xsl, NONE,
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] phpgwapi/templates/default accounts_popup.xsl, NONE, 1.1 phpgw_header.xsl, 1.7, 1.8 |
Date: |
Thu, 06 Nov 2003 17:19:18 +0000 |
Update of /cvsroot/phpgroupware/phpgwapi/templates/default
In directory subversions:/tmp/cvs-serv4095
Modified Files:
phpgw_header.xsl
Added Files:
accounts_popup.xsl
Log Message:
accounts_popup port to head
--- NEW FILE: accounts_popup.xsl ---
<!-- $Id: accounts_popup.xsl,v 1.1 2003/11/06 17:19:14 ceb Exp $ -->
<xsl:template name="accounts_popup">
<xsl:apply-templates select="list"/>
</xsl:template>
<xsl:template match="list">
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td colspan="4" width="100%">
<xsl:call-template name="nextmatchs"/>
<!-- <xsl:with-param
name="nextmatchs_params"/>
</xsl:call-template> -->
</td>
</tr>
<tr>
<td colspan="4" align="right">
<xsl:call-template name="search_field"/>
</td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:apply-templates select="table_header"/>
</table>
</xsl:template>
<xsl:template match="table_header">
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr class="th">
<td valign="top" width="20%">
<table border="0" width="100%"
cellpadding="2" cellspacing="2">
<tr class="th">
<td colspan="2"
align="center"><xsl:value-of select="lang_groups"/></td>
</tr>
<!-- BEGIN withperm_intro -->
<tr class="th">
<td
colspan="2"><xsl:value-of select="lang_perm"/></td>
</tr>
<!-- END withperm_intro -->
<!-- BEGIN group_select -->
<xsl:choose>
<xsl:when
test="group_select != ''">
<xsl:apply-templates select="user_groups"/>
</xsl:when>
</xsl:choose>
<!-- END group_select -->
<!-- BEGIN group_other -->
<xsl:choose>
<xsl:when
test="group_other != ''">
<xsl:variable
name="link_user_group" select="link_user_group"/>
<tr>
<td><a
href="{$link_user_group}"><xsl:value-of select="name_user_group"/></a></td>
</tr>
</xsl:when>
</xsl:choose>
<!-- END group_other -->
<!-- BEGIN withoutperm_intro -->
<xsl:choose>
<xsl:when
test="withoutperm ='yes'">
<tr height="5">
<td> </td>
</tr>
<tr>
<td
colspan="2"><xsl:value-of select="lang_nonperm"/></td>
</tr>
</xsl:when>
</xsl:choose>
<!-- END withoutperm_intro -->
<!-- BEGIN group_all -->
<xsl:choose>
<xsl:when
test="withoutperm = 'yes'">
<xsl:apply-templates select="all_groups"/>
</xsl:when>
</xsl:choose>
<!-- END group_all -->
</table>
</td>
<td width="80%" valign="top">
<table border="0" width="100%"
cellpadding="2" cellspacing="2">
<tr class="th">
<td width="100%"
align="center" colspan="4"><xsl:value-of select="lang_accounts"/></td>
</tr>
<tr class="th">
<xsl:variable
name="sort_lid" select="sort_lid"/>
<xsl:variable
name="sort_firstname" select="sort_firstname"/>
<xsl:variable
name="sort_lastname" select="sort_lastname"/>
<td width="30%"
align="center"><a href="{$sort_lid}"><xsl:value-of select="lang_lid"/></a></td>
<td width="30%"
align="center"><a href="{$sort_firstname}"><xsl:value-of
select="lang_firstname"/></a></td>
<td width="30%"
align="center"><a href="{$sort_lastname}"><xsl:value-of
select="lang_lastname"/></a></td>
<td
width="10%"> </td>
</tr>
<xsl:apply-templates
select="values"/>
</table>
</td>
</tr>
<xsl:apply-templates select="table_close"/>
</table>
</xsl:template>
<xsl:template match="user_groups">
<xsl:variable
name="link_user_group" select="link_user_group"/>
<xsl:variable
name="img" select="img"/>
<xsl:variable
name="js_function" select="js_function"/>
<xsl:variable
name="lang_select_group" select="lang_select_group"/>
<xsl:variable
name="accountid" select="accountid"/>
<xsl:variable
name="account_display" select="account_display"/>
<tr>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="@class">
<xsl:value-of select="@class"/>
</xsl:when>
<xsl:when test="position() mod 2 = 0">
<xsl:text>row_off</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>row_on</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<td><a
href="{$link_user_group}"><xsl:value-of select="name_user_group"/></a></td>
<td
align="center">
<form>
<input type="hidden" name="hidden" value="{$accountid}"/>
<input type="hidden" name="hidden" value="{$account_display}"/>
<input type="image" src="{$img}" onClick="{$js_function}(this.form);
return false;" name="{$lang_select_group}" title="{$lang_select_group}"/>
</form>
</td>
</tr>
</xsl:template>
<xsl:template match="all_groups">
<xsl:variable
name="link_all_group" select="link_all_group"/>
<tr>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="@class">
<xsl:value-of select="@class"/>
</xsl:when>
<xsl:when test="position() mod 2 = 0">
<xsl:text>row_off</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>row_on</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<td
colspan="2"><a href="{$link_all_group}"><xsl:value-of
select="name_all_group"/></a></td>
</tr>
</xsl:template>
<xsl:template match="values">
<tr>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="@class">
<xsl:value-of select="@class"/>
</xsl:when>
<xsl:when test="position() mod 2 = 0">
<xsl:text>row_off</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>row_on</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<td><xsl:value-of select="lid"/></td>
<td><xsl:value-of select="firstname"/></td>
<td><xsl:value-of select="lastname"/></td>
<form>
<xsl:variable name="accountid"
select="accountid"/>
<xsl:variable name="account_display"
select="account_display"/>
<xsl:variable name="img" select="img"/>
<xsl:variable name="js_function"
select="js_function"/>
<xsl:variable name="lang_select_user"
select="lang_select_user"/>
<input type="hidden" name="hidden"
value="{$accountid}"/>
<input type="hidden" name="hidden"
value="{$account_display}"/>
<td align="center">
<input type="image" src="{$img}"
onClick="{$js_function}(this.form); return false;" name="{$lang_select_user}"
title="{$lang_select_user}"/>
</td>
</form>
</tr>
</xsl:template>
<xsl:template match="table_close">
<tr height="50">
<td valign="bottom" colspan="4" align="center">
<xsl:variable name="lang_close"
select="lang_close"/>
<xsl:variable name="start"
select="start"/>
<xsl:variable name="sort"
select="sort"/>
<xsl:variable name="order"
select="order"/>
<xsl:variable name="query"
select="query"/>
<xsl:variable name="group_id"
select="group_id"/>
<form>
<input type="hidden"
name="start" value="{$start}"/>
<input type="hidden"
name="sort" value="{$sort}"/>
<input type="hidden"
name="order" value="{$order}"/>
<input type="hidden"
name="query" value="{$query}"/>
<input type="hidden"
name="group_id" value="{$group_id}"/>
<input type="button"
name="close" value="{$lang_close}" onClick="window.close()"/>
</form>
</td>
</tr>
</xsl:template>
Index: phpgw_header.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/templates/default/phpgw_header.xsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** phpgw_header.xsl 27 Apr 2003 19:27:43 -0000 1.7
--- phpgw_header.xsl 6 Nov 2003 17:19:14 -0000 1.8
***************
*** 17,20 ****
--- 17,50 ----
<link rel="stylesheet" type="text/css"
href="{$phpgw_css_file}"/>
<link rel="stylesheet" type="text/css"
href="{$theme_css_file}"/>
+ <xsl:choose>
+ <xsl:when test="app_java_script != ''">
+ <script type="text/javascript"
language="javascript">
+ <xsl:value-of
disable-output-escaping="yes" select="app_java_script"/>
+ </script>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="app_java_script_url !=
''">
+ <xsl:variable
name="app_java_script_url" select="app_java_script_url"/>
+ <script type="text/javascript"
language="javascript"
src="{$webserver_url}/{$current_app}/templates/{$app_java_script_url}"></script>
+ </xsl:when>
+ </xsl:choose>
+ <link rel="stylesheet" type="text/css"
href="{$phpgw_css_file}"/>
+ <link rel="stylesheet" type="text/css"
href="{$theme_css_file}"/>
+ <xsl:choose>
+ <xsl:when test="app_css != ''">
+ <style type="text/css">
+
<xsl:text><!--</xsl:text>
+ <xsl:value-of
disable-output-escaping="yes" select="app_css"/>
+
<xsl:text>--></xsl:text>
+ </style>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="app_css_url != ''">
+ <xsl:variable
name="app_css_url" select="app_css_url"/>
+ <link rel="stylesheet"
type="text/css"
href="{$webserver_url}/{$current_app}/templates/{$app_css_url}"/>
+ </xsl:when>
+ </xsl:choose>
</head>
<body>
***************
*** 39,43 ****
<xsl:choose>
<xsl:when
test="$app_tpl != ''">
!
<xsl:call-template name="app_data"/>
</xsl:when>
<xsl:otherwise>
--- 69,80 ----
<xsl:choose>
<xsl:when
test="$app_tpl != ''">
!
<xsl:choose>
!
<xsl:when test="$app_tpl = 'accounts_popup'">
!
<xsl:call-template name="accounts_popup"/>
!
</xsl:when>
!
<xsl:otherwise>
!
<xsl:call-template name="app_data"/>
!
</xsl:otherwise>
!
</xsl:choose>
</xsl:when>
<xsl:otherwise>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/templates/default accounts_popup.xsl, NONE, 1.1 phpgw_header.xsl, 1.7, 1.8,
Bettina Gille <address@hidden> <=