HomeHelpTrac

source: tags/6.1/classifieds_tags.php @ 10242

Revision 10242, 2.4 KB checked in by Alexander Trofimov, 3 years ago (diff)

dolphin 6.1.5, initial commit

Line 
1<?
2
3/***************************************************************************
4*                            Dolphin Smart Community Builder
5*                              -------------------
6*     begin                : Mon Mar 23 2006
7*     copyright            : (C) 2007 BoonEx Group
8*     website              : http://www.boonex.com
9* This file is part of Dolphin - Smart Community Builder
10*
11* Dolphin is free software; you can redistribute it and/or modify it under
12* the terms of the GNU General Public License as published by the
13* Free Software Foundation; either version 2 of the
14* License, or  any later version.
15*
16* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
17* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18* See the GNU General Public License for more details.
19* You should have received a copy of the GNU General Public License along with Dolphin,
20* see license.txt file; if not, write to marketing@boonex.com
21***************************************************************************/
22
23require_once( 'inc/header.inc.php' );
24require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
25require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
26require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolClassifieds.php' );
27
28// --------------- page variables and login
29$_page['name_index']    = 26;
30$_page['css_name'] = 'classifieds_view.css';
31$_page['extra_js'] = $oTemplConfig -> sTinyMceEditorJS;
32
33check_logged();
34
35$oClassifieds = new BxDolClassifieds();
36
37$_page['header'] = $oClassifieds -> GetHeaderString();
38$_page['header_text'] = $oClassifieds -> GetHeaderString();
39
40$_ni = $_page['name_index'];
41$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();
42
43PageCode();
44
45    /**
46     * Generating Main page code
47     *
48     * @return ALL presentation of data
49     */
50    function PageCompPageMainCode() {
51        $sRetHtml = '';
52        global $oClassifieds;
53        $oClassifieds -> sCurrBrowsedFile = $_SERVER['PHP_SELF'];
54        $oClassifieds -> sCurrBrowsedFile = 'classifieds.php';
55        $sRetHtml .= $oClassifieds -> PrintCommandForms();
56
57        if ($_REQUEST) {
58            if (isset($_GET['tag'])) {
59                $sTag = process_db_input( $_GET['tag'] );
60                $sRetHtml .= $oClassifieds->PrintAdvertisementsByTag($sTag);
61            }
62        }
63        // else {
64            // $sRetHtml .= $oClassifieds -> PrintClassifieds();
65        // }
66
67        return $sRetHtml;
68    }
69?>
Note: See TracBrowser for help on using the repository browser.