Пример #1
0
            MENU_virtuemart::LISTS_MENU_NEW();
        }
        // For (Un)Publishing Items
        if (in_array($page, $allowsListPublish)) {
            MENU_virtuemart::LISTS_MENU_PUBLISH('changePublishState');
        }
        // Delete Items
        if (!empty($allowsListDeletion[$page])) {
            vmMenuBar::divider();
            vmMenuBar::spacer();
            MENU_virtuemart::LISTS_MENU_DELETE($allowsListDeletion[$page]);
        }
        vmMenuBar::endTable();
    } elseif ($page == "zone.assign_zones") {
        vmMenuBar::startTable();
        vmMenuBar::custom('save', $page, $vmIcons['save_icon'], $vmIcons['save_icon2'], 'Save Zone Assignments', true, "adminForm", 'zoneassign');
        vmMenuBar::endTable();
    } elseif ($page == "product.product_move") {
        vmMenuBar::startTable();
        vmMenuBar::custom('save', 'product.product_list', $vmIcons['save_icon'], $vmIcons['save_icon2'], 'Move Products', false, "adminForm", 'productMove');
        vmMenuBar::spacer();
        vmMenuBar::customHref($sess->url($_SERVER['PHP_SELF'] . '?page=product.product_list'), $vmIcons['cancel_icon'], $vmIcons['cancel_icon2'], $VM_LANG->_('CMN_CANCEL'));
        vmMenuBar::spacer();
        vmMenuBar::endTable();
    }
    if (vmIsJoomla(1.5) && $vmLayout != 'extended' && (defined('_VM_IS_BACKEND') && stristr($_SERVER['PHP_SELF'], 'index3.php') || !defined('_VM_IS_BACKEND') && stristr($_SERVER['PHP_SELF'], 'index2.php'))) {
        $bar =& JToolBar::getInstance('toolbar');
        echo $bar->render();
        echo '<br class="clr" />';
    }
}
Пример #2
0
 function _DEFAULT_USERS()
 {
     vmMenuBar::startTable();
     vmMenuBar::addNew();
     vmMenuBar::editList();
     vmMenuBar::deleteList();
     vmMenuBar::spacer();
     vmMenuBar::custom('remove_as_customer', 'admin.user_list', IMAGEURL . 'ps_image/remove_as_customer.png', IMAGEURL . 'ps_image/remove_as_customer_f2.png');
     vmMenuBar::spacer();
     vmMenuBar::endTable();
 }