fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [8010]


From: Torstein
Subject: [Fmsystem-commits] [8010]
Date: Fri, 04 Nov 2011 07:23:10 +0000

Revision: 8010
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8010
Author:   vator
Date:     2011-11-04 07:23:10 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------


Modified Paths:
--------------
    trunk/controller/templates/base/view_check_list.xsl

Modified: trunk/controller/templates/base/view_check_list.xsl
===================================================================
--- trunk/controller/templates/base/view_check_list.xsl 2011-11-04 07:23:01 UTC 
(rev 8009)
+++ trunk/controller/templates/base/view_check_list.xsl 2011-11-04 07:23:10 UTC 
(rev 8010)
@@ -1,44 +1,96 @@
 <xsl:template match="data" name="view_check_list" 
xmlns:php="http://php.net/xsl";>
 
-<div class="main_content">
+<div id="main_content">
                
          <!-- ===========================  SHOWS CONTROL ITEMS RECEIPT   
=============================== -->
 
-               <xsl:variable name="control_id"><xsl:value-of 
select="control_id"/></xsl:variable>
+               <xsl:variable name="control_id"><xsl:value-of 
select="control_id"/></xsl:variable>      
                <input type="hidden" id="control_id" name="control_id" 
value="{control_id}" />
                
-               <ul class="groups">
+               <fieldset>
+                       <label>Tittel</label><xsl:value-of 
select="control_as_array/title"/><br/>
+                       <label>Startdato</label><xsl:value-of 
select="control_as_array/start_date"/><br/>
+                       <label>Sluttdato</label><xsl:value-of 
select="control_as_array/end_date"/><br/>
+                       <label>Syklustype</label><xsl:value-of 
select="control_as_array/repeat_type"/><br/>
+                       <label>Syklusfrekvens</label><xsl:value-of 
select="control_as_array/repeat_interval"/><br/>
+               </fieldset>
+               
+               <ul class="check_list">
                        <xsl:for-each select="saved_groups_with_items_array">
-                               <li class="list_item">
+                               <li>
                                <h3><span 
class="group_order_nr"><xsl:number/></span>. <xsl:value-of 
select="control_group/group_name"/></h3>
                        
-                                       <xsl:variable 
name="control_group_id"><xsl:value-of select="control_group/id"/></xsl:variable>
-                                               <input type="hidden" 
name="control_group_id" value="{$control_group_id}" />
-                               
-                                       <ul id="list">
-                                                       <xsl:for-each 
select="control_items">
-                                                               <xsl:variable 
name="control_item_id"><xsl:value-of select="id"/></xsl:variable>
-                                                               <xsl:variable 
name="order_tag">
-                                                                       
<xsl:choose>
-                                                                               
<xsl:when test="order_nr > 0">
-                                                                               
        <xsl:value-of select="order_nr"/>
-                                                                               
</xsl:when>
-                                                                               
<xsl:otherwise>
-                                                                               
        <xsl:number/>
-                                                                               
</xsl:otherwise>
-                                                                       
</xsl:choose>:<xsl:value-of select="id"/>
-                                                               </xsl:variable>
-                                                                               
                                                
-                                                       <li class="list_item">
-                                                               <span 
class="drag">
-                                                                       <span 
class="order_nr"><xsl:number/></span>. <xsl:value-of select="title"/><input 
type="hidden" name="order_nr[]" value="{$order_tag}" />
-                                                               </span>
-                                                       </li>
-                                                       </xsl:for-each>
-                                               </ul>
-                                       
+                               <xsl:variable 
name="control_group_id"><xsl:value-of select="control_group/id"/></xsl:variable>
+                                       <input type="hidden" 
name="control_group_id" value="{$control_group_id}" />
+                       
+                               <ul id="list">
+                                               <xsl:for-each 
select="control_items">
+                                                       <xsl:variable 
name="control_item_id"><xsl:value-of select="id"/></xsl:variable>
+                                                       <xsl:variable 
name="order_tag">
+                                                               <xsl:choose>
+                                                                       
<xsl:when test="order_nr > 0">
+                                                                               
<xsl:value-of select="order_nr"/>
+                                                                       
</xsl:when>
+                                                                       
<xsl:otherwise>
+                                                                               
<xsl:number/>
+                                                                       
</xsl:otherwise>
+                                                               
</xsl:choose>:<xsl:value-of select="id"/>
+                                                       </xsl:variable>
+                                                                               
                                        
+                                               <li>
+                                                       <span class="drag">
+                                                               <span 
class="order_nr"><xsl:number/></span>. <xsl:value-of select="title"/><input 
type="hidden" name="order_nr[]" value="{$order_tag}" />
+                                                       </span>
+                                               </li>
+                                               </xsl:for-each>
+                                       </ul>
                                </li>
                        </xsl:for-each>
-               </ul>                                   
+               </ul>
+               
+               <!--  
+               <ul class="check_list">
+                       <xsl:for-each select="saved_groups_with_items_array">
+                               <li>
+                               <h3><span 
class="group_order_nr"><xsl:number/></span>. <xsl:value-of 
select="control_group/group_name"/></h3>
+                       
+                               <xsl:variable 
name="control_group_id"><xsl:value-of select="control_group/id"/></xsl:variable>
+                                       <input type="hidden" 
name="control_group_id" value="{$control_group_id}" />
+                       
+                               <ul id="list">
+                                               <xsl:for-each 
select="control_items">
+                                                       <xsl:variable 
name="control_item_id"><xsl:value-of select="id"/></xsl:variable>
+                                                       <xsl:variable 
name="order_tag">
+                                                               <xsl:choose>
+                                                                       
<xsl:when test="order_nr > 0">
+                                                                               
<xsl:value-of select="order_nr"/>
+                                                                       
</xsl:when>
+                                                                       
<xsl:otherwise>
+                                                                               
<xsl:number/>
+                                                                       
</xsl:otherwise>
+                                                               
</xsl:choose>:<xsl:value-of select="id"/>
+                                                       </xsl:variable>
+                                                                               
                                        
+                                               <li>
+                                                       <span class="drag">
+                                                               <span 
class="order_nr"><xsl:number/></span>. <xsl:value-of select="title"/><input 
type="hidden" name="order_nr[]" value="{$order_tag}" />
+                                                       </span>
+                                               </li>
+                                               </xsl:for-each>
+                                       </ul>
+                               </li>
+                       </xsl:for-each>
+               </ul>
+               <div style="margin:20px 0;">
+                       <a  
style="text-decoration:underline;font-size:20px;color:#333;">
+                               <xsl:attribute name="href">
+                                       
<xsl:text>index.php?menuaction=controller.uicheck_list.save_check_list</xsl:text>
+                                       <xsl:text>&amp;control_id=</xsl:text>
+                                               <xsl:value-of 
select="control_as_array/id"/>
+                               </xsl:attribute>
+                               Lag sjekkliste for kontroll
+                       </a>            
+               </div>
+               -->
 </div>
 </xsl:template>
\ No newline at end of file




reply via email to

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