[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16328]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [16328] |
Date: |
Thu, 16 Feb 2017 12:53:57 -0500 (EST) |
Revision: 16328
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16328
Author: nelson224
Date: 2017-02-16 12:53:57 -0500 (Thu, 16 Feb 2017)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind-2/property/inc/class.uitts.inc.php
Modified: branches/dev-syncromind-2/property/inc/class.uitts.inc.php
===================================================================
--- branches/dev-syncromind-2/property/inc/class.uitts.inc.php 2017-02-16
17:53:22 UTC (rev 16327)
+++ branches/dev-syncromind-2/property/inc/class.uitts.inc.php 2017-02-16
17:53:57 UTC (rev 16328)
@@ -37,6 +37,7 @@
var $public_functions = array
(
+ 'report' => true,
'index' => true,
'view' => true,
'add' => true,
@@ -1179,6 +1180,59 @@
self::render_template_xsl('datatable_jquery', $data);
}
+ function report()
+ {
+ if (!$this->acl_read)
+ {
+ $this->bocommon->no_access();
+ return;
+ }
+
+
$GLOBALS['phpgw']->jqcal->add_listener('filter_start_date');
+
$GLOBALS['phpgw']->jqcal->add_listener('filter_end_date');
+
+ $filters = $this->_get_filters();
+
+ $list_categories =
$this->cats->formatted_xslt_list(array('format' => 'filter',
+ 'selected' => $this->cat_id, 'globals' => true,
'use_acl' => $this->_category_acl));
+
+
+ $_categories = array();
+ foreach ($list_categories['cat_list'] as $_category)
+ {
+ $_categories[$_category['cat_id']] =
$_category['name'];
+ }
+
+ $list_status = $this->bo->filter(array('format' => '',
'filter' => $this->status_id,
+ 'default' => 'O'));
+
+ if
(isset($this->bo->config->config_data['tts_lang_open']) &&
$this->bo->config->config_data['tts_lang_open'])
+ {
+ array_unshift($list_status, array('id' => 'O2',
'name' => $this->bo->config->config_data['tts_lang_open']));
+ }
+ $default_value = array('id' => '', 'name' =>
lang('Open'));
+ array_unshift($list_status, $default_value);
+
+ $_status = array();
+ foreach ($list_status as $_item)
+ {
+ $_status[$_item['id']] = $_item['name'];
+ }
+
+ $appname = lang('helpdesk');
+ $function_msg = lang('Report ticket');
+
+ self::add_javascript('property', 'portico', 'utils.js');
+
+ $data = array(
+ 'categories' => $_categories,
+ 'status' => $_status
+ );
+
+ $GLOBALS['phpgw_info']['flags']['app_header'] =
lang('property') . ' - ' . $appname . ': ' . $function_msg;
+ self::render_template_xsl(array('tts_report'), $data);
+ }
+
function add()
{
if (!$this->acl_add)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16328],
nelson . guerra <=