$contents = array('form' => olc_draw_form('customers', FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=statusconfirm'));
                $contents[] = array('text' => HTML_BR . olc_draw_pull_down_menu('status', $customers_statuses_array, $cInfo->customers_status));
                $contents[] = array('text' => '
				<table nowrap="nowrap" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td style="border-bottom: 1px solid; border-color: #000000;" nowrap="nowrap" class="smallText" align="center">
						<b>' . TABLE_HEADING_NEW_VALUE . '</b>
					</td>
					<td style="border-bottom: 1px solid; border-color: #000000;" nowrap="nowrap" class="smallText" align="center">
						<b>' . TABLE_HEADING_DATE_ADDED . '</b>
					</td>
			</tr>
			');
                if (olc_db_num_rows($customers_history_query)) {
                    while ($customers_history = olc_db_fetch_array($customers_history_query)) {
                        $contents[] = array('text' => '<tr>' . NEW_LINE . '<td class="smallText">' . $customers_statuses_array[$customers_history['new_value']]['text'] . '</td>' . NEW_LINE . '<td class="smallText" align="center">' . olc_datetime_short($customers_history['date_added']) . '</td>' . NEW_LINE . '<td class="smallText" align="center">');
                        $contents[] = array('text' => '</tr>' . NEW_LINE);
                    }
                } else {
                    $contents[] = array('text' => '<tr>' . NEW_LINE . ' <td class="smallText" colspan="2">' . TEXT_NO_CUSTOMER_HISTORY . '</td>' . NEW_LINE . ' </tr>' . NEW_LINE);
                }
                $contents[] = array('text' => '</table>');
                $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . BLANK . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
                $status = olc_db_prepare_input($_POST['status']);
                // maybe this line not needed to recheck...
            }
            break;
        default:
            $customer_status = olc_get_customer_status($cId);
            $cs_id = $customer_status['customers_status'];
            $cs_member_flag = $customer_status['member_flag'];
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($_GET['action']) {
        case 'delete':
            $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_PAYMENT . HTML_B_END);
            $contents = array('form' => olc_draw_form('payment', FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . HTML_BR);
            $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
            break;
        default:
            if (is_object($pInfo)) {
                $heading[] = array('text' => '<b>[' . $pInfo->affiliate_payment_id . ']&nbsp;&nbsp;' . olc_datetime_short($pInfo->affiliate_payment_date) . HTML_B_END);
                $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
                $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_AFFILIATE_INVOICE, 'pID=' . $pInfo->affiliate_payment_id) . '" TARGET="_blank">' . olc_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> ');
            }
            break;
    }
    if (olc_not_null($heading) && olc_not_null($contents)) {
        echo '            <td  width="25%" valign="top">' . NEW_LINE;
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . NEW_LINE;
    }
    ?>
          </tr>
        </table></td>
      </tr>
?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
$heading = array();
$contents = array();
switch ($_GET['action']) {
    case 'release':
        $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . olc_datetime_short($gInfo->date_created) . BLANK . $currencies->format($gInfo->amount));
        $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link('gv_queue.php', 'action=confirmrelease&gid=' . $gInfo->unique_id, NONSSL) . '">' . olc_image_button('button_confirm_red.gif', IMAGE_CONFIRM) . '</a> <a href="' . olc_href_link('gv_queue.php', 'action=cancel&gid=' . $gInfo->unique_id, NONSSL) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    default:
        $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . olc_datetime_short($gInfo->date_created) . BLANK . $currencies->format($gInfo->amount));
        $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link('gv_queue.php', 'action=release&gid=' . $gInfo->unique_id, NONSSL) . '">' . olc_image_button('button_release.gif', IMAGE_RELEASE) . HTML_A_END);
        break;
}
if (olc_not_null($heading) && olc_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . NEW_LINE;
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . NEW_LINE;
}
?>
          </tr>
        </table></td>
      </tr>
    </table></td>
<?php 
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_ORDER . HTML_B_END);
            $contents = array('form' => olc_draw_form('orders', FILENAME_ORDERS, olc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br/><br/><b>' . $cInfo->customers_firstname . BLANK . $cInfo->customers_lastname . HTML_B_END);
            $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('restock') . BLANK . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY);
            $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_ORDERS, olc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
            break;
        default:
            if (is_object($oInfo)) {
                $heading[] = array('text' => '<b>[' . $oInfo->orders_id . ']&nbsp;&nbsp;' . olc_datetime_short($oInfo->date_purchased) . HTML_B_END);
                $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_ORDERS, olc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_ORDERS, olc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
                //$contents[] = array('align' => 'center', 'text' => EMPTY_STRING);
                $contents[] = array('text' => HTML_BR . TEXT_DATE_ORDER_CREATED . BLANK . olc_date_short($oInfo->date_purchased));
                if (olc_not_null($oInfo->last_modified)) {
                    $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . BLANK . olc_date_short($oInfo->last_modified));
                }
                $contents[] = array('text' => HTML_BR . TEXT_INFO_PAYMENT_METHOD . BLANK . $oInfo->payment_method);
                //begin PayPal_Shopping_Cart_IPN
                if (strtolower($oInfo->payment_method) == 'paypal_ipn') {
                    include_once PAYPAL_IPN_DIR . 'Functions/general.func.php';
                    $contents[] = array('text' => TABLE_HEADING_PAYMENT_STATUS . ': ' . paypal_payment_status($oInfo->orders_id));
                }
                //end PayPal_shopping_Cart_IPN
                // elari added to display product list for selected order
                $order = new order($oInfo->orders_id);
function olc_get_system_information()
{
    $db_query = olc_db_query(SELECT . "now() as datetime");
    $db = olc_db_fetch_array($db_query);
    list($system, $host, $kernel) = preg_split('/[\\s,]+/', @exec('uname -a'), 5);
    return array('date' => olc_datetime_short(date('Y-m-d H:i:s')), 'system' => $system, 'kernel' => $kernel, 'host' => $host, 'ip' => gethostbyname($host), 'uptime' => @exec('uptime'), 'http_server' => $_SERVER['SERVER_SOFTWARE'], 'php' => PHP_VERSION, 'zend' => function_exists('zend_version') ? zend_version() : EMPTY_STRING, 'db_server' => DB_SERVER, 'db_ip' => gethostbyname(DB_SERVER), 'db_version' => 'MySQL ' . (function_exists('mysql_get_server_info') ? mysql_get_server_info() : EMPTY_STRING), 'db_date' => olc_datetime_short($db['datetime']));
}