[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: property/templates/default wo_hour.xsl,1.2,1.3
From: |
Sigurd Nes <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: property/templates/default wo_hour.xsl,1.2,1.3 |
Date: |
Sat, 29 Mar 2003 13:03:28 -0500 |
Update of /cvsroot/phpgroupware/property/templates/default
In directory subversions:/tmp/cvs-serv5040/templates/default
Modified Files:
wo_hour.xsl
Log Message:
no message
Index: wo_hour.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/wo_hour.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** wo_hour.xsl 26 Mar 2003 12:31:56 -0000 1.2
--- wo_hour.xsl 29 Mar 2003 18:03:26 -0000 1.3
***************
*** 9,12 ****
--- 9,18 ----
<xsl:apply-templates select="add"/>
</xsl:when>
+ <xsl:when test="list_template">
+ <xsl:apply-templates select="list_template"/>
+ </xsl:when>
+ <xsl:when test="template">
+ <xsl:apply-templates select="template"/>
+ </xsl:when>
<xsl:when test="add_template">
<xsl:apply-templates select="add_template"/>
***************
*** 72,77 ****
--- 78,100 ----
<xsl:template match="add_template">
+ <div align="left">
<xsl:call-template name="app_header"/>
<xsl:call-template name="menu"/>
+ <table cellpadding="2" cellspacing="2" width="80%"
align="center">
+ <xsl:for-each select="message" >
+ <tr>
+ <td class="th_text" colspan="2" align="center">
+ <xsl:value-of select="msg"/>
+ </td>
+ </tr>
+ </xsl:for-each>
+ <xsl:for-each select="error" >
+ <tr>
+ <td class="th_text" colspan="2" align="center">
+ <xsl:value-of select="msg"/>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
<xsl:apply-templates select="workorder_data"/>
<table width="50%" cellpadding="2" cellspacing="2"
align="center">
***************
*** 84,88 ****
</td>
<td>
! <input type="text" name="name"
value="{value_name}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
--- 107,111 ----
</td>
<td>
! <input type="text" name="values[name]"
value="{value_name}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
***************
*** 93,102 ****
</td>
</tr >
!
<tr height="50">
<td>
</td>
<td>
! <input type="submit" class="forms"
name="add" value="{$lang_add}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
--- 116,139 ----
</td>
</tr >
! <tr>
! <td valign="top">
! <xsl:value-of select="lang_descr"/>
! </td>
! <td>
! <textarea cols="60" rows="4"
name="values[descr]" wrap="virtual" onMouseout="window.status='';return true;">
! <xsl:attribute
name="onMouseover">
!
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_descr_statustext"/>
! <xsl:text>'; return
true;</xsl:text>
! </xsl:attribute>
! <xsl:value-of
select="value_descr"/>
! </textarea>
! </td>
! </tr>
<tr height="50">
<td>
</td>
<td>
! <input type="submit" class="forms"
name="values[save]" value="{$lang_add}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
***************
*** 128,131 ****
--- 165,174 ----
</tr>
</table>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <hr noshade="noshade" width="100%" align="center" size="1"/>
+ <xsl:apply-templates select="table_header_hour"/>
+ <xsl:apply-templates select="values_hour"/>
+ </table>
+ </div>
</xsl:template>
***************
*** 159,162 ****
--- 202,531 ----
</xsl:template>
+ <xsl:template match="list_template">
+ <xsl:call-template name="app_header"/>
+ <xsl:call-template name="menu"/>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:for-each select="message" >
+ <tr>
+ <td class="th_text" colspan="2" align="center">
+ <xsl:value-of select="msg"/>
+ </td>
+ </tr>
+ </xsl:for-each>
+ <xsl:for-each select="error" >
+ <tr>
+ <td class="th_text" colspan="2" align="center">
+ <xsl:value-of select="msg"/>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+
+ <xsl:apply-templates select="workorder_data"/>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <tr>
+ <td>
+ <xsl:call-template
name="chapter_filter"/>
+ </td>
+ <td align="right">
+ <xsl:call-template
name="search_field"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" width="100%">
+ <xsl:call-template
name="nextmatchs"/>
+ </td>
+ </tr>
+ </table>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:apply-templates
select="table_header_template"/>
+ <xsl:choose>
+ <xsl:when
test="values_template[template_id]!=''">
+ <xsl:apply-templates
select="values_template"/>
+ </xsl:when>
+ </xsl:choose>
+ </table>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <hr noshade="noshade" width="100%" align="center"
size="1"/>
+ <xsl:apply-templates select="table_sum"/>
+ <xsl:apply-templates select="table_done"/>
+ </table>
+ </xsl:template>
+
+
+ <xsl:template match="table_header_template">
+ <xsl:variable name="sort_name"><xsl:value-of
select="sort_name"/></xsl:variable>
+ <xsl:variable name="sort_template_id"><xsl:value-of
select="sort_template_id"/></xsl:variable>
+ <tr class="th">
+ <td class="th_text" width="10%" align="right">
+ <a
href="{$sort_template_id}"><xsl:value-of select="lang_template_id"/></a>
+ </td>
+ <td class="th_text" width="10%" align="right">
+ <a href="{$sort_name}"><xsl:value-of
select="lang_name"/></a>
+ </td>
+ <td class="th_text" width="30%" align="left">
+ <xsl:value-of select="lang_descr"/>
+ </td>
+ <td class="th_text" width="20%" align="left">
+ <xsl:value-of select="lang_chapter"/>
+ </td>
+ <td class="th_text" width="5%" align="right">
+ <xsl:value-of select="lang_owner"/>
+ </td>
+ <td class="th_text" width="10%" align="right">
+ <xsl:value-of select="lang_entry_date"/>
+ </td>
+ <td class="th_text" width="5%" align="center">
+ <xsl:value-of select="lang_select"/>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="values_template">
+ <xsl:variable name="lang_edit_statustext"><xsl:value-of
select="lang_edit_statustext"/></xsl:variable>
+ <xsl:variable name="lang_prizing_statustext"><xsl:value-of
select="lang_prizing_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="right">
+ <xsl:value-of select="template_id"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="name"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="descr"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="chapter"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="owner"/>
+ </td>
+ <td align="right">
+ <xsl:value-of select="entry_date"/>
+ </td>
+ <xsl:variable
name="form_action_select"><xsl:value-of
select="form_action_select"/></xsl:variable>
+ <form method="post"
action="{$form_action_select}">
+ <td valign="top">
+ <input type="hidden"
name="template_id" value="{template_id}"></input>
+ <input type="hidden"
name="workorder_id" value="{workorder_id}"></input>
+ <xsl:variable
name="lang_select"><xsl:value-of select="lang_select"/></xsl:variable>
+ <input type="submit"
name="select" value="{$lang_select}" onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_select_statustext"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </form>
+ </tr>
+ </xsl:template>
+
+
+
+ <xsl:template match="template">
+ <xsl:variable name="check_source"><xsl:value-of
select="check_source"/></xsl:variable>
+ <SCRIPT LANGUAGE="JavaScript" SRC="{$check_source}"></SCRIPT>
+ <xsl:call-template name="app_header"/>
+ <xsl:call-template name="menu"/>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:for-each select="message" >
+ <tr>
+ <td class="th_text" colspan="2" align="center">
+ <xsl:value-of select="msg"/>
+ </td>
+ </tr>
+ </xsl:for-each>
+ <xsl:for-each select="error" >
+ <tr>
+ <td class="th_text" colspan="2" align="center">
+ <xsl:value-of select="msg"/>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+
+ <xsl:apply-templates select="workorder_data"/>
+ <!-- <xsl:choose>
+ <xsl:when test="values_template_hour[template_id]!=''">
-->
+ <table width="100%" cellpadding="2"
cellspacing="2" align="center">
+ <tr>
+ <td align="right">
+ <xsl:call-template
name="search_field"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" width="100%">
+ <xsl:call-template
name="nextmatchs"/>
+ </td>
+ </tr>
+ </table>
+ <xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
+ <form method="post" name="form"
action="{$form_action}">
+ <table width="100%" cellpadding="2"
cellspacing="2" align="center">
+ <xsl:apply-templates
select="table_header_template_hour"/>
+ <xsl:choose>
+ <xsl:when
test="values_template_hour[counter]!=''">
+ <xsl:apply-templates
select="values_template_hour"/>
+ <tr>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td
align="center">
+
<xsl:variable name="img_check"><xsl:value-of select="img_check"/></xsl:variable>
+ <a
href="javascript:check_all_checkbox('values[select]')"><img src="{$img_check}"
border="0" height="16" width="21" alt="{lang_select_all}"/></a>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ </table>
+ <tr height="50">
+ <td>
+ <xsl:variable
name="lang_add"><xsl:value-of select="lang_add"/></xsl:variable>
+ <input type="submit"
name="values[add]" value="{$lang_add}" onMouseout="window.status='';return
true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_add_statustext"/>
+
<xsl:text>'; return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ </form>
+ <!-- </xsl:when>
+ </xsl:choose> -->
+
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <hr noshade="noshade" width="100%" align="center" size="1"/>
+ <xsl:apply-templates select="table_header_hour"/>
+ <xsl:apply-templates select="values_hour"/>
+ <xsl:apply-templates select="table_sum"/>
+ <xsl:apply-templates select="table_done"/>
+ </table>
+ </xsl:template>
+
+
+
+ <xsl:template match="table_header_template_hour">
+ <xsl:variable name="sort_billperae"><xsl:value-of
select="sort_billperae"/></xsl:variable>
+ <xsl:variable name="sort_building_part"><xsl:value-of
select="sort_building_part"/></xsl:variable>
+ <tr class="th">
+ <td class="th_text" width="10%" align="right">
+ <a
href="{$sort_building_part}"><xsl:value-of select="lang_building_part"/></a>
+ </td>
+ <td class="th_text" width="10%" align="right">
+ <xsl:value-of select="lang_code"/>
+ </td>
+ <td class="th_text" width="30%" align="left">
+ <xsl:value-of select="lang_descr"/>
+ </td>
+ <td class="th_text" width="5%" align="right">
+ <xsl:value-of select="lang_unit"/>
+ </td>
+ <td class="th_text" width="10%" align="right">
+ <a
href="{$sort_billperae}"><xsl:value-of select="lang_billperae"/></a>
+ </td>
+ <td class="th_text" width="5%" align="center">
+ <xsl:value-of select="lang_quantity"/>
+ </td>
+ <td class="th_text" width="5%" align="center">
+ <xsl:value-of select="lang_select"/>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="values_template_hour">
+ <xsl:variable name="lang_edit_statustext"><xsl:value-of
select="lang_edit_statustext"/></xsl:variable>
+ <xsl:variable name="lang_prizing_statustext"><xsl:value-of
select="lang_prizing_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="right">
+ <xsl:choose>
+ <xsl:when
test="building_part>0">
+ <xsl:value-of
select="building_part"/>
+ </xsl:when>
+ </xsl:choose>
+ </td>
+ <td align="left">
+ <xsl:value-of select="code"/>
+ <input type="hidden"
name="values[chapter_id][{counter}]" value="{chapter_id}" ></input>
+ <input type="hidden"
name="values[grouping_descr][{counter}]" value="{grouping_descr}" ></input>
+ <input type="hidden"
name="values[activity_id][{counter}]" value="{activity_id}" ></input>
+ <input type="hidden"
name="values[activity_num][{counter}]" value="{activity_num}" ></input>
+ <input type="hidden"
name="values[unit][{counter}]" value="{unit}" ></input>
+ <input type="hidden"
name="values[dim_d][{counter}]" value="{dim_d}" ></input>
+ <input type="hidden"
name="values[ns3420_id][{counter}]" value="{ns3420_id}" ></input>
+ <input type="hidden"
name="values[tolerance][{counter}]" value="{tolerance}" ></input>
+ <input type="hidden"
name="values[building_part][{counter}]" value="{building_part}" ></input>
+ <input type="hidden"
name="values[hours_descr][{counter}]" value="{hours_descr}" ></input>
+ <input type="hidden"
name="values[remark][{counter}]" value="{remark}" ></input>
+ <input type="hidden"
name="values[billperae][{counter}]" value="{billperae}" ></input>
+ </td>
+ <td align="left">
+ <xsl:value-of select="hours_descr"/>
+ <br/>
+ <xsl:value-of select="remark"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="unit"/>
+ </td>
+ <td align="right">
+ <xsl:choose>
+ <xsl:when test="billperae!=0">
+ <xsl:value-of
select="billperae"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="text"
size="6" name="values[billperae][{counter}]"></input>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <input type="text" size="6"
name="values[quantity][{counter}]"></input>
+ </td>
+ <td align="center">
+ <input type="checkbox"
name="values[select][{counter}]" value="{counter}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_select_statustext"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ </xsl:template>
+
+
+
+
+
<xsl:template match="prizebook">
<xsl:call-template name="app_header"/>
***************
*** 225,228 ****
--- 594,598 ----
</xsl:template>
+
<xsl:template match="workorder_data">
<xsl:variable name="link_workorder"><xsl:value-of
select="link_workorder"/></xsl:variable>
***************
*** 482,486 ****
</td>
<td class="th_text" width="5%" align="right">
! <xsl:value-of select="lang_billperea"/>
</td>
<td class="th_text" width="15%" align="right">
--- 852,856 ----
</td>
<td class="th_text" width="5%" align="right">
! <xsl:value-of select="lang_billperae"/>
</td>
<td class="th_text" width="15%" align="right">
***************
*** 668,672 ****
<xsl:when test="value_hour_id !=''">
<xsl:choose>
! <xsl:when
test="value_activity_id =''">
<tr>
<td>
--- 1038,1042 ----
<xsl:when test="value_hour_id !=''">
<xsl:choose>
! <xsl:when
test="value_activity_num =''">
<tr>
<td>
***************
*** 697,701 ****
</xsl:choose>
<xsl:choose>
! <xsl:when test="value_activity_id !=''">
<tr>
<td valign="top">
--- 1067,1071 ----
</xsl:choose>
<xsl:choose>
! <xsl:when test="value_activity_num !=''">
<tr>
<td valign="top">
***************
*** 731,735 ****
</tr>
<xsl:choose>
! <xsl:when test="value_activity_id=''">
<tr>
<td valign="top">
--- 1101,1105 ----
</tr>
<xsl:choose>
! <xsl:when test="value_activity_num=''">
<tr>
<td valign="top">
***************
*** 774,778 ****
<xsl:choose>
! <xsl:when test="value_activity_id !=''">
<tr>
<td valign="top">
--- 1144,1148 ----
<xsl:choose>
! <xsl:when test="value_activity_num !=''">
<tr>
<td valign="top">
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: property/templates/default wo_hour.xsl,1.2,1.3,
Sigurd Nes <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: property/setup setup.inc.php,1.29,1.30 tables_current.inc.php,1.51,1.52
- Next by Date:
[Phpgroupware-cvs] CVS: email/inc class.mail_msg_base.inc.php,1.78,1.78.2.1
- Previous by thread:
[Phpgroupware-cvs] CVS: property/setup setup.inc.php,1.29,1.30 tables_current.inc.php,1.51,1.52
- Next by thread:
[Phpgroupware-cvs] CVS: email/inc class.mail_msg_base.inc.php,1.78,1.78.2.1
- Index(es):