function close_list_bottom(&$product, &$adjustment, &$unique) { $this_row = $product['this_row']; return ($product[$this_row]['adjustments_exist'] != '' ? ' <tr align="left"> <td></td> <td>____</td> <td colspan="5"><br><font face="arial" color="#770000" size="-1"><b>Adjustments</b></font></td> </tr> ' . $product[$this_row]['adjustment_display_output'] : '') . ' <!-- NEED 7 --> <tr> <td colspan="6" align="right" style="text-align:right;"><br><b>SUBTOTAL</b></td> <td align="right" width="8%" style="text-align:right;"><br><b>$ ' . number_format($unique['total_order_amount'] - ($unique['invoice_price'] == 1 ? 0 : $unique['total_order_customer_fee']) - $unique['total_order_tax'], 2) . '</b></td> </tr>' . ($product[$this_row]['delivery_id'] >= DELIVERY_NO_PAYPAL && $unique['invoice_price'] == 0 && $unique['customer_fee_percent'] != 0 ? ' <tr> <td colspan="6" align="right" style="text-align:right;"><b>+ ' . number_format($unique['customer_fee_percent'], 0) . '% Fee</b></td> <td align="right" width="8%" style="text-align:right;"><b>$ ' . number_format($unique['total_order_customer_fee'], 2) . '</b></td> </tr>' : '') . ($unique['total_order_tax'] != 0 ? ' <tr> <td colspan="6" align="right" style="text-align:right;"><b>* Sales tax</b></td> <td align="right" width="8%" style="text-align:right;"><b>$ ' . number_format($unique['total_order_tax'], 2) . '</b></td> </tr>' : '') . ($product[$this_row]['exempt_adjustment_cost'] != 0 ? ' <tr> <td colspan="6" align="right" style="text-align:right;"><b>Non-taxed Adjustments</b></td> <td align="right" width="8%" style="text-align:right;"><b>$ ' . number_format($product[$this_row]['exempt_adjustment_cost'], 2) . '</b></font></td> </tr>' : '') . ($adjustment['total_delivery_cost'] != 0 ? ' <tr> <td colspan="6" align="right" style="text-align:right;"><b>Extra Charge for Delivery </b></font></td> <td align="right" width="8%" style="text-align:right;"><b>$ ' . number_format($adjustment['total_delivery_cost'], 2) . '</b></td> </tr>' : '') . ' <tr> <td height="1" colspan="6"></td> <td height="1"><img class="wide-line" width="90" height="1" src="' . BASE_URL . DIR_GRAPHICS . 'black_pixel.gif"></td> </tr> <tr> <td colspan="6" align="right" style="text-align:right;"><b>Invoice Total </b></td> <td align="right" width="8%" style="text-align:right;"><b>$ ' . number_format($unique['total_order_amount'], 2) . '</b></td> </tr>' . ($unique['balance_forward'] != 0 ? ' <tr> <td colspan="6" align="right" style="text-align:right;"><b>Previous ' . ($unique['balance_forward'] < 0 ? 'Credit' : 'Balance Due') . '</b></td> <td align="right" width="8%" style="text-align:right;"><b>$ ' . number_format($unique['balance_forward'], 2) . '</b></td> </tr>' : '') . $unique['included_adjustments'] . ' <tr> <td colspan="5" height="1"></td> <td colspan="2" height="1" align="right"><img class="wide-line" width="90" height="1" src="' . BASE_URL . DIR_GRAPHICS . 'black_pixel.gif"></td> </tr> <tr> <td colspan="6" align="right" style="text-align:right;"><font size="+2">PLEASE PAY: </font></td> <td align="right" style="text-align:right;"><font size="+2">' . ($product[$this_row]['unfilled_random_weight'] ? '<font size="-1">' . $product[$this_row]['display_weight_pending_text'] . '</font>' : '$ ' . number_format($unique['total_order_amount'] + $unique['balance_forward'] + $unique['included_adjustment_total'], 2)) . '</font></td> </tr>' . $unique['excluded_adjustments'] . (round($product[$this_row]['most_recent_payment_amount'], 2) > 0 ? ' <tr> <td colspan="6" align="right" style="text-align:right;">Thank you for your most recent payment of $ ' . number_format($product[$this_row]['most_recent_payment_amount'], 2) . '.</td> <td></td> </tr>' : '') . ($_GET['output'] != 'pdf' ? ' <tr id="payment_options"> <td colspan="7" align="right"> <table width="60%" border="0" cellspacing="10" align="center" style="margin:2em auto; width:60%;"> <tr> <td colspan="2" valign="top" align="left" style="padding:5px;"> <font color="#880000">Please do not make payments until producers have had a chance to fill the orders, mark products out-of-stock if needed, and all weights are no longer zero.</font> </td> </tr> <tr> <td colspan="2" valign="top" align="center" style="padding:5px;"> <b>P A Y M E N T O P T I O N S</b> </td> </tr> <tr> <td colspan="2" valign="top" style="padding:5px;height:21px;font-size:16px;"> Pay $ ' . number_format($unique['total_order_amount'] + $unique['balance_forward'] + $unique['included_adjustment_total'], 2) . ' by cash or check at order pickup </td> </tr>' . (PAYPAL_EMAIL && $unique['basket_id'] ? ' <tr> <td colspan="2" style="padding:15px 20px;">OR</td> </tr> <tr> <td colspan="2" style="padding:5px;">' . paypal_display_form(array('form_id' => 'paypal_form1', 'span1_content' => 'Pay now with PayPal $', 'span2_content' => '', 'form_target' => 'paypal', 'allow_editing' => true, 'amount' => number_format($unique['total_order_amount'] + $unique['balance_forward'] + $unique['included_adjustment_total'], 2), 'business' => PAYPAL_EMAIL, 'item_name' => htmlentities(ORGANIZATION_ABBR . ' ' . $unique['member_id'] . ' ' . $unique['preferred_name']), 'notify_url' => BASE_URL . PATH . 'paypal_utilities.php', 'custom' => htmlentities('basket#' . $unique['basket_id']), 'no_note' => '0', 'cn' => 'Message:', 'cpp_cart_border_color' => '#3f7300', 'cpp_logo_image' => BASE_URL . DIR_GRAPHICS . 'logo1_for_paypal.png', 'return' => BASE_URL . PATH . 'panel_member.php', 'cancel_return' => BASE_URL . PATH . 'panel_member.php', 'rm' => '2', 'cbt' => 'Return to ' . SITE_NAME, 'paypal_button_src' => 'https://www.paypal.com/en_US/i/btn/btn_buynow_SM.gif')) . ' <div style="clear:both;font-size:80%;margin-top:1em;">If paying with PayPal, be sure to print/bring your PayPal receipt with you to order pickup as proof of payment.</div> </td> </tr>' : ' ') : '') . ' </table> </font>'; }
</ul> </td> <td align="left" width="50%"> <img src="' . DIR_GRAPHICS . 'status.png" width="32" height="32" align="left" hspace="2" alt="Member Resources"><br> <b>Member Resources</b> <ul class="fancyList1"> <li><a href="locations.php">Food Pickup/Delivery Locations</a></li> <li><a href="contact.php">How to Contact Us with Questions</a></li> <li><a href="member_form.php">Update Membership Info.</a></li> <li><a href="reset_password.php">Change Password</a></li> <li><a href="faq.php">How to Order FAQ</a></li> <li class="last_of_group"><a href="producer_form.php?action=new_producer">New Producer Application Form</a></li> </ul> <img src="' . DIR_GRAPHICS . 'money.png" width="32" height="32" align="left" hspace="2" alt="Payment Options"><br> <b>Payment Options</b> <ul class="fancyList1">' . (PAYPAL_ENABLED && $_SESSION['member_id'] ? paypal_display_form(array('form_id' => 'paypal_form2', 'span1_content' => '<li class="last_of_group"><strong>Pay with PayPal </strong><div class="paypal_message">(enter amount at PayPal)</div>', 'span2_content' => '', 'form_target' => 'paypal', 'allow_editing' => false, 'amount' => number_format(0, 2), 'business' => PAYPAL_EMAIL, 'item_name' => htmlentities(ORGANIZATION_ABBR . ' ' . $_SESSION['member_id'] . ' ' . $_SESSION['show_name']), 'notify_url' => BASE_URL . PATH . 'paypal_utilities.php', 'custom' => htmlentities('member#' . $_SESSION['member_id']), 'no_note' => '0', 'cn' => 'Message:', 'cpp_cart_border_color' => '#3f7300', 'cpp_logo_image' => BASE_URL . DIR_GRAPHICS . 'logo1_for_paypal.png', 'return' => BASE_URL . PATH . 'panel_member.php', 'cancel_return' => BASE_URL . PATH . 'panel_member.php', 'rm' => '2', 'cbt' => 'Return to ' . SITE_NAME, 'paypal_button_src' => 'https://www.paypal.com/en_US/i/btn/btn_buynow_SM.gif')) . '</li>' : '') . ' <li class="last_of_group"> <strong>Mail a check to :</strong><br><br> ' . SITE_MAILING_ADDR . '<br><br> (Indicate "Member #' . $_SESSION['member_id'] . '" on payment) </li> </ul> </td> </tr> </table>'; $page_specific_css = ' <style type="text/css"> .paypal_message { font-size:70%; margin:0.5em 0 1em; }