本文整理汇总了PHP中mosMenuBar::media_manager方法的典型用法代码示例。如果您正苦于以下问题:PHP mosMenuBar::media_manager方法的具体用法?PHP mosMenuBar::media_manager怎么用?PHP mosMenuBar::media_manager使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mosMenuBar
的用法示例。
在下文中一共展示了mosMenuBar::media_manager方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _EDIT
function _EDIT()
{
global $id;
mosMenuBar::startTable();
mosMenuBar::preview('contentwindow', true);
mosMenuBar::spacer();
mosMenuBar::media_manager();
mosMenuBar::spacer();
mosMenuBar::save();
mosMenuBar::spacer();
mosMenuBar::apply();
mosMenuBar::spacer();
if ($id) {
// for existing content items the button is renamed `close`
mosMenuBar::cancel('cancel', T_('Close'));
} else {
mosMenuBar::cancel();
}
mosMenuBar::spacer();
if ($GLOBALS['task'] == 'new') {
mosMenuBar::help('new');
} else {
mosMenuBar::help('edit');
}
mosMenuBar::endTable();
}
示例2: _EDIT
/**
* Draws the menu for Editing an existing category
* @param int The published state (to display the inverse button)
*/
function _EDIT()
{
global $id;
mosMenuBar::startTable();
mosMenuBar::media_manager();
mosMenuBar::spacer();
mosMenuBar::save();
mosMenuBar::spacer();
mosMenuBar::apply();
mosMenuBar::spacer();
if ($id) {
// for existing content items the button is renamed `close`
mosMenuBar::cancel('cancel', T_('Close'));
} else {
mosMenuBar::cancel();
}
mosMenuBar::spacer();
$section = '';
if (strstr($GLOBALS['section'], 'com_contact')) {
$section = 'contact.';
}
if (strstr($GLOBALS['section'], 'com_newsfeeds')) {
$section = 'newsfeeds.';
}
if (strstr($GLOBALS['section'], 'com_weblinks')) {
$section = 'weblinks.';
}
if ($GLOBALS['task'] == 'new') {
mosMenuBar::help($section . 'new');
} else {
mosMenuBar::help($section . 'edit');
}
mosMenuBar::endTable();
}
示例3: _EDIT
/**
* Draws the menu for Editing an existing category
*/
function _EDIT()
{
mosMenuBar::startTable();
mosMenuBar::media_manager();
mosMenuBar::save();
mosMenuBar::cancel();
mosMenuBar::endTable();
}
示例4: _EDIT
function _EDIT()
{
mosMenuBar::startTable();
mosMenuBar::preview('contentwindow', true);
mosMenuBar::media_manager();
mosMenuBar::save();
mosMenuBar::cancel();
mosMenuBar::help('sect.content.edit');
mosMenuBar::endTable();
}
示例5: _EDIT
/**
* Draws the menu for Editing an existing category
* @param int The published state (to display the inverse button)
*/
function _EDIT()
{
mosMenuBar::startTable();
mosMenuBar::media_manager();
mosMenuBar::save();
mosMenuBar::cancel();
mosMenuBar::spacer();
mosMenuBar::help('sect.categories.edit');
mosMenuBar::endTable();
}
示例6: _DEFAULT
function _DEFAULT()
{
mosMenuBar::startTable();
mosMenuBar::publishList();
mosMenuBar::unpublishList();
mosMenuBar::media_manager("banners");
mosMenuBar::addNew();
mosMenuBar::editList();
mosMenuBar::deleteList();
mosMenuBar::spacer();
mosMenuBar::help('sect.banners');
mosMenuBar::endTable();
}
示例7: _EDIT
public static function _EDIT()
{
mosMenuBar::startTable();
mosMenuBar::preview('contentwindow', true);
mosMenuBar::spacer();
mosMenuBar::media_manager();
mosMenuBar::spacer();
mosMenuBar::save();
mosMenuBar::spacer();
mosMenuBar::apply();
mosMenuBar::spacer();
mosMenuBar::cancel();
mosMenuBar::spacer();
mosMenuBar::help('screen.staticcontent.edit');
mosMenuBar::endTable();
}
示例8: _DEFAULT
public static function _DEFAULT()
{
mosMenuBar::startTable();
mosMenuBar::media_manager('banners');
mosMenuBar::spacer();
mosMenuBar::publishList();
mosMenuBar::spacer();
mosMenuBar::unpublishList();
mosMenuBar::spacer();
mosMenuBar::deleteList();
mosMenuBar::spacer();
mosMenuBar::editListX();
mosMenuBar::spacer();
mosMenuBar::addNewX();
mosMenuBar::spacer();
mosMenuBar::help('screen.banners');
mosMenuBar::spacer();
mosMenuBar::endTable();
}
示例9: _EDIT
/**
* Draws the menu for Editing an existing category
* @param int The published state (to display the inverse button)
*/
public static function _EDIT()
{
global $id;
mosMenuBar::startTable();
mosMenuBar::media_manager();
mosMenuBar::spacer();
mosMenuBar::save();
mosMenuBar::spacer();
mosMenuBar::apply();
mosMenuBar::spacer();
if ($id) {
// for existing content items the button is renamed `close`
mosMenuBar::cancel('cancel', 'Close');
} else {
mosMenuBar::cancel();
}
mosMenuBar::spacer();
mosMenuBar::help('screen.categories.edit');
mosMenuBar::endTable();
}
示例10: _EDIT
/**
* Draws the menu for Editing an existing category
*/
function _EDIT($task)
{
global $id;
mosMenuBar::startTable();
mosMenuBar::media_manager();
mosMenuBar::spacer();
mosMenuBar::save();
mosMenuBar::spacer();
mosMenuBar::apply();
mosMenuBar::spacer();
if ($id) {
// for existing content items the button is renamed `close`
mosMenuBar::cancel('cancel', T_('Close'));
} else {
mosMenuBar::cancel();
}
mosMenuBar::spacer();
$ref = $task == 'new' ? 'new' : 'edit';
mosMenuBar::help($ref);
mosMenuBar::endTable();
}
示例11: _EDIT
function _EDIT()
{
global $id;
mosMenuBar::startTable();
mosMenuBar::preview('contentwindow', true);
mosMenuBar::spacer();
mosMenuBar::media_manager();
mosMenuBar::spacer();
mosMenuBar::save();
mosMenuBar::spacer();
mosMenuBar::apply();
mosMenuBar::spacer();
if ($id) {
// for existing content items the button is renamed `close`
mosMenuBar::cancel('cancel', 'Sair');
} else {
mosMenuBar::cancel();
}
mosMenuBar::spacer();
mosMenuBar::help('screen.content.edit');
mosMenuBar::endTable();
}