Ejemplo n.º 1
0
    /**
     * 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 
    }