HomeHelpTrac

source: tags/6.1/mem_poll.php @ 10242

Revision 10242, 2.0 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) 2006 BoonEx Group
8*     website              : http://www.boonex.com/
9* This file is part of Dolphin - Smart Community Builder
10*
11* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
12* http://creativecommons.org/licenses/by/3.0/
13*
14* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16* See the Creative Commons Attribution 3.0 License for more details.
17* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
18* see license.txt file; if not, write to marketing@boonex.com
19***************************************************************************/
20
21require_once( 'inc/header.inc.php' );
22require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
23require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
24require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
25
26// --------------- page variables
27
28$_page['name_index']    = 82;
29$_page['css_name']      = 'mem_poll.css';
30
31$logged['member'] = member_auth( 0, false );
32
33$_page['header'] = _t( "_Member Poll H" );
34$_page['header_text'] = _t( "_Member Poll H1" );
35
36// --------------- page components
37
38$_ni = $_page['name_index'];
39$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();
40
41// --------------- [END] page components
42
43PageCode();
44
45// --------------- page components functions
46
47/**
48 * page code function
49 */
50function PageCompPageMainCode()
51{
52    global $site;
53   
54    $ID = (int)$_GET['ID'];
55   
56    if( !$ID )
57        return false;
58   
59    $ret = '';
60   
61    $ret .= '<div class="pollBody">';
62        $ret .= '<div class="clear_both"></div>';
63            $ret .= ShowPoll( $ID );
64        $ret .= '<div class="clear_both"></div>';
65    $ret .= '</div>';
66   
67    return $ret;
68}
69
70?>
Note: See TracBrowser for help on using the repository browser.