. # # # #################################################################################### //form page 3... session_start(); require_once('inc/config.inc.php'); require_once('lang/' . $CONFIG['lang'] . '/index.php'); if ($CONFIG['auth_set'] != 'none') { if (!isset($_SESSION['username'])) { header('Location: index.php'); } } require_once('inc/header.inc.php'); if ($CONFIG['auth_set'] == 'ldap') { echo '

' . $LANG['logged_in'] . ' ' . $_SESSION['user_fn'] . ' ' . $_SESSION['user_sn'] . '. ' . $LANG['logout'] . '.

' . "\n"; } echo '

' . $LANG['p3_head'] . '

' . "\n"; if (!isset($_POST['stage3_set'])) { //form button has not been pressed.. lets display the table... echo '

' . $LANG['p3_intro'] . '

' . "\n"; ?>

' . "\n\t\t"; $table_item_rows .= '' . "\n\t\t"; $table_item_rows .= '' . "\n\t\t"; $table_item_rows .= '' . "\n\t\t"; $table_item_rows .= '' . "\n\t\t"; $table_item_rows .= '' . "\n\t\t"; $table_item_rows .= '' . "\n\t"; $table_item_rows .= '' . "\n\t"; $num_rows ++; } while ($num_rows <= $_SESSION['anum_items']); echo $table_item_rows; $_SESSION['table_rows'] = $table_item_rows; //use array_sum to calculate the total of all items in the form... $item_total_add = array_sum($total_array); $order_total = $_SESSION['shipping'] + $item_total_add; $_SESSION['order_total'] = number_format($order_total, 2, '.', ','); $_SESSION['shipping_dec'] = number_format($_SESSION['shipping'], 2, '.', ','); ?>
 
 
 
 
 
' . $num_rows . '' . $_SESSION[$code_value] . '' . $_SESSION[$descrip_value] . '' . $_SESSION[$quant_value] . '' . $CONFIG['currency'] . $cost_value_dec . '' . $CONFIG['currency'] . $item_total_dec . '
' . $LANG['p3_mail_sent'] . '

'; echo '

' . $LANG['p3_mail_opt1'] . '

'; } else { echo '

' . $LANG['p3_mail_sent'] . '

'; echo '

' . $LANG['p3_mail_opt2'] . '

'; } } //require_once('inc/config.inc.php'); require_once('inc/footer.inc.php'); ?>