[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [9562]
From: |
Torstein |
Subject: |
[Fmsystem-commits] [9562] |
Date: |
Tue, 12 Jun 2012 11:50:27 +0000 |
Revision: 9562
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9562
Author: vator
Date: 2012-06-12 11:50:27 +0000 (Tue, 12 Jun 2012)
Log Message:
-----------
Modified Paths:
--------------
trunk/controller/inc/class.uicheck_list.inc.php
Modified: trunk/controller/inc/class.uicheck_list.inc.php
===================================================================
--- trunk/controller/inc/class.uicheck_list.inc.php 2012-06-12 11:32:34 UTC
(rev 9561)
+++ trunk/controller/inc/class.uicheck_list.inc.php 2012-06-12 11:50:27 UTC
(rev 9562)
@@ -381,29 +381,6 @@
self::render_template_xsl('create_case_messsage',
$data);
}
- public function view_control_info(){
- $check_list_id = phpgw::get_var('check_list_id');
-
- $check_list = $this->so->get_single($check_list_id);
- $control =
$this->so_control->get_single($check_list->get_control_id());
-
- $location_code = $check_list->get_location_code();
- $location_array =
execMethod('property.bolocation.read_single', array('location_code' =>
$location_code));
-
- $data = array
- (
- 'location_array'
=> $location_array,
- 'control'
=> $control->toArray(),
- 'check_list'
=> $check_list->toArray(),
- 'role_array'
=> $role_array
- );
-
- self::add_javascript('controller', 'controller',
'jquery.js');
- self::add_javascript('controller', 'controller',
'jquery-ui.custom.min.js');
-
-
self::render_template_xsl(array('check_list/check_list_tab_menu','check_list/view_control_info'),
$data);
- }
-
// Saves a check list that already exists. Returns status for
update as a JSON array with values update/not updated
public function update_check_list(){
$check_list_id = phpgw::get_var('check_list_id');
@@ -468,17 +445,37 @@
self::render_template_xsl('check_list/print_check_list', $data);
}
+ public function view_control_info(){
+ $check_list_id = phpgw::get_var('check_list_id');
+
+ $check_list = $this->so->get_single($check_list_id);
+ $control =
$this->so_control->get_single($check_list->get_control_id());
+
+ $location_code = $check_list->get_location_code();
+ $location_array =
execMethod('property.bolocation.read_single', array('location_code' =>
$location_code));
+
+ $data = array
+ (
+ 'location_array'
=> $location_array,
+ 'control'
=> $control->toArray(),
+ 'check_list'
=> $check_list->toArray(),
+ );
+
+ self::add_javascript('controller', 'controller',
'jquery.js');
+ self::add_javascript('controller', 'controller',
'jquery-ui.custom.min.js');
+
+
self::render_template_xsl(array('check_list/check_list_tab_menu','check_list/view_control_info'),
$data);
+ }
+
+
function view_control_details(){
$control_id = phpgw::get_var('control_id');
$control = $this->so_control->get_single($control_id);
- $procedures_array =
$this->so_procedure->get_procedures_by_control_area($control->get_control_area_id());
-
$data = array
(
'control'
=> $control->toArray(),
- 'procedures_array' => $procedures_array,
);
self::render_template_xsl('check_list/view_control_details', $data);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [9562],
Torstein <=