"", "Details" => "Details", "Card Name" => "Type", "Order_Date" => "Date", "AcctNo" => "Name/Address", "Image" => "Image", ); ?> Riegle Press Digital Storefront "; include("Inv_Header.inc"); include("Inv_dbstuff.inc"); echo ""; echo ""; echo ""; echo "


"; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Create New Order - Business Card
"; echo "
Press the button below to begin creating a brand new business card order.
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - Business Cards
"; echo "
Below are pending and completed orders. Select button under details to view
card for changes and reordering.
"; echo "
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach($table_heads as $heading) { echo ""; } echo ""; echo "\n"; $cxn = mysqli_connect($host,$user,$passwd,$dbname); $query = "SELECT * FROM orders,business_cards WHERE orders.Order_Type='b' AND orders.Cust_ID='$_SESSION[cid]' AND orders.Cust_Login_ID='$_SESSION[clid]' AND orders.Order_Status='o' AND orders.Order_ID = business_cards.BC_ID ORDER BY orders.Order_ID"; $result = mysqli_query($cxn,$query) or die ("Query died: category"); $n=1; while($row = mysqli_fetch_assoc($result)) { foreach($row as $field => $value) { $orders[$n][$field]=$value; } $n++; } $n_orders = sizeof($orders); for ($i=1;$i<=$n_orders;$i++) { echo ""; echo ""; echo ""; $otype = 'Business Card'; echo ""; echo ""; echo ""; echo ""; echo ""; } echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "Pending orders."; echo "
"; echo "
"; echo "
$heading
{$otype}{$orders[$i]['Order_Date']}{$orders[$i]['BC_Name']}
"; echo "
"; echo "
"; echo "

"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach($table_heads as $heading) { echo ""; } echo ""; echo "\n"; for ($i=1;$i<=$n_corders;$i++) { echo ""; echo ""; echo ""; $otype = 'Business Card'; echo ""; echo ""; if ($corders[$i]['Order_Type'] == 'b') { echo ""; } else { echo ""; } echo ""; echo ""; } echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "Completed orders."; echo "
"; echo "
"; echo "
$heading
{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Name']}{$corders[$i]['BC_Address']}
"; echo "
"; echo "
"; echo "
"; echo ""; ?>