phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/class.uiproject.php, 1.1.1.2


From: nomail
Subject: [Phpgroupware-cvs] property/class.uiproject.php, 1.1.1.2
Date: Fri, 18 Jun 2004 15:39:57 +0200

Update of /property
Modified Files:
        Branch: 
          class.uiproject.php

date: 2004/06/18 13:39:57;  author: sigurdne;  state: Exp;  lines: +34 -34

Log Message:
no message
=====================================================================
Index: property/class.uiproject.php
diff -u property/class.uiproject.php:1.1.1.1 
property/class.uiproject.php:1.1.1.2
--- property/class.uiproject.php:1.1.1.1        Wed Jun  2 20:07:08 2004
+++ property/class.uiproject.php        Fri Jun 18 13:39:57 2004
@@ -140,7 +140,7 @@
                        if(!$this->acl_read)
                        {
                                echo 'hepp';
-                               
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'.uilocation.stop&perm=1&acl_location='
 . $this->acl2_location);
+                               
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'_uilocation.stop&perm=1&acl_location='
 . $this->acl2_location);
                        }
 
                        
$this->bocommon->xsl_add_file(array('project','values','table_header',
@@ -173,7 +173,7 @@
                                                        {
                                                                
$content[$j]['row'][$k]['statustext']                   = lang('search');
                                                                
$content[$j]['row'][$k]['text']                                 = 
$project_entry[$uicols['name'][$k]];
-                                                               
$content[$j]['row'][$k]['link']                         = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiproject.index&query='
 . $project_entry['query_location'][$uicols['name'][$k]] . '&lookup=' . $lookup 
. '&filter=' . $this->filter);
+                                                               
$content[$j]['row'][$k]['link']                         = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiproject.index&query='
 . $project_entry['query_location'][$uicols['name'][$k]] . '&lookup=' . $lookup 
. '&filter=' . $this->filter);
                                                        }
                                                        else
                                                        {
@@ -185,12 +185,12 @@
                                                {
                                                        
$content[$j]['row'][$k]['statustext']                   = lang('search');
                                                        
$content[$j]['row'][$k]['text']                                 = 
$project_entry[$uicols['name'][$k]];
-                                                       
$content[$j]['row'][$k]['link']                         = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uitts.view&id='
 . $project_entry[$uicols['name'][$k]]);
+                                                       
$content[$j]['row'][$k]['link']                         = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uitts.view&id='
 . $project_entry[$uicols['name'][$k]]);
                                                }
 
                                                if($lookup && 
$k==($count_uicols_name-2))
                                                {
-                                                       
$content[$j]['row'][$k]['lookup_action']                        = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiworkorder.edit&project_id='
 . $project_entry['project_id']);
+                                                       
$content[$j]['row'][$k]['lookup_action']                        = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiworkorder.edit&project_id='
 . $project_entry['project_id']);
                                                }
                                        }
 
@@ -200,7 +200,7 @@
                                                {
                                                        
$content[$j]['row'][$k]['statustext']                   = lang('view the 
project');
                                                        
$content[$j]['row'][$k]['text']                                 = lang('view');
-                                                       
$content[$j]['row'][$k]['link']                                 = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiproject.view&id='
 . $project_entry['project_id']);
+                                                       
$content[$j]['row'][$k]['link']                                 = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiproject.view&id='
 . $project_entry['project_id']);
                                                        $k++;
                                                }
                                                else
@@ -212,7 +212,7 @@
                                                {
                                                        
$content[$j]['row'][$k]['statustext']                   = lang('edit the 
project');
                                                        
$content[$j]['row'][$k]['text']                                 = lang('edit');
-                                                       
$content[$j]['row'][$k]['link']                                 = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiproject.edit&id='
 . $project_entry['project_id']);
+                                                       
$content[$j]['row'][$k]['link']                                 = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiproject.edit&id='
 . $project_entry['project_id']);
                                                        $k++;
                                                }
                                                else
@@ -224,7 +224,7 @@
                                                {
                                                        
$content[$j]['row'][$k]['statustext']                   = lang('delete the 
project');
                                                        
$content[$j]['row'][$k]['text']                                 = 
lang('delete');
-                                                       
$content[$j]['row'][$k]['link']                                 = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiproject.delete&id='
 . $project_entry['project_id']);
+                                                       
$content[$j]['row'][$k]['link']                                 = 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiproject.delete&id='
 . $project_entry['project_id']);
                                                        $k++;
                                                }
                                                else
@@ -253,7 +253,7 @@
                                                                                
        'sort'  => $this->sort,
                                                                                
        'var'   =>      'location_code',
                                                                                
        'order' =>      $this->order,
-                                                                               
        'extra'         => array('sid=cookie&op'        => 
$this->currentapp.'.uiproject.index',
+                                                                               
        'extra'         => array('sid=cookie&op'        => 
$this->currentapp.'_uiproject.index',
                                                                                
                                                        'type_id'       
=>$type_id,
                                                                                
                                                        'query'         
=>$this->query,
                                                                                
                                                        'lookup'        
=>$lookup,
@@ -271,7 +271,7 @@
                                                                                
        'sort'  => $this->sort,
                                                                                
        'var'   =>      'project_id',
                                                                                
        'order' =>      $this->order,
-                                                                               
        'extra'         => array('sid=cookie&op'        => 
$this->currentapp.'.uiproject.index',
+                                                                               
        'extra'         => array('sid=cookie&op'        => 
$this->currentapp.'_uiproject.index',
                                                                                
                                                        'type_id'       
=>$type_id,
                                                                                
                                                        'query'         
=>$this->query,
                                                                                
                                                        'lookup'        
=>$lookup,
@@ -289,7 +289,7 @@
                                                                                
        'sort'  => $this->sort,
                                                                                
        'var'   =>      'address',
                                                                                
        'order' =>      $this->order,
-                                                                               
        'extra'         => array('sid=cookie&op'        => 
$this->currentapp.'.uiproject.index',
+                                                                               
        'extra'         => array('sid=cookie&op'        => 
$this->currentapp.'_uiproject.index',
                                                                                
                                                        'type_id'       
=>$type_id,
                                                                                
                                                        'query'         
=>$this->query,
                                                                                
                                                        'lookup'        
=>$lookup,
@@ -340,13 +340,13 @@
                                (
                                        'lang_add'                              
=> lang('add'),
                                        'lang_add_statustext'   => lang('add a 
project'),
-                                       'add_action'                    => 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiproject.edit')
+                                       'add_action'                    => 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiproject.edit')
                                );
                        }
 
                        $link_data = array
                        (
-                               'sid=cookie&op' => 
$this->currentapp.'.uiproject.index',
+                               'sid=cookie&op' => 
$this->currentapp.'_uiproject.index',
                                                'sort'                  
=>$this->sort,
                                                'order'                 
=>$this->order,
                                                'cat_id'                
=>$this->cat_id,
@@ -359,11 +359,11 @@
                                                'end_date'              
=>$end_date
                        );
 
-                       $link_date_search                                       
= 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiproject.date_search');
+                       $link_date_search                                       
= 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiproject.date_search');
 
                        $link_excel = array
                        (
-                               'sid=cookie&op' => 
$this->currentapp.'.uiproject.excel',
+                               'sid=cookie&op' => 
$this->currentapp.'_uiproject.excel',
                                                'sort'                  
=>$this->sort,
                                                'order'                 
=>$this->order,
                                                'cat_id'                
=>$this->cat_id,
@@ -392,7 +392,7 @@
                                'overlib_source'                        => 
'./'.$this->currentapp.'/overlib.js',
 
                                'lang_select'                                   
=> lang('select'),
-                               'lookup_action'                                 
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiworkorder.edit'),
+                               'lookup_action'                                 
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiworkorder.edit'),
                                'lookup'                                        
        => $lookup,
                                'links'                                         
        => $links,
                                'allow_allrows'                                 
=> false,
@@ -500,7 +500,7 @@
                {
                        if(!$this->acl_add && !$this->acl_edit)
                        {
-                               
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'.uilocation.stop&perm=2&acl_location='
 . $this->acl2_location);
+                               
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'_uilocation.stop&perm=2&acl_location='
 . $this->acl2_location);
                        }
                        $id                             = 
$this->bocommon->get_var2('id',array('POST','GET'));
                        $values                         = 
$this->bocommon->get_var2('values',array('POST'));
@@ -717,7 +717,7 @@
 
                                if(!$values['workorder_budget'] && $save)
                                {
-                                       
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'.uiworkorder.edit&project_id='
 . $id);
+                                       
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'_uiworkorder.edit&project_id='
 . $id);
 
                                }
 
@@ -726,7 +726,7 @@
                                        
$receipt['error'][]=array('msg'=>lang('You have no edit right for this 
project'));
                                        
$this->fm_session->appsession('receipt',$this->currentapp,$receipt);
 
-                                       
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'.uiproject.view&id='
 . $id);
+                                       
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'_uiproject.view&id='
 . $id);
 
                                }
                                else
@@ -782,13 +782,13 @@
 
                        $link_data = array
                        (
-                               'sid=cookie&op' => 
$this->currentapp.'.uiproject.edit',
+                               'sid=cookie&op' => 
$this->currentapp.'_uiproject.edit',
                                'id'                    => $id
                        );
 
                        $link_request_data = array
                        (
-                               'sid=cookie&op' => 
$this->currentapp.'.uirequest.index',
+                               'sid=cookie&op' => 
$this->currentapp.'_uirequest.index',
                                'query'                 => 
$values['location_code'],
                                'project_id'    => $values['project_id']
                        );
@@ -845,7 +845,7 @@
                                //'msgbox_data'                                 
=> $GLOBALS['phpgw']->common->msgbox($msgbox_data),
                                'lang_ticket'                                   
=> lang('ticket'),
                                'lang_ticket_statustext'                => 
lang('Link to the ticket for this project'),
-                               'link_ticket'                                   
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uitts.view'),
+                               'link_ticket'                                   
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uitts.view'),
                                'value_ticket_id'                               
=> $values['ticket_id'],
 
                                'value_origin'                                  
=> $values['origin'],
@@ -858,15 +858,15 @@
                                'lang_delete_request_statustext'=> lang('Check 
to delete this request from this project'),
                                'link_select_request'                   => 
$this->bocommon->link('/index.php',$link_request_data),
                                'value_request_id'                              
=> $values['request_id'],
-                               'link_request'                                  
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uirequest.view'),
+                               'link_request'                                  
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uirequest.view'),
 
-                               'add_workorder_action'                          
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiworkorder.edit'),
+                               'add_workorder_action'                          
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiworkorder.edit'),
                                'lang_add_workorder'                            
=> lang('Add Workorder'),
                                'lang_add_workorder_statustext'         => 
lang('Add a workorder to this project'),
 
                                'table_header_workorder_budget' => 
$table_header_workorder_budget,
                                'lang_no_workorders'                    => 
lang('No workorder bugdet'),
-                               'workorder_link'                                
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiworkorder.edit'),
+                               'workorder_link'                                
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiworkorder.edit'),
                                'record_history'                                
=> $record_history,
                                'table_header_history'                  => 
$table_header_history,
                                'lang_history'                                  
=> lang('History'),
@@ -914,7 +914,7 @@
                                'location_data'                                 
=> $location_data,
                                'location_type'                                 
=> 'form',
                                'form_action'                                   
=> $this->bocommon->link('/index.php',$link_data),
-                               'done_action'                                   
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiproject.index'),
+                               'done_action'                                   
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiproject.index'),
                                'lang_year'                                     
        => lang('Year'),
                                'lang_category'                                 
=> lang('category'),
                                'lang_save'                                     
        => lang('save'),
@@ -997,7 +997,7 @@
                {
                        if(!$this->acl_delete)
                        {
-                               
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'.uilocation.stop&perm=8&acl_location='
 . $this->acl2_location);
+                               
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'_uilocation.stop&perm=8&acl_location='
 . $this->acl2_location);
                        }
 
                        $project_id = 
$this->bocommon->get_var2('project_id',array('POST','GET'));
@@ -1005,7 +1005,7 @@
 
                        $link_data = array
                        (
-                               'sid=cookie&op' => 
$this->currentapp.'.uiproject.index'
+                               'sid=cookie&op' => 
$this->currentapp.'_uiproject.index'
                        );
 
                        if ($this->bocommon->get_var2('confirm',array('POST')))
@@ -1019,7 +1019,7 @@
                        $data = array
                        (
                                'done_action'                   => 
$this->bocommon->link('/index.php',$link_data),
-                               'delete_action'                 => 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiproject.delete&project_id='
 . $project_id),
+                               'delete_action'                 => 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiproject.delete&project_id='
 . $project_id),
                                'lang_confirm_msg'              => lang('do you 
really want to delete this entry'),
                                'lang_yes'                              => 
lang('yes'),
                                'lang_yes_statustext'   => lang('Delete the 
entry'),
@@ -1038,7 +1038,7 @@
                {
                        if(!$this->acl_read)
                        {
-                               
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'.uilocation.stop&perm=1&acl_location='
 . $this->acl2_location);
+                               
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'_uilocation.stop&perm=1&acl_location='
 . $this->acl2_location);
                        }
 
                        $receipt = 
$this->fm_session->appsession('receipt',$this->currentapp);
@@ -1102,17 +1102,17 @@
 
                                'lang_ticket'                                   
=> lang('ticket'),
                                'lang_ticket_statustext'                => 
lang('Link to the ticket for this project'),
-                               'link_ticket'                                   
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uitts.view'),
+                               'link_ticket'                                   
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uitts.view'),
                                'value_ticket_id'                               
=> $values['ticket_id'],
 
                                'lang_request'                                  
=> lang('request'),
                                'lang_request_statustext'               => 
lang('Link to the request for this project'),
                                'value_request_id'                              
=> $values['request_id'],
-                               'link_request'                                  
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uirequest.view'),
+                               'link_request'                                  
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uirequest.view'),
 
                                'table_header_workorder_budget' => 
$table_header_workorder_budget,
                                'lang_no_workorders'                    => 
lang('No workorder bugdet'),
-                               'workorder_link'                                
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiworkorder.view'),
+                               'workorder_link'                                
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiworkorder.view'),
                                'record_history'                                
=> $record_history,
                                'table_header_history'                  => 
$table_header_history,
                                'lang_history'                                  
=> lang('History'),
@@ -1144,7 +1144,7 @@
                                'vendor_data'                                   
=> $vendor_data,
                                'location_data'                                 
=> $location_data,
                                'location_type'                                 
=> 'view',
-                               'done_action'                                   
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiproject.index'),
+                               'done_action'                                   
=> 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiproject.index'),
                                'lang_year'                                     
        => lang('Year'),
                                'lang_category'                                 
=> lang('category'),
                                'lang_save'                                     
        => lang('save'),
@@ -1191,7 +1191,7 @@
                                'key_deliver_list'                              
        => $this->bo->select_key_location_list($values['key_deliver']),
                                'lang_key_deliver'                              
        => lang('key deliver location'),
 
-                               'edit_action'                                   
        => 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiproject.edit&id='
 . $id),
+                               'edit_action'                                   
        => 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'_uiproject.edit&id='
 . $id),
                                'lang_edit_statustext'                          
=> lang('Edit this entry project'),
                                'lang_edit'                                     
                => lang('Edit'),
                                'currency'                                      
                => 
$GLOBALS['phpgw_data']['user']['preferences']['common']['currency']




reply via email to

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