Example #1
0
                  <tr>
                    <td valign="center">
<?php 
$heading = array();
$contents = array();
$heading[] = array('params' => 'class="menuBoxHeading"', 'text' => 'OSIS online Shop');
$contents[] = array('params' => 'class="infoBox"', 'text' => '<a href="http://www.oos-shop.de/" target="_blank">' . BOX_ENTRY_HAMPEAGE . '</a><br />' . '<a href="http://developer.berlios.de/mail/?group_id=814" target="_blank">' . BOX_ENTRY_MAILING_LISTS . '</a><br />' . '<a href="http://foren.myoos.de/" target="_blank">Support Board</a><br />');
$box = new box();
echo $box->menuBox($heading, $contents);
echo '<br />';
$orders_contents = '';
$orders_status_result = $dbconn->Execute("SELECT orders_status_name, orders_status_id FROM " . $oostable['orders_status'] . " WHERE orders_languages_id = '" . intval($_SESSION['language_id']) . "'");
while ($orders_status = $orders_status_result->fields) {
    $orders_pending_result = $dbconn->Execute("SELECT COUNT(*) AS count FROM " . $oostable['orders'] . " WHERE orders_status = '" . $orders_status['orders_status_id'] . "'");
    $orders_pending = $orders_pending_result->fields;
    if (oos_admin_check_boxes($aFilename['orders'], 'sub_boxes') == true) {
        $orders_contents .= '<a href="' . oos_href_link_admin($aFilename['orders'], 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br />';
    } else {
        $orders_contents .= '' . $orders_status['orders_status_name'] . ': ' . $orders_pending['count'] . '<br />';
    }
    // Move that ADOdb pointer!
    $orders_status_result->MoveNext();
}
$orders_contents = substr($orders_contents, 0, -4);
$heading = array();
$contents = array();
$heading[] = array('params' => 'class="menuBoxHeading"', 'text' => BOX_TITLE_ORDERS);
$contents[] = array('params' => 'class="infoBox"', 'text' => $orders_contents);
$box = new box();
echo $box->menuBox($heading, $contents);
echo '<br />';
Example #2
0
    include 'includes/boxes/plugins.php';
}
if (oos_admin_check_boxes('customers.php') == true) {
    include 'includes/boxes/customers.php';
}
if (oos_admin_check_boxes('taxes.php') == true) {
    include 'includes/boxes/taxes.php';
}
if (oos_admin_check_boxes('localization.php') == true) {
    include 'includes/boxes/localization.php';
}

if (oos_admin_check_boxes('reports.php') == true) {
    include 'includes/boxes/reports.php';
}
if (oos_admin_check_boxes('tools.php') == true) {
    include 'includes/boxes/tools.php';
}

if (oos_admin_check_boxes('gv_admin.php') == true) {
    include 'includes/boxes/gv_admin.php';
}

if (oos_admin_check_boxes('export.php') == true) {
    include 'includes/boxes/export.php';
}
if (oos_admin_check_boxes('information.php') == true) {
    include 'includes/boxes/information.php';
}