quotation_info(array( 'session_id' => $_COOKIE['session_id'], )); $can_order = 0; if ( isset($quotation['sections']) and count($quotation['sections']) > 0 ) { $can_order = 1; # there are other ways this could be formatted, yes. # if you want the HTML-formatted quotation, use quotation_print(). print( ''. '

Order summary

'. "\n" ); foreach ( $quotation['sections'] as $section ) { print( ''. ''. ''. ''. "\n" ); $row = 0; foreach ( $section['detail_items'] as $detail ) { print( ''. ''. ''. ''. ''. "\n" ); $row = 1 - $row; } print( ''. ''. ''. ''. ''. '
'. htmlspecialchars($section['description']).'
' ); if ( $detail['pkgnum'] ) { print( ''. '' ); } print( ''. htmlspecialchars($detail['description']). ''. $detail['amount']. '
Total'. $section['subtotal']. '
'. "\n" ); } # foreach $section } $pkgselect = $freeside->mason_comp( array( 'session_id' => $_COOKIE['session_id'], 'comp' => '/elements/select-part_pkg.html', 'args' => array( 'onchange' , 'enable_order_pkg()', 'empty_label' , 'Select package', 'form_name' , 'AddPkgForm', ), )); if ( isset($pkgselect['error']) && $pkgselect['error'] ) { $error = $pkgselect['error']; header('Location:index.php?error='. urlencode($pkgselect)); die(); } ?>
>
>