#The full software license can be found here: #http://www.accounting-123.com/a.php?a=153/GPLv3 # # # # # # # # # # # require "settings.php"; require "core-settings.php"; $OUTPUT = print_labels(); //require ("tmpl-print.php"); function print_labels() { db_connect(); #get list of customers $get_cust = "SELECT * FROM customers WHERE div = '" . USER_DIV . "'"; $run_cust = db_exec($get_cust) or errDie("Unable to get customer information"); if (pg_numrows($run_cust) < 1) { return "No customers were found."; } else { $listing = ""; while ($arr = pg_fetch_array($run_cust)) { $listing .= "\n{$arr['surname']}\n{$arr['paddr1']}\n\n\n\n"; } }
#The full software license can be found here: #http://www.accounting-123.com/a.php?a=153/GPLv3 # # # # # # # # # # # require "settings.php"; require "core-settings.php"; $OUTPUT = print_labels($_POST); require "tmpl-print.php"; function print_labels($_POST) { extract($_POST); if (!isset($stock_cat)) { $stock_cat = ""; } if (!isset($stock_class)) { $stock_class = ""; } if (!isset($price_from)) { $price_from = ""; } if (!isset($price_to)) { $price_to = "";