[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7463] - Added new field furnish status to table that
From: |
Torstein |
Subject: |
[Fmsystem-commits] [7463] - Added new field furnish status to table that shows all composites. |
Date: |
Mon, 04 Jul 2011 06:55:14 +0000 |
Revision: 7463
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7463
Author: vator
Date: 2011-07-04 06:55:13 +0000 (Mon, 04 Jul 2011)
Log Message:
-----------
- Added new field furnish status to table that shows all composites.
- Added furnish status field as a drop down box to add composite view.
Modified Paths:
--------------
trunk/rental/templates/base/composite_list_partial.php
Modified: trunk/rental/templates/base/composite_list_partial.php
===================================================================
--- trunk/rental/templates/base/composite_list_partial.php 2011-07-04
06:37:26 UTC (rev 7462)
+++ trunk/rental/templates/base/composite_list_partial.php 2011-07-04
06:55:13 UTC (rev 7463)
@@ -1,7 +1,7 @@
<script type="text/javascript">
function checkAvailabitily()
-{
+{
if(document.forms[0].availability_date_to.value == '')
{
document.forms[0].availability_date_to.value =
document.forms[0].availability_date_from.value;
@@ -54,6 +54,16 @@
sortable: true
},
{
+ key: "contracts",
+ label: "<?php echo lang('contract_future_info') ?>",
+ sortable: false
+ },
+ {
+ key: "furnished_status",
+ label: "<?php echo lang('furnish_type') ?>",
+ sortable: false
+ },
+ {
key: "actions",
hidden: true
},
@@ -71,7 +81,7 @@
'index.php?menuaction=rental.uicomposite.query&phpgw_return_as=json<?php
echo $url_add_on; ?>&editable=<?php echo isset($editable) && $editable ?
"true" : "false"; ?>',
columnDefs,
'<?php echo $list_id ?>_form',
- ['<?php echo $list_id
?>_ctrl_toggle_active_rental_composites','<?php echo $list_id
?>_ctrl_toggle_occupancy_of_rental_composites','<?php echo $list_id
?>_ctrl_toggle_has_contract_rental_composites','<?php echo $list_id
?>_ctrl_search_query'],
+ ['<?php echo $list_id
?>_ctrl_toggle_furnished_status_rental_composites','<?php echo $list_id
?>_ctrl_toggle_active_rental_composites','<?php echo $list_id
?>_ctrl_toggle_occupancy_of_rental_composites','<?php echo $list_id
?>_ctrl_toggle_has_contract_rental_composites','<?php echo $list_id
?>_ctrl_search_query'],
'<?php echo $list_id ?>_container',
'<?php echo $list_id ?>_paginator',
'<?php echo $list_id ?>',
@@ -95,6 +105,9 @@
var availabilityselect = document.getElementById('<?php echo $list_id
?>_ctrl_toggle_active_rental_composites');
var availabilityoption =
availabilityselect.options[availabilityselect.selectedIndex].value;
+ var furnished_select = document.getElementById('<?php echo $list_id
?>_ctrl_toggle_furnished_status_rental_composites');
+ var furnished_status_id =
furnished_select.options[furnished_select.selectedIndex].value;
+
var query = document.getElementById('<?php echo $list_id
?>_ctrl_search_query').value;
var sSelect = document.getElementById('<?php echo $list_id
?>_ctrl_search_option');
@@ -102,6 +115,7 @@
window.location = 'index.php?menuaction=rental.uicomposite.download'+
'<?php echo $url_add_on ?>'+
+ '&furnished_status='+furnished_status_id+
'&is_active='+availabilityoption+
'&type='+compType+
'&query='+query+
@@ -149,6 +163,19 @@
<fieldset>
<!-- Filters -->
<h3><?php echo lang('filters') ?></h3>
+
+ <!-- Møbleringsstatus -->
+ <label for="furnished_status"><?php echo lang('furnish_type')
?></label>
+ <select name="furnished_status" id="<?php echo $list_id
?>_ctrl_toggle_furnished_status_rental_composites">
+ <?php
+ $furnish_types_arr =
rental_composite::get_furnish_types();
+
+ echo "<option value='4'>Alle</option>";
+ foreach($furnish_types_arr as $id => $title){
+ echo "<option value='$id'>" . $title .
"</option>";
+ }
+ ?>
+ </select>
<label for="ctrl_toggle_active_rental_composites"><?php echo
lang('availability') ?></label>
<select name="is_active" id="<?php echo $list_id
?>_ctrl_toggle_active_rental_composites">
<option value="both" <?php echo ($status == 'both') ?
'selected' : ''?>><?php echo lang('all') ?></option>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7463] - Added new field furnish status to table that shows all composites.,
Torstein <=