| [ 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 url_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 var form = document.adminForm; 35 if (pressbutton == 'cancel') { 36 submitform( pressbutton ); 37 return; 38 } 39 40 // do field validation 41 if (trim(form.name.value) == ""){ 42 alert( "<?php echo T_('Link must have a name'); ?>" ); 43 } else if (trim(form.link.value) == ""){ 44 alert( "<?php echo T_('You must provide a url.'); ?>" ); 45 } else { 46 submitform( pressbutton ); 47 } 48 } 49 </script> 50 51 <form action="index2.php" method="post" name="adminForm"> 52 <table class="adminheading"> 53 <tr> 54 <th> 55 <?php echo $menu->id ? T_('Edit') : T_('Add');?> <?php echo T_('Menu Item :: Link - URL'); ?> 56 </th> 57 </tr> 58 </table> 59 60 <table width="100%"> 61 <tr valign="top"> 62 <td width="60%"> 63 <table class="adminform"> 64 <tr> 65 <th colspan="2"> 66 <?php echo T_('Details'); ?> 67 </th> 68 </tr> 69 <tr> 70 <td width="20%" align="right"> 71 <?php echo T_('Name:'); ?> 72 </td> 73 <td width="80%"> 74 <input class="inputbox" type="text" name="name" size="50" maxlength="150" value="<?php echo $menu->name; ?>" /> 75 </td> 76 </tr> 77 <tr> 78 <td width="20%" align="right"> 79 <?php echo T_('Link:'); ?> 80 </td> 81 <td width="80%"> 82 <input class="inputbox" type="text" name="link" size="50" maxlength="250" value="<?php echo $menu->link; ?>" /> 83 </td> 84 </tr> 85 <tr> 86 <td valign="top" align="right"> 87 <?php echo T_('On Click, Open in:'); ?> 88 </td> 89 <td> 90 <?php echo $lists['target']; ?> 91 </td> 92 </tr> 93 <tr> 94 <td align="right"> 95 <?php echo T_('Parent Item:'); ?> 96 </td> 97 <td> 98 <?php echo $lists['parent']; ?> 99 </td> 100 </tr> 101 <tr> 102 <td valign="top" align="right"> 103 <?php echo T_('Ordering:'); ?> 104 </td> 105 <td> 106 <?php echo $lists['ordering']; ?> 107 </td> 108 </tr> 109 <tr> 110 <td valign="top" align="right"> 111 <?php echo T_('Access Level:'); ?> 112 </td> 113 <td> 114 <?php echo $lists['access']; ?> 115 </td> 116 </tr> 117 <tr> 118 <td valign="top" align="right"> 119 <?php echo T_('Published:'); ?> 120 </td> 121 <td> 122 <?php echo $lists['published']; ?> 123 </td> 124 </tr> 125 </table> 126 </td> 127 <td width="40%"> 128 <table class="adminform"> 129 <tr> 130 <th> 131 <?php echo T_('Parameters'); ?> 132 </th> 133 </tr> 134 <tr> 135 <td> 136 <?php echo $params->render();?> 137 </td> 138 </tr> 139 </table> 140 </td> 141 </tr> 142 </table> 143 144 <input type="hidden" name="option" value="<?php echo $option;?>" /> 145 <input type="hidden" name="id" value="<?php echo $menu->id; ?>" /> 146 <input type="hidden" name="menutype" value="<?php echo $menu->menutype; ?>" /> 147 <input type="hidden" name="type" value="<?php echo $menu->type; ?>" /> 148 <input type="hidden" name="task" value="" /> 149 <input type="hidden" name="hidemainmenu" value="0" /> 150 </form> 151 <script src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js" type="text/javascript"></script> 152 <?php 153 } 154 155 156 } 157 ?>
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 |