[go: up one dir, main page]

Menu

[r19]: / pages.php  Maximize  Restore  History

Download this file

61 lines (39 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
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
52
53
54
55
56
57
58
59
60
<?php
/*
$Id: pages.php,v 1.2 2004/03/12 19:28:57 ccwjr Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
Copyright &copy; 2006
Last Modified On : $Date$
Latest Revision : $Revision$
*/
require('includes/application_top.php');
$cID = 0;
$pID = 0;
$display_mode = '';
if (isset($HTTP_GET_VARS['cID']) && tep_not_null($HTTP_GET_VARS['cID'])) {
$cID = (int)$HTTP_GET_VARS['cID'];
$display_mode = 'categories';
}
if (isset($HTTP_GET_VARS['pID']) && tep_not_null($HTTP_GET_VARS['pID'])) {
$pID = (int)$HTTP_GET_VARS['pID'];
$display_mode = 'pages';
}
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PAGES);
// pages breadcrumb
$pages_categories_query = tep_db_query("select icd.categories_name from " . TABLE_PAGES_CATEGORIES_DESCRIPTION . " icd, " . TABLE_PAGES_CATEGORIES . " ic where ic.categories_id = icd.categories_id and icd.categories_id = '" . (int)$cID . "' and icd.language_id = '" . (int)$languages_id . "' and ic.categories_status = '1'");
$pages_categories_value = tep_db_fetch_array($pages_categories_query);
if (($display_mode == 'pages') || ($display_mode == 'categories')) {
$breadcrumb->add(NAVBAR_TITLE, FILENAME_PAGES);
if (tep_not_null($pages_categories_value['categories_name'])) {
$breadcrumb->add($pages_categories_value['categories_name'], FILENAME_PAGES . '?cID=' . $cID);
}
} else {
$breadcrumb->add(NAVBAR_TITLE, FILENAME_PAGES);
}
$content = CONTENT_PAGES;
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>