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 .= ': ' . TaxClasses::get($_GET['id'], 'tax_class_title'); } }
<?php /** * osCommerce Online Merchant * * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\ObjectInfo; use osCommerce\OM\Core\OSCOM; use osCommerce\OM\Core\Site\Admin\Application\TaxClasses\TaxClasses; $OSCOM_ObjectInfo = new ObjectInfo(TaxClasses::get($_GET['id'])); ?> <h1><?php echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle()); ?> </h1> <?php if ($OSCOM_MessageStack->exists()) { echo $OSCOM_MessageStack->get(); } ?> <div class="infoBox"> <h3><?php echo HTML::icon('edit.png') . ' ' . $OSCOM_ObjectInfo->getProtected('tax_class_title'); ?> </h3>