mambo的cms源代码

源代码在线查看: toolbar.poll.html.php

软件大小: 2053 K
上传用户: bonylee_java
关键词: mambo cms 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

								/**
				* @version $Id: toolbar.poll.html.php,v 1.8 2005/02/16 13:55:35 stingrey Exp $
				* @package Mambo
				* @subpackage Polls
				* @copyright (C) 2000 - 2005 Miro International Pty Ltd
				* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
				* Mambo is Free Software
				*/
				
				/** ensure this file is being included by a parent file */
				defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
				
				/**
				* @package Mambo
				* @subpackage Polls
				*/
				class TOOLBAR_poll {
					/**
					* Draws the menu for a New category
					*/
					function _NEW() {
						mosMenuBar::startTable();
						mosMenuBar::save();
						mosMenuBar::spacer();
						mosMenuBar::cancel();
						mosMenuBar::spacer();
						mosMenuBar::help( 'screen.polls.edit' );
						mosMenuBar::endTable();
					}
					/**
					* Draws the menu for Editing an existing category
					*/
					function _EDIT( $pollid, $cur_template ) {
						global $database, $adminLanguage;
						global $id;
						
						$sql = "SELECT template FROM #__templates_menu WHERE client_id='0' AND menuid='0'";
						$database->setQuery( $sql );
						$cur_template = $database->loadResult();
						mosMenuBar::startTable();
						$popup='pollwindow';
				    	?>
											    						mosMenuBar::spacer();
					    mosMenuBar::save();
						mosMenuBar::spacer();
						if ( $id ) {
							// for existing content items the button is renamed `close`
							mosMenuBar::cancel( 'cancel', _A_CLOSE );
						} else {
							mosMenuBar::cancel();
						}
						mosMenuBar::spacer();
					    mosMenuBar::help( 'screen.polls.edit' );
					    mosMenuBar::endTable();
					}
					function _DEFAULT() {
						mosMenuBar::startTable();
						mosMenuBar::publishList();
						mosMenuBar::spacer();
						mosMenuBar::unpublishList();
						mosMenuBar::spacer();
						mosMenuBar::addNewX();
						mosMenuBar::spacer();
						mosMenuBar::editListX();
						mosMenuBar::spacer();
						mosMenuBar::deleteList();
						mosMenuBar::spacer();
						mosMenuBar::help( 'screen.polls' );
						mosMenuBar::endTable();
					}
				}
				?>
							

相关资源