当前位置: 首页>>代码示例>>PHP>>正文


PHP mosAdminMenus::ImageCheckAdmin方法代码示例

本文整理汇总了PHP中mosAdminMenus::ImageCheckAdmin方法的典型用法代码示例。如果您正苦于以下问题:PHP mosAdminMenus::ImageCheckAdmin方法的具体用法?PHP mosAdminMenus::ImageCheckAdmin怎么用?PHP mosAdminMenus::ImageCheckAdmin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mosAdminMenus的用法示例。


在下文中一共展示了mosAdminMenus::ImageCheckAdmin方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: media_manager

    /**
     * Writes a media_manager button
     * @param string The sub-drectory to upload the media to
     */
    public static function media_manager($directory = '', $alt = 'Upload')
    {
        global $database, $mainframe;
        $cur_template = $mainframe->getTemplate();
        $image2 = mosAdminMenus::ImageCheckAdmin('upload_f2.png', '/administrator/images/', NULL, NULL, 'Upload Image', 'uploadPic', 1);
        ?>
		<td>
			<a class="toolbar" href="#" onclick="popupWindow('popups/uploadimage.php?directory=<?php 
        echo $directory;
        ?>
&amp;t=<?php 
        echo $cur_template;
        ?>
','win1',250,100,'no');">
				<?php 
        echo $image2;
        ?>
				<br /><?php 
        echo $alt;
        ?>
</a>
		</td>
		<?php 
    }
开发者ID:jwest00724,项目名称:Joomla-1.0,代码行数:28,代码来源:menubar.html.php

示例2: media_manager

    /**
     * Writes a media_manager button
     * @param string The sub-drectory to upload the media to
     */
    function media_manager($directory = '', $alt = null)
    {
        if (is_null($alt)) {
            $alt = T_('Upload');
        }
        $cur_template = mosMenuBar::getTemplate();
        $image = mosAdminMenus::ImageCheckAdmin('upload.png', '/administrator/images/', NULL, NULL, T_('Upload Image'), 'uploadPic');
        $image2 = mosAdminMenus::ImageCheckAdmin('upload_f2.png', '/administrator/images/', NULL, NULL, T_('Upload Image'), 'uploadPic', 0);
        ?>
		<td>
		<a class="toolbar" href="#" onclick="popupWindow('index3.php?pop=uploadimage.php&amp;directory=<?php 
        echo $directory;
        ?>
&amp;t=<?php 
        echo $cur_template;
        ?>
','win1',350,100,'no');" onmouseout="MM_swapImgRestore();"  onmouseover="MM_swapImage('uploadPic','','<?php 
        echo $image2;
        ?>
',1);">
		<?php 
        echo $image;
        ?>
<br />
		<?php 
        echo $alt;
        ?>
		</a>
		</td>
		<?php 
    }
开发者ID:jwest00724,项目名称:mambo,代码行数:35,代码来源:menubar.html.php

示例3: divider

    /**
     * Write a divider between menu buttons
     */
    function divider()
    {
        $image = mosAdminMenus::ImageCheckAdmin('menu_divider.png', '/administrator/images/');
        ?>
		<td>
		<?php 
        echo $image;
        ?>
		</td>
		<?php 
    }
开发者ID:RangerWalt,项目名称:ecci,代码行数:14,代码来源:toolbar.docman.class.php

示例4: media_manager

    /**
     * Writes a media_manager button
     * @param string The sub-drectory to upload the media to
     */
    function media_manager($directory = '')
    {
        global $database, $adminLanguage;
        $sql = "SELECT template FROM #__templates_menu WHERE client_id='1' AND menuid='0'";
        $database->setQuery($sql);
        $cur_template = $database->loadResult();
        $image = mosAdminMenus::ImageCheckAdmin('upload.png', '/administrator/images/', NULL, NULL, 'Upload Image', 'uploadPic');
        $image2 = mosAdminMenus::ImageCheckAdmin('upload_f2.png', '/administrator/images/', NULL, NULL, 'Upload Image', 'uploadPic', 0);
        ?>
		<td>
		<a class="toolbar" href="#" onclick="popupWindow('popups/uploadimage.php?directory=<?php 
        echo $directory;
        ?>
&t=<?php 
        echo $cur_template;
        ?>
','win1',250,100,'no');" onmouseout="MM_swapImgRestore();"  onmouseover="MM_swapImage('uploadPic','','<?php 
        echo $image2;
        ?>
',1);">
		<?php 
        echo $image;
        echo $adminLanguage->A_UPLOAD;
        ?>
		</a>
		</td>
		<?php 
    }
开发者ID:cwcw,项目名称:cms,代码行数:32,代码来源:menubar.html.php


注:本文中的mosAdminMenus::ImageCheckAdmin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。