fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [9201]


From: Torstein
Subject: [Fmsystem-commits] [9201]
Date: Sun, 22 Apr 2012 07:53:49 +0000

Revision: 9201
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9201
Author:   vator
Date:     2012-04-22 07:53:48 +0000 (Sun, 22 Apr 2012)
Log Message:
-----------


Added Paths:
-----------
    trunk/controller/templates/base/calendar/check_list_status_checker.xsl

Added: trunk/controller/templates/base/calendar/check_list_status_checker.xsl
===================================================================
--- trunk/controller/templates/base/calendar/check_list_status_checker.xsl      
                        (rev 0)
+++ trunk/controller/templates/base/calendar/check_list_status_checker.xsl      
2012-04-22 07:53:48 UTC (rev 9201)
@@ -0,0 +1,143 @@
+<!-- $Id: view_calendar_month.xsl 9200 2012-04-21 20:05:34Z vator $ -->
+<xsl:template name="check_list_status_checker" xmlns:php="http://php.net/xsl";>
+<!-- 
+<xsl:variable name="date_format">d/m-Y</xsl:variable>
+<xsl:variable name="location_code"><xsl:value-of 
select="location_array/location_code"/></xsl:variable>
+<xsl:variable name="view_location_code"><xsl:value-of 
select="view_location_code"/></xsl:variable>
+ -->
+ 
+ <xsl:param name="status" />
+ <xsl:param name="location_code" />
+ 
+               <xsl:choose>
+                       <xsl:when test="status = 'CONTROL_REGISTERED'">
+                               <div>
+                               <a>
+                               <!-- 
+                                       <xsl:attribute name="href">
+                                               
<xsl:text>index.php?menuaction=controller.uicheck_list.add_check_list</xsl:text>
+                                               <xsl:text>&amp;date=</xsl:text>
+                                               <xsl:value-of 
select="info/date"/>
+                                               
<xsl:text>&amp;control_id=</xsl:text>
+                                               <xsl:value-of 
select="info/control_id"/>
+                                               
<xsl:text>&amp;location_code=</xsl:text>
+                                               <xsl:value-of 
select="$location_code"/>
+                                       </xsl:attribute>
+                                        -->
+                                       <img height="15" 
src="controller/images/status_icon_yellow_ring.png" />
+                               </a>
+                               </div>
+                       </xsl:when>
+                       <!-- 
+                       <xsl:when test="status = 'CONTROL_PLANNED'">
+                               <div>
+                               <a>
+                                       <xsl:attribute name="href">
+                                               
<xsl:text>index.php?menuaction=controller.uicheck_list.edit_check_list</xsl:text>
+                                               
<xsl:text>&amp;check_list_id=</xsl:text>
+                                               <xsl:value-of 
select="info/check_list_id"/>
+                                       </xsl:attribute>
+                                       <img height="15" 
src="controller/images/status_icon_yellow.png" />
+                               </a>
+                               </div>
+                       </xsl:when>
+                       <xsl:when test="status = 
'CONTROL_NOT_DONE_WITH_PLANNED_DATE'">
+                               <div>
+                               <a>
+                                       <xsl:attribute name="href">
+                                               
<xsl:text>index.php?menuaction=controller.uicheck_list.edit_check_list</xsl:text>
+                                               
<xsl:text>&amp;check_list_id=</xsl:text>
+                                               <xsl:value-of 
select="info/check_list_id"/>
+                                       </xsl:attribute>
+                                       <img height="15" 
src="controller/images/status_red_cross.png" />
+                               </a>
+                               </div>
+               </xsl:when>
+                       <xsl:when test="status = 
'CONTROL_DONE_IN_TIME_WITHOUT_ERRORS'">
+                               <div>
+                                       <a>
+                                       <xsl:attribute name="href">
+                                               
<xsl:text>index.php?menuaction=controller.uicheck_list.edit_check_list</xsl:text>
+                                               
<xsl:text>&amp;check_list_id=</xsl:text>
+                                               <xsl:value-of 
select="info/check_list_id"/>
+                                       </xsl:attribute>
+                                               <span 
style="display:none"><xsl:value-of select="info/id"/></span>
+                                               <img height="15" 
src="controller/images/status_icon_dark_green.png" />
+                                       </a>
+                               </div>
+                       </xsl:when>
+                       <xsl:when test="status = 
'CONTROL_DONE_OVER_TIME_WITHOUT_ERRORS'">
+                               <div style="position:relative;">
+                                       <div id="info_box"></div>
+                                       <a>
+                                       <xsl:attribute name="href">
+                                               
<xsl:text>index.php?menuaction=controller.uicheck_list.edit_check_list</xsl:text>
+                                               
<xsl:text>&amp;check_list_id=</xsl:text>
+                                               <xsl:value-of 
select="info/check_list_id"/>
+                                       </xsl:attribute>
+                                               <span 
style="display:none"><xsl:value-of select="info/id"/></span>
+                                               <img height="15" 
src="controller/images/status_icon_light_green.png" />
+                                       </a>
+                               </div>
+                       </xsl:when>
+                       <xsl:when test="status = 
'control_accomplished_with_errors'">
+                               <div style="position:relative;background: 
url(controller/images/status_icon_red_empty.png) no-repeat 50% 50%;">
+                                       <div id="info_box"></div>
+                                       <a class="view_check_list">
+                                               <xsl:attribute name="href">
+                                                       
<xsl:text>index.php?menuaction=controller.uicheck_list.edit_check_list</xsl:text>
+                                                       
<xsl:text>&amp;check_list_id=</xsl:text>
+                                                       <xsl:value-of 
select="info/check_list_id"/>
+                                               </xsl:attribute>
+                                               <span style="display:none">
+                                                       
<xsl:text>&amp;check_list_id=</xsl:text><xsl:value-of 
select="info/check_list_id"/>
+                                                       
<xsl:text>&amp;phpgw_return_as=json</xsl:text>
+                                               </span>
+                                               <xsl:value-of 
select="info/num_open_cases"/>
+                                       </a>
+                               </div>
+                       </xsl:when>
+                       <xsl:when test="status = 
'control_not_accomplished_with_info'">
+                               <div style="position:relative;">
+                                       <div id="info_box"></div>
+                                       <a>
+                                       <xsl:attribute name="href">
+                                               
<xsl:text>index.php?menuaction=controller.uicheck_list.edit_check_list</xsl:text>
+                                               
<xsl:text>&amp;check_list_id=</xsl:text>
+                                               <xsl:value-of 
select="info/check_list_id"/>
+                                       </xsl:attribute>
+                                               <span 
style="display:none"><xsl:value-of select="info/id"/></span>
+                                               <img height="15" 
src="controller/images/status_icon_red_cross.png" />
+                                       </a>
+                               </div>
+                       </xsl:when>
+                       <xsl:when test="status = 'control_not_accomplished'">
+                               <div>
+                                       <a>
+                                               <xsl:attribute name="href">
+                                                       
<xsl:text>index.php?menuaction=controller.uicheck_list.add_check_list</xsl:text>
+                                                       
<xsl:text>&amp;date=</xsl:text>
+                                                       <xsl:value-of 
select="info/date"/>
+                                                       
<xsl:text>&amp;control_id=</xsl:text>
+                                                       <xsl:value-of 
select="info/control_id"/>
+                                                       
<xsl:text>&amp;location_code=</xsl:text>
+                                                       <xsl:value-of 
select="$location_code"/>
+                                               </xsl:attribute>
+                                               <img height="15" 
src="controller/images/status_icon_red_cross.png" />
+                                       </a>
+                               </div>
+                       </xsl:when>
+                       <xsl:when test="status = 'control_canceled'">
+                               <div>
+                                       <img height="15" 
src="controller/images/status_icon_red_cross.png" />
+                               </div>
+                       </xsl:when>
+                       -->
+                       
+                       <xsl:otherwise>
+                               <div></div>
+                       </xsl:otherwise>
+                       
+               </xsl:choose>
+                               
+</xsl:template>


Property changes on: 
trunk/controller/templates/base/calendar/check_list_status_checker.xsl
___________________________________________________________________
Added: svn:mime-type
   + text/plain




reply via email to

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