protected function process() { $this->_page_title = OSCOM::getDef('heading_title'); if (isset($_GET['id']) && is_numeric($_GET['id'])) { $this->_page_contents = 'entries.php'; $this->_page_title .= ': ' . ZoneGroups::get($_GET['id'], 'geo_zone_name'); } }
<?php /* osCommerce Online Merchant $osCommerce-SIG$ Copyright (c) 2010 osCommerce (http://www.oscommerce.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation. */ use osCommerce\OM\Core\ObjectInfo; use osCommerce\OM\Core\Site\Admin\Application\ZoneGroups\ZoneGroups; use osCommerce\OM\Core\OSCOM; $OSCOM_ObjectInfo = new ObjectInfo(ZoneGroups::get($_GET['id'])); ?> <h1><?php echo $OSCOM_Template->getIcon(32) . osc_link_object(OSCOM::getLink(), $OSCOM_Template->getPageTitle()); ?> </h1> <?php if ($OSCOM_MessageStack->exists()) { echo $OSCOM_MessageStack->get(); } ?> <div class="infoBox"> <h3><?php echo osc_icon('edit.png') . ' ' . $OSCOM_ObjectInfo->getProtected('geo_zone_name'); ?>