phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: inv/inc class.uiinvoice.inc.php,1.4,1.5


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: inv/inc class.uiinvoice.inc.php,1.4,1.5
Date: Wed, 17 Apr 2002 16:33:54 -0400

Update of /cvsroot/phpgroupware/inv/inc
In directory subversions:/tmp/cvs-serv6385/inc

Modified Files:
        class.uiinvoice.inc.php 
Log Message:
update

Index: class.uiinvoice.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/inv/inc/class.uiinvoice.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** class.uiinvoice.inc.php     16 Apr 2002 23:25:26 -0000      1.4
--- class.uiinvoice.inc.php     17 Apr 2002 20:33:52 -0000      1.5
***************
*** 591,594 ****
--- 591,695 ----
                        $this->t->pfp('out','dist_delete');
                }
+ 
+               function view_dist()
+               {
+                       $dist_id = $GLOBALS['HTTP_POST_VARS']['dist_id'] ? 
$GLOBALS['HTTP_POST_VARS']['dist_id'] : $GLOBALS['HTTP_GET_VARS']['dist_id'];
+ 
+                       $link_data = array
+                       (
+                               'menuaction'    => 'inv.uiinvoice.list_dist',
+                               'action'                => 'inv_dist'
+                       );
+ 
+                       if (!$dist_id)
+                       {
+                               Header('Location: ' . 
$GLOBALS['phpgw']->link('/index.php',$link_data));
+                               $GLOBALS['phpgw']->common->phpgw_exit();
+                       }
+ 
+                       $this->t->set_file(array('view' => 'view_dist.tpl'));
+ 
+                       $this->display_app_header();
+ 
+                       $this->t->set_var('lang_action',lang('View 
distributor'));
+ 
+                       $fields = $this->bo->read_single_contact($dist_id);
+ 
+                       
$this->t->set_var('company',$GLOBALS['phpgw']->strip_html($fields[0]['org_name']));
+                       
$this->t->set_var('department',$GLOBALS['phpgw']->strip_html($fields[0]['org_unit']));
+                       
$this->t->set_var('firstname',$GLOBALS['phpgw']->strip_html($fields[0]['n_given']));
+                       
$this->t->set_var('lastname',$GLOBALS['phpgw']->strip_html($fields[0]['n_family']));
+                       
$this->t->set_var('industry_type',$GLOBALS['phpgw']->strip_html($fields[0]['industry_type']));
+                       
$this->t->set_var('software',$GLOBALS['phpgw']->strip_html($fields[0]['software']));
+                       
$this->t->set_var('email',$GLOBALS['phpgw']->strip_html($fields[0]['email']));
+                       
$this->t->set_var('wphone',$GLOBALS['phpgw']->strip_html($fields[0]['tel_work']));
+                       
$this->t->set_var('fax',$GLOBALS['phpgw']->strip_html($fields[0]['tel_fax']));
+                       
$this->t->set_var('cell',$GLOBALS['phpgw']->strip_html($fields[0]['tel_cell']));
+                       $this->t->set_var('access',lang($fields[0]['access']));
+ 
+                       $url = $fields[0]['url'];
+                       $url_mirror = $fields[0]['url_mirror'];
+                       $ftp = $fields[0]['ftp'];
+                       $ftp_mirror = $fields[0]['ftp_mirror'];
+ 
+                       if (!$url || ($url == 'http://'))
+                       {
+                               $url = '';
+                       }
+                       else
+                       {
+                               if (! ereg('http://',$url))
+                               {
+                                       $url = 'http://'. $url;
+                               }
+                       }
+               $this->t->set_var('url',$GLOBALS['phpgw']->strip_html($url));
+ 
+                   if (!$url_mirror || ($url_mirror == 'http://'))
+                       {
+                               $url_mirror = '';
+                       }
+                       else
+                       {
+                               if (! ereg('http://',$url_mirror))
+                               {
+                                       $url_mirror = 'http://'. $url_mirror;
+                               }
+                       }
+                       
$this->t->set_var('url_mirror',$GLOBALS['phpgw']->strip_html($url_mirror));
+ 
+                       if (!$ftp || ($ftp == 'ftp://'))
+                       {
+                               $ftp = '';
+                       } 
+                       else
+                       {
+                               if (! ereg('ftp://',$ftp))
+                               {
+                                       $ftp = 'ftp://'. $ftp;
+                               }
+                       }
+                       
$this->t->set_var('ftp',$GLOBALS['phpgw']->strip_html($ftp));
+ 
+                       if (!$ftp_mirror || ($ftp_mirror == 'ftp://'))
+                       {
+                               $ftp_mirror = '';
+                       }
+                       else
+                       {
+                               if (! ereg('ftp://',$ftp_mirror))
+                               {
+                                       $ftp_mirror = 'ftp://'. $ftp_mirror;
+                               }
+                       }
+                       
$this->t->set_var('ftp_mirror',$GLOBALS['phpgw']->strip_html($ftp_mirror));
+ 
+                       
$this->t->set_var('notes',nl2br($GLOBALS['phpgw']->strip_html($fields[0]['notes'])));
+                       
$this->t->set_var('cat',$this->bo->cats->id2name($fields[0]['cat_id']),'name');
+ 
+                       
$this->t->set_var('done_action',$GLOBALS['phpgw']->link('/index.php',$link_data));
+ 
+                       $this->t->pfp('out','view');
+               }
        }
  ?>




reply via email to

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