fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [13033] class.uievent.inc


From: Saul
Subject: [Fmsystem-commits] [13033] class.uievent.inc
Date: Fri, 17 Apr 2015 21:09:22 +0000

Revision: 13033
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13033
Author:   psaul
Date:     2015-04-17 21:09:21 +0000 (Fri, 17 Apr 2015)
Log Message:
-----------
class.uievent.inc

Modified Paths:
--------------
    branches/dev-syncromind/property/inc/class.uievent.inc.php

Modified: branches/dev-syncromind/property/inc/class.uievent.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uievent.inc.php  2015-04-17 
12:18:50 UTC (rev 13032)
+++ branches/dev-syncromind/property/inc/class.uievent.inc.php  2015-04-17 
21:09:21 UTC (rev 13033)
@@ -55,6 +55,7 @@
                                'schedule2'     => true,
                                'schedule_week' => true,
                 '_get_filters'  => true,
+                'updatereceipt' => true,
                        );
 
                function __construct()
@@ -150,6 +151,23 @@
                             return $combos;
         }
         
+        function updatereceipt(){
+            
+            $idevent    = !empty($_POST['ids'])?$_POST['ids']:'';
+            $idchecks  = !empty($_POST['mckec'])?$_POST['mckec']:'';
+            
+            $receipt = array();
+            if($idevent && $idchecks)
+                       {
+                $values = array
+                                (
+                                    'events' => $idchecks,
+                                );
+                
+                               $receipt = $this->bo->update_receipt($values);
+                       }
+        }
+        
                function index()
                {
                        $this->acl_location = '.scheduled_events';
@@ -175,6 +193,7 @@
                        {
                                $receipt = $this->bo->update_receipt($values);
                        }
+            
                        $this->save_sessiondata();
             
             if( phpgw::get_var('phpgw_return_as') == 'json' )
@@ -300,13 +319,13 @@
                             'hidden' => FALSE,
                             'formatter' => 'JqueryPortico.formatLinkEvent'
                         ),
-                        array(
-                            'key' => 'select',
-                            'label' => lang('select'),
-                            'sortable' => FALSE,
-                            'hidden' => FALSE,
-                            'formatter' => 'JqueryPortico.formatCheckEvent'
-                        ),
+//                        array(
+//                            'key' => 'select',
+//                            'label' => lang('select'),
+//                            'sortable' => FALSE,
+//                            'hidden' => FALSE,
+//                            'formatter' => 'JqueryPortico.formatCheckEvent'
+//                        ),
                     )
                 )
             );
@@ -362,9 +381,17 @@
                 );
                        }
             
+            $data['datatable']['actions'][] = array
+            (
+                'my_name'      => 'save',
+                'text'                 => lang('save'),
+                'type'         => 'custom',
+                'custom_code' => "onSave();"
+            );
+            
                        unset($parameters);
-
-                       if($this->acl_add)
+            
+                       /*if($this->acl_add)
                        {
                                $data['datatable']['actions'][] = array
                 (
@@ -378,9 +405,9 @@
                         'type_id'              => $type_id
                     ))
                 );
-                       }
+                       }*/
            
-            
+            self::add_javascript('property', 'portico', 'event.index.js');
             self::render_template_xsl('datatable_jquery', $data);
                }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]