fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7957]


From: Torstein
Subject: [Fmsystem-commits] [7957]
Date: Thu, 27 Oct 2011 12:47:31 +0000

Revision: 7957
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7957
Author:   vator
Date:     2011-10-27 12:47:30 +0000 (Thu, 27 Oct 2011)
Log Message:
-----------


Added Paths:
-----------
    trunk/controller/templates/base/control_check_list.xsl

Added: trunk/controller/templates/base/control_check_list.xsl
===================================================================
--- trunk/controller/templates/base/control_check_list.xsl                      
        (rev 0)
+++ trunk/controller/templates/base/control_check_list.xsl      2011-10-27 
12:47:30 UTC (rev 7957)
@@ -0,0 +1,59 @@
+<xsl:template name="control_check_list" xmlns:php="http://php.net/xsl";>
+
+<div class="yui-content tab_content">
+               
+         <!-- ===========================  SHOWS CONTROL ITEMS RECEIPT   
=============================== -->
+
+               <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">
+                       <xsl:for-each select="saved_groups_with_items_array">
+                               <li class="drag_group list_item">
+                               <h3><span 
class="group_order_nr"><xsl:number/></span>. <xsl:value-of 
select="control_group/group_name"/></h3>
+                       
+                                       <form 
action="index.php?menuaction=controller.uicontrol_item.save_item_order" 
class="frm_save_order">
+                                       <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>
+                                                               <a 
class="delete">
+                                                                               
<xsl:attribute name="href">
+                                                                               
        
<xsl:text>index.php?menuaction=controller.uicontrol_item.delete_item_list</xsl:text>
+                                                                               
        <xsl:text>&amp;control_id=</xsl:text>
+                                                                               
        <xsl:value-of select="//control_id"/>
+                                                                               
        <xsl:text>&amp;control_item_id=</xsl:text>
+                                                                               
        <xsl:value-of select="id"/>
+                                                                               
</xsl:attribute>
+                                                                               
<span>x</span>
+                                                                       </a>
+                                                       </li>
+                                                       </xsl:for-each>
+                                               </ul>
+                                               <div>
+                                                       <xsl:variable 
name="lang_save"><xsl:value-of select="php:function('lang', 'save_order')" 
/></xsl:variable>
+                                                       <input type="submit" 
id="save_order" name="save_order" value="{$lang_save}" title = "{$lang_save}" />
+                                               </div>
+                                       </form>
+                               </li>
+                       </xsl:for-each>
+               </ul>                                   
+</div>
+</xsl:template>
\ No newline at end of file


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




reply via email to

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