* @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 9538 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ require_once(dirname(__FILE__).'/classes/MondialRelayClass.php'); require_once(dirname(__FILE__).'/classes/MRCreateTickets.php'); require_once(dirname(__FILE__).'/mondialrelay.php'); class AdminMondialRelay extends AdminTab { private $mondialrelay = NULL; public function __construct() { MondialRelay::initModuleAccess(); $this->table = 'mr_selected'; $this->className = 'MondialRelayClass'; parent::__construct(); } private function displayOrdersTable() { global $cookie; $mondialrelay = new MondialRelay(); $order_state = new OrderState((int)(Configuration::get('MONDIAL_RELAY_ORDER_STATE')), $cookie->id_lang); $mr_weight_coef = (int)(Configuration::get('MR_WEIGHT_COEF')); $html = ''; // Simulate a ticket generation $MRCreateTicket = new MRCreateTickets(array( 'orderIdList' => NULL, 'totalOrder' => NULL, 'weightList' => NULL)); $errorListTicket = $MRCreateTicket->checkPreValidation(); $titleType = array( 'error' => $this->l('Thanks to kindly correct the following errors on '). ' '. $this->l('the contact page').':
'.$this->l('All orders which have the state').' "'.$order_state->name.'" '. $this->l('will be available for sticker creation'); $html .= '. ' . $this->l('Change configuration') . '