Permalink
Browse files

Add template_top.php/template_bottom.php to the Administration Tool l…

…ayout
  • Loading branch information...
1 parent e0ff4c5 commit f23cf1a3730f4630e0ed5a035612e37a6b980b06 @haraldpdl haraldpdl committed Oct 22, 2010
Showing with 795 additions and 1,558 deletions.
  1. +10 −36 catalog/admin/action_recorder.php
  2. +11 −37 catalog/admin/administrators.php
  3. +11 −37 catalog/admin/backup.php
  4. +12 −38 catalog/admin/banner_manager.php
  5. +11 −36 catalog/admin/banner_statistics.php
  6. +11 −37 catalog/admin/cache.php
  7. +7 −40 catalog/admin/categories.php
  8. +11 −37 catalog/admin/configuration.php
  9. +11 −37 catalog/admin/countries.php
  10. +10 −36 catalog/admin/currencies.php
  11. +12 −39 catalog/admin/customers.php
  12. +11 −37 catalog/admin/define_language.php
  13. +12 −39 catalog/admin/geo_zones.php
  14. +36 −25 catalog/admin/includes/boxes/catalog.php
  15. +22 −24 catalog/admin/includes/boxes/configuration.php
  16. +16 −21 catalog/admin/includes/boxes/customers.php
  17. +21 −22 catalog/admin/includes/boxes/localization.php
  18. +41 −26 catalog/admin/includes/boxes/modules.php
  19. +21 −22 catalog/admin/includes/boxes/reports.php
  20. +31 −24 catalog/admin/includes/boxes/taxes.php
  21. +61 −30 catalog/admin/includes/boxes/tools.php
  22. +58 −9 catalog/admin/includes/column_left.php
  23. +0 −6 catalog/admin/includes/header.php
  24. +22 −1 catalog/admin/includes/stylesheet.css
  25. +21 −0 catalog/admin/includes/template_bottom.php
  26. +47 −0 catalog/admin/includes/template_top.php
  27. +12 −37 catalog/admin/index.php
  28. +2 −2 catalog/admin/invoice.php
  29. +11 −37 catalog/admin/languages.php
  30. +9 −25 catalog/admin/login.php
  31. +11 −36 catalog/admin/mail.php
  32. +11 −37 catalog/admin/manufacturers.php
  33. +11 −37 catalog/admin/modules.php
  34. +12 −37 catalog/admin/newsletters.php
  35. +11 −39 catalog/admin/orders.php
  36. +11 −37 catalog/admin/orders_status.php
  37. +2 −2 catalog/admin/packingslip.php
  38. +11 −34 catalog/admin/products_attributes.php
  39. +9 −35 catalog/admin/products_expected.php
  40. +11 −37 catalog/admin/reviews.php
  41. +10 −36 catalog/admin/sec_dir_permissions.php
  42. +11 −36 catalog/admin/server_info.php
  43. +14 −38 catalog/admin/specials.php
  44. +9 −34 catalog/admin/stats_customers.php
  45. +9 −34 catalog/admin/stats_products_purchased.php
  46. +9 −34 catalog/admin/stats_products_viewed.php
  47. +8 −34 catalog/admin/store_logo.php
  48. +11 −37 catalog/admin/tax_classes.php
  49. +11 −37 catalog/admin/tax_rates.php
  50. +10 −36 catalog/admin/version_check.php
  51. +11 −37 catalog/admin/whos_online.php
  52. +11 −37 catalog/admin/zones.php
View
46 catalog/admin/action_recorder.php
@@ -81,30 +81,11 @@
break;
}
}
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2" height="40">
<tr>
@@ -225,16 +206,9 @@
</tr>
</table></td>
</tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
48 catalog/admin/administrators.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2009 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -229,30 +229,11 @@
} else if (!$is_iis) {
$secMessageStack->add(HTPASSWD_PERMISSIONS, 'error');
}
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
@@ -392,16 +373,9 @@
</tr>
</table></td>
</tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
48 catalog/admin/backup.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2008 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -325,30 +325,11 @@
} else {
$messageStack->add(ERROR_BACKUP_DIRECTORY_DOES_NOT_EXIST, 'error');
}
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
@@ -498,16 +479,9 @@
</tr>
</table></td>
</tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
50 catalog/admin/banner_manager.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2003 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -184,36 +184,17 @@
$messageStack->add(ERROR_GRAPHS_DIRECTORY_DOES_NOT_EXIST, 'error');
}
}
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
+
<script language="javascript"><!--
function popupImageWindow(url) {
window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
//--></script>
-</head>
-<body onload="SetFocus();">
-<div id="spiffycalendar" class="text"></div>
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
@@ -451,16 +432,9 @@ function popupImageWindow(url) {
<?php
}
?>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
47 catalog/admin/banner_statistics.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2003 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -52,29 +52,11 @@
'text' => STATISTICS_TYPE_MONTHLY),
array('id' => 'yearly',
'text' => STATISTICS_TYPE_YEARLY));
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><?php echo tep_draw_form('year', FILENAME_BANNER_STATISTICS, '', 'get'); ?>
@@ -164,16 +146,9 @@
<tr>
<td class="smallText" align="right"><?php echo tep_draw_button(IMAGE_BACK, 'arrow-1-w', tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $HTTP_GET_VARS['bID'])); ?></td>
</tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
48 catalog/admin/cache.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2003 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -28,30 +28,11 @@
} else {
$messageStack->add(ERROR_CACHE_DIRECTORY_DOES_NOT_EXIST, 'error');
}
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
@@ -116,16 +97,9 @@
</tr>
</table></td>
</tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
47 catalog/admin/categories.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2007 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -331,32 +331,9 @@
} else {
$messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST, 'error');
}
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body onload="SetFocus();">
-<div id="spiffycalendar" class="text"></div>
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top">
-<?php
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
+
if ($action == 'new_product') {
$parameters = array('products_name' => '',
'products_description' => '',
@@ -1012,17 +989,7 @@ function updateNet() {
</table>
<?php
}
+
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
- </td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
View
48 catalog/admin/configuration.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2003 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -31,30 +31,11 @@
$cfg_group_query = tep_db_query("select configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where configuration_group_id = '" . (int)$gID . "'");
$cfg_group = tep_db_fetch_array($cfg_group_query);
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
@@ -156,16 +137,9 @@
</tr>
</table></td>
</tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
48 catalog/admin/countries.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2003 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -46,30 +46,11 @@
break;
}
}
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
@@ -188,16 +169,9 @@
</tr>
</table></td>
</tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
46 catalog/admin/currencies.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2003 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -142,19 +142,9 @@
$currency_select_array[] = array('id' => $cs['code'], 'text' => '[' . $cs['code'] . '] ' . $cs['title']);
}
}
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
<script type="text/javascript">
var currency_select = new Array();
@@ -180,16 +170,7 @@ function updateForm() {
}
</script>
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
@@ -331,16 +312,9 @@ function updateForm() {
</tr>
</table></td>
</tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
51 catalog/admin/customers.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2003 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -226,15 +226,9 @@
$cInfo = new objectInfo($customers);
}
}
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-<?php
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
+
if ($action == 'edit' || $action == 'update') {
?>
<script language="javascript"><!--
@@ -334,22 +328,8 @@ function check_form() {
<?php
}
?>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
if ($action == 'edit' || $action == 'update') {
$newsletter_array = array(array('id' => '1', 'text' => ENTRY_NEWSLETTER_YES),
@@ -803,16 +783,9 @@ function check_form() {
<?php
}
?>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
48 catalog/admin/define_language.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2003 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -84,30 +84,11 @@ function tep_opendir($path) {
break;
}
}
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><?php echo tep_draw_form('lng', FILENAME_DEFINE_LANGUAGE, '', 'get'); ?>
@@ -209,16 +190,9 @@ function tep_opendir($path) {
?>
</table></td>
</tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
51 catalog/admin/geo_zones.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2003 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -78,15 +78,9 @@
break;
}
}
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-<?php
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
+
if (isset($HTTP_GET_VARS['zID']) && (($saction == 'edit') || ($saction == 'new'))) {
?>
<script language="javascript"><!--
@@ -117,22 +111,8 @@ function update_zone(theForm) {
<?php
}
?>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
@@ -338,16 +318,9 @@ function update_zone(theForm) {
</tr>
</table></td>
</tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
61 catalog/admin/includes/boxes/catalog.php
@@ -5,33 +5,44 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2002 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
-?>
-<!-- catalog //-->
- <tr>
- <td>
-<?php
- $heading = array();
- $contents = array();
-
- $heading[] = array('text' => BOX_HEADING_CATALOG,
- 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'));
-
- if ($selected_box == 'catalog') {
- $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_MANUFACTURERS . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_SPECIALS . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>');
- }
- $box = new box;
- echo $box->menuBox($heading, $contents);
+ $cl_box_groups[] = array(
+ 'heading' => BOX_HEADING_CATALOG,
+ 'apps' => array(
+ array(
+ 'code' => FILENAME_CATEGORIES,
+ 'title' => BOX_CATALOG_CATEGORIES_PRODUCTS,
+ 'link' => tep_href_link(FILENAME_CATEGORIES)
+ ),
+ array(
+ 'code' => FILENAME_PRODUCTS_ATTRIBUTES,
+ 'title' => BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES,
+ 'link' => tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES)
+ ),
+ array(
+ 'code' => FILENAME_MANUFACTURERS,
+ 'title' => BOX_CATALOG_MANUFACTURERS,
+ 'link' => tep_href_link(FILENAME_MANUFACTURERS)
+ ),
+ array(
+ 'code' => FILENAME_REVIEWS,
+ 'title' => BOX_CATALOG_REVIEWS,
+ 'link' => tep_href_link(FILENAME_REVIEWS)
+ ),
+ array(
+ 'code' => FILENAME_SPECIALS,
+ 'title' => BOX_CATALOG_SPECIALS,
+ 'link' => tep_href_link(FILENAME_SPECIALS)
+ ),
+ array(
+ 'code' => FILENAME_PRODUCTS_EXPECTED,
+ 'title' => BOX_CATALOG_PRODUCTS_EXPECTED,
+ 'link' => tep_href_link(FILENAME_PRODUCTS_EXPECTED)
+ )
+ )
+ );
?>
- </td>
- </tr>
-<!-- catalog_eof //-->
View
46 catalog/admin/includes/boxes/configuration.php
@@ -9,31 +9,29 @@
Released under the GNU General Public License
*/
-?>
-<!-- configuration //-->
- <tr>
- <td>
-<?php
- $heading = array();
- $contents = array();
- $heading[] = array('text' => BOX_HEADING_CONFIGURATION,
- 'link' => tep_href_link(FILENAME_CONFIGURATION, 'gID=1&selected_box=configuration'));
+ $cl_box_groups[] = array(
+ 'heading' => BOX_HEADING_CONFIGURATION,
+ 'apps' => array(
+ array(
+ 'code' => FILENAME_ADMINISTRATORS,
+ 'title' => BOX_CONFIGURATION_ADMINISTRATORS,
+ 'link' => tep_href_link(FILENAME_ADMINISTRATORS)
+ ),
+ array(
+ 'code' => FILENAME_STORE_LOGO,
+ 'title' => BOX_CONFIGURATION_STORE_LOGO,
+ 'link' => tep_href_link(FILENAME_STORE_LOGO)
+ )
+ )
+ );
- if ($selected_box == 'configuration') {
- $cfg_groups = '<a href="' . tep_href_link(FILENAME_ADMINISTRATORS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CONFIGURATION_ADMINISTRATORS . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_STORE_LOGO, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CONFIGURATION_STORE_LOGO . '</a><br>';
- $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' order by sort_order");
- while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
- $cfg_groups .= '<a href="' . tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $configuration_groups['cgID'], 'NONSSL') . '" class="menuBoxContentLink">' . $configuration_groups['cgTitle'] . '</a><br>';
- }
-
- $contents[] = array('text' => $cfg_groups);
+ $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' order by sort_order");
+ while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
+ $cl_box_groups[sizeof($cl_box_groups)-1]['apps'][] = array(
+ 'code' => FILENAME_CONFIGURATION,
+ 'title' => $configuration_groups['cgTitle'],
+ 'link' => tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $configuration_groups['cgID'])
+ );
}
-
- $box = new box;
- echo $box->menuBox($heading, $contents);
?>
- </td>
- </tr>
-<!-- configuration_eof //-->
View
37 catalog/admin/includes/boxes/customers.php
@@ -5,29 +5,24 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2002 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
-?>
-<!-- customers //-->
- <tr>
- <td>
-<?php
- $heading = array();
- $contents = array();
-
- $heading[] = array('text' => BOX_HEADING_CUSTOMERS,
- 'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'));
-
- if ($selected_box == 'customers') {
- $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>');
- }
- $box = new box;
- echo $box->menuBox($heading, $contents);
+ $cl_box_groups[] = array(
+ 'heading' => BOX_HEADING_CUSTOMERS,
+ 'apps' => array(
+ array(
+ 'code' => FILENAME_CUSTOMERS,
+ 'title' => BOX_CUSTOMERS_CUSTOMERS,
+ 'link' => tep_href_link(FILENAME_CUSTOMERS)
+ ),
+ array(
+ 'code' => FILENAME_ORDERS,
+ 'title' => BOX_CUSTOMERS_ORDERS,
+ 'link' => tep_href_link(FILENAME_ORDERS)
+ )
+ )
+ );
?>
- </td>
- </tr>
-<!-- customers_eof //-->
View
43 catalog/admin/includes/boxes/localization.php
@@ -5,30 +5,29 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2002 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
-?>
-<!-- localization //-->
- <tr>
- <td>
-<?php
- $heading = array();
- $contents = array();
-
- $heading[] = array('text' => BOX_HEADING_LOCALIZATION,
- 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'));
-
- if ($selected_box == 'localization') {
- $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CURRENCIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_LOCALIZATION_CURRENCIES . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_LANGUAGES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_LOCALIZATION_LANGUAGES . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_ORDERS_STATUS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_LOCALIZATION_ORDERS_STATUS . '</a>');
- }
- $box = new box;
- echo $box->menuBox($heading, $contents);
+ $cl_box_groups[] = array(
+ 'heading' => BOX_HEADING_LOCALIZATION,
+ 'apps' => array(
+ array(
+ 'code' => FILENAME_CURRENCIES,
+ 'title' => BOX_LOCALIZATION_CURRENCIES,
+ 'link' => tep_href_link(FILENAME_CURRENCIES)
+ ),
+ array(
+ 'code' => FILENAME_LANGUAGES,
+ 'title' => BOX_LOCALIZATION_LANGUAGES,
+ 'link' => tep_href_link(FILENAME_LANGUAGES)
+ ),
+ array(
+ 'code' => FILENAME_ORDERS_STATUS,
+ 'title' => BOX_LOCALIZATION_ORDERS_STATUS,
+ 'link' => tep_href_link(FILENAME_ORDERS_STATUS)
+ )
+ )
+ );
?>
- </td>
- </tr>
-<!-- localization_eof //-->
View
67 catalog/admin/includes/boxes/modules.php
@@ -5,34 +5,49 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2002 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
-?>
-<!-- modules //-->
- <tr>
- <td>
-<?php
- $heading = array();
- $contents = array();
-
- $heading[] = array('text' => BOX_HEADING_MODULES,
- 'link' => tep_href_link(FILENAME_MODULES, 'set=payment&selected_box=modules'));
-
- if ($selected_box == 'modules') {
- $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=payment', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_PAYMENT . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_MODULES, 'set=shipping', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_SHIPPING . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_MODULES, 'set=ordertotal', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ORDER_TOTAL . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_MODULES, 'set=actionrecorder', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACTION_RECORDER . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_MODULES, 'set=header_tags', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_HEADER_TAGS . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_MODULES, 'set=social_bookmarks', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_SOCIAL_BOOKMARKS . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_MODULES, 'set=dashboard', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ADMIN_DASHBOARD . '</a>');
- }
- $box = new box;
- echo $box->menuBox($heading, $contents);
+ $cl_box_groups[] = array(
+ 'heading' => BOX_HEADING_MODULES,
+ 'apps' => array(
+ array(
+ 'code' => FILENAME_MODULES,
+ 'title' => BOX_MODULES_PAYMENT,
+ 'link' => tep_href_link(FILENAME_MODULES, 'set=payment')
+ ),
+ array(
+ 'code' => FILENAME_MODULES,
+ 'title' => BOX_MODULES_SHIPPING,
+ 'link' => tep_href_link(FILENAME_MODULES, 'set=shipping')
+ ),
+ array(
+ 'code' => FILENAME_MODULES,
+ 'title' => BOX_MODULES_ORDER_TOTAL,
+ 'link' => tep_href_link(FILENAME_MODULES, 'set=ordertotal')
+ ),
+ array(
+ 'code' => FILENAME_MODULES,
+ 'title' => BOX_MODULES_ACTION_RECORDER,
+ 'link' => tep_href_link(FILENAME_MODULES, 'set=actionrecorder')
+ ),
+ array(
+ 'code' => FILENAME_MODULES,
+ 'title' => BOX_MODULES_HEADER_TAGS,
+ 'link' => tep_href_link(FILENAME_MODULES, 'set=header_tags')
+ ),
+ array(
+ 'code' => FILENAME_MODULES,
+ 'title' => BOX_MODULES_SOCIAL_BOOKMARKS,
+ 'link' => tep_href_link(FILENAME_MODULES, 'set=social_bookmarks')
+ ),
+ array(
+ 'code' => FILENAME_MODULES,
+ 'title' => BOX_MODULES_ADMIN_DASHBOARD,
+ 'link' => tep_href_link(FILENAME_MODULES, 'set=dashboard')
+ )
+ )
+ );
?>
- </td>
- </tr>
-<!-- modules_eof //-->
View
43 catalog/admin/includes/boxes/reports.php
@@ -5,30 +5,29 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2002 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
-?>
-<!-- reports //-->
- <tr>
- <td>
-<?php
- $heading = array();
- $contents = array();
-
- $heading[] = array('text' => BOX_HEADING_REPORTS,
- 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports'));
-
- if ($selected_box == 'reports') {
- $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_VIEWED . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a>');
- }
- $box = new box;
- echo $box->menuBox($heading, $contents);
+ $cl_box_groups[] = array(
+ 'heading' => BOX_HEADING_REPORTS,
+ 'apps' => array(
+ array(
+ 'code' => FILENAME_STATS_PRODUCTS_VIEWED,
+ 'title' => BOX_REPORTS_PRODUCTS_VIEWED,
+ 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED)
+ ),
+ array(
+ 'code' => FILENAME_STATS_PRODUCTS_PURCHASED,
+ 'title' => BOX_REPORTS_PRODUCTS_PURCHASED,
+ 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED)
+ ),
+ array(
+ 'code' => FILENAME_STATS_CUSTOMERS,
+ 'title' => BOX_REPORTS_ORDERS_TOTAL,
+ 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS)
+ )
+ )
+ );
?>
- </td>
- </tr>
-<!-- reports_eof //-->
View
55 catalog/admin/includes/boxes/taxes.php
@@ -5,32 +5,39 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2002 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
-?>
-<!-- taxes //-->
- <tr>
- <td>
-<?php
- $heading = array();
- $contents = array();
-
- $heading[] = array('text' => BOX_HEADING_LOCATION_AND_TAXES,
- 'link' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes'));
-
- if ($selected_box == 'taxes') {
- $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_COUNTRIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_TAXES_COUNTRIES . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_ZONES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_TAXES_ZONES . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_GEO_ZONES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_TAXES_GEO_ZONES . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_TAX_CLASSES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_TAXES_TAX_CLASSES . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_TAX_RATES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_TAXES_TAX_RATES . '</a>');
- }
- $box = new box;
- echo $box->menuBox($heading, $contents);
+ $cl_box_groups[] = array(
+ 'heading' => BOX_HEADING_LOCATION_AND_TAXES,
+ 'apps' => array(
+ array(
+ 'code' => FILENAME_COUNTRIES,
+ 'title' => BOX_TAXES_COUNTRIES,
+ 'link' => tep_href_link(FILENAME_COUNTRIES)
+ ),
+ array(
+ 'code' => FILENAME_ZONES,
+ 'title' => BOX_TAXES_ZONES,
+ 'link' => tep_href_link(FILENAME_ZONES)
+ ),
+ array(
+ 'code' => FILENAME_GEO_ZONES,
+ 'title' => BOX_TAXES_GEO_ZONES,
+ 'link' => tep_href_link(FILENAME_GEO_ZONES)
+ ),
+ array(
+ 'code' => FILENAME_TAX_CLASSES,
+ 'title' => BOX_TAXES_TAX_CLASSES,
+ 'link' => tep_href_link(FILENAME_TAX_CLASSES)
+ ),
+ array(
+ 'code' => FILENAME_TAX_RATES,
+ 'title' => BOX_TAXES_TAX_RATES,
+ 'link' => tep_href_link(FILENAME_TAX_RATES)
+ )
+ )
+ );
?>
- </td>
- </tr>
-<!-- taxes_eof //-->
View
91 catalog/admin/includes/boxes/tools.php
@@ -5,38 +5,69 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2002 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
-?>
-<!-- tools //-->
- <tr>
- <td>
-<?php
- $heading = array();
- $contents = array();
-
- $heading[] = array('text' => BOX_HEADING_TOOLS,
- 'link' => tep_href_link(FILENAME_ACTION_RECORDER, 'selected_box=tools'));
-
- if ($selected_box == 'tools') {
- $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ACTION_RECORDER) . '" class="menuBoxContentLink">' . BOX_TOOLS_ACTION_RECORDER . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_BACKUP) . '" class="menuBoxContentLink">' . BOX_TOOLS_BACKUP . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_BANNER_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_BANNER_MANAGER . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_CACHE) . '" class="menuBoxContentLink">' . BOX_TOOLS_CACHE . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_DEFINE_LANGUAGE) . '" class="menuBoxContentLink">' . BOX_TOOLS_DEFINE_LANGUAGE . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_MAIL) . '" class="menuBoxContentLink">' . BOX_TOOLS_MAIL . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_NEWSLETTERS) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_SEC_DIR_PERMISSIONS) . '" class="menuBoxContentLink">' . BOX_TOOLS_SEC_DIR_PERMISSIONS . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_SERVER_INFO) . '" class="menuBoxContentLink">' . BOX_TOOLS_SERVER_INFO . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_VERSION_CHECK) . '" class="menuBoxContentLink">' . BOX_TOOLS_VERSION_CHECK . '</a><br>' .
- '<a href="' . tep_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a>');
- }
- $box = new box;
- echo $box->menuBox($heading, $contents);
+ $cl_box_groups[] = array(
+ 'heading' => BOX_HEADING_TOOLS,
+ 'apps' => array(
+ array(
+ 'code' => FILENAME_ACTION_RECORDER,
+ 'title' => BOX_TOOLS_ACTION_RECORDER,
+ 'link' => tep_href_link(FILENAME_ACTION_RECORDER)
+ ),
+ array(
+ 'code' => FILENAME_BACKUP,
+ 'title' => BOX_TOOLS_BACKUP,
+ 'link' => tep_href_link(FILENAME_BACKUP)
+ ),
+ array(
+ 'code' => FILENAME_BANNER_MANAGER,
+ 'title' => BOX_TOOLS_BANNER_MANAGER,
+ 'link' => tep_href_link(FILENAME_BANNER_MANAGER)
+ ),
+ array(
+ 'code' => FILENAME_CACHE,
+ 'title' => BOX_TOOLS_CACHE,
+ 'link' => tep_href_link(FILENAME_CACHE)
+ ),
+ array(
+ 'code' => FILENAME_DEFINE_LANGUAGE,
+ 'title' => BOX_TOOLS_DEFINE_LANGUAGE,
+ 'link' => tep_href_link(FILENAME_DEFINE_LANGUAGE)
+ ),
+ array(
+ 'code' => FILENAME_MAIL,
+ 'title' => BOX_TOOLS_MAIL,
+ 'link' => tep_href_link(FILENAME_MAIL)
+ ),
+ array(
+ 'code' => FILENAME_NEWSLETTERS,
+ 'title' => BOX_TOOLS_NEWSLETTER_MANAGER,
+ 'link' => tep_href_link(FILENAME_NEWSLETTERS)
+ ),
+ array(
+ 'code' => FILENAME_SEC_DIR_PERMISSIONS,
+ 'title' => BOX_TOOLS_SEC_DIR_PERMISSIONS,
+ 'link' => tep_href_link(FILENAME_SEC_DIR_PERMISSIONS)
+ ),
+ array(
+ 'code' => FILENAME_SERVER_INFO,
+ 'title' => BOX_TOOLS_SERVER_INFO,
+ 'link' => tep_href_link(FILENAME_SERVER_INFO)
+ ),
+ array(
+ 'code' => FILENAME_VERSION_CHECK,
+ 'title' => BOX_TOOLS_VERSION_CHECK,
+ 'link' => tep_href_link(FILENAME_VERSION_CHECK)
+ ),
+ array(
+ 'code' => FILENAME_WHOS_ONLINE,
+ 'title' => BOX_TOOLS_WHOS_ONLINE,
+ 'link' => tep_href_link(FILENAME_WHOS_ONLINE)
+ )
+ )
+ );
?>
- </td>
- </tr>
-<!-- tools_eof //-->
View
67 catalog/admin/includes/column_left.php
@@ -5,17 +5,66 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2002 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
- require(DIR_WS_BOXES . 'configuration.php');
- require(DIR_WS_BOXES . 'catalog.php');
- require(DIR_WS_BOXES . 'modules.php');
- require(DIR_WS_BOXES . 'customers.php');
- require(DIR_WS_BOXES . 'taxes.php');
- require(DIR_WS_BOXES . 'localization.php');
- require(DIR_WS_BOXES . 'reports.php');
- require(DIR_WS_BOXES . 'tools.php');
+ if (tep_session_is_registered('admin')) {
+ $cl_box_groups = array();
+
+ include(DIR_WS_BOXES . 'configuration.php');
+ include(DIR_WS_BOXES . 'catalog.php');
+ include(DIR_WS_BOXES . 'modules.php');
+ include(DIR_WS_BOXES . 'customers.php');
+ include(DIR_WS_BOXES . 'taxes.php');
+ include(DIR_WS_BOXES . 'localization.php');
+ include(DIR_WS_BOXES . 'reports.php');
+ include(DIR_WS_BOXES . 'tools.php');
+?>
+
+<div id="adminAppMenu">
+
+<?php
+ foreach ($cl_box_groups as $groups) {
+ echo '<h3><a href="#">' . $groups['heading'] . '</a></h3>' .
+ '<div><ul>';
+
+ foreach ($groups['apps'] as $app) {
+ echo '<li><a href="' . $app['link'] . '">' . $app['title'] . '</a></li>';
+ }
+
+ echo '</ul></div>';
+ }
+?>
+
+</div>
+
+<script type="text/javascript">
+$('#adminAppMenu').accordion({
+ autoHeight: false,
+ icons: {
+ 'header': 'ui-icon-plus',
+ 'headerSelected': 'ui-icon-minus'
+ }
+
+<?php
+ $counter = 0;
+ foreach ($cl_box_groups as $groups) {
+ foreach ($groups['apps'] as $app) {
+ if ($app['code'] == $PHP_SELF) {
+ echo ',active: ' . $counter;
+ break;
+ }
+ }
+
+ $counter++;
+ }
+?>
+
+});
+</script>
+
+<?php
+ }
?>
View
6 catalog/admin/includes/header.php
@@ -15,12 +15,6 @@
}
?>
-<!--[if IE]><script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/excanvas.min.js'); ?>"></script><![endif]-->
-<link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.4.css'); ?>">
-<script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.4.2.min.js'); ?>"></script>
-<script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.4.min.js'); ?>"></script>
-<script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.js'); ?>"></script>
-
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.png', 'osCommerce Online Merchant v' . tep_get_version()) . '</a>'; ?></td>
View
23 catalog/admin/includes/stylesheet.css
@@ -4,7 +4,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2002 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -128,3 +128,24 @@ FORM { display: inline; }
.secInfo p, .secSuccess p, .secWarning p, .secError p {
padding: 2px;
}
+
+#adminAppMenu {
+ float: left;
+ width: 150px;
+ padding: 5px;
+}
+
+#adminAppMenu h3 {
+ font-size: 11px;
+}
+
+#adminAppMenu ul {
+ list-style: none;
+ margin: -20px 0 -10px -20px;
+ padding: 0;
+ line-height: 0.9;
+}
+
+#contentText {
+ margin-left: 160px;
+}
View
21 catalog/admin/includes/template_bottom.php
@@ -0,0 +1,21 @@
+<?php
+/*
+ $Id$
+
+ osCommerce, Open Source E-Commerce Solutions
+ http://www.oscommerce.com
+
+ Copyright (c) 2010 osCommerce
+
+ Released under the GNU General Public License
+*/
+?>
+
+</div>
+
+<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
+
+<br>
+
+</body>
+</html>
View
47 catalog/admin/includes/template_top.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ $Id$
+
+ osCommerce, Open Source E-Commerce Solutions
+ http://www.oscommerce.com
+
+ Copyright (c) 2010 osCommerce
+
+ Released under the GNU General Public License
+*/
+?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html <?php echo HTML_PARAMS; ?>>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
+<meta name="robots" content="noindex,nofollow">
+<title><?php echo TITLE; ?></title>
+<!--[if IE]><script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/excanvas.min.js'); ?>"></script><![endif]-->
+<link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.5.css'); ?>">
+<script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.4.2.min.js'); ?>"></script>
+<script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.5.min.js'); ?>"></script>
+<script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.js'); ?>"></script>
+<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
+<script language="javascript" src="includes/general.js"></script>
+</head>
+<body>
+
+<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
+
+<?php
+ if (tep_session_is_registered('admin')) {
+ include(DIR_WS_INCLUDES . 'column_left.php');
+ } else {
+?>
+
+<style>
+#contentText {
+ margin-left: 0;
+}
+</style>
+
+<?php
+ }
+?>
+
+<div id="contentText">
View
49 catalog/admin/index.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2007 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -22,31 +22,11 @@
$languages_selected = $languages[$i]['code'];
}
}
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<meta name="robots" content="noindex,nofollow">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2" height="40">
<tr>
@@ -117,15 +97,10 @@
?>
</table></td>
</tr>
- </table></td>
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
+ </table>
+
+
+<?php
+ require(DIR_WS_INCLUDES . 'template_bottom.php');
+ require(DIR_WS_INCLUDES . 'application_bottom.php');
+?>
View
4 catalog/admin/invoice.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2007 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -28,7 +28,7 @@
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
-<body onload="SetFocus();">
+<body>
<!-- body_text //-->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
View
48 catalog/admin/languages.php
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2007 osCommerce
+ Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
@@ -117,30 +117,11 @@
break;
}
}
+
+ require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body onload="SetFocus();">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
-
-<!-- body //-->
-<table border="0" width="100%"