Source for file content_blog_section.menu.html.php

Documentation is available at content_blog_section.menu.html.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @subpackage Menus
  5. @copyright  Refer to copyright.php
  6. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  7. @author Mambo Foundation Inc see README.php
  8. */
  9.  
  10. /** ensure this file is being included by a parent file */
  11. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  12.  
  13. /**
  14. * Writes the edit form for new and existing content item
  15. *
  16. * A new record is defined when <var>$row</var> is passed with the <var>id</var>
  17. * property set to 0.
  18. */
  19.  
  20.     function edit&$menu&$lists&$params$option {
  21.         /* in the HTML below, references to "section" were changed to "section" */
  22.         global $mosConfig_live_site;
  23.         ?>
  24.         <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
  25.         <script language="javascript" type="text/javascript">
  26.         function submitbutton(pressbutton) {
  27.             if (pressbutton == 'cancel') {
  28.                 submitform( pressbutton );
  29.                 return;
  30.             }
  31.             var form = document.adminForm;
  32.             <?php
  33.             if !$menu->id {
  34.                 ?>
  35.                 if ( form.name.value == '' ) {
  36.                     alert( '<?php echo T_('This Menu item must have a title')?>' );
  37.                     return;
  38.                 } else {
  39.                     submitform( pressbutton );
  40.                 }
  41.                 <?php
  42.             else {
  43.                 ?>
  44.                 if ( form.name.value == '' ) {
  45.                     alert( '<?php echo T_('This Menu item must have a title')?>' );
  46.                 } else {
  47.                     submitform( pressbutton );
  48.                 }
  49.                 <?php
  50.             }
  51.             ?>
  52.         }
  53.         </script>
  54.  
  55.         <form action="index2.php" method="post" name="adminForm">
  56.  
  57.         <table class="adminheading">
  58.         <tr>
  59.             <th>
  60.             <?php echo $menu->id T_('Edit'T_('Add');?> <?php echo T_('Menu Item :: Blog - Content Section')?>
  61.             </th>
  62.         </tr>
  63.         </table>
  64.  
  65.         <table width="100%">
  66.         <tr valign="top">
  67.             <td width="60%">
  68.                 <table class="adminform">
  69.                 <tr>
  70.                     <th colspan="3">
  71.                     <?php echo T_('Details')?>
  72.                     </th>
  73.                 </tr>
  74.                 <tr>
  75.                     <td width="10%" align="right"><?php echo T_('Name:')?></td>
  76.                     <td width="200px">
  77.                     <input class="inputbox" type="text" name="name" size="30" maxlength="100" value="<?php echo $menu->name?>" />
  78.                     </td>
  79.                     <td>
  80.                     </td>
  81.                 </tr>
  82.                 <tr>
  83.                     <td valign="top" align="right">
  84.                     <?php echo T_('Section:')?>
  85.                     </td>
  86.                     <td>
  87.                     <?php echo $lists['sectionid']?>
  88.                      </td>
  89.                      <td valign="top">
  90.                      <?php
  91.                      echo mosToolTipT_('You can select multiple Sections') )
  92.                      ?>
  93.                     </td>
  94.                 </tr>
  95.                 <tr>
  96.                     <td align="right"><?php echo T_('Url:')?></td>
  97.                     <td colspan="2">
  98.                     <?php echo $lists['link']?>
  99.                     </td>
  100.                 </tr>
  101.                 <tr>
  102.                     <td align="right"><?php echo T_('Parent Item:')?></td>
  103.                     <td colspan="2">
  104.                     <?php echo $lists['parent'];?>
  105.                     </td>
  106.                 </tr>
  107.                 <tr>
  108.                     <td valign="top" align="right"><?php echo T_('Ordering:')?></td>
  109.                     <td colspan="2">
  110.                     <?php echo $lists['ordering']?>
  111.                     </td>
  112.                 </tr>
  113.                 <tr>
  114.                     <td valign="top" align="right"><?php echo T_('Access Level:')?></td>
  115.                     <td colspan="2">
  116.                     <?php echo $lists['access']?>
  117.                     </td>
  118.                 </tr>
  119.                 <tr>
  120.                     <td valign="top" align="right"><?php echo T_('Published:')?></td>
  121.                     <td colspan="2">
  122.                     <?php echo $lists['published']?>
  123.                     </td>
  124.                 </tr>
  125.                 <tr>
  126.                     <td colspan="3">&nbsp;</td>
  127.                 </tr>
  128.                 </table>
  129.             </td>
  130.             <td width="40%">
  131.                 <table class="adminform">
  132.                 <tr>
  133.                     <th>
  134.                     <?php echo T_('Parameters')?>
  135.                     </th>
  136.                 </tr>
  137.                 <tr>
  138.                     <td>
  139.                     <?php echo $params->render();?>
  140.                     </td>
  141.                 </tr>
  142.                 </table>
  143.             </td>
  144.         </tr>
  145.         </table>
  146.  
  147.         <input type="hidden" name="option" value="<?php echo $option;?>" />
  148.         <input type="hidden" name="id" value="<?php echo $menu->id?>" />
  149.         <input type="hidden" name="menutype" value="<?php echo $menu->menutype?>" />
  150.         <input type="hidden" name="type" value="<?php echo $menu->type?>" />
  151.         <input type="hidden" name="link" value="index.php?option=com_content&task=blogsection&id=0" />
  152.         <input type="hidden" name="componentid" value="0" />
  153.         <input type="hidden" name="task" value="" />
  154.         <input type="hidden" name="hidemainmenu" value="0" />
  155.         </form>
  156.         <script language="Javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js"></script>
  157.         <?php
  158.     }
  159. }
  160. ?>

Documentation generated on Mon, 05 May 2008 16:18:40 +0400 by phpDocumentor 1.4.0