[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/admin/ -> index.php (source)

   1  <?php
   2  /*

   3  $Id: index.php 14 2006-07-28 17:42:07Z user $

   4  

   5    osCMax Power E-Commerce

   6    http://oscdox.com

   7  

   8    Copyright 2006 osCMax

   9  

  10    Released under the GNU General Public License

  11  */
  12  
  13    require ('includes/application_top.php');
  14  
  15    $cat = array(
  16                 array('title' => BOX_HEADING_MY_ACCOUNT,
  17                       'access' => 'true',
  18                       'image' => 'my_account.gif',
  19                       'href' => tep_href_link(FILENAME_ADMIN_ACCOUNT),
  20                       'cols' => 1,
  21                       'children' => array(array('title' => HEADER_TITLE_ACCOUNT, 'link' => tep_href_link(FILENAME_ADMIN_ACCOUNT),
  22                                                 'access' => 'true'),
  23                                           array('title' => HEADER_TITLE_LOGOFF, 'link' => tep_href_link(FILENAME_LOGOFF),
  24                                                 'access' => 'true'))),
  25  
  26                 array('title' => BOX_HEADING_CATALOG,
  27  // Added line for Admin w/access levels

  28                       'access' => tep_admin_check_boxes('catalog.php'),
  29                       'image' => 'catalog.gif',
  30                       'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),
  31                       'cols' => 7,
  32                       'children' => array(array('title' => BOX_CATALOG_CATEGORIES_PRODUCTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),
  33                                           array('title' => BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES, 'link' => tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'selected_box=catalog')),
  34                                           array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')),
  35                                           array('title' => BOX_CATALOG_REVIEWS, 'link' => tep_href_link(FILENAME_REVIEWS, 'selected_box=catalog')),
  36                                           array('title' => BOX_CATALOG_SPECIALS, 'link' => tep_href_link(FILENAME_SPECIALS, 'selected_box=catalog')),
  37                                           array('title' => BOX_CATALOG_PRODUCTS_EXPECTED, 'link' => tep_href_link(FILENAME_PRODUCTS_EXPECTED, 'selected_box=catalog')),
  38                                           array('title' => BOX_CATALOG_XSELL_PRODUCTS, 'link' => tep_href_link(FILENAME_XSELL_PRODUCTS, 'selected_box=catalog')),
  39                                           array('title' => BOX_CATALOG_EASYPOPULATE, 'link' => tep_href_link(FILENAME_EASYPOPULATE, 'selected_box=catalog')),
  40                                           array('title' => BOX_CATALOG_DEFINE_MAINPAGE, 'link' => tep_href_link(FILENAME_DEFINE_MAINPAGE, 'selected_box=catalog')),
  41                                           array('title' => BOX_CATALOG_DEFINE_CONDITIONS, 'link' => tep_href_link(FILENAME_DEFINE_CONDITIONS, 'selected_box=catalog')),
  42                                           array('title' => BOX_CATALOG_DEFINE_PRIVACY, 'link' => tep_href_link(FILENAME_DEFINE_PRIVACY, 'selected_box=catalog')),
  43                                           array('title' => BOX_CATALOG_DEFINE_SHIPPING, 'link' => tep_href_link(FILENAME_DEFINE_SHIPPING, 'selected_box=catalog')),
  44                                           array('title' => BOX_CATALOG_ATTRIBUTE_MANAGER, 'link' => tep_href_link(FILENAME_NEW_ATTRIBUTES, 'selected_box=catalog')),
  45                                           )),
  46  
  47                 array('title' => BOX_HEADING_CUSTOMERS,
  48  // Added line for Admin w/access levels

  49                       'access' => tep_admin_check_boxes('customers.php'),
  50                       'image' => 'customers.gif',
  51                       'href' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'),
  52                       'cols' => 3,
  53                       'children' => array(array('title' => BOX_CUSTOMERS_CUSTOMERS, 'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')),
  54                                           array('title' => BOX_CUSTOMERS_GROUPS, 'link' => tep_href_link(FILENAME_CUSTOMERS_GROUPS, 'selected_box=customers')),
  55                                           array('title' => BOX_MANUAL_ORDER_CREATE_ACCOUNT, 'link' => tep_href_link(FILENAME_CREATE_ACCOUNT, 'selected_box=customers')),
  56                                           array('title' => BOX_MANUAL_ORDER_CREATE_ORDER, 'link' => tep_href_link(FILENAME_CREATE_ORDER, 'selected_box=customers')),
  57                                           array('title' => BOX_CUSTOMERS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=customers')))),
  58                 array('title' => BOX_HEADING_REPORTS,
  59  // Added line for Admin w/access levels

  60                       'access' => tep_admin_check_boxes('reports.php'),
  61                       'image' => 'reports.gif',
  62                       'cols' => 3,
  63                       'href' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports'),
  64                       'children' => array(array('title' => BOX_REPORTS_PRODUCTS_VIEWED, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports')),
  65                                           array('title' => BOX_REPORTS_PRODUCTS_PURCHASED, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')),
  66                                           array('title' => BOX_REPORTS_MONTHLY_SALES, 'link' => tep_href_link(FILENAME_STATS_MONTHLY_SALES, 'selected_box=reports')),
  67                                           array('title' => BOX_REPORTS_RECOVER_CART_SALES, 'link' => tep_href_link(FILENAME_RECOVER_CART_SALES, 'selected_box=reports')),
  68                                           array('title' => BOX_SHIPPING_MANIFEST, 'link' => tep_href_link(FILENAME_SHIPPING_MANIFEST, 'selected_box=reports')),
  69                                           array('title' => BOX_REPORTS_ORDERS_TOTAL, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))),
  70  
  71  
  72                 array('title' => BOX_HEADING_TOOLS,
  73  // Added line for Admin w/access levels

  74                       'access' => tep_admin_check_boxes('tools.php'),
  75                       'image' => 'tools.gif',
  76                       'href' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'),
  77                       'cols' => 5,
  78                       'children' => array(array('title' => BOX_TOOLS_BACKUP, 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools')),
  79                                           array('title' => BOX_TOOLS_BATCH_CENTER, 'link' => tep_href_link(FILENAME_BATCH_PRINT, 'selected_box=tools')),
  80                                           array('title' => BOX_TOOLS_BANNER_MANAGER, 'link' => tep_href_link(FILENAME_BANNER_MANAGER, 'selected_box=tools')),
  81                                           array('title' => BOX_TOOLS_CACHE, 'link' => tep_href_link(FILENAME_CACHE, 'selected_box=tools')),
  82                                           array('title' => BOX_TOOLS_MAIL, 'link' => tep_href_link(FILENAME_MAIL, 'selected_box=tools')),
  83                                           array('title' => BOX_TOOLS_NEWSLETTER_MANAGER, 'link' => tep_href_link(FILENAME_NEWSLETTERS, 'selected_box=tools')),
  84                                           array('title' => BOX_TOOLS_SERVER_INFO, 'link' => tep_href_link(FILENAME_SERVER_INFO, 'selected_box=tools')),
  85                                           array('title' => BOX_TOOLS_WHOS_ONLINE, 'link' => tep_href_link(FILENAME_WHOS_ONLINE, 'selected_box=tools')))),
  86  // BOF - Affiliate Mod

  87                     array('title' => BOX_HEADING_AFFILIATE,
  88                       'image' => 'affiliate.gif',
  89                       'cols' => 4,
  90                       'href' => tep_href_link(FILENAME_AFFILIATE_SUMMARY, 'selected_box=affiliate'),
  91                       'children' => array(array('title' => BOX_AFFILIATE_SUMMARY, 'link' => tep_href_link(FILENAME_AFFILIATE_SUMMARY, 'selected_box=affiliate')),
  92                                           array('title' => BOX_AFFILIATE, 'link' => tep_href_link(FILENAME_AFFILIATE, 'selected_box=affiliate')),
  93                                           array('title' => BOX_AFFILIATE_PAYMENT, 'link' => tep_href_link(FILENAME_AFFILIATE_PAYMENT, 'selected_box=affiliate')),
  94                                           array('title' => BOX_AFFILIATE_SALES, 'link' => tep_href_link(FILENAME_AFFILIATE_SALES, 'selected_box=affiliate')),
  95                                           array('title' => BOX_AFFILIATE_CLICKS, 'link' => tep_href_link(FILENAME_AFFILIATE_CLICKS, 'selected_box=affiliate')),
  96                                           array('title' => BOX_AFFILIATE_BANNERS, 'link' => tep_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'selected_box=affiliate')),
  97                                           array('title' => BOX_AFFILIATE_CONTACT, 'link' => tep_href_link(FILENAME_AFFILIATE_CONTACT, 'selected_box=affiliate')))),
  98  // EOF - Affiliate Mod

  99  
 100  // BOF - GV-ADMIN

 101                 array('title' => BOX_HEADING_GV_ADMIN,
 102  // Added line for Admin w/access levels

 103                       'access' => tep_admin_check_boxes('gv_admin.php'),
 104                       'image' => 'gift.gif',
 105                       'cols' => 2,
 106                       'href' => tep_href_link(FILENAME_COUPON_ADMIN, 'selected_box=gv_admin'),
 107                       'children' => array(array('title' => BOX_COUPON_ADMIN, 'link' => tep_href_link(FILENAME_COUPON_ADMIN, 'selected_box=gv_admin')),
 108                                           array('title' => BOX_GV_ADMIN_MAIL, 'link' => tep_href_link(FILENAME_GV_MAIL, 'selected_box=gv_admin')),
 109                                           array('title' => BOX_GV_ADMIN_QUEUE, 'link' => tep_href_link(FILENAME_GV_QUEUE, 'selected_box=gv_admin')),
 110                                           array('title' => BOX_GV_ADMIN_SENT, 'link' => tep_href_link(FILENAME_GV_SENT, 'selected_box=gv_admin')))),
 111  // EOF - GV-ADMIN

 112                 array('title' => BOX_HEADING_CONFIGURATION,
 113  // Added line for Admin w/access levels

 114                       'access' => tep_admin_check_boxes('configuration.php'),
 115                       'image' => 'configuration.gif',
 116                       'href' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1'),
 117                       'cols' => 14,
 118                       'children' => array(array('title' => BOX_CONFIGURATION_MYSTORE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1')),
 119                                           array('title' => BOX_CONFIGURATION_MIN_VALUES, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=2')),
 120                                           array('title' => BOX_CONFIGURATION_MAX_VALUES, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=3')),
 121                                           array('title' => BOX_CONFIGURATION_IMAGES, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=4')),
 122                                           array('title' => BOX_CONFIGURATION_CUSTOMER_DETAILS, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=5')),
 123                                           array('title' => BOX_CONFIGURATION_SHIPPING, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=7')),
 124                                           array('title' => BOX_CONFIGURATION_PRODUCT_LISTING, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=8')),
 125                                           array('title' => BOX_CONFIGURATION_PRODUCT_INFO, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=50')),
 126                                           array('title' => BOX_CONFIGURATION_STOCK, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=9')),
 127                                           array('title' => BOX_CONFIGURATION_LOGGING, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=10')),
 128                                           array('title' => BOX_CONFIGURATION_CACHE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=11')),
 129                                           array('title' => BOX_CONFIGURATION_EMAIL, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=12')),
 130                                           array('title' => BOX_CONFIGURATION_DOWNLOAD, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=13')),
 131                                           array('title' => BOX_CONFIGURATION_GZIP, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=14')),
 132                                           array('title' => BOX_CONFIGURATION_SESSIONS, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=15')),
 133                                           array('title' => BOX_CONFIGURATION_WYSIWYG, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=25')),
 134                                           array('title' => BOX_CONFIGURATION_AFFILIATE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=35')),
 135                                           array('title' => BOX_CONFIGURATION_ACCOUNTS, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=40')),
 136                                           array('title' => BOX_CONFIGURATION_MAINTENANCE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=16')),
 137                                           array('title' => BOX_CONFIGURATION_PAGE_CACHE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=55')),
 138                                           array('title' => BOX_CONFIGURATION_MOPICS, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=45')),
 139                                           array('title' => BOX_CONFIGURATION_PRINT, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=30')),
 140                                           array('title' => BOX_CONFIGURATION_SEO, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=60')),
 141                                           array('title' => BOX_CONFIGURATION_WISHLIST, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=65')),
 142                                           array('title' => BOX_CONFIGURATION_EDITOR, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=70')),
 143                                           array('title' => BOX_CONFIGURATION_SEO_VALIDATION, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=75')))),
 144  
 145                 array('title' => BOX_HEADING_LOCATION_AND_TAXES,
 146  // Added line for Admin w/access levels

 147                       'access' => tep_admin_check_boxes('taxes.php'),
 148                       'image' => 'location.gif',
 149                       'href' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes'),
 150                       'children' => array(array('title' => BOX_TAXES_COUNTRIES, 'link' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes')),
 151                                           array('title' => BOX_TAXES_ZONES, 'link' => tep_href_link(FILENAME_ZONES, 'selected_box=taxes')),
 152                                           array('title' => BOX_TAXES_GEO_ZONES, 'link' => tep_href_link(FILENAME_GEO_ZONES, 'selected_box=taxes')),
 153                                           array('title' => BOX_TAXES_TAX_CLASSES, 'link' => tep_href_link(FILENAME_TAX_CLASSES, 'selected_box=taxes')),
 154                                           array('title' => BOX_TAXES_TAX_RATES, 'link' => tep_href_link(FILENAME_TAX_RATES, 'selected_box=taxes')))),
 155  
 156                 array('title' => BOX_HEADING_LOCALIZATION,
 157  // Added line for Admin w/access levels

 158                       'access' => tep_admin_check_boxes('localization.php'),
 159                       'image' => 'localization.gif',
 160                       'href' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'),
 161                       'children' => array(array('title' => BOX_LOCALIZATION_CURRENCIES, 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization')),
 162                                           array('title' => BOX_LOCALIZATION_LANGUAGES, 'link' => tep_href_link(FILENAME_LANGUAGES, 'selected_box=localization')),
 163                                           array('title' => BOX_LOCALIZATION_ORDERS_STATUS, 'link' => tep_href_link(FILENAME_ORDERS_STATUS, 'selected_box=localization')))),
 164  
 165                 array('title' => BOX_HEADING_MODULES,
 166  // Added line for Admin w/access levels

 167                       'access' => tep_admin_check_boxes('modules.php'),
 168                       'image' => 'modules.gif',
 169                       'href' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment'),
 170                       'children' => array(array('title' => BOX_MODULES_PAYMENT, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment')),
 171                                           array('title' => BOX_MODULES_SHIPPING, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=shipping')),
 172                                           array('title' => BOX_MODULES_ORDER_TOTAL, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=ordertotal')))),
 173  
 174                 array('title' => BOX_HEADING_ADMINISTRATOR,
 175  // Added line for Admin w/access levels

 176                       'access' => tep_admin_check_boxes('administrator.php'),
 177                       'image' => 'administrator.gif',
 178                       'href' => tep_href_link(tep_selected_file('administrator.php'), 'selected_box=administrator'),
 179                       'children' => array(array('title' => BOX_ADMINISTRATOR_MEMBER, 'link' => tep_href_link(FILENAME_ADMIN_MEMBERS, 'selected_box=administrator')),
 180                                           array('title' => 'Merchant Account Application', 'link' => tep_href_link('merchant_info.php', 'selected_box=administrator')),
 181                                           array('title' => 'Paypal Account Application', 'link' => tep_href_link('paypal_info.php', 'selected_box=administrator')),
 182                                           array('title' => 'Secure SSL Certificates', 'link' => tep_href_link('ssl_info.php', 'selected_box=administrator')),
 183                                           array('title' => 'osCMax eCommerce Hosting', 'link' => tep_href_link('hosting_info.php', 'selected_box=administrator')),
 184                                           array('title' => 'Domain Registration', 'link' => tep_href_link('domain_info.php', 'selected_box=administrator')),
 185                                           array('title' => 'Hosting Affiliate Program', 'link' => tep_href_link('affiliate_info.php', 'selected_box=administrator')),
 186                                                 'access' => tep_admin_check_boxes(FILENAME_ADMIN_MEMBERS, 'sub_boxes'),
 187                                           array('title' => BOX_ADMINISTRATOR_BOXES, 'link' => tep_href_link(FILENAME_ADMIN_FILES, 'selected_box=administrator'),
 188                                                 'access' => tep_admin_check_boxes(FILENAME_ADMIN_FILES, 'sub_boxes')))),
 189    );
 190  
 191    $languages = tep_get_languages();
 192    $languages_array = array();
 193    $languages_selected = DEFAULT_LANGUAGE;
 194    for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
 195      $languages_array[] = array('id' => $languages[$i]['code'],
 196                                 'text' => $languages[$i]['name']);
 197      if ($languages[$i]['directory'] == $language) {
 198        $languages_selected = $languages[$i]['code'];
 199      }
 200    }
 201  ?>
 202  <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
 203  <html <?php echo HTML_PARAMS; ?>>
 204  <head>
 205  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
 206  <meta name="robots" content="noindex,nofollow">
 207  <title><?php echo TITLE; ?></title>
 208  <style type="text/css"><!--
 209  .style1 {color: #FF0000}
 210  a { color: #2A2A2A; text-decoration:none; }
 211  a:hover { color: #818181; text-decoration:underline; }
 212  a.text:link, a.text:visited { color: #B5B5B5; text-decoration: none; }
 213  a:text:hover { color: #000000; text-decoration: underline; }
 214  a.main:link, a.main:visited { color: Black; text-decoration: none; }
 215  A.main:hover { color: #939393; text-decoration: underline; }
 216  a.sub:link, a.sub:visited { color: #C5C5C5; text-decoration: none; }
 217  A.sub:hover { color: #dddddd; text-decoration: underline; }
 218  a:link.headerLink { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: bold; text-decoration: none; }
 219  a:visited.headerLink { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: bold; text-decoration: none }
 220  a:active.headerLink { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: bold; text-decoration: none; }
 221  a:hover.headerLink { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: bold; text-decoration: underline; }
 222  
 223  #.heading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; line-height: 1.5; color: #000000; }

 224  .heading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; line-height: 1.5; color: Black; }
 225  .main { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold; line-height: 1.5; color: #000000; }
 226  .sub { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 1.5; color: #dddddd; }
 227  .text { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 1.5; color: #000000; }
 228  #.menuBoxHeading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff; font-weight: bold; background-color: #093570; border-color: #093570; border-style: solid; border-width: 1px; }

 229  .menuBoxHeading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: Black; font-weight: bold; background-color: #F3F3F3; border-color: #B6B6B6; border-style: solid; border-width: 1px; }
 230  .infoBox { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #2C2C2C; background-color: #ffffff; border-color: #B6B6B6; border-style: solid; border-width: 1px; }
 231  .smallText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
 232  
 233  .menusub { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
 234  
 235  //--></style>

 236  </head>
 237  <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
 238  <br>
 239  <table border="0" width="600" height="100%" cellspacing="0" cellpadding="0" align="center" valign="middle">
 240    <tr>
 241      <td><table border="0" width="600" height="440" cellspacing="0" cellpadding="1" align="center" valign="middle">
 242        <tr bgcolor="#000000">
 243          <td><table border="0" width="600" height="440" cellspacing="0" cellpadding="0">
 244            <tr bgcolor="#ffffff" height="50">
 245              <td height="50"><?php echo '<a href="http://www.oscmax.com">' . tep_image(DIR_WS_IMAGES . 'oscmax-logo.png', 'osCMax v2.0', '85', '80') . '</a>'; ?></td>
 246              <td align="right" class="text" nowrap><?php echo '&nbsp;&nbsp;<a href="http://www.oscmax.com/forums/" class="headerLink">' . BOX_ENTRY_SUPPORT_FORUMS . '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_DEFAULT) . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a>'; ?>&nbsp;&nbsp<br>Current Version: <?php echo PROJECT_VERSION ?>&nbsp;&nbsp;</td>
 247            </tr>
 248            <tr bgcolor="#E7E7E7">
 249              <td colspan="2"><table border="0" width="100%" height="390" cellspacing="0" cellpadding="0">
 250                <tr valign="top">
 251                  <td width="140" valign="top"><table border="0" width="140" height="390" cellspacing="0" cellpadding="0">
 252                    <tr>
 253                      <td valign="top"><br><br><br>
 254  <?php
 255    $heading = array();
 256    $contents = array();
 257  
 258    $heading[] = array('params' => 'class="menuBoxHeading"',
 259                       'text'  => 'osCMax v2.0');
 260  
 261    $contents[] = array('params' => 'class="infoBox"',
 262                        'text'  => '<a href="http://www.oscmax.com" target="_blank">' . BOX_ENTRY_SUPPORT_SITE . '</a><br>' .
 263                                   '<a href="http://www.oscmax.com/forums" target="_blank">' . BOX_ENTRY_SUPPORT_FORUMS . '</a><br>' .
 264                                   '<a href="http://www.oscmax.com/template_store_oscmax_skins_0" target="_blank">' . BOX_ENTRY_TEMPLATE_STORE . '</a><br>' .
 265                                   '<a href="http://bugtrack.oscmax.com/" target="_blank">' . BOX_ENTRY_BUG_REPORTS . '</a><br>' .
 266                                   '<a href="https://www.paypal.com/us/mrb/pal=QFHLNU89TLJYA" target="_blank">' . BOX_ENTRY_PAYPAL . '</a><br>' .
 267                                   '<a href="https://www.cdgcommerce.com/internet-services.php?R=1017" target="_blank">' . BOX_ENTRY_MERCHANT . '</a><br>');
 268                              //   '<a href="http://www.aabox.com/domains.htm?oscmax" target="_blank">' . BOX_ENTRY_DOMAINS . '</a><br>' .

 269                              //   '<a href="http://www.aabox.com/ssl-compare.htm?oscmax" target="_blank">' . BOX_ENTRY_SSL . '</a><br>' .

 270                                 //     '<a href="http://www.aabox.com/virtual-hosting-oscmax.htm" target="_blank">' . BOX_ENTRY_AABOX . '</a>');

 271  
 272    $box = new box;
 273    echo $box->menuBox($heading, $contents);
 274  
 275    echo '<br>';
 276  
 277    $orders_contents = '';
 278    $orders_status_query = tep_db_query("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "'");
 279    while ($orders_status = tep_db_fetch_array($orders_status_query)) {
 280      $orders_pending_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS . " where orders_status = '" . $orders_status['orders_status_id'] . "'");
 281      $orders_pending = tep_db_fetch_array($orders_pending_query);
 282  // BOF: MOD - Admin w/access levels

 283  //  $orders_contents .= '<a href="' . tep_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br>';

 284      if (tep_admin_check_boxes(FILENAME_ORDERS, 'sub_boxes') == true) {
 285        $orders_contents .= '<a href="' . tep_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br>';
 286      } else {
 287        $orders_contents .= '' . $orders_status['orders_status_name'] . ': ' . $orders_pending['count'] . '<br>';
 288      }
 289  // EOF: MOD - Admin w/access levels

 290    }
 291    $orders_contents = substr($orders_contents, 0, -4);
 292  
 293    $heading = array();
 294    $contents = array();
 295  
 296    $heading[] = array('params' => 'class="menuBoxHeading"',
 297                       'text'  => BOX_TITLE_ORDERS);
 298  
 299    $contents[] = array('params' => 'class="infoBox"',
 300                        'text'  => $orders_contents);
 301  
 302    $box = new box;
 303    echo $box->menuBox($heading, $contents);
 304  
 305    echo '<br>';
 306  
 307    $customers_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS);
 308    $customers = tep_db_fetch_array($customers_query);
 309    $products_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1'");
 310    $products = tep_db_fetch_array($products_query);
 311    $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS);
 312    $reviews = tep_db_fetch_array($reviews_query);
 313  
 314    $heading = array();
 315    $contents = array();
 316  
 317    $heading[] = array('params' => 'class="menuBoxHeading"',
 318                       'text'  => BOX_TITLE_STATISTICS);
 319  
 320    $contents[] = array('params' => 'class="infoBox"',
 321                        'text'  => BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<br>' .
 322                                   BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<br>' .
 323                                   BOX_ENTRY_REVIEWS . ' ' . $reviews['count']);
 324  
 325    $box = new box;
 326    echo $box->menuBox($heading, $contents);
 327  
 328    echo '<br>';
 329  
 330    $contents = array();
 331  
 332    if (getenv('HTTPS') == 'on') {
 333      $size = ((getenv('SSL_CIPHER_ALGKEYSIZE')) ? getenv('SSL_CIPHER_ALGKEYSIZE') . '-bit' : '<i>' . BOX_CONNECTION_UNKNOWN . '</i>');
 334      $contents[] = array('params' => 'class="infoBox"',
 335                          'text' => tep_image(DIR_WS_ICONS . 'locked.gif', ICON_LOCKED, '', '', 'align="right"') . sprintf(BOX_CONNECTION_PROTECTED, $size));
 336    } else {
 337      $contents[] = array('params' => 'class="infoBox"',
 338                          'text' => tep_image(DIR_WS_ICONS . 'unlocked.gif', ICON_UNLOCKED, '', '', 'align="right"') . BOX_CONNECTION_UNPROTECTED);
 339    }
 340  
 341    $box = new box;
 342    echo $box->tableBlock($contents);
 343  ?>
 344                      </td>
 345                    </tr>
 346                  </table></td>
 347                  <td width="636" align="center"><table border="0" width="606" height="390" cellspacing="0" cellpadding="2">
 348                    <tr>
 349                      <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
 350                        <tr><?php echo tep_draw_form('languages', 'index.php', '', 'get'); ?>
 351                          <td class="heading"><?php echo HEADING_TITLE; ?></td>
 352                          <td align="right"><?php echo tep_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"'); ?></td>
 353                        <?php echo tep_hide_session_id(); ?></form></tr>
 354                      </table></td>
 355                    </tr>
 356  <?php
 357    $col = 2;
 358    $counter = 0;
 359    for ($i = 0, $n = sizeof($cat); $i < $n; $i++) {
 360      $counter++;
 361      if ($counter < $col) {
 362  //      echo '                  <tr>' . "\n";

 363      }
 364  
 365      $cn = ($i >= 7 ? 2 : 1);
 366  
 367      ${'c' . $cn}.= '                    <table border="0" cellspacing="0" cellpadding="2" width="100%" bgcolor="#F3F3F3">' . "\n" .
 368           '                      <tr>' . "\n" .
 369           '                        <td valign="top"><a href="' . $cat[$i]['href'] . '">' . tep_image(DIR_WS_IMAGES . 'categories/' . $cat[$i]['image'], $cat[$i]['title'], '32', '32') . '</a></td>' . "\n" .
 370           '                        <td width="100%"><table border="0" cellspacing="0" cellpadding="2" width="100%">' . "\n" .
 371           '                          <tr bgcolor="#FFFFFF">' . "\n" .
 372           '                            <td class="main"><a href="' . $cat[$i]['href'] . '" class="main">' . $cat[$i]['title'] . '</a></td>' . "\n" .
 373           '                          </tr>' . "\n" .
 374           '                          <tr>' . "\n" .
 375           '                            <td class="menusub" width="100%">';
 376  
 377      $children = '';
 378      $children1 = '';
 379      $children2 = '';
 380  
 381      for ($j = 0, $k = sizeof($cat[$i]['children']); $j < $k; $j++) {
 382  
 383        if(isset($cat[$i]['cols'])) {
 384          if($j >= $cat[$i]['cols']) {
 385            $chn = 2;
 386          } else {
 387            $chn = 1;
 388          }
 389          ${'children'.$chn} .= '<a href="' . $cat[$i]['children'][$j]['link'] . '" class="menusub">' . $cat[$i]['children'][$j]['title'] . '</a><br>';
 390        } else {
 391          $children .= '<a href="' . $cat[$i]['children'][$j]['link'] . '" class="menusub">' . $cat[$i]['children'][$j]['title'] . '</a><br>';
 392        }
 393      }
 394      $children .= '<table width="100%"><tr><td valign="top" width="50%">' . $children1 . '</td><td valign="top" width="50%">' . $children2 . '</td></tr></table>';
 395  
 396  
 397      ${'c' . $cn} .= $children;
 398  
 399      ${'c' . $cn} .='</td> ' . "\n" .
 400           '                          </tr>' . "\n" .
 401           '                        </table></td>' . "\n" .
 402           '                      </tr>' . "\n" .
 403           '                    </table>' . "\n";
 404  
 405      if ($counter >= $col) {
 406  //      echo '                  </tr>' . "\n";

 407        $counter = 0;
 408      }
 409    }
 410  ?>
 411  
 412                    <tr>
 413                      <td valign="top">
 414                        <table width="98%" border="0" cellpadding="0" cellspacing="0">
 415                          <tr>
 416                            <td class="heading">Store Management</td>
 417                          </tr>
 418                        </table>
 419                        <?php echo $c1;?>
 420                      </td>
 421                      <td valign="top">
 422                        <table width="98%" border="0" cellpadding="0" cellspacing="0">
 423                          <tr>
 424                            <td class="heading">Store Setup</td>
 425                          </tr>
 426                        </table>
 427                        <?php echo $c2;?>
 428                      </td>
 429                    </tr>
 430                  </table></td>
 431                </tr>
 432              </table></td>
 433            </tr>
 434          </table></td>
 435        </tr>
 436        <tr>
 437            <td><?php require (DIR_WS_INCLUDES . 'footer.php'); ?></td>
 438          </tr>
 439      </table></td>
 440    </tr>
 441  </table>
 442  
 443  </body>
 444  
 445  </html>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7