示例#1
0
<?php
/*
# ----------------------------------------------------------------------
# NEW ARRIVAL: CONTROL
# ----------------------------------------------------------------------
*/


/* --- CONSTRUCT CLASS --- */
$_get    = new NEW_GET();
$_update = new NEW_UPDATE();


/*
# ----------------------------------------------------------------------
# DEFINED VARIABLE
# ----------------------------------------------------------------------
*/

/* -- SESSION PREV NEXT IN DETAIL -- */
if(!empty($_REQUEST['shop_cat_id'])){
   $_SESSION['sort_detail_view'] = "true";
   unset($_SESSION['sort_detail']);
}else{
   $_SESSION['sort_detail'] = "true";
   unset($_SESSION['sort_detail_view']);
}


/* -- REQUEST ALIASING -- */
示例#2
0
<?php

/*
# ----------------------------------------------------------------------
# NEW ARRIVAL: CONTROL
# ----------------------------------------------------------------------
*/
$_get = new NEW_GET();
$_update = new NEW_UPDATE();
/*
# ----------------------------------------------------------------------
# SORTING
# ----------------------------------------------------------------------
*/
$equal_search = array('type_price', 'type_new_arrival');
//$null_search     = array('type_new_arrival');
$default_sort_by = 'product_order';
$pgdata = page_init($equal_search, $default_sort_by, $equal_search);
// static/general.php
$page = $pgdata['page'];
$query_per_page = $pgdata['query_per_page'];
$sort_by = $pgdata['sort_by'];
$first_record = $pgdata['first_record'];
$search_parameter = $pgdata['search_parameter'];
$search_value = $pgdata['search_value'];
$search_query = $pgdata['search_query'];
$search = $pgdata['search'];
if (isset($_REQUEST['src'])) {
    $_REQUEST['src'] = $_REQUEST['src'];
} else {
    $_REQUEST['src'] = '';