'
+ .(file_exists(_PS_ADMIN_DIR_.'/../install') ? '
'.((sizeof($tabs) - 1 > $key)
@@ -75,8 +82,8 @@ if (empty($tab) and !sizeof($_POST))
'.$bread;
echo '
';
-
-
+
+
if (Shop::isMultiShopActivated() && Context::shop() != Shop::CONTEXT_ALL)
{
echo ''
.translate('For security reasons, you must also:').' '.
translate('delete the /install folder').
'
' : '').'
diff --git a/admin-dev/index.php b/admin-dev/index.php
index 9af8d30a1..7a5d0bcf5 100644
--- a/admin-dev/index.php
+++ b/admin-dev/index.php
@@ -26,11 +26,10 @@
*/
define('_PS_ADMIN_DIR_', getcwd());
-define('PS_ADMIN_DIR', _PS_ADMIN_DIR_); // Retro-compatibility
-include(PS_ADMIN_DIR.'/../config/config.inc.php');
-include(PS_ADMIN_DIR.'/functions.php');
-include(PS_ADMIN_DIR.'/header.inc.php');
+include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
+include(_PS_ADMIN_DIR_.'/functions.php');
+include(_PS_ADMIN_DIR_.'/init.php');
if (empty($tab) and !sizeof($_POST))
{
$tab = 'AdminHome';
@@ -38,14 +37,22 @@ if (empty($tab) and !sizeof($_POST))
$_POST['token'] = Tools::getAdminTokenLite($tab);
}
- if ($adminObj = checkingTab($tab))
+if ($adminObj = checkingTab($tab))
+{
+ // init is different for new tabs (AdminController) and old tabs (AdminTab)
+ if ($adminObj instanceof AdminController)
{
+ $adminObj->path = dirname($_SERVER["PHP_SELF"]);
+ $adminObj->run();
+ }
+ else
+ {
+ include(_PS_ADMIN_DIR_.'/header.inc.php');
$isoUser = Context::getContext()->language->id;
$tabs = array();
$tabs = recursiveTab($adminObj->id, $tabs);
$tabs = array_reverse($tabs);
$bread = '';
-
foreach ($tabs AS $key => $item)
$bread .= '
'.((sizeof($tabs) - 1 > $key)
@@ -75,8 +82,8 @@ if (empty($tab) and !sizeof($_POST))
'.$bread;
echo '
';
@@ -144,7 +151,8 @@ if (empty($tab) and !sizeof($_POST))
die;
}
}
+ include(_PS_ADMIN_DIR_.'/footer.inc.php');
}
+}
-include(PS_ADMIN_DIR.'/footer.inc.php');
diff --git a/admin-dev/tabs/AdminTools.php b/admin-dev/tabs/AdminTools.php
index 2bcc86a33..2f01cabda 100644
--- a/admin-dev/tabs/AdminTools.php
+++ b/admin-dev/tabs/AdminTools.php
@@ -1,6 +1,6 @@
className = 'AdminTools';
+ parent::__construct();
}
-
+
public function display()
{
- echo '';
+ parent::display();
+ $this->context->smarty->display('adminTools.tpl');
}
}
diff --git a/admin-dev/themes/default/admin.css b/admin-dev/themes/default/admin.css
new file mode 100644
index 000000000..5f3da0854
--- /dev/null
+++ b/admin-dev/themes/default/admin.css
@@ -0,0 +1,82 @@
+body{background:#EFEFEF}
+#top_container{margin:0;padding:0}
+#header_infos{float:left;font-size:10px;margin:10px 20px 4px 0;width:380px;height:40px}
+#header_infos #header_shopname span{display:block;font-size:24px;height:28px;overflow:hidden;margin-bottom:-8px}
+#header_infos #header_logout{text-decoration:underline}
+#header_infos #header_foaccess{text-decoration:none}
+#header_search{float:right;height:39px;width:356px}
+#header_search #bo_query{float:left;height:16px;line-height:16px;margin:8px 2px 0 30px;vertical-align:middle;width:140px}
+#header_search #bo_search_type{float:left;height:21px;line-height:21px;margin:8px 2px 0 0;vertical-align:middle;width:90px}
+#header_search #bo_search_submit{cursor:pointer;float:left;font-weight:700;margin:7px 0 0 2px;width:79px}
+#header_quick{float:right;height:39px;margin-right:1px;width:175px}
+#header_quick #quick_select{margin:8px 0 0 20px;vertical-align:middle;width:140px}
+#header_shoplist{float: right;}
+#header_myaccount{background:url(bg-lang.png) no-repeat;display:block;float:right;height:16px;margin:8px 1px 0 0;width:16px}
+.button{background-color:#FFF6D3;border:1px solid #DFD5AF;border-left:1px solid #FFF6D3;border-top:1px solid #FFF6D3;color:#268CCD;padding:3px}
+.button[disabled=disabled]{color:#8C8C8C}
+input.button[disabled=disabled]:hover{background-color:#FFF6D3}
+.button:hover{background-color:#F0EBD6}
+.table{border:1px solid #DFD5C3;padding:0}
+.table th a{text-decoration:underline}
+.table a:hover{text-decoration:none}
+.table tr th{background:#F4E6C9 url(news-bg.gif) repeat-x top left;padding:4px 6px}
+.table tr td{border-bottom:1px solid #DEDEDE;color:#963;font-size:.9em;height:23px;padding:0 4px 0 6px}
+.table tr.last td{border-bottom:none}
+.alt_row{background-color:#EFEFEF}
+.path_bar{background-color:#E2EBEE;border:1px solid #999999;font-family:Trebuchet,Arial,Helvetica,sans-serif;font-size:13px;margin-bottom:20px;padding:5px}
+.path_bar a{font-weight:700}
+.cat_bar{background-color:#F4E8CD;border:1px solid #999999;font-family:Trebuchet,Arial,Helvetica,sans-serif;font-size:12px;font-weight:700;margin-bottom:20px;padding:5px}
+.cat_bar a{font-weight:700}
+fieldset{background:#FFFFF0;border:1px solid #DFD5C3;font-size:1.1em;margin:0;padding:1em}
+legend{background:#FFF6D3;border:1px solid #DFD5C3;font-weight:700;margin:0;padding:.2em .5em;text-align:left}
+#menu{float:left;height:30px;line-height:normal;margin:10px 0 0;*margin:7px 0 0;padding:0;width:100%;padding:0 1px}
+#menu li{background:url(bg-tab.png) repeat-x 0 -2px;float:left;height:29px;list-style:none;margin:0 1px 0 0;list-style:none;display:block;border:1px solid #999999;-moz-border-radius-topright:6px;-moz-border-radius-topleft:6px;-webkit-border-top-right-radius:6px;-webkit-border-top-left-radius:6px}
+#menu li a{color:#000;display:block;height:20px;padding:8px 8px 4px 0;font-weight:bold;font-size:0.95em;}
+#menu img{display:inline;padding:0 3px 0 6px;vertical-align:top;width:16px;height:16px}
+#menu li.active,#menu li:hover{background-position:0 -38px;white-space:nowrap;}
+#menu li.active a{color:#000}
+#submenu{background:#ECEADE;clear:both;color:#666;margin:0;padding:0;border:1px solid #999999}
+.withLeftBorder{background:transparent url(separator_subnav.png) no-repeat 0 5px}
+#submenu li{display:inline;list-style:none;margin:0;background:transparent url(separator_subnav.png) no-repeat right 0;padding-left:7px;padding-right:7px;margin-top:8px;float:left;height:29px}
+#submenu li a{text-decoration:underline}
+#menu li{_height:32px;_padding-top:3px}
+#menu li a{_display:inline;_padding:6px 5px 4px 0}
+.tab-page {border:1px solid #ccc;background:#FFFFF0}
+.tab-row .tab.selected {border:1px solid #ccc;background:#FFF6D3;margin:1px -3px -3px 0px;top:-2px}
+.tab-row .tab {background:#EFEFEF}
+hr {height: 1px;color:#E0D0B1;background-color:#E0D0B1}
+#footer {height:40px;background:#ECEADE url(footer-bg.png) repeat-x scroll left bottom;border:1px solid #999999;font-size:12px;clear:both;font-size:0.9em;color:#666666}
+#content {background-color:#FFF;border-left:1px solid #999999;border-right:1px solid #999999}
+input[type="text"],input[type="password"],input[type="file"],textarea {border:1px solid #E0D0B1}
+select {border: 1px solid #E0D0B1}
+select[disabled="disabled"], input[disabled="disabled"],textarea[disabled="disabled"] {border: 1px solid #CCCCCC;color: #AAAAAA}
+.header_module{background:url(header_module.png);padding-left: 0.5em;padding-top: 0.8em;height:20px;color: #812143;border:solid 1px #CCC;}
+a.action_module{color: #268CCD;text-decoration: underline;}
+a.header_module_toggle{font-weight: bold;color: #268CCD;display:block;}
+a.module_toggle_all{color: #268CCD;}
+.nbr_module{float:right;margin-right:10px;font-style:italic;font-size:12px;color: #268CCD;}
+
+.autoupgradeSteps div { line-height: 30px; }
+.upgradestep { margin-right: 5px;padding-left: 10px; padding-right: 5px;}
+#upgradeNow.stepok, .autoupgradeSteps a.stepok { background-image: url("../img/admin/enabled.gif");background-position: left center;background-repeat: no-repeat;padding-left: 15px;}
+#upgradeNow {-moz-border-bottom-colors: none;-moz-border-image: none;-moz-border-left-colors: none;-moz-border-right-colors: none;-moz-border-top-colors: none;border-color: #FFF6D3 #DFD5AF #DFD5AF #FFF6D3;border-right: 1px solid #DFD5AF;border-style: solid;border-width: 1px;color: #268CCD;font-size: medium;padding: 5px;}
+.button-autoupgrade {-moz-border-bottom-colors: none;-moz-border-image: none;-moz-border-left-colors: none;-moz-border-right-colors: none;-moz-border-top-colors: none;border-color: #FFF6D3 #DFD5AF #DFD5AF #FFF6D3;border-right: 1px solid #DFD5AF;border-style: solid;border-width: 1px;color: #268CCD;font-size: medium;padding: 5px;}
+.processing {overflow: auto;}
+
+#header_infos {width: 445px;}
+#header_shopname {float: left;width: 300px;}
+#employee_links {float: left;clear: both;margin-top: 10px;}
+#notifs_icon_wrapper {float: left;position: relative;margin-top: 8px;}
+.notifs {float: left;position: relative; cursor: pointer;margin: 0px 5px;width: 18px;height: 15px;}
+#orders_notif {background: url("notif_order.png") no-repeat left top;}
+#customers_notif {background: url("notif_customer.png") no-repeat left top;}
+#messages_notif {background: url("notif_message.png") no-repeat left top;}
+.number_wrapper {color: white;display: none;font-size: 13px;font-weight: bold;position: absolute;right: -8px;top: -10px;z-index: 101;padding: 2px 5px;}
+.number_wrapper span {background-color: #F03D25;display: block;padding: 0 2px;border-color: -moz-use-text-color #DD3822 #DD3822;border-radius: 2px 2px 2px 2px;border-right: 1px solid #DD3822;border-style: none solid solid;border-width: 0 0px;}
+.notifs_wrapper {display: none;cursor:auto; position: absolute;top: 20px;left: 0;width:300px;background-color: white;border:2px solid #E0E0E0;padding: 10px;color: black;}
+.notifs_wrapper h3 {font-size: 14px;padding-bottom:8px;margin:0;border-bottom: 2px solid #E0E0E0;}
+.notifs_wrapper ul {padding:6px 0;margin:0;}
+.notifs_wrapper ul li {text-decoration: none;list-style: none;font-size:12px;padding:5px 0;}
+#header_infos .notifs_wrapper a {font-weight: bold;color: black;}
+.notifs_wrapper p {font-size: 12px;padding-top:8px;margin:0;border-top: 2px solid #E0E0E0;}
+.notifs_wrapper p.no_notifs {border: none;}
\ No newline at end of file
diff --git a/admin-dev/themes/default/bg-lang.png b/admin-dev/themes/default/bg-lang.png
new file mode 100644
index 000000000..a1f547194
Binary files /dev/null and b/admin-dev/themes/default/bg-lang.png differ
diff --git a/admin-dev/themes/default/bg-quick.png b/admin-dev/themes/default/bg-quick.png
new file mode 100644
index 000000000..4acbb75b4
Binary files /dev/null and b/admin-dev/themes/default/bg-quick.png differ
diff --git a/admin-dev/themes/default/bg-submenu.png b/admin-dev/themes/default/bg-submenu.png
new file mode 100644
index 000000000..ba30c6b36
Binary files /dev/null and b/admin-dev/themes/default/bg-submenu.png differ
diff --git a/admin-dev/themes/default/bg-subtab.png b/admin-dev/themes/default/bg-subtab.png
new file mode 100644
index 000000000..fdc1b1180
Binary files /dev/null and b/admin-dev/themes/default/bg-subtab.png differ
diff --git a/admin-dev/themes/default/bg-tab.png b/admin-dev/themes/default/bg-tab.png
new file mode 100644
index 000000000..f2dcf116f
Binary files /dev/null and b/admin-dev/themes/default/bg-tab.png differ
diff --git a/admin-dev/themes/default/bg-top.png b/admin-dev/themes/default/bg-top.png
new file mode 100644
index 000000000..a07fbec98
Binary files /dev/null and b/admin-dev/themes/default/bg-top.png differ
diff --git a/admin-dev/themes/default/button-bg.png b/admin-dev/themes/default/button-bg.png
new file mode 100644
index 000000000..bbde5ed57
Binary files /dev/null and b/admin-dev/themes/default/button-bg.png differ
diff --git a/admin-dev/themes/default/footer-bg.png b/admin-dev/themes/default/footer-bg.png
new file mode 100644
index 000000000..a72c8ba8d
Binary files /dev/null and b/admin-dev/themes/default/footer-bg.png differ
diff --git a/admin-dev/themes/default/header_module.png b/admin-dev/themes/default/header_module.png
new file mode 100644
index 000000000..afaaae61d
Binary files /dev/null and b/admin-dev/themes/default/header_module.png differ
diff --git a/admin-dev/themes/default/index.php b/admin-dev/themes/default/index.php
new file mode 100644
index 000000000..4e2611d37
--- /dev/null
+++ b/admin-dev/themes/default/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/admin-dev/themes/default/news-bg.gif b/admin-dev/themes/default/news-bg.gif
new file mode 100644
index 000000000..9adbd05e5
Binary files /dev/null and b/admin-dev/themes/default/news-bg.gif differ
diff --git a/admin-dev/themes/default/notif_customer.png b/admin-dev/themes/default/notif_customer.png
new file mode 100644
index 000000000..8a48039e7
Binary files /dev/null and b/admin-dev/themes/default/notif_customer.png differ
diff --git a/admin-dev/themes/default/notif_message.png b/admin-dev/themes/default/notif_message.png
new file mode 100644
index 000000000..517a5a474
Binary files /dev/null and b/admin-dev/themes/default/notif_message.png differ
diff --git a/admin-dev/themes/default/notif_order.png b/admin-dev/themes/default/notif_order.png
new file mode 100644
index 000000000..e72645c99
Binary files /dev/null and b/admin-dev/themes/default/notif_order.png differ
diff --git a/admin-dev/themes/default/searchbar.png b/admin-dev/themes/default/searchbar.png
new file mode 100644
index 000000000..26b93aeef
Binary files /dev/null and b/admin-dev/themes/default/searchbar.png differ
diff --git a/admin-dev/themes/default/searchbutton.png b/admin-dev/themes/default/searchbutton.png
new file mode 100644
index 000000000..31327bf89
Binary files /dev/null and b/admin-dev/themes/default/searchbutton.png differ
diff --git a/admin-dev/themes/default/separator_subnav.png b/admin-dev/themes/default/separator_subnav.png
new file mode 100644
index 000000000..0d2a18ad0
Binary files /dev/null and b/admin-dev/themes/default/separator_subnav.png differ
diff --git a/admin-dev/themes/default/tab_right.gif b/admin-dev/themes/default/tab_right.gif
new file mode 100644
index 000000000..82740efa4
Binary files /dev/null and b/admin-dev/themes/default/tab_right.gif differ
diff --git a/admin-dev/themes/default/thead.png b/admin-dev/themes/default/thead.png
new file mode 100644
index 000000000..afaaae61d
Binary files /dev/null and b/admin-dev/themes/default/thead.png differ
diff --git a/admin-dev/themes/template/adminTools.tpl b/admin-dev/themes/template/adminTools.tpl
new file mode 100644
index 000000000..43a1d0987
--- /dev/null
+++ b/admin-dev/themes/template/adminTools.tpl
@@ -0,0 +1,34 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+
+{include file='header.tpl'}
+
+{include file='footer.tpl'}
\ No newline at end of file
diff --git a/admin-dev/themes/template/footer.tpl b/admin-dev/themes/template/footer.tpl
new file mode 100644
index 000000000..3e7579ff9
--- /dev/null
+++ b/admin-dev/themes/template/footer.tpl
@@ -0,0 +1,47 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+
+
+