phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: cart cart.php,1.1.1.1,1.2 index.php,1.2,1.3 list


From: Miles Lott <address@hidden>
Subject: [Phpgroupware-cvs] CVS: cart cart.php,1.1.1.1,1.2 index.php,1.2,1.3 list_products.php,1.4,1.5 order.php,1.1.1.1,1.2 service.php,1.1.1.1,1.2 view_product.php,1.3,1.4
Date: Mon, 11 Mar 2002 06:05:00 -0500

Update of /cvsroot/phpgroupware/cart
In directory subversions:/tmp/cvs-serv21233

Modified Files:
        cart.php index.php list_products.php order.php service.php 
        view_product.php 
Log Message:
Make current with use of GLOBALS, formatting



Index: cart.php
===================================================================
RCS file: /cvsroot/phpgroupware/cart/cart.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** cart.php    1 May 2001 02:09:38 -0000       1.1.1.1
--- cart.php    11 Mar 2002 11:04:57 -0000      1.2
***************
*** 10,21 ****
    *  option) any later version.                                              *
    \**************************************************************************/
    /* $Id$ */
    
!     $phpgw_info['flags'] = array('currentapp' => 'cart');
  
!     include('../header.inc.php');
  
!     echo '<p><center>not ready yet</center>';
  
!     $phpgw->common->phpgw_footer();
!  ?>
--- 10,22 ----
    *  option) any later version.                                              *
    \**************************************************************************/
+ 
    /* $Id$ */
    
!       $GLOBALS['phpgw_info']['flags'] = array('currentapp' => 'cart');
  
!       include('../header.inc.php');
  
!       echo '<p><center>not ready yet</center>';
  
!       $GLOBALS['phpgw']->common->phpgw_footer();
! ?>

Index: index.php
===================================================================
RCS file: /cvsroot/phpgroupware/cart/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** index.php   13 Jan 2002 03:52:07 -0000      1.2
--- index.php   11 Mar 2002 11:04:57 -0000      1.3
***************
*** 3,7 ****
    * phpGroupWare - Shopping cart                                             *
    * http://www.phpgroupware.org                                              *
!   * Written by Bettina gille address@hidden                          *
    * -----------------------------------------------                          *
    *  This program is free software; you can redistribute it and/or modify it *
--- 3,7 ----
    * phpGroupWare - Shopping cart                                             *
    * http://www.phpgroupware.org                                              *
!   * Written by Bettina Gille address@hidden                          *
    * -----------------------------------------------                          *
    *  This program is free software; you can redistribute it and/or modify it *
***************
*** 10,22 ****
    *  option) any later version.                                              *
    \**************************************************************************/
    /* $Id$ */
    
!     $phpgw_info['flags'] = array('currentapp' => 'cart');
  
!     include('../header.inc.php');
  
!     echo '<p><center><img 
src="'.$GLOBALS['phpgw']->common->image($GLOBALS['phpgw_infp']['currentapp'],'logo').'">';
!     echo '</center>';
  
!     $phpgw->common->phpgw_footer();
!  ?>
--- 10,23 ----
    *  option) any later version.                                              *
    \**************************************************************************/
+ 
    /* $Id$ */
    
!       $GLOBALS['phpgw_info']['flags'] = array('currentapp' => 'cart');
  
!       include('../header.inc.php');
  
!       echo '<p><center><img src="' . 
$GLOBALS['phpgw']->common->image($GLOBALS['phpgw_infp']['currentapp'],'logo') . 
'">';
!       echo '</center>';
  
!       $GLOBALS['phpgw']->common->phpgw_footer();
! ?>

Index: list_products.php
===================================================================
RCS file: /cvsroot/phpgroupware/cart/list_products.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** list_products.php   29 Jun 2001 02:37:56 -0000      1.4
--- list_products.php   11 Mar 2002 11:04:57 -0000      1.5
***************
*** 12,63 ****
        /* $Id$ */
  
!       $phpgw_info['flags'] = array('currentapp' => 'cart',
!                                       'enable_nextmatchs_class' => True);
  
        include('../header.inc.php');
  
!       $t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
!       $t->set_file(array('listproducts_t' => 'list_products.tpl',
!                                               'listproducts' => 
'list_products.tpl'));
  
!       $t->set_block('listproducts_t','listproducts','list');
  
        $inventory = CreateObject('inv.inventory');
!       $grants = $phpgw->acl->get_grants('inv');
        $c = CreateObject('phpgwapi.categories');
        $c->app_name = 'inv';
!     $t->set_var('action_url',$phpgw->link('/cart/list_products.php'));
  
!       $currency = $phpgw_info['user']['preferences']['common']['currency'];
  
        $archive_id = $inventory->get_status_id('archive');
  
!       if (!$start)
        {
                $start = '0';
        }
  
!       if ($query)
        {
                $querymethod = " AND (id like '%$query%' OR serial like 
'%$query%' OR name like '%$query%' OR descr like '%$query%' "
!                                       . "OR cost like '%$query%' OR price 
like '%$query%' OR stock like '%$query%' OR mstock like '%$query%' OR url like 
'%$query%' "
!                                       . "OR ftp like '%$query%' OR pdate like 
'%$query%' OR sdate like '%$query%' OR product_note like '%$query%')";
        }
  
!       if ($cat_id)
        {
                $filter = $cat_id;
        }
  
!       if (! $filter) 
        {
!               $phpgw->db->query("SELECT category from phpgw_inv_products 
WHERE status != '$archive_id' $querymethod");    
!               $phpgw->db->next_record();
!               $category = $c->return_single($phpgw->db->f('category'));
!               if ($category)
                {
!                       if 
($inventory->check_perms($grants[$category[0]['owner']],PHPGW_ACL_READ) || 
$category[0]['owner'] == $phpgw_info['user']['account_id']) 
                        {
!                               $filter = $phpgw->db->f('category');
                        }
                }
--- 12,66 ----
        /* $Id$ */
  
!       $GLOBALS['phpgw_info']['flags'] = array(
!               'currentapp' => 'cart',
!               'enable_nextmatchs_class' => True
!       );
  
        include('../header.inc.php');
  
!       $GLOBALS['phpgw']->template->set_file(array(
!               'listproducts_t' => 'list_products.tpl',
!               'listproducts'   => 'list_products.tpl'
!       ));
  
!       
$GLOBALS['phpgw']->template->set_block('listproducts_t','listproducts','list');
  
        $inventory = CreateObject('inv.inventory');
!       $grants = $GLOBALS['phpgw']->acl->get_grants('inv');
        $c = CreateObject('phpgwapi.categories');
        $c->app_name = 'inv';
!     
$GLOBALS['phpgw']->template->set_var('action_url',$GLOBALS['phpgw']->link('/cart/list_products.php'));
  
!       $currency = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['currency'];
  
        $archive_id = $inventory->get_status_id('archive');
  
!       if(!$start)
        {
                $start = '0';
        }
  
!       if($query)
        {
                $querymethod = " AND (id like '%$query%' OR serial like 
'%$query%' OR name like '%$query%' OR descr like '%$query%' "
!                       . "OR cost like '%$query%' OR price like '%$query%' OR 
stock like '%$query%' OR mstock like '%$query%' OR url like '%$query%' "
!                       . "OR ftp like '%$query%' OR pdate like '%$query%' OR 
sdate like '%$query%' OR product_note like '%$query%')";
        }
  
!       if($cat_id)
        {
                $filter = $cat_id;
        }
  
!       if(!$filter) 
        {
!               $GLOBALS['phpgw']->db->query("SELECT category from 
phpgw_inv_products WHERE status != '$archive_id' $querymethod");    
!               $GLOBALS['phpgw']->db->next_record();
!               $category = 
$c->return_single($GLOBALS['phpgw']->db->f('category'));
!               if($category)
                {
!                       
if($inventory->check_perms($grants[$category[0]['owner']],PHPGW_ACL_READ) || 
$category[0]['owner'] == $GLOBALS['phpgw_info']['user']['account_id']) 
                        {
!                               $filter = $GLOBALS['phpgw']->db->f('category');
                        }
                }
***************
*** 76,85 ****
  //--------------------------------- nextmatch 
--------------------------------------------
  
!       $left = 
$phpgw->nextmatchs->left('/cart/list_products.php',$start,$inventory->total_records);
!       $right = 
$phpgw->nextmatchs->right('/cart/list_products.php',$start,$inventory->total_records);
!       $t->set_var('left',$left);
!       $t->set_var('right',$right);
  
!       
$t->set_var('lang_showing',$phpgw->nextmatchs->show_hits($inventory->total_records,$start));
 
  
  // ------------------------------ end nextmatch 
------------------------------------------
--- 79,88 ----
  //--------------------------------- nextmatch 
--------------------------------------------
  
!       $left = 
$GLOBALS['phpgw']->nextmatchs->left('/cart/list_products.php',$start,$inventory->total_records);
!       $right = 
$GLOBALS['phpgw']->nextmatchs->right('/cart/list_products.php',$start,$inventory->total_records);
!       $GLOBALS['phpgw']->template->set_var('left',$left);
!       $GLOBALS['phpgw']->template->set_var('right',$right);
  
!       
$GLOBALS['phpgw']->template->set_var('lang_showing',$GLOBALS['phpgw']->nextmatchs->show_hits($inventory->total_records,$start));
 
  
  // ------------------------------ end nextmatch 
------------------------------------------
***************
*** 87,119 ****
  //---------------------------- list variable template-declarations 
-------------------------
  
!       $t->set_var('th_bg',$phpgw_info['theme']['th_bg']);
!       
$t->set_var('sort_id',$phpgw->nextmatchs->show_sort_order($sort,'id',$order,'/cart/list_products.php',lang('Product
 ID')));
!       
$t->set_var('sort_name',$phpgw->nextmatchs->show_sort_order($sort,'name',$order,'/cart/list_products.php',lang('Name')));
!       
$t->set_var('sort_retail',$phpgw->nextmatchs->show_sort_order($sort,'retail',$order,'/cart/list_products.php',lang('Price')));
!       $t->set_var('lang_view',lang('View'));
!       $t->set_var('currency',$currency);
!       $t->set_var('search_action',$phpgw->link('/cart/list_products.php'));
!       $t->set_var('lang_search',lang('Search'));
!       
$t->set_var('category_list',$c->formated_list('list','all',$filter,False,'/cart/list_products.php'));
!       $t->set_var('lang_submit',lang('Submit'));
!       $t->set_var('lang_choose',lang('Choose'));
!       $t->set_var('lang_piece',lang('Piece'));
!     $t->set_var('lang_add',lang('Add to Shopping cart'));
  
  // -------------------------------- end declaration 
-----------------------------------------
  
        $taxpercent = select_tax($filter);
!       for ($i=0;$i<count($products);$i++) 
        {
!               $phpgw->templater_color = 
$phpgw->nextmatchs->alternate_row_color($phpgw->templater_color);
!               $t->set_var('tr_color',$phpgw->templater_color);
                $choose = '<input type="checkbox" name="choose[' . 
$products[$i]['con'] . ']" value="True">';
                $piece = '<input type="text" name="piece[]" value="" size="5">';
!               $name = $phpgw->strip_html($products[$i]['name']);
!               if (! $name)
                {
                        $name = '&nbsp;';
                }
!               $id = $phpgw->strip_html($products[$i]['id']);
                $price = $products[$i]['price'];
                $retail = round(($price)*(1+$taxpercent),2);
--- 90,122 ----
  //---------------------------- list variable template-declarations 
-------------------------
  
!       
$GLOBALS['phpgw']->template->set_var('th_bg',$GLOBALS['phpgw_info']['theme']['th_bg']);
!       
$GLOBALS['phpgw']->template->set_var('sort_id',$GLOBALS['phpgw']->nextmatchs->show_sort_order($sort,'id',$order,'/cart/list_products.php',lang('Product
 ID')));
!       
$GLOBALS['phpgw']->template->set_var('sort_name',$GLOBALS['phpgw']->nextmatchs->show_sort_order($sort,'name',$order,'/cart/list_products.php',lang('Name')));
!       
$GLOBALS['phpgw']->template->set_var('sort_retail',$GLOBALS['phpgw']->nextmatchs->show_sort_order($sort,'retail',$order,'/cart/list_products.php',lang('Price')));
!       $GLOBALS['phpgw']->template->set_var('lang_view',lang('View'));
!       $GLOBALS['phpgw']->template->set_var('currency',$currency);
!       
$GLOBALS['phpgw']->template->set_var('search_action',$GLOBALS['phpgw']->link('/cart/list_products.php'));
!       $GLOBALS['phpgw']->template->set_var('lang_search',lang('Search'));
!       
$GLOBALS['phpgw']->template->set_var('category_list',$c->formated_list('list','all',$filter,False,'/cart/list_products.php'));
!       $GLOBALS['phpgw']->template->set_var('lang_submit',lang('Submit'));
!       $GLOBALS['phpgw']->template->set_var('lang_choose',lang('Choose'));
!       $GLOBALS['phpgw']->template->set_var('lang_piece',lang('Piece'));
!       $GLOBALS['phpgw']->template->set_var('lang_add',lang('Add to Shopping 
cart'));
  
  // -------------------------------- end declaration 
-----------------------------------------
  
        $taxpercent = select_tax($filter);
!       for($i=0;$i<count($products);$i++) 
        {
!               $GLOBALS['phpgw']->templater_color = 
$GLOBALS['phpgw']->nextmatchs->alternate_row_color($GLOBALS['phpgw']->templater_color);
!               
$GLOBALS['phpgw']->template->set_var('tr_color',$GLOBALS['phpgw']->templater_color);
                $choose = '<input type="checkbox" name="choose[' . 
$products[$i]['con'] . ']" value="True">';
                $piece = '<input type="text" name="piece[]" value="" size="5">';
!               $name = $GLOBALS['phpgw']->strip_html($products[$i]['name']);
!               if(!$name)
                {
                        $name = '&nbsp;';
                }
!               $id = $GLOBALS['phpgw']->strip_html($products[$i]['id']);
                $price = $products[$i]['price'];
                $retail = round(($price)*(1+$taxpercent),2);
***************
*** 121,140 ****
  //---------------------------------- list records 
-------------------------------------
  
!               $t->set_var(array('choose' => $choose,
!                                                       'piece' => $piece,
!                                                       'id' => $id,
!                                                       'name' => $name,
!                                               'retail' => 
sprintf("%01.2f",$retail)));
  
!               $t->set_var('view',$phpgw->link('/cart/view_product.php','con=' 
. $products[$i]['con'] . '&filter=' . $filter));
  
!               $t->parse('list','listproducts',True);
        }
  
  // ---------------------------- end list records 
-----------------------------------------
  
!       $t->parse('out','listproducts_t',True);
!       $t->p('out');
  
!       $phpgw->common->phpgw_footer();
  ?>
--- 124,145 ----
  //---------------------------------- list records 
-------------------------------------
  
!               $GLOBALS['phpgw']->template->set_var(array(
!                       'choose' => $choose,
!                       'piece' => $piece,
!                       'id' => $id,
!                       'name' => $name,
!                       'retail' => sprintf("%01.2f",$retail)
!               ));
  
!               
$GLOBALS['phpgw']->template->set_var('view',$GLOBALS['phpgw']->link('/cart/view_product.php','con='
 . $products[$i]['con'] . '&filter=' . $filter));
  
!               $GLOBALS['phpgw']->template->parse('list','listproducts',True);
        }
  
  // ---------------------------- end list records 
-----------------------------------------
  
!       $GLOBALS['phpgw']->template->parse('out','listproducts_t',True);
!       $GLOBALS['phpgw']->template->p('out');
  
!       $GLOBALS['phpgw']->common->phpgw_footer();
  ?>

Index: order.php
===================================================================
RCS file: /cvsroot/phpgroupware/cart/order.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** order.php   1 May 2001 02:09:38 -0000       1.1.1.1
--- order.php   11 Mar 2002 11:04:57 -0000      1.2
***************
*** 10,21 ****
    *  option) any later version.                                              *
    \**************************************************************************/
    /* $Id$ */
    
!     $phpgw_info['flags'] = array('currentapp' => 'cart');
  
!     include('../header.inc.php');
  
!     echo '<p><center>not ready yet</center>';
  
!     $phpgw->common->phpgw_footer();
!  ?>
--- 10,22 ----
    *  option) any later version.                                              *
    \**************************************************************************/
+ 
    /* $Id$ */
    
!       $GLOBALS['phpgw_info']['flags'] = array('currentapp' => 'cart');
  
!       include('../header.inc.php');
  
!       echo '<p><center>not ready yet</center>';
  
!       $GLOBALS['phpgw']->common->phpgw_footer();
! ?>

Index: service.php
===================================================================
RCS file: /cvsroot/phpgroupware/cart/service.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** service.php 1 May 2001 02:09:39 -0000       1.1.1.1
--- service.php 11 Mar 2002 11:04:57 -0000      1.2
***************
*** 10,21 ****
    *  option) any later version.                                              *
    \**************************************************************************/
    /* $Id$ */
    
!     $phpgw_info['flags'] = array('currentapp' => 'cart');
  
!     include('../header.inc.php');
  
!     echo '<p><center>not ready yet</center>';
  
!     $phpgw->common->phpgw_footer();
!  ?>
--- 10,22 ----
    *  option) any later version.                                              *
    \**************************************************************************/
+ 
    /* $Id$ */
    
!       $GLOBALS['phpgw_info']['flags'] = array('currentapp' => 'cart');
  
!       include('../header.inc.php');
  
!       echo '<p><center>not ready yet</center>';
  
!       $GLOBALS['phpgw']->common->phpgw_footer();
! ?>

Index: view_product.php
===================================================================
RCS file: /cvsroot/phpgroupware/cart/view_product.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** view_product.php    2 Jun 2001 00:59:12 -0000       1.3
--- view_product.php    11 Mar 2002 11:04:57 -0000      1.4
***************
*** 10,77 ****
        * option) any later version.                                            
   *
        
\**************************************************************************/
        /* $Id$ */
  
!       if (! $Add)
        {
                $referer = $HTTP_REFERER;
        }
  
!       if (!$con)
        {
!               $phpgw_info['flags'] = array('noheader' => True,
!                                                                       
'nonavbar' => True);
                Header('Location: ' . $HTTP_REFERER);
!               $phpgw->common->phpgw_exit();
        }
  
!       $phpgw_info['flags']['currentapp'] = 'cart';
        include('../header.inc.php');
  
!       $t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
!       $t->set_file(array('view' => 'view_product.tpl'));
  
        $hidden_vars = '<input type="hidden" name="sort" value="' . $sort . 
'">' . "\n"
!                               . '<input type="hidden" name="order" value="' . 
$order . '">' . "\n"
!                               . '<input type="hidden" name="query" value="' . 
$query . '">' . "\n"
!                               . '<input type="hidden" name="start" value="' . 
$start . '">' . "\n"
!                               . '<input type="hidden" name="filter" value="' 
. $filter . '">' . "\n"
!                               . '<input type="hidden" name="referer" value="' 
. $referer . '">' . "\n"
!                               . '<input type="hidden" name="con" value="' . 
$con . '">' . "\n";
  
        $c = CreateObject('phpgwapi.categories');
  
!       $currency = $phpgw_info['user']['preferences']['common']['currency'];
!       $t->set_var('hidden_vars',$hidden_vars);
!       $t->set_var('lang_id',lang('Product ID'));
!       $t->set_var('lang_short_name',lang('Short Name'));
!       $t->set_var('lang_description',lang('Description'));
!       $t->set_var('lang_category',lang('Category'));
!       $t->set_var('lang_price',lang('Price'));
!       $t->set_var('lang_piece',lang('Piece'));
!       $t->set_var('lang_add',lang('Add to Shopping cart'));
!       $t->set_var('currency',$currency);
!       $t->set_var('image',PHPGW_IMAGES . '/logo.jpg');
! 
!       $phpgw->db->query("select * from phpgw_inv_products where con='$con'");
!       $phpgw->db->next_record();
! 
!       $category = $phpgw->db->f('category');
!       $t->set_var('cat_name',$c->return_name($category));
!       $t->set_var('piece',$piece);
! 
!       $price = $phpgw->db->f('price');
!       $t->set_var('id',$phpgw->db->f('id'));
!       $t->set_var('name',$phpgw->strip_html($phpgw->db->f('name')));
!       $t->set_var('descr',$phpgw->strip_html($phpgw->db->f('descr')));
  
        $taxpercent = select_tax($category);
        $retail = round($price*(1+$taxpercent),2);
!       $t->set_var('retail',sprintf("%01.2f",$retail));
  
!       $t->set_var('action_url',$phpgw->link('/cart/view_product.php'));
!       $t->set_var('done_action',$referer);
!       $t->set_var('lang_done',lang('Done'));
!       $t->pparse('out','view');
  
!       $phpgw->common->phpgw_footer();
  ?>
--- 10,79 ----
        * option) any later version.                                            
   *
        
\**************************************************************************/
+ 
        /* $Id$ */
  
!       if(!$Add)
        {
                $referer = $HTTP_REFERER;
        }
  
!       if(!$con)
        {
!               $GLOBALS['phpgw_info']['flags'] = array(
!                       'noheader' => True,
!                       'nonavbar' => True
!               );
                Header('Location: ' . $HTTP_REFERER);
!               $GLOBALS['phpgw']->common->phpgw_exit();
        }
  
!       $GLOBALS['phpgw_info']['flags']['currentapp'] = 'cart';
        include('../header.inc.php');
  
!       $GLOBALS['phpgw']->template->set_file(array('view' => 
'view_product.tpl'));
  
        $hidden_vars = '<input type="hidden" name="sort" value="' . $sort . 
'">' . "\n"
!               . '<input type="hidden" name="order" value="' . $order . '">' . 
"\n"
!               . '<input type="hidden" name="query" value="' . $query . '">' . 
"\n"
!               . '<input type="hidden" name="start" value="' . $start . '">' . 
"\n"
!               . '<input type="hidden" name="filter" value="' . $filter . '">' 
. "\n"
!               . '<input type="hidden" name="referer" value="' . $referer . 
'">' . "\n"
!               . '<input type="hidden" name="con" value="' . $con . '">' . 
"\n";
  
        $c = CreateObject('phpgwapi.categories');
  
!       $currency = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['currency'];
!       $GLOBALS['phpgw']->template->set_var('hidden_vars',$hidden_vars);
!       $GLOBALS['phpgw']->template->set_var('lang_id',lang('Product ID'));
!       $GLOBALS['phpgw']->template->set_var('lang_short_name',lang('Short 
Name'));
!       
$GLOBALS['phpgw']->template->set_var('lang_description',lang('Description'));
!       $GLOBALS['phpgw']->template->set_var('lang_category',lang('Category'));
!       $GLOBALS['phpgw']->template->set_var('lang_price',lang('Price'));
!       $GLOBALS['phpgw']->template->set_var('lang_piece',lang('Piece'));
!       $GLOBALS['phpgw']->template->set_var('lang_add',lang('Add to Shopping 
cart'));
!       $GLOBALS['phpgw']->template->set_var('currency',$currency);
!       $GLOBALS['phpgw']->template->set_var('image',PHPGW_IMAGES . 
'/logo.jpg');
! 
!       $GLOBALS['phpgw']->db->query("select * from phpgw_inv_products where 
con='$con'");
!       $GLOBALS['phpgw']->db->next_record();
! 
!       $category = $GLOBALS['phpgw']->db->f('category');
!       
$GLOBALS['phpgw']->template->set_var('cat_name',$c->return_name($category));
!       $GLOBALS['phpgw']->template->set_var('piece',$piece);
! 
!       $price = $GLOBALS['phpgw']->db->f('price');
!       
$GLOBALS['phpgw']->template->set_var('id',$GLOBALS['phpgw']->db->f('id'));
!       
$GLOBALS['phpgw']->template->set_var('name',$GLOBALS['phpgw']->strip_html($GLOBALS['phpgw']->db->f('name')));
!       
$GLOBALS['phpgw']->template->set_var('descr',$GLOBALS['phpgw']->strip_html($GLOBALS['phpgw']->db->f('descr')));
  
        $taxpercent = select_tax($category);
        $retail = round($price*(1+$taxpercent),2);
!       
$GLOBALS['phpgw']->template->set_var('retail',sprintf("%01.2f",$retail));
  
!       
$GLOBALS['phpgw']->template->set_var('action_url',$GLOBALS['phpgw']->link('/cart/view_product.php'));
!       $GLOBALS['phpgw']->template->set_var('done_action',$referer);
!       $GLOBALS['phpgw']->template->set_var('lang_done',lang('Done'));
!       $GLOBALS['phpgw']->template->pparse('out','view');
  
!       $GLOBALS['phpgw']->common->phpgw_footer();
  ?>




reply via email to

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