phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] tts/inc/hook_home.inc.php, 1.13


From: nomail
Subject: [Phpgroupware-cvs] tts/inc/hook_home.inc.php, 1.13
Date: Mon, 11 Oct 2004 11:43:14 +0200

Update of /tts/inc
Modified Files:
        Branch: 
          hook_home.inc.php

date: 2004/10/11 09:43:14;  author: fipsfuchs;  state: Exp;  lines: +28 -5

Log Message:
replaced with 0.9.16 branche
=====================================================================
Index: tts/inc/hook_home.inc.php
diff -u tts/inc/hook_home.inc.php:1.12 tts/inc/hook_home.inc.php:1.13
--- tts/inc/hook_home.inc.php:1.12      Sat Oct 26 01:05:28 2002
+++ tts/inc/hook_home.inc.php   Mon Oct 11 09:43:14 2004
@@ -100,13 +100,36 @@
 
                        $p->fp('rows','tts_row',true);
                }
-
+               
                $extra_data = '<td>'."\n".$p->fp('out','tts_list').'</td>'."\n";
+               
+               $portalbox = CreateObject('phpgwapi.listbox',
+                       array(
+                               'title'     => '<font color="#FFFFFF">' . 
lang('Trouble Ticket System') . '</font>',
+                               'primary'   => 
$GLOBALS['phpgw_info']['theme']['navbar_bg'],
+                               'secondary' => 
$GLOBALS['phpgw_info']['theme']['navbar_bg'],
+                               'tertiary'  => 
$GLOBALS['phpgw_info']['theme']['navbar_bg'],
+                               'width'     => '100%',
+                               'outerborderwidth' => '0',
+                               'header_background_image' => 
$GLOBALS['phpgw']->common->image('phpgwapi', 'bg_filler', '.png', 'bg_filler', 
False)
+                       )
+               );
 
                $app_id = $GLOBALS['phpgw']->applications->name2id('tts');
                $GLOBALS['portal_order'][] = $app_id;
-               $GLOBALS['phpgw']->portalbox->set_params(array('app_id' => 
$app_id,
-                                                                               
                                'title' => lang('tts')));
-               $GLOBALS['phpgw']->portalbox->draw($extra_data);
+               $var = array(
+                       'up'       => array('url' => '/set_box.php', 'app' => 
$app_id),
+                       'down'     => array('url' => '/set_box.php', 'app' => 
$app_id),
+                       'close'    => array('url' => '/set_box.php', 'app' => 
$app_id),
+                       'question' => array('url' => '/set_box.php', 'app' => 
$app_id),
+                       'edit'     => array('url' => '/set_box.php', 'app' => 
$app_id)
+               );
+
+               while(list($key,$value) = each($var))
+               {
+                       $portalbox->set_controls($key,$value);
+               }
+               $portalbox->data = array();
+               echo "\n".'<!-- Begin TTS New/Updated 
-->'."\n".$portalbox->draw($extra_data)."\n".'<!-- End TTS New/Updated 
-->'."\n";
        }
 ?>




reply via email to

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