| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @subpackage Menus 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 /** ensure this file is being included by a parent file */ 18 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 19 20 /** 21 * Writes the edit form for new and existing content item 22 * 23 * A new record is defined when <var>$row</var> is passed with the <var>id</var> 24 * property set to 0. 25 */ 26 class separator_menu_html { 27 28 function edit( $menu, $lists, $params, $option ) { 29 global $mosConfig_live_site; 30 ?> 31 <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> 32 <script type="text/javascript"> 33 function submitbutton(pressbutton) { 34 if (pressbutton == 'cancel') { 35 submitform( pressbutton ); 36 return; 37 } 38 var form = document.adminForm; 39 submitform( pressbutton ); 40 } 41 </script> 42 43 <form action="index2.php" method="post" name="adminForm"> 44 45 <table class="adminheading"> 46 <tr> 47 <th> 48 <?php echo $menu->id ? T_('Edit') : T_('Add');?> <?php echo T_('Menu Item :: Separator / Placeholder'); ?> 49 </th> 50 </tr> 51 </table> 52 53 <table width="100%"> 54 <tr valign="top"> 55 <td width="60%"> 56 <table class="adminform"> 57 <tr> 58 <th colspan="2"> 59 <?php echo T_('Details'); ?> 60 </th> 61 </tr> 62 <tr> 63 <td align="right"> 64 <?php echo T_('Pattern/Name:'); ?> 65 </td> 66 <td> 67 <input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php echo $menu->name; ?>" /> 68 </td> 69 </tr> 70 <tr> 71 <td align="right"> 72 <?php echo T_('Parent Item:'); ?> 73 </td> 74 <td> 75 <?php echo $lists['parent']; ?> 76 </td> 77 </tr> 78 <tr> 79 <td valign="top" align="right"> 80 <?php echo T_('Ordering:'); ?> 81 </td> 82 <td> 83 <?php echo $lists['ordering']; ?> 84 </td> 85 </tr> 86 <tr> 87 <td valign="top" align="right"> 88 <?php echo T_('Access Level:'); ?> 89 </td> 90 <td> 91 <?php echo $lists['access']; ?> 92 </td> 93 </tr> 94 <tr> 95 <td valign="top" align="right"><?php echo T_('Published:'); ?></td> 96 <td> 97 <?php echo $lists['published']; ?> 98 </td> 99 </tr> 100 <tr> 101 <td colspan="2"> </td> 102 </tr> 103 </table> 104 </td> 105 <td width="40%"> 106 <table class="adminform"> 107 <tr> 108 <th> 109 <?php echo T_('Parameters'); ?> 110 </th> 111 </tr> 112 <tr> 113 <td> 114 <?php echo $params->render();?> 115 </td> 116 </tr> 117 </table> 118 </td> 119 </tr> 120 </table> 121 122 <input type="hidden" name="option" value="<?php echo $option;?>" /> 123 <input type="hidden" name="id" value="<?php echo $menu->id; ?>" /> 124 <input type="hidden" name="link" value="" /> 125 <input type="hidden" name="menutype" value="<?php echo $menu->menutype; ?>" /> 126 <input type="hidden" name="type" value="<?php echo $menu->type; ?>" /> 127 <input type="hidden" name="browserNav" value="3" /> 128 <input type="hidden" name="task" value="" /> 129 <input type="hidden" name="hidemainmenu" value="0" /> 130 </form> 131 <script src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js" type="text/javascript"></script> 132 <?php 133 } 134 } 135 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed May 23 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |