[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/templates/default entity.xsl, 1.1, 1.2 colum
From: |
Sigurd Nes <address@hidden> |
Subject: |
[Phpgroupware-cvs] property/templates/default entity.xsl, 1.1, 1.2 columns.xsl, 1.1, 1.2 |
Date: |
Wed, 22 Oct 2003 17:01:13 +0000 |
Update of /cvsroot/phpgroupware/property/templates/default
In directory subversions:/tmp/cvs-serv5200/templates/default
Modified Files:
entity.xsl columns.xsl
Log Message:
no message
Index: columns.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/columns.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** columns.xsl 5 Oct 2003 16:46:37 -0000 1.1
--- columns.xsl 22 Oct 2003 17:01:11 -0000 1.2
***************
*** 31,41 ****
<xsl:variable
name="lang_columns_statustext"><xsl:value-of
select="lang_columns_statustext"/></xsl:variable>
<select
name="values[columns][]" class="forms" multiple="multiple"
onMouseover="window.status='{$lang_columns_statustext}'; return true;"
onMouseout="window.status='';return true;">
<xsl:apply-templates
select="column_list"/>
</select>
</td>
- <!-- <td align="right">
- <xsl:call-template
name="column_list_2"/>
- </td> -->
</tr>
<tr height="50">
--- 31,39 ----
<xsl:variable
name="lang_columns_statustext"><xsl:value-of
select="lang_columns_statustext"/></xsl:variable>
<select
name="values[columns][]" class="forms" multiple="multiple"
onMouseover="window.status='{$lang_columns_statustext}'; return true;"
onMouseout="window.status='';return true;">
+ <option
value=""><xsl:value-of select="lang_none"/></option>
<xsl:apply-templates
select="column_list"/>
</select>
</td>
</tr>
<tr height="50">
***************
*** 70,120 ****
</xsl:template>
- <xsl:template name="column_list_2">
- <table cellpadding="2" cellspacing="2" width="80%"
align="left">
- <xsl:choose>
- <xsl:when test="value_choice!=''">
- <tr class="th">
- <td class="th_text" width="85%"
align="left">
- <xsl:value-of
select="lang_value"/>
- </td>
- <td class="th_text" width="15%"
align="center">
- <xsl:value-of
select="lang_delete_value"/>
- </td>
- </tr>
- <xsl:for-each select="column_list" >
- <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 align="left">
- <xsl:value-of select="name"/>
- <xsl:text> </xsl:text>
- </td>
- <td align="center">
- <input type="checkbox"
name="values[coumn_id][]" value="{id}" onMouseout="window.status='';return
true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="//lang_columns_statustext"/>
- <xsl:text>';
return true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- </xsl:for-each>
- </xsl:when>
- </xsl:choose>
-
- </table>
-
- </xsl:template>
--- 68,70 ----
Index: entity.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/entity.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** entity.xsl 18 Oct 2003 22:15:52 -0000 1.1
--- entity.xsl 22 Oct 2003 17:01:11 -0000 1.2
***************
*** 273,358 ****
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
<tr>
! <td valign="top">
! <xsl:value-of select="lang_entity_id"/>
! </td>
! <td>
! <xsl:value-of select="value_entity_id"/>
! </td>
! </tr>
! <xsl:call-template
name="location_view"/>
!
! <tr>
! <td>
! <xsl:value-of select="lang_vendor"/>
</td>
! <td>
! <xsl:value-of select="value_vendor_id"/>
! <xsl:text> </xsl:text>
! <xsl:value-of
select="value_vendor_name"/>
</td>
</tr>
-
<tr>
! <td>
<xsl:value-of select="lang_category"/>
</td>
! <td>
! <xsl:value-of select="cat_text"/>
! </td>
! </tr>
! <tr>
! <td valign="top">
! <xsl:value-of select="lang_date"/>
! </td>
! <td>
! <xsl:value-of select="value_date"/>
! </td>
! </tr>
! <tr>
! <td valign="top">
! <xsl:value-of select="lang_lifetime"/>
! </td>
! <td>
! <xsl:value-of select="value_lifetime"/>
! <xsl:text> </xsl:text> [ <xsl:value-of
select="lang_year"/> ]
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_status"/>
</td>
! <td>
! <xsl:value-of select="value_status"/>
! </td>
! </tr>
! <tr>
! <td valign="top">
! <xsl:value-of select="lang_cost"/>
! </td>
! <td>
! <xsl:value-of select="value_cost"/>
! <xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
! </td>
</tr>
<tr>
! <td valign="top">
! <xsl:value-of select="lang_descr"/>
! </td>
! <td>
! <xsl:value-of select="value_descr"/>
</td>
</tr>
- <xsl:choose>
- <xsl:when test="value_entity_id!=''">
- <tr>
- <td>
- <xsl:value-of
select="lang_attributes"/>
- </td>
- <td colspan="2" width="50%">
- <xsl:call-template
name="attributes_view"/>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
<tr height="50">
--- 273,330 ----
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
<tr>
! <td class="th_text">
! <xsl:value-of select="lang_entity"/>
</td>
! <td class="th_text">
! <xsl:value-of select="entity_name"/>
</td>
</tr>
<tr>
! <td class="th_text">
<xsl:value-of select="lang_category"/>
</td>
! <td class="th_text">
! <xsl:value-of select="category_name"/>
</td>
</tr>
+ <xsl:choose>
+ <xsl:when test="value_id!=''">
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_id"/>
+ </td>
+ <td>
+ <xsl:value-of
select="value_num"/>
+ <input type="hidden"
name="values[id]" value="{value_id}"></input>
+ <input type="hidden"
name="values[num]" value="{value_num}"></input>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:call-template name="location_view"/>
+ <xsl:choose>
+ <xsl:when test="vendor_data!=''">
+ <xsl:call-template name="vendor_form"/>
+ </xsl:when>
+ </xsl:choose>
<tr>
<td>
<xsl:value-of select="lang_status"/>
</td>
! <xsl:for-each select="status_list" >
! <xsl:choose>
! <xsl:when
test="selected">
! <td>
!
<xsl:value-of select="name"/>
! </td>
! </xsl:when>
! </xsl:choose>
! </xsl:for-each>
</tr>
<tr>
! <td colspan="2" width="50%" align="left">
! <xsl:apply-templates
select="attributes_view"/>
</td>
</tr>
<tr height="50">
***************
*** 439,443 ****
<td align="left" valign="top">
! <xsl:value-of select="name"/>
<xsl:choose>
<xsl:when test="datatype='D'">
--- 411,415 ----
<td align="left" valign="top">
! <xsl:value-of select="input_text"/>
<xsl:choose>
<xsl:when test="datatype='D'">
***************
*** 449,453 ****
<xsl:choose>
<xsl:when test="name!=''">
- <input type="hidden"
name="values_attribute[{counter}][attrib_id]" value="{attrib_id}"></input>
<input type="hidden"
name="values_attribute[{counter}][name]" value="{name}"></input>
<input type="hidden"
name="values_attribute[{counter}][datatype]" value="{datatype}"></input>
--- 421,424 ----
***************
*** 463,468 ****
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
!
<xsl:value-of select="descr"/>
!
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
--- 434,439 ----
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
!
<xsl:value-of select="statustext"/>
!
<xsl:text>';return true;</xsl:text>
</xsl:attribute>
</input>
***************
*** 472,477 ****
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
!
<xsl:value-of select="descr"/>
!
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<xsl:value-of select="value"/>
--- 443,448 ----
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
!
<xsl:value-of select="statustext"/>
!
<xsl:text>';return true;</xsl:text>
</xsl:attribute>
<xsl:value-of select="value"/>
***************
*** 482,487 ****
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
!
<xsl:value-of select="descr"/>
!
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
--- 453,460 ----
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
!
<xsl:value-of select="statustext"/>
!
<xsl:text> - </xsl:text>
!
<xsl:value-of select="datatype_text"/>
!
<xsl:text>';return true;</xsl:text>
</xsl:attribute>
</input>
***************
*** 494,497 ****
--- 467,545 ----
</xsl:template>
+ <xsl:template match="attributes_view">
+ <xsl:variable name="lang_attribute_statustext"><xsl:value-of
select="lang_attribute_statustext"/></xsl:variable>
+ <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 align="left" valign="top">
+ <xsl:value-of select="input_text"/>
+ <xsl:choose>
+ <xsl:when test="datatype='D'">
+
<xsl:text>[</xsl:text><xsl:value-of
select="//lang_dateformat"/><xsl:text>]</xsl:text>
+ </xsl:when>
+ </xsl:choose>
+ </td>
+ <td align="left">
+ <xsl:choose>
+ <xsl:when test="name!=''">
+ <input type="hidden"
name="values_attribute[{counter}][name]" value="{name}"></input>
+ <input type="hidden"
name="values_attribute[{counter}][datatype]" value="{datatype}"></input>
+ <xsl:choose>
+ <xsl:when
test="datatype='R'">
+
<xsl:call-template name="choice_view"/>
+ </xsl:when>
+ <xsl:when
test="datatype='CH'">
+
<xsl:call-template name="choice_view"/>
+ </xsl:when>
+ <xsl:when
test="datatype='D'">
+ <input
type="text" name="values_attribute[{counter}][value]" value="{value}"
readonly="readonly" size="12" maxlength="10"
onMouseout="window.status='';return true;" >
+
<xsl:attribute name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="statustext"/>
+
<xsl:text>';return true;</xsl:text>
+
</xsl:attribute>
+ </input>
+ </xsl:when>
+ <xsl:when
test="datatype='T'">
+
<textarea cols="40" rows="6" name="values_attribute[{counter}][value]"
wrap="virtual" readonly="readonly" onMouseout="window.status='';return true;">
+
<xsl:attribute name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="statustext"/>
+
<xsl:text>';return true;</xsl:text>
+
</xsl:attribute>
+
<xsl:value-of select="value"/>
+
</textarea>
+ </xsl:when>
+ <xsl:otherwise>
+ <input
type="text" name="values_attribute[{counter}][value]" value="{value}"
readonly="readonly" size="30" onMouseout="window.status='';return true;" >
+
<xsl:attribute name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="statustext"/>
+
<xsl:text> - </xsl:text>
+
<xsl:value-of select="datatype_text"/>
+
<xsl:text>';return true;</xsl:text>
+
</xsl:attribute>
+ </input>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+
<xsl:template name="choice">
<xsl:variable name="counter"><xsl:value-of
select="counter"/></xsl:variable>
***************
*** 524,527 ****
--- 572,613 ----
<xsl:otherwise>
<input
type="{input_type}" name="values_attribute[{$counter}][value][]"
value="{id}"></input>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="choice_view">
+ <xsl:variable name="counter"><xsl:value-of
select="counter"/></xsl:variable>
+ <table cellpadding="2" cellspacing="2" width="50%"
align="left">
+ <xsl:for-each select="choice" >
+ <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 align="left">
+ <xsl:value-of select="value"/>
+ <xsl:text> </xsl:text>
+ </td>
+ <xsl:variable
name="checked"><xsl:value-of select="checked"/></xsl:variable>
+ <td align="left">
+ <xsl:choose>
+ <xsl:when
test="checked='checked'">
+ <input
type="{input_type}" name="values_attribute[{$counter}][value][]" value="{id}"
checked="$checked" disabled="disabled"></input>
+ </xsl:when>
+ <xsl:otherwise>
+ <input
type="{input_type}" name="values_attribute[{$counter}][value][]" value="{id}"
disabled="disabled"></input>
</xsl:otherwise>
</xsl:choose>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/templates/default entity.xsl, 1.1, 1.2 columns.xsl, 1.1, 1.2,
Sigurd Nes <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] property/setup tables_current.inc.php, 1.139, 1.140
- Next by Date:
[Phpgroupware-cvs] property/inc class.soadmin_entity.inc.php, 1.5, 1.6 class.soentity.inc.php, 1.3, 1.4 class.uiadmin_entity.inc.php, 1.4, 1.5 class.boentity.inc.php, 1.1, 1.2 class.uientity.inc.php, 1.1, 1.2 class.sotts.inc.php, 1.29, 1.30 class.soreport.inc.php, 1.13, 1.14 class.soworkorder.inc.php, 1.30, 1.31 class.soproject.inc.php, 1.41, 1.42 class.soXport.inc.php, 1.36, 1.37
- Previous by thread:
[Phpgroupware-cvs] property/setup tables_current.inc.php, 1.139, 1.140
- Next by thread:
[Phpgroupware-cvs] property/inc class.soadmin_entity.inc.php, 1.5, 1.6 class.soentity.inc.php, 1.3, 1.4 class.uiadmin_entity.inc.php, 1.4, 1.5 class.boentity.inc.php, 1.1, 1.2 class.uientity.inc.php, 1.1, 1.2 class.sotts.inc.php, 1.29, 1.30 class.soreport.inc.php, 1.13, 1.14 class.soworkorder.inc.php, 1.30, 1.31 class.soproject.inc.php, 1.41, 1.42 class.soXport.inc.php, 1.36, 1.37
- Index(es):