fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [6573] rental: updated contracts list for regulations


From: Joakim Hop
Subject: [Fmsystem-commits] [6573] rental: updated contracts list for regulations
Date: Wed, 10 Nov 2010 11:41:53 +0000

Revision: 6573
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6573
Author:   joakim_hop
Date:     2010-11-10 11:41:53 +0000 (Wed, 10 Nov 2010)
Log Message:
-----------
rental:  updated contracts list for regulations

Modified Paths:
--------------
    trunk/rental/templates/base/adjustment.php
    trunk/rental/templates/base/contracts_for_regulation_list.php

Modified: trunk/rental/templates/base/adjustment.php
===================================================================
--- trunk/rental/templates/base/adjustment.php  2010-11-10 11:31:47 UTC (rev 
6572)
+++ trunk/rental/templates/base/adjustment.php  2010-11-10 11:41:53 UTC (rev 
6573)
@@ -61,18 +61,7 @@
                        <label for="adjustment_year"><?php echo lang('year') 
?></label>
                </dt>
                <dd>
-                       <select name="adjustment_year" id="adjustment_year">
-                               <?php
-                               $this_year = date('Y');
-                               $years = rental_contract::get_year_range();
-                               foreach($years as $year)
-                               {
-                                       ?>
-                                       <option value="<?php echo $year 
?>"<?php echo $this_year == $year ? ' selected="selected"' : '' ?>><?php echo 
$year ?></option>
-                                       <?php
-                               }
-                               ?>
-                       </select>
+                       <?php echo $adjustment->get_year(); ?>
                </dd>
                <dt>
                        <label for="adjustment_date"><?php echo 
lang('adjustment_date') ?></label>

Modified: trunk/rental/templates/base/contracts_for_regulation_list.php
===================================================================
--- trunk/rental/templates/base/contracts_for_regulation_list.php       
2010-11-10 11:31:47 UTC (rev 6572)
+++ trunk/rental/templates/base/contracts_for_regulation_list.php       
2010-11-10 11:41:53 UTC (rev 6573)
@@ -25,6 +25,9 @@
                <label for="interval"><?php echo lang('interval') ?></label>
                <?php echo $adjustment->get_interval().' '.lang('year'); ?>
                <br/>
+               <label for="adjustment_year"><?php echo lang('year') ?></label>
+               <?php echo $adjustment->get_year(); ?>
+               <br/>
                <label for="adjustment_date"><?php echo lang('adjustment_date') 
?></label>
                <?php
                        $adjustment_date = $adjustment->get_adjustment_date() ? 
date($GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'], 
$adjustment->get_adjustment_date()) : '-';




reply via email to

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