"", "Details" => "Details", "Card Name" => "Type", "Order_Date" => "Date", "AcctNo" => "Name/Address", "Image" => "Image", ); $table_heads_bre = array("" => "", "Details" => "Details", "Card Name" => "Type", "Order_Date" => "Date", "AcctNo" => "Name/Address" ); ?> IMS "; echo ""; echo ""; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "

"; if ($_SESSION['bctype'] == 'bc') { 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 "
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 "
"; } else if ($_SESSION['bctype'] == 'env') { if ($_SESSION['envtype'] == '10reg') { echo "
Create New Order - #10 Regular Envelope
"; echo "
Press the button below to begin creating a brand new envelope order.
"; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - #10 Regular Envelopes
"; echo "
Below are pending and completed orders. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } else if ($_SESSION['envtype'] == '10win') { echo "
Create New Order - #10 Window Envelopes - Left Window
"; echo "
Press the button below to begin creating a brand new envelope order.
"; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - #10 Window Envelopes - Left Window
"; echo "
Below are pending and completed orders. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } else if ($_SESSION['envtype'] == '10winr') { echo "
Create New Order - #10 Window Envelopes - Right Window
"; echo "
Press the button below to begin creating a brand new envelope order.
"; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - #10 Window Envelopes - Right Window
"; echo "
Below are pending and completed orders. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } else if ($_SESSION['envtype'] == '69book') { echo "
Create New Order - 6 x 9 Small Booklet
"; echo "
Press the button below to begin creating a brand new envelope order.
"; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - 6 x 9 Small Booklet
"; echo "
Below are pending and completed orders. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } else if ($_SESSION['envtype'] == 'book') { echo "
Create New Order - 9 5/8 x 12 5/8 Large Booklet
"; echo "
Press the button below to begin creating a brand new envelope order.
"; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - 9 5/8 x 12 5/8 Large Booklet
"; echo "
Below are pending and completed orders. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } else if ($_SESSION['envtype'] == '9bre') { echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - #9 Business Reply
"; echo "
Below are pending and completed orders plus standard templates. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } else if ($_SESSION['envtype'] == 'cre') { echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - Courtesy Reply
"; echo "
Below are pending and completed orders plus standard templates. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } } else if ($_SESSION['bctype'] == 'lh') { echo "
Create New Order - Letterhead
"; echo "
Press the button below to begin creating a brand new letterhead order.
"; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - Letterhead
"; echo "
Below are pending and completed orders. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } else if ($_SESSION['bctype'] == 'lh2') { echo "
Create New Order - Letterhead for Window Envelope
"; echo "
Press the button below to begin creating a brand new letterhead order.
"; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - Letterhead for Window Envelope
"; echo "
Below are pending and completed orders. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } else if ($_SESSION['bctype'] == 'lh3') { echo "
Create New Order - Second Sheet Letterhead
"; echo "
Press the button below to begin creating a brand new letterhead order.
"; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - Second Sheet Letterhead
"; echo "
Below are pending and completed orders. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } else if ($_SESSION['bctype'] == 'pf') { echo "
Create New Order - Pocketfolder (Basic)
"; echo "
Press the button below to begin creating a brand new pocketfolder order.
"; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - Pocketfolders (Basic)
"; echo "
Below are pending and completed orders. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } else if ($_SESSION['bctype'] == 'pfe') { echo "
Create New Order - Pocketfolder (Expanded Presentation)
"; echo "
Press the button below to begin creating a brand new pocketfolder order.
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "

"; echo "
Reorder/View Previous Orders - Pocketfolders (Expanded Presentation)
"; echo "
Below are pending and completed orders. Select button under details to view
previous order for changes and reordering.
"; echo "
"; } echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach($table_heads as $heading) { echo ""; } echo ""; echo "\n"; for ($i=1;$i<=$n_orders;$i++) { echo ""; echo ""; echo ""; if ($orders[$i]['Order_Type'] == 'b') { $otype = 'Business Card'; } else if ($orders[$i]['Order_Type'] == 'e1') { $otype = '#10 Regular Envelope'; } else if ($orders[$i]['Order_Type'] == 'e2') { $otype = '#10 Window Envelope - Left Window'; } else if ($orders[$i]['Order_Type'] == 'e3') { $otype = '9 5/8 x 12 5/8 Booklet Envelope'; } else if ($orders[$i]['Order_Type'] == 'e4') { $otype = '6 1/2 x 9 1/2 Booklet Envelope'; } else if ($orders[$i]['Order_Type'] == 'e5') { $otype = '6 x 9 Booklet Envelope'; } else if ($orders[$i]['Order_Type'] == 'e6') { $otype = '9 x 12 Catalog Envelope'; } else if ($orders[$i]['Order_Type'] == 'e7') { $otype = '10 x 13 Catalog Envelope'; } else if ($orders[$i]['Order_Type'] == 'e8') { $otype = '#10 Window Envelope - Right Window'; } else if ($orders[$i]['Order_Type'] == 'er') { $otype = '#9 Business Reply'; } else if ($orders[$i]['Order_Type'] == 'ec') { $otype = 'Courtesy Reply'; } else if ($orders[$i]['Order_Type'] == 'l') { $otype = 'Letterhead'; } echo ""; echo ""; if ($orders[$i]['Order_Type'] == 'b') { echo ""; } else { echo ""; } echo ""; echo ""; } echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "Pending orders."; echo "
"; echo "
"; echo "
$heading
{$otype}{$orders[$i]['Order_Date']}{$orders[$i]['BC_Name']}{$orders[$i]['BC_Address']}
"; 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 ""; if ($corders[$i]['Order_Type'] == 'b') { $otype = 'Business Card'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'e1') { $otype = '#10 Regular Envelope'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'e2') { $otype = '#10 Window Envelope - Left Window'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'e3') { $otype = '9 5/8 x 12 5/8 Booklet Envelope'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'e5') { $otype = '6 x 9 Booklet Envelope'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'e8') { $otype = '#10 Window Envelope - Right Window'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'er') { $otype = '#9 Business Reply'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'ec') { $otype = 'Courtesy Reply'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'l') { $otype = 'Letterhead'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'l2') { $otype = 'Letterhead for Window Envelope'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'l3') { $otype = 'Second Sheet Letterhead'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'p') { $otype = 'Pocketfolder - Basic'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } else if ($corders[$i]['Order_Type'] == 'pe') { $otype = 'Pocketfolder - Expanded Presentation'; echo ""; echo ""; echo ""; if (file_exists('order_images/'.$corders[$i][Order_ID].'F.png')) { echo ""; } elseif (file_exists('order_images/'.$corders[$i][Order_ID].'.png')) { echo ""; } else { echo ""; } } echo ""; } echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "Completed orders. REORDER HERE (CLICK DETAIL BUTTON)"; echo "
"; echo "
"; echo "
$heading
{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Name']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}{$otype}{$corders[$i]['Order_Date']}{$corders[$i]['BC_Address']}
"; echo "
"; if (($_SESSION['bctype'] == 'env') && ($_SESSION['envtype'] == '9bre')) { echo "

"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach($table_heads_bre as $heading) { echo ""; } echo ""; echo "\n"; for ($i=1;$i<=$n_sorders;$i++) { echo ""; echo ""; echo ""; $otype = '#9 Business Reply'; echo ""; echo ""; if (($sorders[$i]['Order_Type'] == 'b') || ($sorders[$i]['Order_Type'] == 'er')) { echo ""; } else { echo ""; } echo ""; } echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "Standard orders."; echo "
"; echo "
"; echo "
$heading
{$otype}{$sorders[$i]['Order_Date']}{$sorders[$i]['BC_Name']}{$sorders[$i]['BC_Address']}
"; echo "
"; } if (($_SESSION['bctype'] == 'env') && ($_SESSION['envtype'] == 'cre')) { echo "

"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach($table_heads_bre as $heading) { echo ""; } echo ""; echo "\n"; for ($i=1;$i<=$n_sorders;$i++) { echo ""; echo ""; echo ""; $otype = 'Courtesy Reply'; echo ""; echo ""; if (($sorders[$i]['Order_Type'] == 'b') || ($sorders[$i]['Order_Type'] == 'er')) { echo ""; } else { echo ""; } echo ""; } echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "Standard orders."; echo "
"; echo "
"; echo "
$heading
{$otype}{$sorders[$i]['Order_Date']}{$sorders[$i]['BC_Name']}{$sorders[$i]['BC_Address']}
"; echo "
"; } echo "
"; echo "

"; echo "
"; echo ""; ?>