New Zenner
- Join Date:
- Mar 2008
- Posts:
- 39
- Plugin Contributions:
- 0
Admin Header Links
Hi
I want to make it so in the admin section, when the admin clicks on one of the header links, rather than it showing all the links in the tree-like sitemap, I want each of the admin links, go to the first page in the drop-down.
Image of what it looks like so far.
http://i93.photobucket.com/albums/l72/cwiggst3r/Picture2.png
I have done all the links, apart from the modules link.
When you click on 'Modules', i want the page to open up as the first link in the drop-down menu, which is 'Payment'.
But I'm not sure how to do this with the code as it's different to all the other pages as it uses 'set' => 'set=payment'
Can anyone help me, I'll post the code below:
<?php
/**
* @package admin
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: modules_dhtml.php - amendment for Admin Profiles 2006-04-17 by kuroi
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$za_contents = array();
if (menu_header_visible('Modules')=='true') {
$za_heading = array('text' => BOX_HEADING_MODULES, 'link' => zen_href_link(FILENAME_MODULES, '', 'NONSSL'));
$options = array( array( 'page' => FILENAME_MODULES, 'box' => BOX_MODULES_PAYMENT, 'set' => 'set=payment'),
array( 'page' => FILENAME_MODULES, 'box' => BOX_MODULES_SHIPPING, 'set' => 'set=shipping'),
array( 'page' => FILENAME_MODULES, 'box' => BOX_MODULES_ORDER_TOTAL, 'set' => 'set=ordertotal')
);
foreach ($options as $key => $value)
if (page_allowed($value['page'].$value['set'])=='true') $za_contents[] = array('text' => $value['box'], 'link' => zen_href_link($value['page'], $value['set'], 'NONSSL'));
if ($za_dir = @dir(DIR_WS_BOXES . 'extra_boxes')) {
while ($zv_file = $za_dir->read()) {
if (preg_match('/modules_dhtml.php$/', $zv_file)) {
require(DIR_WS_BOXES . 'extra_boxes/' . $zv_file);
}
}
}
?>
Thank you.