| [ 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 * Display wrapper 22 */ 23 class wrapper_menu_html { 24 25 26 function edit( &$menu, &$lists, &$params, $option ) { 27 global $mosConfig_live_site; 28 ?> 29 <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> 30 <script src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js" type="text/javascript"></script> 31 <script type="text/javascript"> 32 function submitbutton(pressbutton) { 33 if ( pressbutton == 'cancel' ) { 34 submitform( pressbutton ); 35 return; 36 } 37 var form = document.adminForm; 38 if ( form.name.value == "" ) { 39 alert( '<?php echo T_('This Menu item must have a title'); ?>' ); 40 } else { 41 <?php 42 if ( !$menu->id ) { 43 ?> 44 if ( form.url.value == "" ){ 45 alert( "<?php echo T_('You must provide a url.'); ?>" ); 46 } else { 47 submitform( pressbutton ); 48 } 49 <?php 50 } else { 51 ?> 52 submitform( pressbutton ); 53 <?php 54 } 55 ?> 56 } 57 } 58 </script> 59 <form action="index2.php" method="post" name="adminForm"> 60 <table class="adminheading"> 61 <tr> 62 <th> 63 <?php echo $menu->id ? T_('Edit') : T_('Add');?> <?php echo T_('Menu Item :: Wrapper'); ?> 64 </th> 65 </tr> 66 </table> 67 68 <table width="100%"> 69 <tr valign="top"> 70 <td width="60%"> 71 <table class="adminform"> 72 <tr> 73 <th colspan="2"> 74 <?php echo T_('Details'); ?> 75 </th> 76 </tr> 77 <tr> 78 <td width="10%" align="right" valign="top"> 79 <?php echo T_('Name:'); ?> 80 </td> 81 <td width="200px"> 82 <input type="text" name="name" size="30" maxlength="100" class="inputbox" value="<?php echo $menu->name; ?>"/> 83 </td> 84 </tr> 85 <tr> 86 <td width="20%" align="right"> 87 <?php echo T_('Wrapper Link:'); ?> 88 </td> 89 <td width="80%"> 90 <input class="inputbox" type="text" name="url" size="50" maxlength="250" value="<?php echo @$menu->url; ?>" /> 91 </td> 92 </tr> 93 <tr> 94 <td width="10%" align="right"> 95 <?php echo T_('Url:'); ?> 96 </td> 97 <td width="80%"> 98 <?php echo $lists['link']; ?> 99 </td> 100 </tr> 101 <tr> 102 <td align="right"> 103 <?php echo T_('Parent Item:'); ?> 104 </td> 105 <td colspan="2"> 106 <?php echo $lists['parent'];?> 107 </td> 108 </tr> 109 <tr> 110 <td valign="top" align="right"> 111 <?php echo T_('Ordering:'); ?> 112 </td> 113 <td colspan="2"> 114 <?php echo $lists['ordering']; ?> 115 </td> 116 </tr> 117 <tr> 118 <td valign="top" align="right"> 119 <?php echo T_('Access Level:'); ?> 120 </td> 121 <td colspan="2"> 122 <?php echo $lists['access']; ?> 123 </td> 124 </tr> 125 <tr> 126 <td valign="top" align="right"> 127 <?php echo T_('Published:'); ?> 128 </td> 129 <td colspan="2"> 130 <?php echo $lists['published']; ?> 131 </td> 132 </tr> 133 <tr> 134 <td colspan="3"> </td> 135 </tr> 136 </table> 137 </td> 138 <td width="40%"> 139 <table class="adminform"> 140 <tr> 141 <th> 142 <?php echo T_('Parameters'); ?> 143 </th> 144 </tr> 145 <tr> 146 <td> 147 <?php echo $params->render();?> 148 </td> 149 </tr> 150 </table> 151 </td> 152 </tr> 153 </table> 154 155 <input type="hidden" name="option" value="<?php echo $option;?>" /> 156 <input type="hidden" name="id" value="<?php echo $menu->id; ?>" /> 157 <input type="hidden" name="menutype" value="<?php echo $menu->menutype; ?>" /> 158 <input type="hidden" name="type" value="<?php echo $menu->type; ?>" /> 159 <input type="hidden" name="link" value="<?php echo $menu->link; ?>" /> 160 <input type="hidden" name="task" value="" /> 161 <input type="hidden" name="hidemainmenu" value="0" /> 162 </form> 163 <?php 164 } 165 166 } 167 ?>
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 |