📄 default.php
字号:
<?php defined('_JEXEC') or die('Restricted access'); ?>
<script language="javascript" type="text/javascript">
<!--
function submitbutton(task)
{
var f = document.adminForm;
if (task == 'deleteconfirm') {
id = radioGetCheckedValue( f.id );
//document.popup.show('index.php?option=com_menumanager&tmpl=component&task=deleteconfirm&id='+id, 700, 500, null);
} else {
submitform(task);
}
}
function menu_listItemTask( id, task, option )
{
var f = document.adminForm;
cb = eval( 'f.' + id );
if (cb) {
cb.checked = true;
submitbutton(task);
}
return false;
}
//-->
</script>
<form action="index.php" method="post" name="adminForm">
<table class="adminlist">
<thead>
<tr>
<th width="20">
<?php echo JText::_( 'NUM' ); ?>
</th>
<th width="20">
</th>
<th class="title" nowrap="nowrap">
<?php echo JText::_( 'Title' ); ?>
</th>
<th class="title" nowrap="nowrap">
<?php echo JText::_( 'Type' ); ?>
</th>
<th width="5%" nowrap="nowrap">
<?php echo JText::_( 'Menu Items' ); ?>
</th>
<th width="10%">
<?php echo JText::_( 'NUM Published' ); ?>
</th>
<th width="15%">
<?php echo JText::_( 'NUM Unpublished' ); ?>
</th>
<th width="15%">
<?php echo JText::_( 'NUM Trash' ); ?>
</th>
<th width="15%">
<?php echo JText::_( 'NUM Modules' ); ?>
</th>
<th width="3%">
<?php echo JText::_( 'ID' ); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="13">
<?php echo $this->pagination->getListFooter(); ?>
</td>
</tr>
</tfoot>
<tbody>
<?php $i = 0; $k = 0; ?>
<?php foreach ($this->menus as $menu) : ?>
<?php
// Get the current iteration and set a few values
$link = 'index.php?option=com_menus&task=editMenu&id='. $menu->id;
$linkA = 'index.php?option=com_menus&task=view&menutype='. $menu->menutype;
?>
<tr class="<?php echo "row". $k; ?>">
<td align="center" width="30">
<?php echo $this->pagination->limitstart + 1 + $i; ?>
</td>
<td width="30" align="center">
<input type="radio" id="cb<?php echo $i;?>" name="id" value="<?php echo $menu->id; ?>" onclick="isChecked(this.checked);" />
</td>
<td>
<a href="<?php echo $link; ?>" title="<?php echo JText::_( 'Edit Menu Name' ); ?>">
<?php echo $menu->title; ?></a>
</td>
<td>
<?php echo $menu->menutype; ?>
</td>
<td align="center">
<a href="<?php echo $linkA; ?>" title="<?php echo JText::_( 'Edit Menu Items' ); ?>">
<img src="<?php echo $mainframe->getSiteURL(); ?>/includes/js/ThemeOffice/mainmenu.png" border="0" /></a>
</td>
<td align="center">
<?php
echo $menu->published;
?>
</td>
<td align="center">
<?php
echo $menu->unpublished;
?>
</td>
<td align="center">
<?php
echo $menu->trash;
?>
</td>
<td align="center">
<?php
echo $menu->modules;
?>
</td>
<td align="center">
<?php
echo $menu->id;
?>
</td>
</tr>
<?php $i++; $k = 1 - $k; ?>
<?php endforeach; ?>
</tbody>
</table>
<input type="hidden" name="option" value="com_menus" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -