示例#1
0
    /**
     * Standard routine for displaying toolbar icon
     * @param string An override for the task
     * @param string An override for the alt text
     * @param string The name to be used as a legend and as the image name
     * @param
     */
    function addToToolBar($task, $alt, $name, $imagename, $extended = false, $listprompt = '')
    {
        if (is_null($alt)) {
            $alt = T_($name);
        }
        $image = mosAdminMenus::ImageCheckAdmin($imagename . '.png', '/administrator/images/', NULL, NULL, $alt, $task);
        $image2 = mosAdminMenus::ImageCheckAdmin($imagename . '_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0);
        ?>
		<td>
		<a class="toolbar" href="javascript:<?php 
        echo mosMenuBar::makeJavaScript($task, $extended, $listprompt);
        ?>
" onmouseout="MM_swapImgRestore();"  onmouseover="MM_swapImage('<?php 
        echo $task;
        ?>
','','<?php 
        echo $image2;
        ?>
',1);">
		<?php 
        echo $image;
        echo '<br />';
        echo $alt;
        ?>
		</a>
		</td>
		<?php 
    }