Ejemplo n.º 1
0
 function _getUrlToSort($categoryID)
 {
     $url = "index.php?categoryID={$categoryID}";
     $data = ScanGetVariableWithId(array("param"));
     if (isset($_GET["search_name"])) {
         $url .= "&search_name=" . $_GET["search_name"];
     }
     if (isset($_GET["search_price_from"])) {
         $url .= "&search_price_from=" . $_GET["search_price_from"];
     }
     if (isset($_GET["search_price_to"])) {
         $url .= "&search_price_to=" . $_GET["search_price_to"];
     }
     foreach ($data as $key => $val) {
         $url .= "&param_" . $key;
         $url .= "=" . $val["param"];
     }
     if (isset($_GET["offset"])) {
         $url .= "&offset=" . $_GET["offset"];
     }
     if (isset($_GET["show_all"])) {
         $url .= "&show_all=yes";
     }
     if (isset($_GET["search_in_subcategory"])) {
         $url .= "&search_in_subcategory=1";
     }
     if (isset($_GET["advanced_search_in_category"])) {
         $url .= "&advanced_search_in_category=" . $_GET["advanced_search_in_category"];
     }
     return $url;
 }
Ejemplo n.º 2
0
 function _getUrlToNavigate()
 {
     $url = "index.php?order_history=yes";
     if (isset($_GET["order_search_type"])) {
         $url .= "&order_search_type=" . $_GET["order_search_type"];
     }
     if (isset($_GET["orderID_textbox"])) {
         $url .= "&orderID_textbox=" . $_GET["orderID_textbox"];
     }
     $data = ScanGetVariableWithId(array("checkbox_order_status"));
     foreach ($data as $key => $val) {
         $url .= "&checkbox_order_status_" . $key . "=" . $val["checkbox_order_status"];
     }
     if (isset($_GET["search"])) {
         $url .= "&search=1";
     }
     if (isset($_GET["sort"])) {
         $url .= "&sort=" . $_GET["sort"];
     }
     if (isset($_GET["direction"])) {
         $url .= "&direction=" . $_GET["direction"];
     }
     return $url;
 }
Ejemplo n.º 3
0
 function _getUrlToSort()
 {
     $url = ADMIN_FILE . "?dpt=custord&sub=new_orders";
     if (isset($_GET["order_search_type"])) {
         $url .= "&order_search_type=" . $_GET["order_search_type"];
     }
     if (isset($_GET["orderID_textbox"])) {
         $url .= "&orderID_textbox=" . $_GET["orderID_textbox"];
     }
     $data = ScanGetVariableWithId(array("checkbox_order_status"));
     foreach ($data as $key => $val) {
         $url .= "&checkbox_order_status_" . $key . "=" . $val["checkbox_order_status"];
     }
     if (isset($_GET["offset"])) {
         $url .= "&offset=" . $_GET["offset"];
     }
     if (isset($_GET["show_all"])) {
         $url .= "&show_all=" . $_GET["show_all"];
     }
     $data = ScanGetVariableWithId(array("set_order_status"));
     $changeStatusIsPressed = count($data) != 0;
     if (isset($_GET["search"]) || $changeStatusIsPressed) {
         $url .= "&search=1";
     }
     return $url;
 }
Ejemplo n.º 4
0
     die(ERROR_404_HTML);
 } else {
     if (isset($_GET["search_with_change_category_ability"])) {
         $smarty->assign("categories_to_select", $cats);
     }
     $getData = null;
     if (isset($_GET["advanced_search_in_category"])) {
         $extraParametrsTemplate = array();
         $extraParametrsTemplate["categoryID"] = $_GET["categoryID"];
         if (isset($_GET["search_name"])) {
             if (trim($_GET["search_name"]) != "") {
                 $searchParamName = array($_GET["search_name"]);
             }
         }
         $rangePrice = array("from" => $_GET["search_price_from"], "to" => $_GET["search_price_to"]);
         $getData = ScanGetVariableWithId(array("param"));
         foreach ($getData as $optionID => $value) {
             $res = schOptionIsSetToSearch($_GET["categoryID"], $optionID);
             if ($res["set_arbitrarily"] == 0 && (int) $value["param"] == 0) {
                 continue;
             }
             $item = array();
             $item["optionID"] = $optionID;
             $item["value"] = $value["param"];
             $item["set_arbitrarily"] = $res["set_arbitrarily"];
             $extraParametrsTemplate[] = $item;
         }
     }
     $params = array();
     $categoryID = $_GET["categoryID"];
     $options = optGetOptionscat($categoryID);