[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12369] class.uitemplate.inc
From: |
Saul |
Subject: |
[Fmsystem-commits] [12369] class.uitemplate.inc |
Date: |
Mon, 24 Nov 2014 23:12:34 +0000 |
Revision: 12369
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12369
Author: psaul
Date: 2014-11-24 23:12:33 +0000 (Mon, 24 Nov 2014)
Log Message:
-----------
class.uitemplate.inc
Modified Paths:
--------------
branches/dev-syncromind/property/inc/class.uitemplate.inc.php
Modified: branches/dev-syncromind/property/inc/class.uitemplate.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uitemplate.inc.php
2014-11-23 20:32:39 UTC (rev 12368)
+++ branches/dev-syncromind/property/inc/class.uitemplate.inc.php
2014-11-24 23:12:33 UTC (rev 12369)
@@ -701,21 +701,19 @@
$template_id = phpgw::get_var('template_id', 'int');
$values = phpgw::get_var('values');
$receipt = array();
-
+
$GLOBALS['phpgw']->xslttpl->add_file(array('template'));
if ($values['save'])
{
- $values['template_id'] = $template_id;
-
+ $values['template_id'] = $template_id;
if(!isset($receipt['error']) ||
!$receipt['error'])
{
$receipt =
$this->bo->save_template($values);
-
$template_id=$receipt['template_id'];
}
}
-
+
if ($template_id)
{
$values =
$this->bo->read_single_template($template_id);
@@ -775,7 +773,29 @@
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('edit_template' => $data));
// $GLOBALS['phpgw']->xslttpl->pp();
}
-
+
+ public function save()
+ {
+
+ $template_id = phpgw::get_var('template_id', 'int');
+ $values = phpgw::get_var('values');
+
+ if ($template_id)
+ {
+ $values =
$this->bo->read_single_template($template_id);
+ $function_msg = lang('Edit template');
+ }
+ else
+ {
+ $data = $this->bo->read_single_template();
+ $function_msg = lang('Add template');
+ }
+ /*
+ * Overrides with incoming data from POST
+ */
+
+ }
+
function edit_hour()
{
$template_id = phpgw::get_var('template_id',
'int');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12369] class.uitemplate.inc,
Saul <=