本文整理汇总了PHP中mosMenuBar::save方法的典型用法代码示例。如果您正苦于以下问题:PHP mosMenuBar::save方法的具体用法?PHP mosMenuBar::save怎么用?PHP mosMenuBar::save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mosMenuBar
的用法示例。
在下文中一共展示了mosMenuBar::save方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _EDIT
/**
* Draws the menu for Editing an existing module
*/
function _EDIT($cur_template, $publish)
{
global $id;
mosMenuBar::startTable();
?>
<td>
<a class="toolbar" href="#" onClick="if (typeof document.adminForm.content == 'undefined') { alert('A pré-visualização apenas funciona para `novos´ módulos.'); } else { var content = document.adminForm.content.value; content = content.replace('#', ''); var title = document.adminForm.title.value; title = title.replace('#', ''); window.open('popups/modulewindow.php?title=' + title + '&content=' + content + '&t=<?php
echo $cur_template;
?>
', 'win1', 'status=no,toolbar=no,scrollbars=auto,titlebar=no,menubar=no,resizable=yes,width=200,height=400,directories=no,location=no'); }" >
<img src="images/preview_f2.png" alt="Pré-visualizar" border="0" name="preview" align="middle">
Visualizar</a>
</td>
<?php
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.modules.edit');
mosMenuBar::endTable();
}
示例2: _EDIT
/**
* Draws the menu to edit a menu item
*/
function _EDIT()
{
global $id;
if (!$id) {
$cid = josGetArrayInts('cid');
$id = $cid[0];
}
$menutype = strval(mosGetParam($_REQUEST, 'menutype', 'mainmenu'));
mosMenuBar::startTable();
if (!$id) {
$link = 'index2.php?option=com_menus&menutype=' . $menutype . '&task=new&hidemainmenu=1&' . josSpoofValue() . '=1';
mosMenuBar::back('Back', $link);
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.menus.edit');
mosMenuBar::endTable();
}
示例3: _EDIT
/**
* Draws the menu for Editing an existing category
*/
public static function _EDIT($pollid, $cur_template)
{
global $database;
global $id;
$sql = "SELECT template" . "\n FROM #__templates_menu" . "\n WHERE client_id = 0" . "\n AND menuid = 0";
$database->setQuery($sql);
$cur_template = $database->loadResult();
mosMenuBar::startTable();
$popup = 'pollwindow';
?>
<td><a class="toolbar" href="#" onclick="window.open('popups/<?php
echo $popup;
?>
.php?pollid=<?php
echo $pollid;
?>
&t=<?php
echo $cur_template;
?>
', 'win1', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('preview','','images/preview_f2.png',1);"><img src="images/preview.png" alt="Preview" border="0" name="preview" align="middle" /><br />Preview</a></td>
<?php
mosMenuBar::spacer();
mosMenuBar::save();
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.polls.edit');
mosMenuBar::endTable();
}
示例4: _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();
}
示例5: _EDIT
/**
* Draws the menu to edit a menu item
*/
function _EDIT($type)
{
global $id;
$hs = '';
if (!$id) {
$cid = mosGetParam($_POST, 'cid', array(0));
$id = $cid[0];
}
$menutype = mosGetParam($_REQUEST, 'menutype', 'mainmenu');
mosMenuBar::startTable();
if (!$id) {
$link = 'index2.php?option=com_menus&menutype=' . $menutype . '&task=new&hidemainmenu=1';
mosMenuBar::back(T_('Back'), $link);
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();
mosMenuBar::help($type);
mosMenuBar::endTable();
}
示例6: _EDIT
/**
* Draws the menu for Editing an existing module
*/
function _EDIT()
{
global $id;
mosMenuBar::startTable();
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 {
if ($_POST) {
$cid = (int) $GLOBALS['cid'][0];
} else {
$cid = (int) $_GET['id'];
}
$database =& mamboDatabase::getInstance();
$database->setQuery('select element from #__mambots where id = ' . $cid);
$result = $database->loadResult();
mosMenuBar::help($result ? $result : 'edit');
}
mosMenuBar::endTable();
}
示例7: _EDIT
/**
* Draws the menu for Editing an existing category
*/
function _EDIT($pollid, $cur_template)
{
global $database, $adminLanguage;
$sql = "SELECT template FROM #__templates_menu WHERE client_id='0' AND menuid='0'";
$database->setQuery($sql);
$cur_template = $database->loadResult();
mosMenuBar::startTable();
$popup = 'pollwindow';
?>
<td><a class="toolbar" href="#" onclick="window.open('popups/<?php
echo $popup;
?>
.php?pollid=<?php
echo $pollid;
?>
&t=<?php
echo $cur_template;
?>
', 'win1', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('preview','','images/preview_f2.png',1);"><img src="images/preview.png" alt="Preview" border="0" name="<?php
echo $adminLanguage->A_COMP_PREVIEW;
?>
" align="middle" /> <?php
echo $adminLanguage->A_COMP_PREVIEW;
?>
</a></td>
<?php
mosMenuBar::save();
mosMenuBar::cancel();
mosMenuBar::help('sect.polls.edit');
mosMenuBar::endTable();
}
示例8: _POSITIONS
function _POSITIONS()
{
mosMenuBar::startTable();
mosMenuBar::save('save_positions');
mosMenuBar::cancel();
mosMenuBar::endTable();
}
示例9: _EDIT
/**
* Draws the menu to edit a menu item
*/
function _EDIT()
{
mosMenuBar::startTable();
mosMenuBar::save();
mosMenuBar::cancel();
mosMenuBar::endTable();
}
示例10: _CONFIG
function _CONFIG()
{
mosMenuBar::startTable();
mosMenuBar::save();
mosMenuBar::cancel();
mosMenuBar::endTable();
}
示例11: _NEW
function _NEW()
{
mosMenuBar::startTable();
mosMenuBar::save();
mosMenuBar::spacer();
mosMenuBar::cancel();
mosMenuBar::endTable();
}
示例12: editConfig
function editConfig()
{
mosMenuBar::startTable();
mosMenuBar::save('save_config', 'Save Config');
mosMenuBar::spacer();
mosMenuBar::cancel('cancel');
mosMenuBar::endTable();
}
示例13: _CONFIG
function _CONFIG()
{
mosMenuBar::startTable();
mosMenuBar::save('saveconfig');
mosMenuBar::cancel('cancelconfig');
mosMenuBar::help('sect.messages.conf');
mosMenuBar::endTable();
}
示例14: _EDIT
/**
* Draws the menu to edit a user
*/
function _EDIT()
{
mosMenuBar::startTable();
mosMenuBar::save();
mosMenuBar::cancel();
mosMenuBar::help('sect.users.edit');
mosMenuBar::endTable();
}
示例15: _EDIT_SOURCE
public static function _EDIT_SOURCE()
{
mosMenuBar::startTable();
mosMenuBar::save('save_source');
mosMenuBar::spacer();
mosMenuBar::cancel();
mosMenuBar::endTable();
}