[ Index ] |
|
Code source de Joomla 1.0.13 |
1 <?php 2 /** 3 * @version $Id: mod_quickicon.php 5573 2006-10-26 05:20:13Z Saka $ 4 * @package Joomla 5 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. 6 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 7 * Joomla! is free software. This version may have been modified pursuant 8 * to the GNU General Public License, and as distributed it includes or 9 * is derivative of works licensed under the GNU General Public License or 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 13 14 // no direct access 15 defined( '_VALID_MOS' ) or die( 'Restricted access' ); 16 17 if (!defined( '_JOS_QUICKICON_MODULE' )) { 18 /** ensure that functions are declared only once */ 19 define( '_JOS_QUICKICON_MODULE', 1 ); 20 21 function quickiconButton( $link, $image, $text ) { 22 ?> 23 <div style="float:left;"> 24 <div class="icon"> 25 <a href="<?php echo $link; ?>"> 26 <?php echo mosAdminMenus::imageCheckAdmin( $image, '/administrator/images/', NULL, NULL, $text ); ?> 27 <span><?php echo $text; ?></span> 28 </a> 29 </div> 30 </div> 31 <?php 32 } 33 34 $securitycheck = intval( $params->get( 'securitycheck', 1 ) ); 35 ?> 36 <div id="cpanel"> 37 <?php 38 $link = 'index2.php?option=com_content&sectionid=0&task=new'; 39 quickiconButton( $link, 'module.png', 'Add New Content' ); 40 41 $link = 'index2.php?option=com_content§ionid=0'; 42 quickiconButton( $link, 'addedit.png', 'Content Items Manager' ); 43 44 $link = 'index2.php?option=com_typedcontent'; 45 quickiconButton( $link, 'addedit.png', 'Static Content Manager' ); 46 47 $link = 'index2.php?option=com_frontpage'; 48 quickiconButton( $link, 'frontpage.png', 'Frontpage Manager' ); 49 50 $link = 'index2.php?option=com_sections&scope=content'; 51 quickiconButton( $link, 'sections.png', 'Section Manager' ); 52 53 $link = 'index2.php?option=com_categories&section=content'; 54 quickiconButton( $link, 'categories.png', 'Category Manager' ); 55 56 $link = 'index2.php?option=com_media'; 57 quickiconButton( $link, 'mediamanager.png', 'Media Manager' ); 58 59 if ( $my->gid > 23 ) { 60 $link = 'index2.php?option=com_trash'; 61 quickiconButton( $link, 'trash.png', 'Trash Manager' ); 62 } 63 64 if ( $my->gid > 23 ) { 65 $link = 'index2.php?option=com_menumanager'; 66 quickiconButton( $link, 'menu.png', 'Menu Manager' ); 67 } 68 69 if ( $my->gid > 24 ) { 70 $link = 'index2.php?option=com_languages'; 71 quickiconButton( $link, 'langmanager.png', 'Language Manager' ); 72 } 73 74 if ( $my->gid > 23 ) { 75 $link = 'index2.php?option=com_users'; 76 quickiconButton( $link, 'user.png', 'User Manager' ); 77 } 78 79 if ( $my->gid > 24 ) { 80 $link = 'index2.php?option=com_config&hidemainmenu=1'; 81 quickiconButton( $link, 'config.png', 'Global Configuration' ); 82 } 83 84 if ($securitycheck) { 85 // show security setting check 86 josSecurityCheck('88%'); 87 } 88 ?> 89 </div> 90 <div style="clear:both;"> </div> 91 <?php 92 } 93 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |