function loadManufacturer() { global $toC_Json, $osC_Database; $data = osC_Manufacturers_Admin::getData($_REQUEST['manufacturers_id']); $Qmanufacturer = $osC_Database->query('select languages_id, manufacturers_url from :table_manufacturers_info where manufacturers_id = :manufacturers_id'); $Qmanufacturer->bindTable(':table_manufacturers_info', TABLE_MANUFACTURERS_INFO); $Qmanufacturer->bindInt(':manufacturers_id', $_REQUEST['manufacturers_id']); $Qmanufacturer->execute(); while ($Qmanufacturer->next()) { $data['manufacturers_url[' . $Qmanufacturer->ValueInt('languages_id') . ']'] = $Qmanufacturer->Value('manufacturers_url'); } $Qmanufacturer->freeResult(); $response = array('success' => true, 'data' => $data); echo $toC_Json->encode($response); }
<?php /* $Id: $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2007 osCommerce 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. */ $osC_ObjectInfo = new osC_ObjectInfo(osC_Manufacturers_Admin::getData($_GET['mID'])); ?> <h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()), $osC_Template->getPageTitle()); ?> </h1> <?php if ($osC_MessageStack->size($osC_Template->getModule()) > 0) { echo $osC_MessageStack->get($osC_Template->getModule()); } ?> <div class="infoBoxHeading"><?php echo osc_icon('edit.png') . ' ' . $osC_ObjectInfo->get('manufacturers_name'); ?>