function setData($data) { global $osC_Currencies; $x_labels = array(); foreach ($data as $date => $order_total) { $this->_bar->add($order_total); $x_labels[] = osC_DateTime::getShort($date); } $this->_graph->set_x_labels($x_labels); if (!is_object($osC_Currencies)) { $osC_Currencies = new osC_Currencies(); } $this->_graph->set_tool_tip(' #x_label# <br>' . $osC_Currencies->getSymbolLeft() . ' #val#'); $max_total = (int) (floor(max($this->_bar->data) / 100 + 1) * 100); $this->_graph->set_y_min(0); $this->_graph->set_y_max($max_total); $this->_graph->data_sets[] = $this->_bar; }
Ext.Ajax.extraParams = {token: token}; Ext.data.Connection.prototype.extraParams = {token: token}; Ext.data.ScriptTagProxy.prototype.extraParams = {token: token}; var tocCurrenciesFormatter = Ext.util.Format.CurrencyFactory(parseInt('<?php echo $osC_Currencies->getDecimalPlaces(); ?> '), '<?php echo $osC_Language->getNumericDecimalSeparator(); ?> ', '<?php echo $osC_Language->getNumericThousandsSeparator(); ?> ', '<?php echo $osC_Currencies->getSymbolLeft(); ?> ', '<?php echo $osC_Currencies->getSymbolRight(); ?> '); /* * Desktop configuration */ TocDesktop = new Ext.app.App({ loader: '<?php echo osc_href_link_admin(FILENAME_LOAD); ?> ',
Ext.Ajax.extraParams = {token: token}; Ext.data.Connection.prototype.extraParams = {token: token}; Ext.data.ScriptTagProxy.prototype.extraParams = {token: token}; var tocCurrenciesFormatter = Ext.util.Format.CurrencyFactory(parseInt('<?php echo $osC_Currencies->getDecimalPlaces(); ?> '), '<?php echo addslashes($osC_Language->getNumericDecimalSeparator()); ?> ', '<?php echo addslashes($osC_Language->getNumericThousandsSeparator()); ?> ', '<?php echo addslashes($osC_Currencies->getSymbolLeft()); ?> ', '<?php echo addslashes($osC_Currencies->getSymbolRight()); ?> '); /* * Desktop configuration */ TocDesktop = new Ext.app.App({ loader: '<?php echo osc_href_link_admin(FILENAME_LOAD); ?> ',