[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [8500]
From: |
Torstein |
Subject: |
[Fmsystem-commits] [8500] |
Date: |
Thu, 05 Jan 2012 16:25:37 +0000 |
Revision: 8500
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8500
Author: vator
Date: 2012-01-05 16:25:36 +0000 (Thu, 05 Jan 2012)
Log Message:
-----------
Modified Paths:
--------------
trunk/controller/inc/class.uicheck_list.inc.php
trunk/controller/inc/class.uicheck_list_for_location.inc.php
Modified: trunk/controller/inc/class.uicheck_list.inc.php
===================================================================
--- trunk/controller/inc/class.uicheck_list.inc.php 2012-01-05 16:25:09 UTC
(rev 8499)
+++ trunk/controller/inc/class.uicheck_list.inc.php 2012-01-05 16:25:36 UTC
(rev 8500)
@@ -57,7 +57,8 @@
'control_calendar_status_overview' => true,
'add_check_item_to_list' =>
true,
'update_check_list'
=> true,
- 'view_control_items' =>
true
+ 'view_control_items' =>
true,
+ 'view_control_details' =>
true
);
public function __construct()
@@ -309,7 +310,41 @@
echo $html;
}
+
+ public function view_control_details(){
+ $control_id = phpgw::get_var('control_id');
+
+ $control = $this->so_control->get_single($control_id);
+
+ $data = array
+ (
+ 'control' => $control->toArray()
+ );
+
+ $xslttemplate = CreateObject('phpgwapi.xslttemplates');
+
+ $xslttemplate->add_file(array(PHPGW_SERVER_ROOT .
'/controller/templates/base/control/view_control_details'));
+
+ $xslttemplate->set_var('phpgw',array('view_control_details' =>
$data));
+
+ $xslttemplate->xsl_parse();
+ $xslttemplate->xml_parse();
+
+ $xml = new DOMDocument;
+ $xml->loadXML($xslttemplate->xmldata);
+ $xsl = new DOMDocument;
+ $xsl->loadXML($xslttemplate->xsldata);
+
+ // Configure the transformer
+ $proc = new XSLTProcessor;
+ $proc->importStyleSheet($xsl); // attach the xsl rules
+
+ $html = $proc->transformToXML($xml);
+
+ echo $html;
+ }
+
public function view_check_lists_for_control()
{
$control_id = phpgw::get_var('id');
Modified: trunk/controller/inc/class.uicheck_list_for_location.inc.php
===================================================================
--- trunk/controller/inc/class.uicheck_list_for_location.inc.php
2012-01-05 16:25:09 UTC (rev 8499)
+++ trunk/controller/inc/class.uicheck_list_for_location.inc.php
2012-01-05 16:25:36 UTC (rev 8500)
@@ -533,7 +533,7 @@
self::add_javascript('controller', 'controller',
'jquery.js');
self::add_javascript('controller', 'controller',
'jquery-ui.custom.min.js');
- self::render_template_xsl('view_control_info', $data);
+
self::render_template_xsl('check_list/view_control_info', $data);
}
function get_timestamp_from_date( $date_string ){
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [8500],
Torstein <=