📄 type.php
字号:
<?php defined('_JEXEC') or die('Restricted access'); ?><script language="javascript" type="text/javascript"> <!-- Window.onDomReady(function(){ //document.treemanager.expandAll('menu-item'); }); //--></script><form action="index.php" method="post" name="adminForm"> <table class="admintable" width="100%"> <tr valign="top"> <td width="60%"> <!-- Menu Item Type Section --> <fieldset> <legend><?php echo JText::_( 'Select Menu Item Type' ); ?></legend> <ul id="menu-item" class="jtree"> <li id="internal-node"><div class="node-open"><span></span><a href="#"><?php echo JText::_('Internal Link'); ?></a></div> <ul> <?php for ($i=0,$n=count($this->components);$i<$n;$i++) : ?> <?php if($this->components[$i]->legacy) : ?> <li><div class="node-open"><span></span><a href="index.php?option=com_menus&task=edit&type=component&url[option]=<?php echo $this->components[$i]->option; ?>&menutype=<?php echo $this->item->menutype; ?>&cid[]=<?php echo $this->item->id; ?>" id="<?php echo str_replace('com_', '', $this->components[$i]->option); ?>"><?php echo $this->components[$i]->name; ?></a></div> <?php elseif ($this->expansion['option'] == str_replace('com_', '', $this->components[$i]->option)) : ?> <li <?php echo ($i == $n-1)? 'class="last"' : '' ?>><div class="node-open"><span></span><a id="<?php echo str_replace('com_', '', $this->components[$i]->option); ?>"><?php echo JText::_($this->components[$i]->name); ?></a></div> <?php echo $this->expansion['html']; ?> <?php else : ?> <li <?php echo ($i == $n-1)? 'class="last"' : '' ?>><div class="node"><span></span><a href="index.php?option=com_menus&task=type&menutype=<?php echo $this->item->menutype; ?>&cid[]=<?php echo $this->item->id; ?>&expand=<?php echo str_replace('com_', '', $this->components[$i]->option); ?>" id="<?php echo str_replace('com_', '', $this->components[$i]->option); ?>"><?php echo JText::_($this->components[$i]->name); ?></a></div> <?php endif; ?> </li> <?php endfor; ?> </ul> </li> <li id="external-node"><div class="base"><span></span><a href="index.php?option=com_menus&task=edit&type=url&menutype=<?php echo $this->item->menutype; ?>&cid[]=<?php echo $this->item->id; ?>"><?php echo JText::_('External Link'); ?></a></div></li> <li id="separator-node"><div class="base"><span></span><a href="index.php?option=com_menus&task=edit&type=separator&menutype=<?php echo $this->item->menutype; ?>&cid[]=<?php echo $this->item->id; ?>"><?php echo JText::_('Separator'); ?></a></div></li> <li id="link-node" class="last"><div class="base"><span></span><a href="index.php?option=com_menus&task=edit&type=menulink&menutype=<?php echo $this->item->menutype; ?>&cid[]=<?php echo $this->item->id; ?>"><?php echo JText::_('Alias'); ?></a></div></li> </ul> </fieldset> </td> <td width="40%"> </td> </tr> </table> <input type="hidden" name="option" value="com_menus" /> <input type="hidden" name="task" value="" /> <?php echo JHTML::_( 'form.token' ); ?></form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -