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