/** * 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; ?> &t=<?php echo $cur_template; ?> ','win1',250,100,'no');"> <?php echo $image2; ?> <br /><?php echo $alt; ?> </a> </td> <?php }
/** * 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&directory=<?php echo $directory; ?> &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 }
/** * Write a divider between menu buttons */ function divider() { $image = mosAdminMenus::ImageCheckAdmin('menu_divider.png', '/administrator/images/'); ?> <td> <?php echo $image; ?> </td> <?php }
/** * 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 }