public function __construct()
 {
     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('brands');
     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('products');
     //zcs=
     parent::__construct();
 }
 public function __construct()
 {
     include_once ISC_BASE_PATH . "/lib/form.php";
     $GLOBALS['ISC_CLASS_FORM'] = new ISC_FORM();
     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('settings.checkout');
     parent::__construct();
 }
Exemplo n.º 3
0
 /**
  * An additional action that's called by this module when the above form is submitted.
  */
 public function ExportOrders()
 {
     // Load up the orders class
     $GLOBALS['ISC_CLASS_ADMIN_ORDERS'] = GetClass('ISC_ADMIN_ORDERS');
     // Get the value of the order status setting
     if ($this->GetValue('orderstatus') == 'shipped') {
         $_GET['orderStatus'] = 2;
     }
     $numOrders = 0;
     $ordersResult = $GLOBALS['ISC_CLASS_ADMIN_ORDERS']->_GetOrderList(0, 'orderid', 'desc', $numOrders, true);
     if ($numOrders == 0) {
         $GLOBALS['ISC_CLASS_ADMIN_ORDERS']->ManageOrders(GetLang('NoOrders'));
         return;
     }
     require_once ISC_BASE_PATH . '/lib/class.xml.php';
     $xml = new ISC_XML_PARSER();
     $tags = array();
     while ($order = $GLOBALS['ISC_CLASS_DB']->Fetch($ordersResult)) {
         $orderTags = array();
         $orderTags[] = $xml->MakeXMLTag('amount', number_format($order['ordtotalamount'], 2));
         $orderTags[] = $xml->MakeXMLTag('customer', $order['ordbillfirstname'] . ' ' . $order['ordbilllastname'], true);
         $orderTags[] = $xml->MakeXMLTag('date', CDate($order['orddate']), true);
         $attributes = array('orderid' => $order['orderid']);
         $tags[] = $xml->MakeXMLTag('order', implode('', $orderTags), false, $attributes);
     }
     @ob_end_clean();
     $xml->SendXMLHeader();
     $xml->SendXMLResponse($tags);
     exit;
 }
Exemplo n.º 4
0
	public function __construct()
	{
		/**
		 * Convert the input character set from the hard coded UTF-8 to their
		 * selected character set
		 */
		convertRequestInput();

		$this->template = Interspire_Template::getInstance('admin');
		$this->db = $GLOBALS['ISC_CLASS_DB'];
		$this->auth = getClass('ISC_ADMIN_AUTH');
		$this->engine = getClass('ISC_ADMIN_ENGINE');
		parent::__construct();
	}
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
 }
 public function __construct()
 {
     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('orders');
     parent::__construct();
 }
 public function __construct()
 {
     $GLOBALS['ISC_CLASS_ADMIN_FORMFIELDS'] = new ISC_ADMIN_FORMFIELDS();
     $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('formfields');
     parent::__construct();
 }
Exemplo n.º 8
0
		public function DoAjaxSearch()
		{
			if (isset($_GET['search_query']) && isc_strlen($_GET['search_query']) >= 3) {

				// Do a search on 'product' and 'content', sort them all by relevance and then get the first 5
				$this->DoSearch(0, 5, array("product", "page", "news"));
				$items = array();

				$totalSearchResults = 0;

				foreach (array("product", "page", "news") as $type) {
					$className = "ISC_" . isc_strtoupper($type);

					if (!method_exists($className, "buildSearchResultsAJAX")) {
						continue;
					}

					$returnSearch = call_user_func(array($className, "buildSearchResultsAJAX"));
					$totalSearchResults = ($totalSearchResults + $returnSearch[0]);
					$tmpItems = $returnSearch[1];

					// Merge the results back into our root array
					if (!is_array($tmpItems)) {
						continue;
					}

					foreach ($tmpItems as $key => $val) {
						if (!array_key_exists($key, $items)) {
							$key = (string)$key;
							$items[$key] = $val;
						} else {
							$items[$key] = array_merge($items[$key], $val);
						}
					}
				}

				// No results?
				if (empty($items)) {
					exit;
				}

				// Sort our results
				krsort($items);

				$xmlParser = new ISC_XML_PARSER();
				$tags = array();

				$counter = 0;
				$showViewMoreLink = false;

				if($totalSearchResults > 5) {
					$showViewMoreLink = true;
				}

				foreach ($items as $item) {
					if (!is_array($item) || empty($item)) {
						continue;
					}

					foreach ($item as $val) {
						if ($counter >= 5) {
							break 2;
						}

						$tags[] = $xmlParser->MakeXMLTag("result", $val, true);
						$counter++;
					}
				}

				if ($showViewMoreLink) {
					$tags[] = $xmlParser->MakeXMLTag("viewmoreurl", "<a href=\"" . $GLOBALS["ShopPathNormal"] . "/search.php?search_query=" . urlencode($_REQUEST["search_query"]) . "\">" . GetLang("QuickSearchViewAll") . " &raquo;</a>", true);
				}

				$xmlParser->SendXMLHeader();
				$xmlParser->SendXMLResponse($tags);
			}

			exit;
		}