phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] api/skins/default account_mgr.xsl, 1.1.2.10, 1.1.2.11


From: Dan Kuykendall <address@hidden>
Subject: [Phpgroupware-cvs] api/skins/default account_mgr.xsl, 1.1.2.10, 1.1.2.11
Date: Mon, 03 Nov 2003 19:11:33 +0000

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

Modified Files:
      Tag: proposal-branch
        account_mgr.xsl 
Log Message:
added initial statecache class

Index: account_mgr.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/api/skins/default/Attic/account_mgr.xsl,v
retrieving revision 1.1.2.10
retrieving revision 1.1.2.11
diff -C2 -d -r1.1.2.10 -r1.1.2.11
*** account_mgr.xsl     3 Nov 2003 12:16:12 -0000       1.1.2.10
--- account_mgr.xsl     3 Nov 2003 19:11:30 -0000       1.1.2.11
***************
*** 1,261 ****
! <?xml version="1.0"?>
! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
! <xsl:output indent="yes"/>
! <!-- $Id$ -->
! <!-- $Source$ -->
! 
! <xsl:template match="APP/accounts">
!       <br />
!       <table class="normalbox" cellSpacing="0" cellPadding="0" width="80%" 
border="0">
!               <tr> 
!                       <td class="sideboxtitle" align="center" height="28" 
width="100%">
! 
!                               <table border="0" width="100%" cellspacing="0" 
cellpadding="0" class="normalbox_title">
!                                       <tr>
!                                               <td 
width="31%"><b>LoginID</b></td>
!                                               <td width="31%"><b>First 
name</b></td>
!                                               <td width="*"><b>Last 
name</b></td>
!                                               <td width="24">&#160;</td>
!                                               <td width="24">&#160;</td>
!                                       </tr>
!                               </table>
! 
!                       </td>
!               </tr>
!               <tr>
!                       <td class="sideboxcontent" bgColor="#efefef">
!                               <table class="sideboxtext" cellSpacing="0" 
cellPadding="0" width="100%" border="0" valign="top">
!                                       <xsl:for-each select="accounts_item">
!                                       <xsl:variable name="account_id" 
select="account_id" />
!                                       <xsl:variable name="account_lid" 
select="account_lid" />
!                                       <tr class="sideboxtext">
!                                               <xsl:choose>                    
        
!                                                       <xsl:when 
test="position() mod 2 = 1">
!                                                               <xsl:attribute 
name="class">row_on</xsl:attribute>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <xsl:attribute 
name="class">row_off</xsl:attribute>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                               <td width="31%"><font 
color="#000000"><a 
href="{$baseurl}&amp;op=api.account_mgr.view&amp;account_id={$account_id}"><xsl:value-of
 select="account_lid" /></a></font></td>
!                                               <td width="31%"><font 
color="#000000"><xsl:value-of select="account_firstname" /></font></td>
!                                               <td width="*"><font 
color="#000000"><xsl:value-of select="account_lastname" /></font></td>
!                                               <td width="24" 
align="center"><a 
href="{$baseurl}&amp;op=api.account_mgr.edit&amp;account_id={$account_id}"><img 
alt="Edit" title="Edit" src="{$api_image_path}/edit.png" border="0" /></a></td>
!                                               <xsl:choose>
!                                                       <xsl:when 
test="$account_id = /PHPGW/API/user/id or $account_lid = 'anonymous'">
!                                                               <td width="24" 
align="center"><img alt="Delete" title="Delete" 
src="{$api_image_path}/delete_x.png" border="0" /></td>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <td width="24" 
align="center"><a 
href="{$baseurl}&amp;op=api.account_mgr.delete&amp;account_id={$account_id}"><img
 alt="Delete" title="Delete" src="{$api_image_path}/delete.png" border="0" 
/></a></td>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                               </tr>
!                                       </xsl:for-each>
!                               </table>
!                       </td>
!               </tr>
!       </table>
!       <p>&#160;</p>
! </xsl:template>
! 
! <xsl:template match="APP/form_state_values">
! 
! </xsl:template>
! 
! <xsl:template match="APP/add_account">
! 
!       <br />
!       <form method="POST">
!       <input type="hidden" name="create_account_submit" value="True" />
! 
!       <table class="normalbox" cellSpacing="1" cellPadding="0" width="40%" 
border="0">
!               <tr> 
!                       <td class="sideboxtitle" align="center" height="28" 
width="100%">Create new account</td>
!               </tr>
!               <tr>
!                       <td class="sideboxcontent" bgColor="#efefef">
!                               <table class="sideboxtext" cellSpacing="0" 
cellPadding="0" width="100%" border="0" valign="top">
!                                       <tr>
!                                               <td>Login ID:</td>
!                                               <xsl:choose>
!                                                       <xsl:when 
test="count(/PHPGW/APP/form_state_values) > 0">
!                                                               <xsl:variable 
name="account_lid" select="/PHPGW/APP/form_state_values/account_lid" />
!                                                               <td 
align="right"><input name="account_lid" value="{$account_lid}" /></td>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <xsl:variable 
name="account_lid" select="account_lid" />
!                                                               <td 
align="right"><input name="account_lid" value="{$account_lid}" /></td>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                               <td align="right">
!                                               <xsl:if 
test="missing_fields/account_lid = 1">
!                                                       <font 
color="#CC0000">*</font>
!                                               </xsl:if>
!                                               </td>
!                                       </tr>   
!                                       <tr>
!                                               <td>First Name:</td>
!                                               <xsl:choose>
!                                                       <xsl:when 
test="count(/PHPGW/APP/form_state_values) > 0">
!                                                               <xsl:variable 
name="account_firstname" 
select="/PHPGW/APP/form_state_values/account_firstname" />
!                                                               <td 
align="right"><input name="account_firstname" value="{$account_firstname}" 
/></td>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <xsl:variable 
name="account_firstname" select="account_firstname" />
!                                                               <td 
align="right"><input name="account_firstname" value="{$account_firstname}" 
/></td>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                               <td align="right">
!                                               <xsl:if 
test="missing_fields/account_firstname = 1">
!                                                       <font 
color="#CC0000">*</font>
!                                               </xsl:if>
!                                               </td>
!                                       </tr>   
!                                       <tr>
!                                               <td>Last Name:</td>
!                                               <xsl:choose>
!                                                       <xsl:when 
test="count(/PHPGW/APP/form_state_values) > 0">
!                                                               <xsl:variable 
name="account_lastname" select="/PHPGW/APP/form_state_values/account_lastname" 
/>
!                                                               <td 
align="right"><input name="account_lastname" value="{$account_lastname}" /></td>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <xsl:variable 
name="account_lastname" select="account_lastname" />
!                                                               <td 
align="right"><input name="account_lastname" value="{$account_lastname}" /></td>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                               <td align="right">
!                                               <xsl:if 
test="missing_fields/account_lastname = 1">
!                                                       <font 
color="#CC0000">*</font>
!                                               </xsl:if>
!                                               </td>
!                                       </tr>
!                                       <tr>
!                                               <td>Password:</td>
!                                               <xsl:choose>
!                                                       <xsl:when 
test="count(/PHPGW/APP/form_state_values) > 0">
!                                                               <xsl:variable 
name="account_password" select="/PHPGW/APP/form_state_values/account_password" 
/>
!                                                               <td 
align="right"><input type="password" name="account_password" 
value="{$account_password}" /></td>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <xsl:variable 
name="account_password" select="account_password" />
!                                                               <td 
align="right"><input type="password" name="account_password" 
value="{$account_password}" /></td>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                               <td align="right">
!                                               <xsl:if 
test="missing_fields/account_password = 1">
!                                                       <font 
color="#CC0000">*</font>
!                                               </xsl:if>
!                                               </td>
!                                       </tr>
!                                       <tr>
!                                               <td>Re-enter Password:</td>
!                                               <xsl:choose>
!                                                       <xsl:when 
test="count(/PHPGW/APP/form_state_values) > 0">
!                                                               <xsl:variable 
name="account_password_confirm" 
select="/PHPGW/APP/form_state_values/account_password_confirm" />
!                                                               <td 
align="right"><input type="password" name="account_password_confirm" 
value="{$account_password_confirm}" /></td>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <xsl:variable 
name="account_password_confirm" select="account_password_confirm" />
!                                                               <td 
align="right"><input type="password" name="account_password_confirm" 
value="{$account_password_confirm}" /></td>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                               <td align="right">
!                                               <xsl:if 
test="missing_fields/account_password_confirm = 1">
!                                                       <font 
color="#CC0000">*</font>
!                                               </xsl:if>
!                                               </td>
!                                       </tr>
!                                       <tr>
!                                               <td colspan="3">&#160;</td>
!                                       </tr>
!                                       <tr>
!                                               <td colspan="3">
!                                                       <xsl:variable 
name="prevop" select="/PHPGW/API/prevop" />
! 
!                                                       <table width="100%" 
border="0">
!                                                               <td 
align="left" width="24"><input type="image" name="op" 
src="{$api_image_path}/clearform.png" value="api.base.form_clear" alt="Clear 
Form" title="Clear Form" /></td>
!                                                               <td 
align="left" width="24"><input type="image" name="op" 
src="{$api_image_path}/pause.png" value="api.base.form_pause" alt="Place form 
on hold" title="Place form on hold" /></td>
!                                                               <td 
width="*">&#160;</td>
!                                                               <td 
align="right" width="24"><input type="image" name="op" 
src="{$api_image_path}/cancel.png" value="api.admin.start" alt="Cancel" 
title="Cancel" /></td>
!                                                               <td 
align="right" width="24"><input type="image" name="op" 
src="{$api_image_path}/save.png" value="api.account_mgr.create" alt="Create" 
title="Create" /></td>
!                                                       </table>
!                                               </td>
!                                               <td>&#160;</td>
!                                       </tr>
!                               </table>
!                       </td>
!               </tr>
!       </table>
!       </form>
! 
!       <p>&#160;</p>
! </xsl:template>
! 
! <!-- FIXME: Re-create this form -->
! <xsl:template match="APP/view_account">
!       <br />
!       <form method="POST">
!       <table class="normalbox" cellSpacing="1" cellPadding="0" width="50%" 
border="0">
!               <tr> 
!                       <td class="sideboxtitle" align="center" height="28" 
width="100%">View account</td>
!               </tr>
!               <tr>
!                       <td class="sideboxcontent" bgColor="#efefef">
!                               <table class="sideboxtext" cellSpacing="0" 
cellPadding="0" width="70%" border="0" valign="top" align="center">
!                                       <tr>
!                                               <td>Login ID:</td>
!                                               <td align="right"><xsl:value-of 
select="lid" /></td>
!                                       </tr>   
!                                       <tr>
!                                               <td>First Name:</td>
!                                               <td align="right"><xsl:value-of 
select="firstname" /></td>
!                                       </tr>   
!                                       <tr>
!                                               <td>Last Name:</td>
!                                               <td align="right"><xsl:value-of 
select="lastname" /></td>
!                                       </tr>
!                                       <tr>
!                                               <td>Expires:</td>
!                                               <td align="right"><xsl:value-of 
select="expires" /></td>
!                                       </tr>
!                                       <tr>
!                                               <td>Status:</td>
!                                               <td align="right">
!                                               <xsl:choose>
!                                                       <xsl:when test="status 
= 'A'">
!                                                               Active
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <b>Disabled</b>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                               </td>
!                                       </tr>
!                                       <tr>
!                                               <td colspan="2">&#160;</td>
!                                       </tr>
!                                       <tr>
!                                               <td colspan="2" 
align="right"><input type="image" name="op" src="{$api_image_path}/cancel.png" 
value="api.account_mgr.show" alt="Done" title="Done" /></td>
!                                       </tr>
!                               </table>
!                       </td>
!               </tr>
!       </table>
!       </form>
! </xsl:template>
! 
! <xsl:template match="APP[delete_account = 1]">
!       <xsl:if test="count(dialog) > 0">
!       <br />  
!       <xsl:call-template name="widget_dialog_yesno">
!               <xsl:with-param name="question" select="dialog/question" />
!               <xsl:with-param name="yes_op" select="dialog/yes_op" />
!               <xsl:with-param name="no_op" select="dialog/no_op" />
!               <xsl:with-param name="inputs" 
select="dialog/current_inputs/current_inputs_item" />
!       </xsl:call-template>
!       <p>&#160;</p>
!       </xsl:if>
! </xsl:template>
! 
! </xsl:stylesheet>
! 
--- 1,211 ----
! <?xml version="1.0"?>
! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
! <xsl:output indent="yes"/>
! <!-- $Id$ -->
! <!-- $Source$ -->
! 
! <xsl:template match="APP/accounts">
!       <br />
!       <table class="normalbox" cellSpacing="0" cellPadding="0" width="80%" 
border="0">
!               <tr> 
!                       <td class="sideboxtitle" align="center" height="28" 
width="100%">
! 
!                               <table border="0" width="100%" cellspacing="0" 
cellpadding="0" class="normalbox_title">
!                                       <tr>
!                                               <td 
width="31%"><b>LoginID</b></td>
!                                               <td width="31%"><b>First 
name</b></td>
!                                               <td width="*"><b>Last 
name</b></td>
!                                               <td width="24">&#160;</td>
!                                               <td width="24">&#160;</td>
!                                       </tr>
!                               </table>
! 
!                       </td>
!               </tr>
!               <tr>
!                       <td class="sideboxcontent" bgColor="#efefef">
!                               <table class="sideboxtext" cellSpacing="0" 
cellPadding="0" width="100%" border="0" valign="top">
!                                       <xsl:for-each select="accounts_item">
!                                       <xsl:variable name="account_id" 
select="account_id" />
!                                       <xsl:variable name="account_lid" 
select="account_lid" />
!                                       <tr class="sideboxtext">
!                                               <xsl:choose>                    
        
!                                                       <xsl:when 
test="position() mod 2 = 1">
!                                                               <xsl:attribute 
name="class">row_on</xsl:attribute>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <xsl:attribute 
name="class">row_off</xsl:attribute>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                               <td width="31%"><font 
color="#000000"><a 
href="{$baseurl}&amp;op=api.account_mgr.view&amp;account_id={$account_id}"><xsl:value-of
 select="account_lid" /></a></font></td>
!                                               <td width="31%"><font 
color="#000000"><xsl:value-of select="account_firstname" /></font></td>
!                                               <td width="*"><font 
color="#000000"><xsl:value-of select="account_lastname" /></font></td>
!                                               <td width="24" 
align="center"><a 
href="{$baseurl}&amp;op=api.account_mgr.edit&amp;account_id={$account_id}"><img 
alt="Edit" title="Edit" src="{$api_image_path}/edit.png" border="0" /></a></td>
!                                               <xsl:choose>
!                                                       <xsl:when 
test="$account_id = /PHPGW/API/user/id or $account_lid = 'anonymous'">
!                                                               <td width="24" 
align="center"><img alt="Delete" title="Delete" 
src="{$api_image_path}/delete_x.png" border="0" /></td>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <td width="24" 
align="center"><a 
href="{$baseurl}&amp;op=api.account_mgr.delete&amp;account_id={$account_id}"><img
 alt="Delete" title="Delete" src="{$api_image_path}/delete.png" border="0" 
/></a></td>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                               </tr>
!                                       </xsl:for-each>
!                               </table>
!                       </td>
!               </tr>
!       </table>
!       <p>&#160;</p>
! </xsl:template>
! 
! <xsl:template match="APP/add_account">
! 
!       <br />
!       <form method="POST">
!       <input type="hidden" name="create_account_submit" value="True" />
! 
!       <table class="normalbox" cellSpacing="1" cellPadding="0" width="40%" 
border="0">
!               <tr> 
!                       <td class="sideboxtitle" align="center" height="28" 
width="100%">Create new account</td>
!               </tr>
!               <tr>
!                       <td class="sideboxcontent" bgColor="#efefef">
!                               <table class="sideboxtext" cellSpacing="0" 
cellPadding="0" width="100%" border="0" valign="top">
!                                       <tr>
!                                               <td>Login ID:</td>
!                                               <td align="right"><input 
name="add_account[account_lid]" value="{account_lid}" /></td>
!                                               <td align="right">
!                                               <xsl:if 
test="missing_fields/account_lid = 1">
!                                                       <font 
color="#CC0000">*</font>
!                                               </xsl:if>
!                                               </td>
!                                       </tr>   
!                                       <tr>
!                                               <td>First Name:</td>
!                                               <td align="right"><input 
name="add_account[account_firstname]" value="{account_firstname}" /></td>
!                                               <td align="right">
!                                               <xsl:if 
test="missing_fields/account_firstname = 1">
!                                                       <font 
color="#CC0000">*</font>
!                                               </xsl:if>
!                                               </td>
!                                       </tr>   
!                                       <tr>
!                                               <td>Last Name:</td>
!                                               <td align="right"><input 
name="add_account[account_lastname]" value="{account_lastname}" /></td>
!                                               <td align="right">
!                                               <xsl:if 
test="missing_fields/account_lastname = 1">
!                                                       <font 
color="#CC0000">*</font>
!                                               </xsl:if>
!                                               </td>
!                                       </tr>
!                                       <tr>
!                                               <td>Password:</td>
!                                               <td align="right"><input 
type="password" name="add_account[account_password]" value="{account_password}" 
/></td>
!                                               <td align="right">
!                                               <xsl:if 
test="missing_fields/account_password = 1">
!                                                       <font 
color="#CC0000">*</font>
!                                               </xsl:if>
!                                               </td>
!                                       </tr>
!                                       <tr>
!                                               <td>Re-enter Password:</td>
!                                               <td align="right"><input 
type="password" name="add_account[account_password_confirm]" 
value="{account_password_confirm}" /></td>
!                                               <td align="right">
!                                               <xsl:if 
test="missing_fields/account_password_confirm = 1">
!                                                       <font 
color="#CC0000">*</font>
!                                               </xsl:if>
!                                               </td>
!                                       </tr>
!                                       <tr>
!                                               <td colspan="3">&#160;</td>
!                                       </tr>
!                                       <tr>
!                                               <td colspan="3">
!                                                       <xsl:variable 
name="prevop" select="/PHPGW/API/prevop" />
! 
!                                                       <table width="100%" 
border="0">
!                                                               <td 
align="left" width="24"><input type="image" name="op" 
src="{$api_image_path}/clearform.png" value="api.base.form_clear" alt="Clear 
Form" title="Clear Form" /></td>
!                                                               <td 
align="left" width="24"><input type="image" name="op" 
src="{$api_image_path}/pause.png" value="api.statecache.pause" alt="Place form 
on hold" title="Place form on hold" /></td>
!                                                               <td 
width="*">&#160;</td>
!                                                               <td 
align="right" width="24"><input type="image" name="op" 
src="{$api_image_path}/cancel.png" value="api.admin.start" alt="Cancel" 
title="Cancel" /></td>
!                                                               <td 
align="right" width="24"><input type="image" name="op" 
src="{$api_image_path}/save.png" value="api.account_mgr.create" alt="Create" 
title="Create" /></td>
!                                                       </table>
!                                               </td>
!                                               <td>&#160;</td>
!                                       </tr>
!                               </table>
!                       </td>
!               </tr>
!       </table>
!       </form>
! 
!       <p>&#160;</p>
! </xsl:template>
! 
! <!-- FIXME: Re-create this form -->
! <xsl:template match="APP/view_account">
!       <br />
!       <form method="POST">
!       <table class="normalbox" cellSpacing="1" cellPadding="0" width="50%" 
border="0">
!               <tr> 
!                       <td class="sideboxtitle" align="center" height="28" 
width="100%">View account</td>
!               </tr>
!               <tr>
!                       <td class="sideboxcontent" bgColor="#efefef">
!                               <table class="sideboxtext" cellSpacing="0" 
cellPadding="0" width="70%" border="0" valign="top" align="center">
!                                       <tr>
!                                               <td>Login ID:</td>
!                                               <td align="right"><xsl:value-of 
select="lid" /></td>
!                                       </tr>   
!                                       <tr>
!                                               <td>First Name:</td>
!                                               <td align="right"><xsl:value-of 
select="firstname" /></td>
!                                       </tr>   
!                                       <tr>
!                                               <td>Last Name:</td>
!                                               <td align="right"><xsl:value-of 
select="lastname" /></td>
!                                       </tr>
!                                       <tr>
!                                               <td>Expires:</td>
!                                               <td align="right"><xsl:value-of 
select="expires" /></td>
!                                       </tr>
!                                       <tr>
!                                               <td>Status:</td>
!                                               <td align="right">
!                                               <xsl:choose>
!                                                       <xsl:when test="status 
= 'A'">
!                                                               Active
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <b>Disabled</b>
!                                                       </xsl:otherwise>
!                                               </xsl:choose>
!                                               </td>
!                                       </tr>
!                                       <tr>
!                                               <td colspan="2">&#160;</td>
!                                       </tr>
!                                       <tr>
!                                               <td colspan="2" 
align="right"><input type="image" name="op" src="{$api_image_path}/cancel.png" 
value="api.account_mgr.show" alt="Done" title="Done" /></td>
!                                       </tr>
!                               </table>
!                       </td>
!               </tr>
!       </table>
!       </form>
! </xsl:template>
! 
! <xsl:template match="APP[delete_account = 1]">
!       <xsl:if test="count(dialog) > 0">
!       <br />  
!       <xsl:call-template name="widget_dialog_yesno">
!               <xsl:with-param name="question" select="dialog/question" />
!               <xsl:with-param name="yes_op" select="dialog/yes_op" />
!               <xsl:with-param name="no_op" select="dialog/no_op" />
!               <xsl:with-param name="inputs" 
select="dialog/current_inputs/current_inputs_item" />
!       </xsl:call-template>
!       <p>&#160;</p>
!       </xsl:if>
! </xsl:template>
! 
! </xsl:stylesheet>





reply via email to

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