public static function execute(ApplicationAbstract $application) { $OSCOM_Service = Registry::get('Service'); $OSCOM_Breadcrumb = Registry::get('Breadcrumb'); $application->setPageTitle(sprintf(OSCOM::getDef('index_heading'), STORE_NAME)); $application->setPageContent('product_listing.php'); if (is_numeric($_GET['Manufacturers'])) { Registry::set('Manufacturer', new Manufacturer($_GET['Manufacturers'])); $OSCOM_Manufacturer = Registry::get('Manufacturer'); $application->setPageTitle($OSCOM_Manufacturer->getTitle()); // HPDL $application->setPageImage('manufacturers/' . $OSCOM_Manufacturer->getImage()); if ($OSCOM_Service->isStarted('Breadcrumb')) { $OSCOM_Breadcrumb->add($OSCOM_Manufacturer->getTitle(), OSCOM::getLink()); } Registry::set('Products', new Products()); $OSCOM_Products = Registry::get('Products'); $OSCOM_Products->setManufacturer($OSCOM_Manufacturer->getID()); if (isset($_GET['filter']) && is_numeric($_GET['filter']) && $_GET['filter'] > 0) { $OSCOM_Products->setCategory($_GET['filter']); } if (isset($_GET['sort']) && !empty($_GET['sort'])) { if (strpos($_GET['sort'], '|d') !== false) { $OSCOM_Products->setSortBy(substr($_GET['sort'], 0, -2), '-'); } else { $OSCOM_Products->setSortBy($_GET['sort']); } } } else { osc_redirect(OSCOM::getLink(OSCOM::getDefaultSite(), OSCOM::getDefaultSiteApplication())); } }
public static function start() { Registry::set('Breadcrumb', new BreadcrumbClass()); $OSCOM_Breadcrumb = Registry::get('Breadcrumb'); $OSCOM_Breadcrumb->add(OSCOM::getDef('breadcrumb_top'), OSCOM::getLink(OSCOM::getDefaultSite(), OSCOM::getDefaultSiteApplication())); $OSCOM_Breadcrumb->add(OSCOM::getDef('breadcrumb_shop'), OSCOM::getLink('Shop', 'Index')); return true; }
public static function initialize() { Registry::set('MessageStack', new MessageStack()); Registry::set('Cache', new Cache()); Registry::set('PDO', PDO::initialize()); foreach (OSCOM::callDB('Shop\\GetConfiguration', null, 'Site') as $param) { define($param['cfgKey'], $param['cfgValue']); } Registry::set('Session', Session::load('adminSid')); Registry::get('Session')->start(); Registry::get('MessageStack')->loadFromSession(); Registry::set('Language', new Language()); if (!self::hasAccess(OSCOM::getSiteApplication())) { Registry::get('MessageStack')->add('header', 'No access.', 'error'); OSCOM::redirect(OSCOM::getLink(null, OSCOM::getDefaultSiteApplication())); } $application = 'osCommerce\\OM\\Core\\Site\\Admin\\Application\\' . OSCOM::getSiteApplication() . '\\Controller'; Registry::set('Application', new $application()); Registry::set('Template', new Template()); Registry::get('Template')->setApplication(Registry::get('Application')); // HPDL move following checks elsewhere // check if a default currency is set if (!defined('DEFAULT_CURRENCY')) { Registry::get('MessageStack')->add('header', OSCOM::getDef('ms_error_no_default_currency'), 'error'); } // check if a default language is set if (!defined('DEFAULT_LANGUAGE')) { Registry::get('MessageStack')->add('header', ERROR_NO_DEFAULT_LANGUAGE_DEFINED, 'error'); } if (function_exists('ini_get') && (bool) ini_get('file_uploads') == false) { Registry::get('MessageStack')->add('header', OSCOM::getDef('ms_warning_uploads_disabled'), 'warning'); } // check if Work directories are writable $work_dirs = array(); foreach (array('Cache', 'CoreUpdate', 'Database', 'Logs', 'Session', 'Temp') as $w) { if (!is_writable(OSCOM::BASE_DIRECTORY . 'Work/' . $w)) { $work_dirs[] = $w; } } if (!empty($work_dirs)) { Registry::get('MessageStack')->add('header', sprintf(OSCOM::getDef('ms_error_work_directories_not_writable'), OSCOM::BASE_DIRECTORY . 'Work/', implode(', ', $work_dirs)), 'error'); } if (!OSCOM::configExists('time_zone', 'OSCOM')) { Registry::get('MessageStack')->add('header', OSCOM::getDef('ms_warning_time_zone_not_defined'), 'warning'); } if (!OSCOM::configExists('dir_fs_public', 'OSCOM') || !file_exists(OSCOM::getConfig('dir_fs_public', 'OSCOM'))) { Registry::get('MessageStack')->add('header', OSCOM::getDef('ms_warning_dir_fs_public_not_defined'), 'warning'); } // check if the upload directory exists if (is_dir(OSCOM::getConfig('dir_fs_public', 'OSCOM') . 'upload')) { if (!is_writeable(OSCOM::getConfig('dir_fs_public', 'OSCOM') . 'upload')) { Registry::get('MessageStack')->add('header', sprintf(OSCOM::getDef('ms_error_upload_directory_not_writable'), OSCOM::getConfig('dir_fs_public', 'OSCOM') . 'upload'), 'error'); } } else { Registry::get('MessageStack')->add('header', sprintf(OSCOM::getDef('ms_error_upload_directory_non_existant'), OSCOM::getConfig('dir_fs_public', 'OSCOM') . 'upload'), 'error'); } }
public static function execute(ApplicationAbstract $application) { $OSCOM_NavigationHistory = Registry::get('NavigationHistory'); $OSCOM_MessageStack = Registry::get('MessageStack'); if (!empty($_POST['email_address']) && !empty($_POST['password']) && Account::logIn($_POST['email_address'], $_POST['password'])) { $OSCOM_NavigationHistory->removeCurrentPage(); if ($OSCOM_NavigationHistory->hasSnapshot()) { $OSCOM_NavigationHistory->redirectToSnapshot(); } else { osc_redirect(OSCOM::getLink(null, OSCOM::getDefaultSiteApplication(), null, 'AUTO')); } } $OSCOM_MessageStack->add('LogIn', OSCOM::getDef('error_login_no_match')); }
public static function execute(ApplicationAbstract $application) { $data = array('username' => $_POST['user_name'], 'password' => $_POST['user_password']); if (Login::isValidCredentials($data)) { $admin = Login::getAdmin($data['username']); $_SESSION[OSCOM::getSite()]['id'] = (int) $admin['id']; $_SESSION[OSCOM::getSite()]['username'] = $admin['user_name']; $_SESSION[OSCOM::getSite()]['access'] = Access::getUserLevels($admin['id']); $to_application = OSCOM::getDefaultSiteApplication(); if (isset($_SESSION[OSCOM::getSite()]['redirect_origin'])) { $to_application = $_SESSION[OSCOM::getSite()]['redirect_origin']; unset($_SESSION[OSCOM::getSite()]['redirect_origin']); } osc_redirect_admin(OSCOM::getLink(null, $to_application)); } else { Registry::get('MessageStack')->add('header', OSCOM::getDef('ms_error_login_invalid'), 'error'); } }
public static function execute(ApplicationAbstract $application) { if (!empty($_POST['user_name']) && !empty($_POST['user_password'])) { $Qadmin = Registry::get('Database')->query('select id, user_name, user_password from :table_administrators where user_name = :user_name limit 1'); $Qadmin->bindValue(':user_name', $_POST['user_name']); $Qadmin->execute(); if ($Qadmin->numberOfRows() === 1) { if (osc_validate_password($_POST['user_password'], $Qadmin->value('user_password'))) { $_SESSION[OSCOM::getSite()]['id'] = $Qadmin->valueInt('id'); $_SESSION[OSCOM::getSite()]['username'] = $Qadmin->value('user_name'); $_SESSION[OSCOM::getSite()]['access'] = Access::getUserLevels($Qadmin->valueInt('id')); $to_application = OSCOM::getDefaultSiteApplication(); if (isset($_SESSION[OSCOM::getSite()]['redirect_origin'])) { $to_application = $_SESSION[OSCOM::getSite()]['redirect_origin']; unset($_SESSION[OSCOM::getSite()]['redirect_origin']); } osc_redirect_admin(OSCOM::getLink(null, $to_application)); } } } Registry::get('MessageStack')->add('header', OSCOM::getDef('ms_error_login_invalid'), 'error'); }
public static function execute(ApplicationAbstract $application) { $OSCOM_Service = Registry::get('Service'); $OSCOM_Breadcrumb = Registry::get('Breadcrumb'); if ($OSCOM_Service->isStarted('Reviews') === false) { osc_redirect(OSCOM::getLink(null, OSCOM::getDefaultSiteApplication())); } $application->setPageTitle(OSCOM::getDef('reviews_heading')); $application->setPageContent('reviews.php'); if ($OSCOM_Service->isStarted('Breadcrumb')) { $OSCOM_Breadcrumb->add(OSCOM::getDef('breadcrumb_reviews'), OSCOM::getLink(null, null, 'Reviews')); } $requested_product = null; $product_check = false; if (count($_GET) > 2) { $requested_product = basename(key(array_slice($_GET, 2, 1, true))); if ($requested_product == OSCOM::getSiteApplication()) { unset($requested_product); if (count($_GET) > 3) { $requested_product = basename(key(array_slice($_GET, 3, 1, true))); } } } if (isset($requested_product)) { if (Product::checkEntry($requested_product)) { $product_check = true; Registry::set('Product', new Product($requested_product)); $OSCOM_Product = Registry::get('Product'); $application->setPageTitle($OSCOM_Product->getTitle()); $application->setPageContent('reviews_product.php'); if ($OSCOM_Service->isStarted('Breadcrumb')) { $OSCOM_Breadcrumb->add($OSCOM_Product->getTitle(), OSCOM::getLink(null, null, 'Reviews&' . $OSCOM_Product->getKeyword())); } } if ($product_check === false) { $application->setPageContent('not_found.php'); } } }
public static function initialize() { if (strlen(DB_SERVER) < 1) { osc_redirect(OSCOM::getLink('Setup')); } Registry::set('MessageStack', new MessageStack()); Registry::set('Cache', new Cache()); Registry::set('Database', Database::initialize()); Registry::set('PDO', DatabasePDO::initialize()); foreach (OSCOM::callDB('Admin\\GetConfiguration', null, 'Site') as $param) { define($param['cfgKey'], $param['cfgValue']); } Registry::set('Session', Session::load('adminSid')); Registry::get('Session')->start(); Registry::get('MessageStack')->loadFromSession(); Registry::set('Language', new Language()); if (!self::hasAccess(OSCOM::getSiteApplication())) { Registry::get('MessageStack')->add('header', 'No access.', 'error'); osc_redirect_admin(OSCOM::getLink(null, OSCOM::getDefaultSiteApplication())); } $application = 'osCommerce\\OM\\Core\\Site\\Admin\\Application\\' . OSCOM::getSiteApplication() . '\\Controller'; Registry::set('Application', new $application()); Registry::set('Template', new Template()); Registry::get('Template')->setApplication(Registry::get('Application')); // HPDL move following checks elsewhere // check if a default currency is set if (!defined('DEFAULT_CURRENCY')) { Registry::get('MessageStack')->add('header', OSCOM::getDef('ms_error_no_default_currency'), 'error'); } // check if a default language is set if (!defined('DEFAULT_LANGUAGE')) { Registry::get('MessageStack')->add('header', ERROR_NO_DEFAULT_LANGUAGE_DEFINED, 'error'); } if (function_exists('ini_get') && (bool) ini_get('file_uploads') == false) { Registry::get('MessageStack')->add('header', OSCOM::getDef('ms_warning_uploads_disabled'), 'warning'); } }
/* osCommerce Online Merchant $osCommerce-SIG$ Copyright (c) 2010 osCommerce (http://www.oscommerce.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation. */ use osCommerce\OM\Core\OSCOM; use osCommerce\OM\Core\Access; ?> <div id="adminMenu"> <ul class="apps"> <li class="shortcuts"><?php echo osc_link_object(OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()), osc_image(OSCOM::getPublicSiteLink('images/oscommerce_icon.png'), null, 16, 16)); ?> </li> <?php if (isset($_SESSION[OSCOM::getSite()]['id'])) { echo ' <li><a href="#"><span class="ui-icon ui-icon-triangle-1-s" style="float: right;"></span>Applications</a>' . ' <ul>'; foreach (Access::getLevels() as $group => $links) { $application = current($links); echo ' <li><a href="' . OSCOM::getLink(null, $application['module']) . '"><span class="ui-icon ui-icon-triangle-1-e" style="float: right;"></span>' . Access::getGroupTitle($group) . '</a>' . ' <ul>'; foreach ($links as $link) { echo ' <li><a href="' . OSCOM::getLink(null, $link['module']) . '">' . $OSCOM_Template->getIcon(16, $link['icon']) . ' ' . $link['title'] . '</a></li>'; } echo ' </ul>' . ' </li>'; } echo ' </ul>' . ' </li>';
</td> </tr> <tr> <td class="inputField"><?php echo osc_draw_checkbox_field('DB_INSERT_SAMPLE_DATA', 'true', true) . ' ' . OSCOM::getDef('param_database_import_sample_data'); ?> </td> <td class="inputDescription"><?php echo OSCOM::getDef('param_database_import_sample_data_description'); ?> </td> </tr> </table> <p align="right"><?php echo osc_draw_button(array('priority' => 'primary', 'icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))) . ' ' . osc_draw_button(array('href' => OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> <?php foreach ($_POST as $key => $value) { if ($key != 'x' && $key != 'y') { if (is_array($value)) { for ($i = 0, $n = sizeof($value); $i < $n; $i++) { echo osc_draw_hidden_field($key . '[]', $value[$i]); } } else { echo osc_draw_hidden_field($key, $value); } } }
<link rel="stylesheet" type="text/css" href="<?php echo OSCOM::getPublicSiteLink('templates/default/stylesheets/general.css'); ?> " /> </head> <body> <div id="pageHeader"> <div> <div style="float: right; padding-top: 40px; padding-right: 15px; color: #000000; font-weight: bold;"><a href="http://www.oscommerce.com" target="_blank">osCommerce Website</a> | <a href="http://www.oscommerce.com/support" target="_blank">Support</a></div> <a href="<?php echo OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()); ?> "><img src="<?php echo OSCOM::getPublicSiteLink('images/oscommerce.png'); ?> " border="0" alt="" title="osCommerce Online Merchant v3.0" style="margin: 10px 10px 0px 10px;" /></a> </div> </div> <div id="pageContent"> <?php require $OSCOM_Template->getPageContentsFile(); ?> </div> <div id="pageFooter">
<?php /** * osCommerce Online Merchant * * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\OSCOM; if ($OSCOM_NavigationHistory->hasSnapshot()) { $origin_href = $OSCOM_NavigationHistory->getSnapshotURL(); $OSCOM_NavigationHistory->resetSnapshot(); } else { $origin_href = OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()); } ?> <h1><?php echo $OSCOM_Template->getPageTitle(); ?> </h1> <div> <div style="padding-top: 30px;"> <p><?php echo sprintf(OSCOM::getDef('success_account_created'), OSCOM::getLink(null, 'Info', 'Contact')); ?> </p> </div> </div>
?> <?php echo osc_image(DIR_WS_IMAGES . $OSCOM_Template->getPageImage(), $OSCOM_Template->getPageTitle(), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT, 'id="pageIcon"'); ?> <h1><?php echo $OSCOM_Template->getPageTitle(); ?> </h1> <div> <div style="float: left;"><?php echo osc_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', $OSCOM_Template->getPageTitle()); ?> </div> <div style="padding-top: 30px;"> <p><?php echo OSCOM::getDef('sign_out_text'); ?> </p> </div> </div> <div class="submitFormButtons" style="text-align: right;"> <?php echo osc_link_object(OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()), osc_draw_image_button('button_continue.gif', OSCOM::getDef('button_continue'))); ?> </div>
<?php /** * osCommerce Online Merchant * * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\OSCOM; ?> <h1><?php echo $OSCOM_Template->getPageTitle(); ?> </h1> <p><?php echo OSCOM::getDef('product_not_found'); ?> </p> <div class="submitFormButtons" style="text-align: right;"> <?php echo HTML::button(array('href' => OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()), 'icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))); ?> </div>
</tr> <tr> <td class="inputField"><?php echo OSCOM::getDef('param_database_port') . '<br />' . HTML::inputField('DB_SERVER_PORT', null, 'class="text"'); ?></td> <td class="inputDescription"><?php echo OSCOM::getDef('param_database_port_description'); ?></td> </tr> <tr> <td class="inputField"><?php echo OSCOM::getDef('param_database_type') . '<br />' . HTML::selectMenu('DB_DATABASE_CLASS', $db_table_types); ?></td> <td class="inputDescription"><?php echo OSCOM::getDef('param_database_type_description'); ?></td> </tr> <tr> <td class="inputField"><?php echo OSCOM::getDef('param_database_prefix') . '<br />' . HTML::inputField('DB_TABLE_PREFIX', 'osc_', 'class="text"'); ?></td> <td class="inputDescription"><?php echo OSCOM::getDef('param_database_prefix_description'); ?></td> </tr> </table> <p align="right"><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p> </form> </div> </div> <script type="text/javascript"> $("#installForm").submit(function(e) { if ( formSuccess == false ) { e.preventDefault(); prepareDB(); } }); </script>
#pageColumnLeft { width: 16%; } //--></style> <?php } unset($content_left); unset($content_right); if ($OSCOM_Template->hasPageHeader()) { ?> <div id="pageHeader"> <?php echo osc_link_object(OSCOM::getLink(OSCOM::getDefaultSite(), OSCOM::getDefaultSiteApplication()), osc_image(DIR_WS_IMAGES . 'store_logo.jpg', STORE_NAME), 'id="siteLogo"'); ?> <ul id="navigationIcons"> <?php echo '<li>' . osc_link_object(OSCOM::getLink(null, 'Account', null, 'SSL'), osc_image(DIR_WS_IMAGES . 'header_account.gif', OSCOM::getDef('my_account'))) . '</li>' . '<li>' . osc_link_object(OSCOM::getLink(null, 'Cart'), osc_image(DIR_WS_IMAGES . 'header_cart.gif', OSCOM::getDef('cart_contents'))) . '</li>' . '<li>' . osc_link_object(OSCOM::getLink(null, 'Checkout', null, 'SSL'), osc_image(DIR_WS_IMAGES . 'header_checkout.gif', OSCOM::getDef('checkout'))) . '</li>'; ?> </ul> <div id="navigationBar"> <?php if ($OSCOM_Service->isStarted('Breadcrumb')) { ?>
echo osc_icon('progress_ani.gif'); ?> '; var taxDecimalPlaces = parseInt('<?php echo TAX_DECIMAL_PLACES; ?> '); </script> <meta name="application-name" content="osCommerce Dashboard" /> <meta name="msapplication-tooltip" content="osCommerce Administration Dashboard" /> <meta name="msapplication-window" content="width=1024;height=768" /> <meta name="msapplication-navbutton-color" content="#ff7900" /> <meta name="msapplication-starturl" content="<?php echo OSCOM::getLink(null, OSCOM::getDefaultSiteApplication(), null, 'SSL', false); ?> " /> </head> <body> <?php if ($OSCOM_Template->hasPageHeader()) { include OSCOM::BASE_DIRECTORY . 'Core/Site/' . OSCOM::getSite() . '/templates/oscom/header.php'; } if (isset($_SESSION[OSCOM::getSite()]['id']) && !in_array(OSCOM::getSiteApplication(), array('Index', 'Login'))) { ?> <div id="appsPane">
public static function execute(ApplicationAbstract $application) { unset($_SESSION[OSCOM::getSite()]); Registry::get('MessageStack')->add('header', OSCOM::getDef('ms_success_logged_out'), 'success'); OSCOM::redirect(OSCOM::getLink(null, OSCOM::getDefaultSiteApplication())); }
<script type="text/javascript" src="public/external/jquery/jquery-1.7.1.min.js"></script> <link rel="stylesheet" type="text/css" href="public/external/jquery/ui/themes/smoothness/jquery-ui-1.8.17.custom.css" /> <script type="text/javascript" src="public/external/jquery/ui/jquery-ui-1.8.17.custom.min.js"></script> <link rel="stylesheet" type="text/css" href="<?php echo OSCOM::getPublicSiteLink('templates/default/stylesheets/general.css'); ?>" /> </head> <body> <div id="pageHeader"> <div> <div style="float: right; padding-top: 40px; padding-right: 15px; color: #000000; font-weight: bold;"><a href="http://www.oscommerce.com" target="_blank">osCommerce Website</a> | <a href="http://www.oscommerce.com/support" target="_blank">Support</a></div> <a href="<?php echo OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()); ?>"><img src="<?php echo OSCOM::getPublicSiteLink('images/oscommerce.png'); ?>" border="0" alt="" title="osCommerce Online Merchant v3.0" style="margin: 10px 10px 0px 10px;" /></a> </div> </div> <div id="pageContent"> <?php require($OSCOM_Template->getPageContentsFile()); ?> </div> <div id="pageFooter"> Copyright © 2000-2011 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a> (<a href="http://www.oscommerce.com/about/copyright" target="_blank">Copyright Policy</a>, <a href="http://www.oscommerce.com/about/trademark" target="_blank">Trademark Policy</a>)<br />osCommerce is a registered trademark of Harald Ponce de Leon</a> </div> </body> </html>
/** * osCommerce Online Merchant * * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ use osCommerce\OM\Core\Access; use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\OSCOM; ?> <div id="adminMenu"> <ul class="apps"> <li class="shortcuts"><?php echo HTML::link(OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()), HTML::image(OSCOM::getPublicSiteLink('images/oscommerce_icon.png'), null, 16, 16)); ?> </li> <?php if (isset($_SESSION[OSCOM::getSite()]['id'])) { echo ' <li><a href="#">Applications ▾</a>' . ' <ul>'; foreach (Access::getLevels() as $group => $links) { $application = current($links); echo ' <li><a href="' . OSCOM::getLink(null, $application['module']) . '"><span style="float: right;">▸</span>' . Access::getGroupTitle($group) . '</a>' . ' <ul>'; foreach ($links as $link) { echo ' <li><a href="' . OSCOM::getLink(null, $link['module']) . '">' . $OSCOM_Template->getIcon(16, $link['icon']) . ' ' . $link['title'] . '</a></li>'; } echo ' </ul>' . ' </li>'; } echo ' </ul>' . ' </li>';
<?php /** * osCommerce Online Merchant * * @copyright Copyright (c) 2012 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ use osCommerce\OM\Core\Access; use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\OSCOM; ?> <div id="adminMenu"> <ul class="apps"> <li class="shortcuts"><?php echo HTML::link(OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()), HTML::image(OSCOM::getPublicSiteLink('images/oscommerce_icon.png'), null, 16, 16)); ?></li> <?php if ( isset($_SESSION[OSCOM::getSite()]['id']) ) { echo ' <li><a href="#">Applications ▾</a>' . ' <ul>'; foreach ( Access::getLevels() as $group => $links ) { $application = current($links); echo ' <li><a href="' . OSCOM::getLink(null, $application['module']) . '"><span style="float: right;">▸</span>' . Access::getGroupTitle($group) . '</a>' . ' <ul>'; foreach ( $links as $link ) { echo ' <li><a href="' . OSCOM::getLink(null, $link['module']) . '">' . $OSCOM_Template->getIcon(16, $link['icon']) . ' ' . $link['title'] . '</a></li>'; }
var batchCurrentPageset = '<?php echo addslashes(OSCOM::getDef('result_set_current_page')); ?>'; var batchIconNavigationBack = '<?php echo HTML::icon('nav_back.png'); ?>'; var batchIconNavigationBackGrey = '<?php echo HTML::icon('nav_back_grey.png'); ?>'; var batchIconNavigationForward = '<?php echo HTML::icon('nav_forward.png'); ?>'; var batchIconNavigationForwardGrey = '<?php echo HTML::icon('nav_forward_grey.png'); ?>'; var batchIconNavigationReload = '<?php echo HTML::icon('reload.png'); ?>'; var batchIconProgress = '<?php echo HTML::icon('progress_ani.gif'); ?>'; var taxDecimalPlaces = parseInt('<?php echo TAX_DECIMAL_PLACES; ?>'); </script> <meta name="application-name" content="osCommerce Dashboard" /> <meta name="msapplication-tooltip" content="osCommerce Administration Dashboard" /> <meta name="msapplication-window" content="width=1024;height=768" /> <meta name="msapplication-navbutton-color" content="#ff7900" /> <meta name="msapplication-starturl" content="<?php echo OSCOM::getLink(null, OSCOM::getDefaultSiteApplication(), null, 'SSL', false); ?>" /> </head> <body> <?php if ( $OSCOM_Template->hasPageHeader() ) { include($OSCOM_Template->getTemplateFile('header.php')); } ?> <div id="appContent"> <?php if ( Registry::get('MessageStack')->exists('header') ) {
#pageColumnLeft { width: 16%; } //--></style> <?php } unset($content_left); unset($content_right); if ($OSCOM_Template->hasPageHeader()) { ?> <div id="pageHeader"> <?php echo HTML::link(OSCOM::getLink(OSCOM::getDefaultSite(), OSCOM::getDefaultSiteApplication()), HTML::image(OSCOM::getPublicSiteLink('images/store_logo.png'), STORE_NAME), 'id="siteLogo"'); ?> <div id="navigationIcons"> <?php echo HTML::button(array('title' => OSCOM::getDef('cart_contents') . ($OSCOM_ShoppingCart->numberOfItems() > 0 ? ' (' . $OSCOM_ShoppingCart->numberOfItems() . ')' : ''), 'icon' => 'cart', 'href' => OSCOM::getLink(null, 'Cart'))) . HTML::button(array('title' => OSCOM::getDef('checkout'), 'icon' => 'triangle-1-e', 'href' => OSCOM::getLink(null, 'Checkout', null, 'SSL'))) . HTML::button(array('title' => OSCOM::getDef('my_account'), 'icon' => 'person', 'href' => OSCOM::getLink(null, 'Account', null, 'SSL'))); if ($OSCOM_Customer->isLoggedOn()) { echo HTML::button(array('title' => OSCOM::getDef('sign_out'), 'href' => OSCOM::getLink(null, 'Account', 'LogOff', 'SSL'))); } ?> </div> <script type="text/javascript"> $('#navigationIcons').buttonset();