| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @subpackage Polls 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 /** ensure this file is being included by a parent file */ 18 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 19 20 require_once( $mainframe->getPath( 'toolbar_html' ) ); 21 22 switch ($task) { 23 case 'new': 24 TOOLBAR_poll::_NEW(); 25 break; 26 27 case 'edit': 28 $cid = mosGetParam( $_REQUEST, 'cid', array(0) ); 29 if (!is_array( $cid )) { 30 $cid = array(0); 31 } 32 33 // @RawSQLUse, trivial_implementation, SELECT 34 $database->setQuery( "SELECT published FROM #__polls WHERE id='$cid[0]'" ); 35 $published = $database->loadResult(); 36 37 $cur_template = $mainframe->getTemplate(); 38 39 TOOLBAR_poll::_EDIT( $cid[0], $cur_template ); 40 break; 41 42 case 'editA': 43 $id = mosGetParam( $_REQUEST, 'id', 0 ); 44 45 // @RawSQLUse, trivial_implementation, SELECT 46 $database->setQuery( "SELECT published FROM #__polls WHERE id='$id'" ); 47 $published = $database->loadResult(); 48 49 $cur_template = $mainframe->getTemplate(); 50 51 TOOLBAR_poll::_EDIT( $id, $cur_template ); 52 break; 53 54 default: 55 TOOLBAR_poll::_DEFAULT(); 56 break; 57 } 58 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed May 23 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |