fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12131] pure-css implementation


From: Alejandro
Subject: [Fmsystem-commits] [12131] pure-css implementation
Date: Thu, 09 Oct 2014 20:27:53 +0000

Revision: 12131
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12131
Author:   nudrick
Date:     2014-10-09 20:27:52 +0000 (Thu, 09 Oct 2014)
Log Message:
-----------
pure-css implementation

Modified Paths:
--------------
    branches/dev-syncromind/property/templates/base/condition_survey.xsl

Modified: branches/dev-syncromind/property/templates/base/condition_survey.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/condition_survey.xsl        
2014-10-09 19:35:40 UTC (rev 12130)
+++ branches/dev-syncromind/property/templates/base/condition_survey.xsl        
2014-10-09 20:27:52 UTC (rev 12131)
@@ -1,483 +1,525 @@
 <!-- $Id$ -->
 
 <func:function name="phpgw:conditional">
-       <xsl:param name="test"/>
-       <xsl:param name="true"/>
-       <xsl:param name="false"/>
+    <xsl:param name="test"/>
+    <xsl:param name="true"/>
+    <xsl:param name="false"/>
 
-       <func:result>
-               <xsl:choose>
-                       <xsl:when test="$test">
-                       <xsl:value-of select="$true"/>
-                       </xsl:when>
-                       <xsl:otherwise>
-                               <xsl:value-of select="$false"/>
-                       </xsl:otherwise>
-               </xsl:choose>
-       </func:result>
+    <func:result>
+        <xsl:choose>
+            <xsl:when test="$test">
+                <xsl:value-of select="$true"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:value-of select="$false"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </func:result>
 </func:function>
 
-       <!-- add / edit -->
+<!-- add / edit -->
 <xsl:template match="data" xmlns:formvalidator="http://www.w3.org/TR/html4/"; 
xmlns:php="http://php.net/xsl";>
-               <xsl:call-template name="jquery_phpgw_i18n"/>
+    <xsl:call-template name="jquery_phpgw_i18n"/>
 
-               <div class="yui-navset" id="survey_edit_tabview">
+    <div id="survey_edit_tabview">
 
-               <h1>
-                       <xsl:value-of select="php:function('lang', 'condition 
survey')" />
-               </h1>
+        <h1>
+            <xsl:value-of select="php:function('lang', 'condition survey')" />
+        </h1>
 
 
-               <xsl:variable name="action_url">
-                       <xsl:value-of select="php:function('get_phpgw_link', 
'/index.php', 'menuaction:property.uicondition_survey.save')" />
-               </xsl:variable>
+        <xsl:variable name="action_url">
+            <xsl:value-of select="php:function('get_phpgw_link', '/index.php', 
'menuaction:property.uicondition_survey.save')" />
+        </xsl:variable>
 
-                       <form name="form" id="form" action="{$action_url}" 
method="post" ENCTYPE="multipart/form-data">
-                       <dl>
-                                       <xsl:choose>
-                                               <xsl:when test="msgbox_data != 
''">
-                                                               <dt>
-                                                                       
<xsl:call-template name="msgbox"/>
-                                                               </dt>
-                                               </xsl:when>
-                                       </xsl:choose>
-                               </dl>
+        <form name="form" class="pure-form pure-form-aligned" id="form" 
action="{$action_url}" method="post" ENCTYPE="multipart/form-data">
+                            
+            <dl>
+                <xsl:choose>
+                    <xsl:when test="msgbox_data != ''">
+                        <dt>
+                            <xsl:call-template name="msgbox"/>
+                        </dt>
+                    </xsl:when>
+                </xsl:choose>
+            </dl>
                                
-                               <div class="yui-content">
+            <div id="tab-content">
                                        
-                               <xsl:value-of disable-output-escaping="yes" 
select="tabs"/>
+                <xsl:value-of disable-output-escaping="yes" select="tabs"/>
                                
-                               <div id="generic" class="content-wrp">
+                <div id="generic" class="content-wrp">
 
-                               <dl class="proplist-col">
-                                       <xsl:choose>
-                                               <xsl:when test="survey/id!=''">
-                                                               <dt>
-                                                                       
<label><xsl:value-of select="php:function('lang', 'id')" /></label>
-                                                               </dt>
-                                                               <dd>
-                                                                       
<xsl:value-of select="survey/id"/>
-                                                                       <input 
type="hidden" name="id" value="{survey/id}"/>
-                                                               </dd>
-                                               </xsl:when>
-                                       </xsl:choose>
+                    <fieldset>
+                        <xsl:choose>
+                            <xsl:when test="survey/id!=''">
+                                <div class="pure-control-group">
+                                    <label>
+                                        <xsl:value-of 
select="php:function('lang', 'id')" />
+                                    </label>
+                                    <xsl:value-of select="survey/id"/>
+                                    <input type="hidden" name="id" 
value="{survey/id}"/>
 
-                                       <xsl:choose>
-                                               <xsl:when 
test="location_data2!=''">
-                                                               <xsl:choose>
-                                                                       
<xsl:when test="editable = 1">
-                                                                               
<xsl:call-template name="location_form2"/>
-                                                                       
</xsl:when>
-                                                                       
<xsl:otherwise>
-                                                                               
<xsl:call-template name="location_view2"/>
-                                                                       
</xsl:otherwise>
-                                                               </xsl:choose>
-                                               </xsl:when>
-                                       </xsl:choose>
+                                </div>
+                            </xsl:when>
+                        </xsl:choose>
 
-                                       <dt>
-                                               <label for="name"><xsl:value-of 
select="php:function('lang', 'name')" /></label>
-                                       </dt>
-                                       <dd>
-                                               <xsl:choose>
-                                                       <xsl:when 
test="editable = 1">
-                                                               <input 
id="title" name='values[title]' type="text" value="{survey/title}"
-                                                                       
formvalidator:FormField="yes"
-                                                                       
formvalidator:Type="TextBaseField">
-                                                               </input>
-                                                       </xsl:when>
-                                                       <xsl:otherwise>
-                                                               <xsl:value-of 
select="survey/title" />
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
-                                       </dd>
+                        <xsl:choose>
+                            <xsl:when test="location_data2!=''">
+                                <xsl:choose>
+                                    <xsl:when test="editable = 1">
+                                        <xsl:call-template 
name="location_form2"/>
+                                    </xsl:when>
+                                    <xsl:otherwise>
+                                        <xsl:call-template 
name="location_view2"/>
+                                    </xsl:otherwise>
+                                </xsl:choose>
+                            </xsl:when>
+                        </xsl:choose>
 
+                        <dt>
+                            <label for="name">
+                                <xsl:value-of select="php:function('lang', 
'name')" />
+                            </label>
+                        </dt>
+                        <dd>
+                            <xsl:choose>
+                                <xsl:when test="editable = 1">
+                                    <input id="title" name='values[title]' 
type="text" value="{survey/title}"
+                                                                       
formvalidator:FormField="yes"
+                                                                       
placeholder="title"
+                                                                       
formvalidator:Type="TextBaseField">
+                                    </input>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:value-of select="survey/title" />
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </dd>
 
-                                       <dt>
-                                               <label for="name"><xsl:value-of 
select="php:function('lang', 'description')" /></label>
-                                       </dt>
-                                       <dd>
-                                               <xsl:choose>
-                                                       <xsl:when 
test="editable = 1">
-                                                               <textarea 
id="descr" name="values[descr]" rows="5" cols="60"
-                                                                       
formvalidator:FormField="yes"
-                                                                       
formvalidator:Type="TextBaseField">
-                                                                       
<xsl:value-of select="survey/descr" disable-output-escaping="yes"/>
-                                                               </textarea>
-                                                       </xsl:when>
-                                                       <xsl:otherwise>
-                                                               <xsl:value-of 
select="survey/descr" disable-output-escaping="yes"/>
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
-                                       </dd>
 
-                                       <dt>
-                                               <label 
for="category"><xsl:value-of select="php:function('lang', 'category')" 
/></label>
-                                       </dt>
-                                       <dd>
-                                               <xsl:choose>
-                                                       <xsl:when 
test="editable = 1">
-                                                               <select 
id="cat_id" name="values[cat_id]"
-                                                                       
formvalidator:FormField="yes"
-                                                                       
formvalidator:Type="SelectField">
-                                                                       
<xsl:apply-templates select="categories/options"/>
-                                                               </select>
-                                                       </xsl:when>
-                                                       <xsl:otherwise>
-                                                               <xsl:for-each 
select="categories/options">
-                                                                       <xsl:if 
test="selected = 'selected' or selected = 1">
-                                                                               
<xsl:value-of disable-output-escaping="yes" select="name"/>
-                                                                       
</xsl:if>
-                                                               </xsl:for-each>
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
-                                       </dd>
-                                       <dt>
-                                               <label 
for="multiplier"><xsl:value-of select="php:function('lang', 'multiplier')" 
/></label>
-                                       </dt>
-                                       <dd>
-                                               <xsl:choose>
-                                                       <xsl:when 
test="editable = 1">
-                                                               <input 
id="multiplier" name='values[multiplier]' type="text" 
value="{survey/multiplier}"
-                                                                       
formvalidator:FormField="yes" 
-                                                                       
formvalidator:Type="DoubleField" 
-                                                                       
formvalidator:min="1" 
-                                                                       
formvalidator:maxDecimalPlaces="2" 
-                                                                       
formvalidator:minInclusive="true" 
-                                                                       
formvalidator:maxInclusive="true" /> 
-                                                       </xsl:when>
-                                                       <xsl:otherwise>
-                                                               <xsl:value-of 
select="survey/multiplier"/>
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
-                                       </dd>
+                        <dt>
+                            <label for="name">
+                                <xsl:value-of select="php:function('lang', 
'description')" />
+                            </label>
+                        </dt>
+                        <dd>
+                            <xsl:choose>
+                                <xsl:when test="editable = 1">
+                                    <textarea id="descr" name="values[descr]" 
rows="5" cols="60"
+                                                                          
formvalidator:FormField="yes"
+                                                                          
formvalidator:Type="TextBaseField">
+                                        <xsl:value-of select="survey/descr" 
disable-output-escaping="yes"/>
+                                    </textarea>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:value-of select="survey/descr" 
disable-output-escaping="yes"/>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </dd>
 
-                                       <dt>
-                                                       <label 
for="date"><xsl:value-of select="php:function('lang', 'date')" /></label>
-                                       </dt>
-                                       <dd>
-                                               <xsl:choose>
-                                                       <xsl:when 
test="editable = 1">
-                                                               <input 
id="report_date" name='values[report_date]' type="text" 
value="{survey/report_date}"
-                                                                       
formvalidator:FormField="yes"
-                                                                       
formvalidator:type="TextBaseField"/>
-                                                       </xsl:when>
-                                                       <xsl:otherwise>
-                                                               <xsl:value-of 
select="survey/report_date"/>
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
-                                       </dd>
+                        <dt>
+                            <label for="category">
+                                <xsl:value-of select="php:function('lang', 
'category')" />
+                            </label>
+                        </dt>
+                        <dd>
+                            <xsl:choose>
+                                <xsl:when test="editable = 1">
+                                    <select id="cat_id" name="values[cat_id]"
+                                                                        
formvalidator:FormField="yes"
+                                                                        
formvalidator:Type="SelectField">
+                                        <xsl:apply-templates 
select="categories/options"/>
+                                    </select>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:for-each select="categories/options">
+                                        <xsl:if test="selected = 'selected' or 
selected = 1">
+                                            <xsl:value-of 
disable-output-escaping="yes" select="name"/>
+                                        </xsl:if>
+                                    </xsl:for-each>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </dd>
+                        <dt>
+                            <label for="multiplier">
+                                <xsl:value-of select="php:function('lang', 
'multiplier')" />
+                            </label>
+                        </dt>
+                        <dd>
+                            <xsl:choose>
+                                <xsl:when test="editable = 1">
+                                    <input id="multiplier" 
name='values[multiplier]' type="text" value="{survey/multiplier}"
+                                                                       
formvalidator:FormField="yes" 
+                                                                       
formvalidator:Type="DoubleField" 
+                                                                       
formvalidator:min="1" 
+                                                                       
formvalidator:maxDecimalPlaces="2" 
+                                                                       
formvalidator:minInclusive="true" 
+                                                                       
formvalidator:maxInclusive="true" /> 
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:value-of select="survey/multiplier"/>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </dd>
 
-                                       <dt>
-                                               <label 
for="status"><xsl:value-of select="php:function('lang', 'status')" /></label>
-                                       </dt>
-                                       <dd>
-                                               <xsl:choose>
-                                                       <xsl:when 
test="editable = 1">
-                                                               <select 
id="status_id" name="values[status_id]"
-                                                                       
formvalidator:FormField="yes"
-                                                                       
formvalidator:Type="SelectField">
-                                                                       
<xsl:apply-templates select="status_list/options"/>
-                                                               </select>
-                                                       </xsl:when>
-                                                       <xsl:otherwise>
-                                                               <xsl:for-each 
select="status_list/options">
-                                                                       <xsl:if 
test="selected = 'selected' or selected = 1">
-                                                                               
<xsl:value-of disable-output-escaping="yes" select="name"/>
-                                                                       
</xsl:if>
-                                                               </xsl:for-each>
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
+                        <dt>
+                            <label for="date">
+                                <xsl:value-of select="php:function('lang', 
'date')" />
+                            </label>
+                        </dt>
+                        <dd>
+                            <xsl:choose>
+                                <xsl:when test="editable = 1">
+                                    <input id="report_date" 
name='values[report_date]' type="text" value="{survey/report_date}"
+                                                                       
formvalidator:FormField="yes"
+                                                                       
formvalidator:type="TextBaseField"/>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:value-of select="survey/report_date"/>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </dd>
 
-                                       </dd>
-                                       <dt>
-                                               <label 
for="coordinator"><xsl:value-of select="lang_coordinator" /></label>
-                                       </dt>
-                                       <dd>
+                        <dt>
+                            <label for="status">
+                                <xsl:value-of select="php:function('lang', 
'status')" />
+                            </label>
+                        </dt>
+                        <dd>
+                            <xsl:choose>
+                                <xsl:when test="editable = 1">
+                                    <select id="status_id" 
name="values[status_id]"
+                                                                        
formvalidator:FormField="yes"
+                                                                        
formvalidator:Type="SelectField">
+                                        <xsl:apply-templates 
select="status_list/options"/>
+                                    </select>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:for-each select="status_list/options">
+                                        <xsl:if test="selected = 'selected' or 
selected = 1">
+                                            <xsl:value-of 
disable-output-escaping="yes" select="name"/>
+                                        </xsl:if>
+                                    </xsl:for-each>
+                                </xsl:otherwise>
+                            </xsl:choose>
 
-                                               <xsl:choose>
-                                                       <xsl:when 
test="editable = 1">
-                                                           <div 
class="autocomplete">
-                                                               <input 
type="hidden" id="coordinator_id" name="values[coordinator_id]"  
value="{survey/coordinator_id}"/>
-                                                               <input 
type="text" id="coordinator_name" name="values[coordinator_name]" 
value="{survey/coordinator_name}">
-                                                                       </input>
-                                                               <div 
id="coordinator_container"/>
-                                                           </div>
-                                                       </xsl:when>
-                                                       <xsl:otherwise>
-                                                               <xsl:value-of 
select="survey/coordinator_name" />
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
+                        </dd>
+                        <dt>
+                            <label for="coordinator">
+                                <xsl:value-of select="lang_coordinator" />
+                            </label>
+                        </dt>
+                        <dd>
 
-                                       </dd>
+                            <xsl:choose>
+                                <xsl:when test="editable = 1">
+                                    <div class="autocomplete">
+                                        <input type="hidden" 
id="coordinator_id" name="values[coordinator_id]"  
value="{survey/coordinator_id}"/>
+                                        <input type="text" 
id="coordinator_name" name="values[coordinator_name]" 
value="{survey/coordinator_name}">
+                                        </input>
+                                        <div id="coordinator_container"/>
+                                    </div>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:value-of 
select="survey/coordinator_name" />
+                                </xsl:otherwise>
+                            </xsl:choose>
 
+                        </dd>
 
 
-                                       <dt>
-                                               <label 
for="vendor"><xsl:value-of select="php:function('lang', 'vendor')" /></label>
-                                       </dt>
-                                       <dd>
 
-                                               <xsl:choose>
-                                                       <xsl:when 
test="editable = 1">
-                                                           <div 
class="autocomplete">
-                                                               <input 
type="hidden" id="vendor_id" name="values[vendor_id]"  
value="{survey/vendor_id}"/>
-                                                               <input 
type="text" id="vendor_name" name="values[vendor_name]" 
value="{survey/vendor_name}">
-                                                                       </input>
-                                                               <div 
id="vendor_container"/>
-                                                           </div>
-                                                       </xsl:when>
-                                                       <xsl:otherwise>
-                                                               <xsl:value-of 
select="survey/vendor_name" />
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
+                        <dt>
+                            <label for="vendor">
+                                <xsl:value-of select="php:function('lang', 
'vendor')" />
+                            </label>
+                        </dt>
+                        <dd>
 
-                                       </dd>
+                            <xsl:choose>
+                                <xsl:when test="editable = 1">
+                                    <div class="autocomplete">
+                                        <input type="hidden" id="vendor_id" 
name="values[vendor_id]"  value="{survey/vendor_id}"/>
+                                        <input type="text" id="vendor_name" 
name="values[vendor_name]" value="{survey/vendor_name}">
+                                        </input>
+                                        <div id="vendor_container"/>
+                                    </div>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:value-of select="survey/vendor_name" 
/>
+                                </xsl:otherwise>
+                            </xsl:choose>
 
+                        </dd>
 
-                               </dl>
-                       </div>
 
-                       <div id="documents">
-                               <script type="text/javascript">
+                    </fieldset>
+                </div>
+
+                <div id="documents">
+                    <script type="text/javascript">
                                   
-                                  var survey_id = '<xsl:value-of 
select='survey/id'/>';
-                                  var fileuploader_action = {
-                                               
menuaction:'property.fileuploader.add',
-                                               
upload_target:'property.bocondition_survey.addfiles',
-                                               id: survey_id
-                                       };
+                        var survey_id = '<xsl:value-of select='survey/id'/>';
+                        var fileuploader_action = {
+                        menuaction:'property.fileuploader.add',
+                        upload_target:'property.bocondition_survey.addfiles',
+                        id: survey_id
+                        };
                                        
-                                       this.show_related_requests = function()
-                                       {
-                                               var oArgs = 
{menuaction:'property.uirequest.index', nonavbar:1, 
condition_survey_id:survey_id};
-                                               var requestUrl = 
phpGWLink('index.php', oArgs);
-                                               
TINY.box.show({iframe:requestUrl, 
boxid:'frameless',width:screen.width*.9,height:screen.height*.5,fixed:false,maskid:'darkmask',maskopacity:40,
 mask:true, animate:true, close: true});
-                                       }
-                               </script>
+                        this.show_related_requests = function()
+                        {
+                        var oArgs = {menuaction:'property.uirequest.index', 
nonavbar:1, condition_survey_id:survey_id};
+                        var requestUrl = phpGWLink('index.php', oArgs);
+                        TINY.box.show({iframe:requestUrl, 
boxid:'frameless',width:screen.width*.9,height:screen.height*.5,fixed:false,maskid:'darkmask',maskopacity:40,
 mask:true, animate:true, close: true});
+                        }
+                    </script>
 
-                               <xsl:call-template name="datasource-definition" 
/>
+                    <xsl:call-template name="datasource-definition" />
 
-                               <dl class="proplist-col">
+                    <dl class="proplist-col">
 
-                                               <dt>
-                                                       <label><xsl:value-of 
select="php:function('lang', 'files')"/></label>
-                                               </dt>
-                                               <dd>
-                                                       <div 
style="clear:both;" id="datatable-container_0"></div>
-                                               </dd>
+                        <dt>
+                            <label>
+                                <xsl:value-of select="php:function('lang', 
'files')"/>
+                            </label>
+                        </dt>
+                        <dd>
+                            <div style="clear:both;" 
id="datatable-container_0"></div>
+                        </dd>
 
-                                       <xsl:choose>
-                                               <xsl:when test="editable = 1">
-                                                       <xsl:call-template 
name="file_upload"/>
-                                               </xsl:when>
-                                       </xsl:choose>
-                               </dl>
-                       </div>
-                       <div id="request">
-                               <dl class="proplist-col">
-                                       <dt>
-                                               <label>
-                                                       <a 
href="javascript:show_related_requests();">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'details')"/>
-                                                               </xsl:attribute>
-                                                               <xsl:value-of 
select="php:function('lang', 'details')"/>
-                                                       </a>
-                                               </label>
-                                       </dt>
-                                       <dt>
-                                               <label>
-                                                       <xsl:variable 
name="lang_new_request"><xsl:value-of select="php:function('lang', 'new 
record')" /></xsl:variable>
-                                                       <a 
href="javascript:document.load_new_request_form.submit();">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="$lang_new_request"/>
-                                                               </xsl:attribute>
-                                                               <xsl:value-of 
select="$lang_new_request"/>
-                                                       </a>
-                                               </label>
-                                       </dt>
+                        <xsl:choose>
+                            <xsl:when test="editable = 1">
+                                <xsl:call-template name="file_upload"/>
+                            </xsl:when>
+                        </xsl:choose>
+                    </dl>
+                </div>
+                <div id="request">
+                    <dl class="proplist-col">
+                        <dt>
+                            <label>
+                                <a href="javascript:show_related_requests();">
+                                    <xsl:attribute name="title">
+                                        <xsl:value-of 
select="php:function('lang', 'details')"/>
+                                    </xsl:attribute>
+                                    <xsl:value-of select="php:function('lang', 
'details')"/>
+                                </a>
+                            </label>
+                        </dt>
+                        <dt>
+                            <label>
+                                <xsl:variable name="lang_new_request">
+                                    <xsl:value-of select="php:function('lang', 
'new record')" />
+                                </xsl:variable>
+                                <a 
href="javascript:document.load_new_request_form.submit();">
+                                    <xsl:attribute name="title">
+                                        <xsl:value-of 
select="$lang_new_request"/>
+                                    </xsl:attribute>
+                                    <xsl:value-of select="$lang_new_request"/>
+                                </a>
+                            </label>
+                        </dt>
 
-                                       <dt>
-                                               <label><xsl:value-of 
select="php:function('lang', 'request')"/></label>
-                                       </dt>
-                                       <dd>
-                                               <div style="clear:both;" 
id="datatable-container_1"></div>
-                                       </dd>
-                               </dl>
-                       </div>
-                       <div id="summation">
-                               <dl class="proplist-col">
-                                       <dt>
-                                               <label><xsl:value-of 
select="php:function('lang', 'summation')"/></label>
-                                       </dt>
-                                       <dd>
-                                               <div style="clear:both;" 
id="datatable-container_2"></div>
-                                       </dd>
-                               </dl>
-                       </div>
-                       <div id="import">
-                               <xsl:choose>
-                                       <xsl:when test="editable = 1">
-                                               <dl class="proplist-col">
-                                                       <dt>
-                                                               
<label><xsl:value-of select="php:function('lang', 'upload file')"/></label>
-                                                       </dt>
-                                                       <dd>
-                                                               <input 
type="file" name="import_file" size="40">
-                                                                       
<xsl:attribute name="title">
-                                                                               
<xsl:value-of select="php:function('lang', 'Select file to upload')"/>
-                                                                       
</xsl:attribute>
-                                                               </input>
-                                                       </dd>
-                                               </dl>
-                               </xsl:when>
-                       </xsl:choose>
-                       </div>
-                       </div>
-                               <dl class="proplist-col">
-                                               <div class="form-buttons">
-                                                       <xsl:variable 
name="lang_cancel"><xsl:value-of select="php:function('lang', 'cancel')" 
/></xsl:variable>
-                                                       <xsl:choose>
-                                                               <xsl:when 
test="editable = 1">
-                                                                       
<xsl:variable name="lang_save"><xsl:value-of select="php:function('lang', 
'save')" /></xsl:variable>
-                                                                       <input 
type="submit" name="save_project" value="{$lang_save}" title = "{$lang_save}" />
-                                                                       <input 
class="button" type="button" name="cancelButton" id ='cancelButton' 
value="{$lang_cancel}" title = "{$lang_cancel}" 
onClick="document.cancel_form.submit();"/>
-                                                               </xsl:when>
-                                                               <xsl:otherwise>
-                                                                       
<xsl:variable name="lang_edit"><xsl:value-of select="php:function('lang', 
'edit')" /></xsl:variable>
-                                                                       
<xsl:variable name="lang_new_survey"><xsl:value-of select="php:function('lang', 
'new')" /></xsl:variable>
-                                                                       <input 
type="button" name="edit_survey" value="{$lang_edit}" title = "{$lang_edit}"  
onClick="document.load_edit_form.submit();"/>
-                                                                       <input 
type="button" name="new_survey" value="{$lang_new_survey}" title = 
"{$lang_new_survey}" onClick="document.new_form.submit();"/>
-                                                                       <input 
class="button" type="button" name="cancelButton" id ='cancelButton' 
value="{$lang_cancel}" title = "{$lang_cancel}" 
onClick="document.cancel_form.submit();"/>
-                                                               </xsl:otherwise>
-                                                       </xsl:choose>
-                                               </div>
+                        <dt>
+                            <label>
+                                <xsl:value-of select="php:function('lang', 
'request')"/>
+                            </label>
+                        </dt>
+                        <dd>
+                            <div style="clear:both;" 
id="datatable-container_1"></div>
+                        </dd>
+                    </dl>
+                </div>
+                <div id="summation">
+                    <dl class="proplist-col">
+                        <dt>
+                            <label>
+                                <xsl:value-of select="php:function('lang', 
'summation')"/>
+                            </label>
+                        </dt>
+                        <dd>
+                            <div style="clear:both;" 
id="datatable-container_2"></div>
+                        </dd>
+                    </dl>
+                </div>
+                <div id="import">
+                    <xsl:choose>
+                        <xsl:when test="editable = 1">
+                            <dl class="proplist-col">
+                                <dt>
+                                    <label>
+                                        <xsl:value-of 
select="php:function('lang', 'upload file')"/>
+                                    </label>
+                                </dt>
+                                <dd>
+                                    <input type="file" name="import_file" 
size="40">
+                                        <xsl:attribute name="title">
+                                            <xsl:value-of 
select="php:function('lang', 'Select file to upload')"/>
+                                        </xsl:attribute>
+                                    </input>
+                                </dd>
+                            </dl>
+                        </xsl:when>
+                    </xsl:choose>
+                </div>
+            </div>
+            <dl class="proplist-col">
+                <div class="form-buttons">
+                    <xsl:variable name="lang_cancel">
+                        <xsl:value-of select="php:function('lang', 'cancel')" 
/>
+                    </xsl:variable>
+                    <xsl:choose>
+                        <xsl:when test="editable = 1">
+                            <xsl:variable name="lang_save">
+                                <xsl:value-of select="php:function('lang', 
'save')" />
+                            </xsl:variable>
+                            <input type="submit" name="save_project" 
value="{$lang_save}" title = "{$lang_save}" />
+                            <input class="button" type="button" 
name="cancelButton" id ='cancelButton' value="{$lang_cancel}" title = 
"{$lang_cancel}" onClick="document.cancel_form.submit();"/>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:variable name="lang_edit">
+                                <xsl:value-of select="php:function('lang', 
'edit')" />
+                            </xsl:variable>
+                            <xsl:variable name="lang_new_survey">
+                                <xsl:value-of select="php:function('lang', 
'new')" />
+                            </xsl:variable>
+                            <input type="button" name="edit_survey" 
value="{$lang_edit}" title = "{$lang_edit}"  
onClick="document.load_edit_form.submit();"/>
+                            <input type="button" name="new_survey" 
value="{$lang_new_survey}" title = "{$lang_new_survey}" 
onClick="document.new_form.submit();"/>
+                            <input class="button" type="button" 
name="cancelButton" id ='cancelButton' value="{$lang_cancel}" title = 
"{$lang_cancel}" onClick="document.cancel_form.submit();"/>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </div>
 
 
-                       </dl>
-                       </form>
-               </div>
+            </dl>
+                            
+        </form>
+    </div>
 
-               <xsl:variable name="cancel_url">
-                       <xsl:value-of select="php:function('get_phpgw_link', 
'/index.php', 'menuaction:property.uicondition_survey.index')" />
-               </xsl:variable>
+    <xsl:variable name="cancel_url">
+        <xsl:value-of select="php:function('get_phpgw_link', '/index.php', 
'menuaction:property.uicondition_survey.index')" />
+    </xsl:variable>
 
-               <form name="cancel_form" id="cancel_form" 
action="{$cancel_url}" method="post">
-               </form>
-               <xsl:variable name="new_url">
-                       <xsl:value-of select="php:function('get_phpgw_link', 
'/index.php', 'menuaction:property.uicondition_survey.add')" />
-               </xsl:variable>
-               <form name="new_form" id="new_form" action="{$new_url}" 
method="post">
-               </form>
+    <form name="cancel_form" id="cancel_form" action="{$cancel_url}" 
method="post">
+    </form>
+    <xsl:variable name="new_url">
+        <xsl:value-of select="php:function('get_phpgw_link', '/index.php', 
'menuaction:property.uicondition_survey.add')" />
+    </xsl:variable>
+    <form name="new_form" id="new_form" action="{$new_url}" method="post">
+    </form>
 
-               <xsl:variable name="edit_params">
-                       <xsl:text>menuaction:property.uicondition_survey.edit, 
id:</xsl:text>
-                       <xsl:value-of select="survey/id" />
-               </xsl:variable>
-               <xsl:variable name="edit_url">
-                               <xsl:value-of 
select="php:function('get_phpgw_link', '/index.php', $edit_params )" />
-               </xsl:variable>
+    <xsl:variable name="edit_params">
+        <xsl:text>menuaction:property.uicondition_survey.edit, id:</xsl:text>
+        <xsl:value-of select="survey/id" />
+    </xsl:variable>
+    <xsl:variable name="edit_url">
+        <xsl:value-of select="php:function('get_phpgw_link', '/index.php', 
$edit_params )" />
+    </xsl:variable>
 
-               <form name="load_edit_form" id="load_edit_form" 
action="{$edit_url}" method="post">
-               </form>
+    <form name="load_edit_form" id="load_edit_form" action="{$edit_url}" 
method="post">
+    </form>
 
 
-               <xsl:variable name="new_request_params">
-                       <xsl:text>menuaction:property.uirequest.edit, 
location_code:</xsl:text>
-                       <xsl:value-of select="survey/location_code" />
-                       <xsl:text>,origin:.project.condition_survey, 
origin_id:</xsl:text>
-                       <xsl:value-of select="survey/id" />
-               </xsl:variable>
+    <xsl:variable name="new_request_params">
+        <xsl:text>menuaction:property.uirequest.edit, location_code:</xsl:text>
+        <xsl:value-of select="survey/location_code" />
+        <xsl:text>,origin:.project.condition_survey, origin_id:</xsl:text>
+        <xsl:value-of select="survey/id" />
+    </xsl:variable>
 
-               <xsl:variable name="new_request_url">
-                               <xsl:value-of 
select="php:function('get_phpgw_link', '/index.php', $new_request_params )" />
-               </xsl:variable>
+    <xsl:variable name="new_request_url">
+        <xsl:value-of select="php:function('get_phpgw_link', '/index.php', 
$new_request_params )" />
+    </xsl:variable>
 
-               <form name="load_new_request_form" id="load_new_request_form" 
action="{$new_request_url}" method="post">
-               </form>
+    <form name="load_new_request_form" id="load_new_request_form" 
action="{$new_request_url}" method="post">
+    </form>
 
-       </xsl:template>
+</xsl:template>
 
 <xsl:template name="datasource-definition">
-       <script>
-               var columnDefs = [];
-               YAHOO.util.Event.onDOMReady(function(){
-                       <xsl:for-each select="datatable_def">
-                               columnDefs = [
-                                       <xsl:for-each select="ColumnDefs">
-                                       {
-                                               resizeable: true,
-                                               key: "<xsl:value-of 
select="key"/>",
-                                               <xsl:if test="label">
-                                               label: "<xsl:value-of 
select="label"/>",
-                                               </xsl:if>
-                                               sortable: <xsl:value-of 
select="phpgw:conditional(not(sortable = 0), 'true', 'false')"/>,
-                                               <xsl:if test="hidden">
-                                               hidden: true,
-                                               </xsl:if>
-                                               <xsl:if test="formatter">
-                                               formatter: <xsl:value-of 
select="formatter"/>,
-                                               </xsl:if>
-                                               <xsl:if test="editor">
-                                               editor: <xsl:value-of 
select="editor"/>,
-                                           </xsl:if>
-                                               className: "<xsl:value-of 
select="className"/>"
-                                       }<xsl:value-of 
select="phpgw:conditional(not(position() = last()), ',', '')"/>
-                               </xsl:for-each>
-                               ];
+    <script>
+        var columnDefs = [];
+        YAHOO.util.Event.onDOMReady(function(){
+        <xsl:for-each select="datatable_def">
+            columnDefs = [
+            <xsl:for-each select="ColumnDefs">
+                {
+                resizeable: true,
+                key: "<xsl:value-of select="key"/>",
+                <xsl:if test="label">
+                    label: "<xsl:value-of select="label"/>",
+                </xsl:if>
+                sortable: <xsl:value-of select="phpgw:conditional(not(sortable 
= 0), 'true', 'false')"/>,
+                <xsl:if test="hidden">
+                    hidden: true,
+                </xsl:if>
+                <xsl:if test="formatter">
+                    formatter: <xsl:value-of select="formatter"/>,
+                </xsl:if>
+                <xsl:if test="editor">
+                    editor: <xsl:value-of select="editor"/>,
+                </xsl:if>
+                className: "<xsl:value-of select="className"/>"
+                }<xsl:value-of select="phpgw:conditional(not(position() = 
last()), ',', '')"/>
+            </xsl:for-each>
+            ];
                        
-                       YAHOO.portico.inlineTableHelper("<xsl:value-of 
select="container"/>", <xsl:value-of select="requestUrl"/>, columnDefs);
-               </xsl:for-each>
+            YAHOO.portico.inlineTableHelper("<xsl:value-of 
select="container"/>", <xsl:value-of select="requestUrl"/>, columnDefs);
+        </xsl:for-each>
 
-               var PaginatorName2 = 'paginator_containerdatatable-container_2';
-               var DatatableName2 = 'datatable_containerdatatable-container_2';
+        var PaginatorName2 = 'paginator_containerdatatable-container_2';
+        var DatatableName2 = 'datatable_containerdatatable-container_2';
 
-               var  myPaginator_2 = YAHOO.portico.Paginator[PaginatorName2];
-               var  myDataTable_2 = YAHOO.portico.DataTable[DatatableName2];
+        var  myPaginator_2 = YAHOO.portico.Paginator[PaginatorName2];
+        var  myDataTable_2 = YAHOO.portico.DataTable[DatatableName2];
 
-               myDataTable_2.subscribe("renderEvent", function()
-               {
-                       addFooterDatatable2(myPaginator_2,myDataTable_2);
-               });
-       });
-  </script>
+        myDataTable_2.subscribe("renderEvent", function()
+        {
+        addFooterDatatable2(myPaginator_2,myDataTable_2);
+        });
+        });
+    </script>
 
 </xsl:template>
 
 
 <xsl:template match="options">
-       <option value="{id}">
-               <xsl:if test="selected = 'selected' or selected = 1">
-                       <xsl:attribute name="selected" value="selected" />
-               </xsl:if>
-               <xsl:attribute name="title" value="description" />
-               <xsl:value-of disable-output-escaping="yes" select="name"/>
-       </option>
+    <option value="{id}">
+        <xsl:if test="selected = 'selected' or selected = 1">
+            <xsl:attribute name="selected" value="selected" />
+        </xsl:if>
+        <xsl:attribute name="title" value="description" />
+        <xsl:value-of disable-output-escaping="yes" select="name"/>
+    </option>
 </xsl:template>
 
-       <xsl:template xmlns:php="http://php.net/xsl"; name="file_upload">
-               <dt>
-                       <label><xsl:value-of select="php:function('lang', 
'upload file')"/></label>
-               </dt>
-               <dd>
-                       <input type="file" name="file" size="40">
-                               <xsl:attribute name="title">
-                                       <xsl:value-of 
select="php:function('lang', 'Select file to upload')"/>
-                               </xsl:attribute>
-                       </input>
-               </dd>
-               <xsl:choose>
-                       <xsl:when test="multiple_uploader!=''">
-                               <dt>
-                                       <label><a 
href="javascript:fileuploader()">
-                                               <xsl:attribute name="title">
-                                                       <xsl:value-of 
select="php:function('lang', 'upload multiple files')"/>
-                                               </xsl:attribute>
-                                               <xsl:value-of 
select="php:function('lang', 'upload multiple files')"/>
-                                       </a></label>
-                               </dt>
-                       </xsl:when>
-               </xsl:choose>
-       </xsl:template>
+<xsl:template xmlns:php="http://php.net/xsl"; name="file_upload">
+    <dt>
+        <label>
+            <xsl:value-of select="php:function('lang', 'upload file')"/>
+        </label>
+    </dt>
+    <dd>
+        <input type="file" name="file" size="40">
+            <xsl:attribute name="title">
+                <xsl:value-of select="php:function('lang', 'Select file to 
upload')"/>
+            </xsl:attribute>
+        </input>
+    </dd>
+    <xsl:choose>
+        <xsl:when test="multiple_uploader!=''">
+            <dt>
+                <label>
+                    <a href="javascript:fileuploader()">
+                        <xsl:attribute name="title">
+                            <xsl:value-of select="php:function('lang', 'upload 
multiple files')"/>
+                        </xsl:attribute>
+                        <xsl:value-of select="php:function('lang', 'upload 
multiple files')"/>
+                    </a>
+                </label>
+            </dt>
+        </xsl:when>
+    </xsl:choose>
+</xsl:template>
 




reply via email to

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