mambo的cms源代码

源代码在线查看: admin.menumanager.html.php

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

相关代码

								/**				* @version $Id: admin.menumanager.html.php,v 1.14 2005/02/16 05:14:53 kochp Exp $				* @package Mambo				* @subpackage Menus				* @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.' );								/**				* HTML class for all menumanager component output				* @package Mambo				* @subpackage Menus				*/				class HTML_menumanager {					/**					* Writes a list of the menumanager items					*/					function show ( $option, $menus, $pageNav ) {						global $mosConfig_live_site, $adminLanguage;						?>												function menu_listItemTask( id, task, option ) {							var f = document.adminForm;							cb = eval( 'f.' + id );							if (cb) {								cb.checked = true;								submitbutton(task);							}							return false;						}																																																																																																																																																																																																																																																		$k = 0;						$i = 0;						$start = 0;						if ($pageNav->limitstart)							$start = $pageNav->limitstart;						$count = count($menus)-$start;						if ($pageNav->limit)							if ($count > $pageNav->limit)								$count = $pageNav->limit;						for ($m = $start; $m < $start+$count; $m++) {							$menu = $menus[$m];							$link 	= 'index2.php?option=com_menumanager&task=edit&hidemainmenu=1&menu='. $menu->type;							$linkA 	= 'index2.php?option=com_menus&menutype='. $menu->type;							?>																																																																																																																																																															echo $menu->published;								?>																																echo $menu->unpublished;								?>																																echo $menu->trash;								?>																																echo $menu->modules;								?>																													$k = 1 - $k;							$i++;						}						?>																																																									}													/**					* writes a form to take the name of the menu you would like created					* @param option	display options for the form					*/					function edit ( &$row, $option ) {						global $mosConfig_live_site, $adminLanguage;										$new = $row->menutype ? 0 : 1;						?>												function submitbutton(pressbutton) {							var form = document.adminForm;											if (pressbutton == 'savemenu') {								if ( form.menutype.value == '' ) {									alert( 'Please enter a menu name' );									form.menutype.focus();									return;								}																if ( $new ) {									?>									if ( form.title.value == '' ) {										alert( '' );										form.title.focus();										return;									}																	}								?>								submitform( 'savemenu' );							} else {								submitform( pressbutton );							}						}																																																																																													:																																			$tip = $adminLanguage->A_COMP_MENU_TIPS;							echo mosToolTip( $tip );							?>																									if ( $new ) {							?>																							:																																								$tip = $adminLanguage->A_COMP_MENU_TIPS2;								echo mosToolTip( $tip );								?>																																																												}						?>																																																												if ( $new ) {							?>																																																							}						?>																																																				}													/**					* A delete confirmation page					* Writes list of the items that have been selected for deletion					*/					function showDelete( $option, $type, $items, $modules ) {						global $adminLanguage;						?>																																: 																																																																					if ( $modules ) {								?>								:																								foreach ( $modules as $module ) {									?>																																																																																									}								?>																							}							?>																					:																												foreach ( $items as $item ) {								?>																																																															}							?>																												 				            				            																																			 																																								 																																																															}													/**					* A copy confirmation page					* Writes list of the items that have been selected for copy					*/					function showCopy( $option, $type, $items ) {						global $adminLanguage;					?>												function submitbutton(pressbutton) {							if (pressbutton == 'copymenu') {								if ( document.adminForm.menu_name.value == '' ) {									alert( '' );									return;								} else if ( document.adminForm.module_name.value == '' ) {									alert( '' );									return;								} else {									submitform( 'copymenu' );								}							} else {								submitform( pressbutton );							}						}																																																																																																				:																												:																																																	:																																																																						:																																			foreach ( $items as $item ) {								?>																																																															}							?>																																															 																																																									}				}				?>			

相关资源