コード例 #1
0
ファイル: products_page.php プロジェクト: laiello/cartonbank
    $totalitems = $count[0]['count'];
}
//output top of the page with main image
$_bigpicstrip = '';
$_bigpictext = '';
$_bigpic = '';
$_bottomstriptext = '';
echo "<div id='bigpictopstrip'>" . $_bigpicstrip . "</div>";
echo "<div id='bigpictext'>" . $_bigpictext . "</div>";
echo "<div id='bigpic'><a href='" . SITEURL . "cartoon/" . $cartoonid . "#pt' onclick=\"get_item1();\">" . $_bigpic . "</a></div>";
echo "<div class='clrb'></div>";
echo "<div id='hone' style='float:right;'></div>";
echo "<div id='bigpicbottomstrip' style='float:right;margin-bottom:6px;'>" . $_bottomstriptext . "</div>";
// output the complete page with pictures:
if (!$searchdonebutnothingfound) {
    echo product_display_paginated($sql, $offset, $items_on_page);
} else {
    echo "<div>По вашему поиску ничего не найдено. Пожалуйста, попробуйте другие термины.</div>";
}
//test output
/*
var_dump($sql);
echo "<br><br>";
var_dump($sql_count_total);
pokazh($sword);
*/
?>


<script type="text/javascript">
<!--
コード例 #2
0
} else {
    $newfilter = '&new=1';
}
if ($catid == '') {
    $__category = '&category=' . $catid;
} else {
    $__category = '';
}
$_pages_navigation = getPaginationString($page, $totalitems, $limit, $adjacents = 1, $targetpage = get_option('siteurl'), $pagestring = "?page_id=29" . $newfilter . $brand_group_sql . "&color=" . $color . $__category . $_url_cs . $_url_cs_exact . $_url_cs_any . $_url_cs_exclude . $_url_666 . "&offset=", $filter_list);
echo "<div style='clear:both;'>" . $_pages_navigation . "</div>";
if ($new == '1') {
    //order by new first
    echo product_display_paginated(NULL, $group_type, $group_sql, $search_sql, $offset, $items_on_page, $orderby = '1');
} else {
    //order by best first
    echo product_display_paginated(NULL, $group_type, $group_sql, $search_sql, $offset, $items_on_page);
}
function getPaginationString($page = 1, $totalitems, $limit = 20, $adjacents = 1, $targetpage = "/", $pagestring = "?page=", $filter_list = '')
{
    //function to return the pagination string
    //getPaginationString($page = 1, $totalitems, $limit = 20, $adjacents = 1, $targetpage = get_option('siteurl'), $pagestring = "?brand=".$brandid."&category=".$catid."&offset=".$offset."&cs=".$keywords."&page_id=29");
    //defaults
    if (!$adjacents) {
        $adjacents = 1;
    }
    if (!$limit) {
        $limit = 20;
    }
    if (!$page) {
        $page = 1;
    }