[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10532] property: more on condition survey
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [10532] property: more on condition survey |
Date: |
Fri, 23 Nov 2012 14:50:20 +0000 |
Revision: 10532
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10532
Author: sigurdne
Date: 2012-11-23 14:50:19 +0000 (Fri, 23 Nov 2012)
Log Message:
-----------
property: more on condition survey
Modified Paths:
--------------
trunk/property/inc/class.uicondition_survey.inc.php
Modified: trunk/property/inc/class.uicondition_survey.inc.php
===================================================================
--- trunk/property/inc/class.uicondition_survey.inc.php 2012-11-23 08:07:08 UTC
(rev 10531)
+++ trunk/property/inc/class.uicondition_survey.inc.php 2012-11-23 14:50:19 UTC
(rev 10532)
@@ -238,7 +238,7 @@
$this->bocommon->no_access();
return;
}
- $this->edit($mode = 'view');
+ $this->edit(null, $mode = 'view');
}
public function add()
@@ -246,7 +246,7 @@
$this->edit();
}
- public function edit($mode = 'edit')
+ public function edit($values = array(), $mode = 'edit')
{
$id = phpgw::get_var('id', 'int');
@@ -272,8 +272,7 @@
}
}
- $values = array();
-
+//_debug_array($values);die();
phpgwapi_yui::tabview_setup('survey_edit_tabview');
$tabs = array();
$tabs['generic'] = array('label' =>
lang('generic'), 'link' => '#generic');
@@ -390,6 +389,61 @@
private function _populate($data = array())
{
$insert_record =
phpgwapi_cache::session_get('property', 'insert_record');
+
+ $values = phpgw::get_var('values');
+
+ $_fields = array
+ (
+ array
+ (
+ 'name' => 'title',
+ 'type' => 'string',
+ 'required' => true
+ ),
+ array
+ (
+ 'name' => 'description',
+ 'type' => 'string',
+ 'required' => true
+ ),
+ array
+ (
+ 'name' => 'cat_id',
+ 'type' => 'integer',
+ 'required' => true
+ ),
+ array
+ (
+ 'name' => 'report_date',
+ 'type' => 'string',
+ 'required' => true
+ ),
+ array
+ (
+ 'name' => 'status_id',
+ 'type' => 'integer',
+ 'required' => true
+ ),
+ array
+ (
+ 'name' => 'vendor_id',
+ 'type' => 'integer',
+ 'required' => false
+ ),
+ array
+ (
+ 'name' => 'vendor_name',
+ 'type' => 'string',
+ 'required' => false
+ ),
+ );
+
+
+ foreach ($_fields as $_field)
+ {
+ $data[$_field['name']] =
phpgw::get_var($_field['name'], 'POST', $_field['type']);
+ }
+
$values =
$this->bocommon->collect_locationdata($data,$insert_record);
/*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10532] property: more on condition survey,
Sigurd Nes <=