phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: property index.php,1.9,1.10


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property index.php,1.9,1.10
Date: Sat, 08 Mar 2003 17:25:37 -0500

Update of /cvsroot/phpgroupware/property
In directory subversions:/tmp/cvs-serv3473

Modified Files:
        index.php 
Log Message:
no message

Index: index.php
===================================================================
RCS file: /cvsroot/phpgroupware/property/index.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** index.php   28 Feb 2003 19:39:00 -0000      1.9
--- index.php   8 Mar 2003 22:25:27 -0000       1.10
***************
*** 17,21 ****
        );
  
- //$GLOBALS['phpgw_info']['flags']['headonly'] = True;
        include('../header.inc.php');
  
--- 17,20 ----
***************
*** 30,94 ****
        }
  
- 
-       $account_id=$GLOBALS['phpgw_info']['user']['account_id'];
- 
-       $sql = "SELECT 
sub_module,janitor,supervisor,budget_responsible,transfer,fm_admin.account_id, 
can_read,can_add,can_edit,can_delete,admin from fm_admin "
-               . " where account_id = $account_id ";
-       $GLOBALS['phpgw']->db->query($sql,__LINE__,__FILE__);
-       $i = 0;
-       while ($GLOBALS['phpgw']->db->next_record())
-       {
-               $admins[] =array(
-                       $GLOBALS['phpgw']->db->f('sub_module') => array(
-                                       'read' => 
$GLOBALS['phpgw']->db->f('can_read'),
-                                       'add' => 
$GLOBALS['phpgw']->db->f('can_add'),
-                                       'edit' => 
$GLOBALS['phpgw']->db->f('can_edit'),
-                                       'delete' => 
$GLOBALS['phpgw']->db->f('can_delete'),
-                                       'admin' => 
$GLOBALS['phpgw']->db->f('admin'),
-                                       'janitor' => 
$GLOBALS['phpgw']->db->f('janitor'),
-                                       'supervisor' => 
$GLOBALS['phpgw']->db->f('supervisor'),
-                                       'budget_responsible' => 
$GLOBALS['phpgw']->db->f('budget_responsible'),
-                                       'transfer' => 
$GLOBALS['phpgw']->db->f('transfer')));
- 
-               $sub_module=$GLOBALS['phpgw']->db->f('sub_module');
- 
-               if ($sub_module=='property')
-               {
-                       $property_order=$i;
-               }
-               if ($sub_module=='equipment')
-               {
-                       $equipment_order=$i;
-               }
-               if ($sub_module=='workorder')
-               {
-                       $workorder_order=$i;
-               }
-               if ($sub_module=='ticket')
-               {
-                       $ticket_order=$i;
-               }
-               if ($sub_module=='invoice')
-               {
-                       $invoice_order=$i;
-               }
-               if ($sub_module=='pricebook')
-               {
-                       $pricebook_order=$i;
-               }
-               $i++;
- 
-       }
- 
-       $module_order=array('property'=>$property_order,
-                                       equipment=>$equipment_order,
-                                       workorder=>$workorder_order,
-                                       ticket=>$ticket_order,
-                                       invoice=>$invoice_order,
-                                       pricebook=>$pricebook_order);
- 
-       $GLOBALS['phpgw']->session->appsession('admins','property',$admins);
-       
$GLOBALS['phpgw']->session->appsession('module_order','property',$module_order);
- 
        if ($start_page)
        {
--- 29,32 ----
***************
*** 103,109 ****
        $GLOBALS['phpgw']->session->appsession('sub','property',$sub);
  
- //echo 'start_page :'.$start_page .'<br>';
        header('Location: '. $GLOBALS['phpgw']->link('/index.php',$start_page));
- //    header('Location: '. 
$GLOBALS['phpgw']->link('/index.php','menuaction=fm.uiproperty.index'));
-       exit;
  ?>
--- 41,44 ----





reply via email to

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