- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
function _getUrlToNavigate( $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 .= "¶m_".$key;
$url .= "=".$val["param"];
}
if ( isset($_GET["search_in_subcategory"]) )
$url .= "&search_in_subcategory=1";
if ( isset($_GET["sort"]) )
$url .= "&sort=".$_GET["sort"];
if ( isset($_GET["direction"]) )
$url .= "&direction=".$_GET["direction"];
if ( isset($_GET["advanced_search_in_category"]) )
$url .= "&advanced_search_in_category=".$_GET["advanced_search_in_category"];
return $url;
}
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 .= "¶m_".$key;
$url .= "=".$val["param"];
}
if ( isset($_GET["offset"]) )
$url .= "&offset=".$_GET["offset"];
if ( isset($_GET["show_all"]) )
$url .= "&show_all=".$_GET["show_all"];
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;
}