[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_menus/views/item/tmpl/ -> type.php (source)

   1  <?php
   2  defined('_JEXEC') or die('Restricted access'); 
   3  
   4  // Precompute the menu type and CID
   5  $typeCid = '&amp;menutype=' . htmlspecialchars($this->item->menutype) 
   6      . '&amp;cid[]=' . $this->item->id
   7  ;
   8  ?>
   9  
  10  <script language="javascript" type="text/javascript">
  11      <!--
  12          Window.onDomReady(function(){
  13              //document.treemanager.expandAll('menu-item');
  14          });
  15      //-->
  16  </script>
  17  <form action="index.php" method="post" name="adminForm">
  18      <table class="admintable" width="100%">
  19          <tr valign="top">
  20              <td width="60%">
  21                  <!-- Menu Item Type Section -->
  22                  <fieldset>
  23                      <legend><?php echo JText::_( 'Select Menu Item Type' ); ?></legend>
  24                      <ul id="menu-item" class="jtree">
  25                          <li id="internal-node"><div class="node-open"><span></span><a href="#"><?php echo JText::_('Internal Link'); ?></a></div>
  26                              <ul>
  27                                  <?php for ($i=0,$n=count($this->components);$i<$n;$i++) : ?>
  28                                      <?php if($this->components[$i]->legacy) : ?>
  29                                          <li><div class="node-open"><span></span><a href="index.php?option=com_menus&amp;task=edit&amp;type=component&amp;url[option]=<?php echo $this->components[$i]->option . $typeCid; ?>" id="<?php echo str_replace('com_', '', $this->components[$i]->option); ?>"><?php echo $this->components[$i]->name; ?></a></div>
  30                                      <?php elseif ($this->expansion['option'] == str_replace('com_', '', $this->components[$i]->option)) : ?>
  31                                          <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>
  32                                          <?php echo $this->expansion['html']; ?>
  33                                      <?php else : ?>
  34                                          <li <?php echo ($i == $n-1)? 'class="last"' : '' ?>><div class="node"><span></span><a href="index.php?option=com_menus&amp;task=type<?php echo $typeCid; ?>&amp;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>
  35                                      <?php endif; ?>
  36                                  </li>
  37                                  <?php endfor; ?>
  38                              </ul>
  39                          </li>
  40                          <li id="external-node"><div class="base"><span></span><a href="index.php?option=com_menus&amp;task=edit&amp;type=url<?php echo $typeCid; ?>"><?php echo JText::_('External Link'); ?></a></div></li>
  41                          <li id="separator-node"><div class="base"><span></span><a href="index.php?option=com_menus&amp;task=edit&amp;type=separator<?php echo $typeCid; ?>"><?php echo JText::_('Separator'); ?></a></div></li>
  42                          <li id="link-node" class="last"><div class="base"><span></span><a href="index.php?option=com_menus&amp;task=edit&amp;type=menulink<?php echo $typeCid; ?>"><?php echo JText::_('Alias'); ?></a></div></li>
  43                      </ul>
  44                  </fieldset>
  45              </td>
  46              <td width="40%">
  47              </td>
  48          </tr>
  49      </table>
  50      <input type="hidden" name="option" value="com_menus" />
  51      <input type="hidden" name="task" value="" />
  52      <?php echo JHTML::_( 'form.token' ); ?>
  53  </form>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1