| [ 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 content_blog_section_html { 27 28 function edit( &$menu, &$lists, &$params, $option ) { 29 /* in the HTML below, references to "section" were changed to "section" */ 30 global $mosConfig_live_site; 31 ?> 32 <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> 33 <script type="text/javascript"> 34 function submitbutton(pressbutton) { 35 if (pressbutton == 'cancel') { 36 submitform( pressbutton ); 37 return; 38 } 39 var form = document.adminForm; 40 <?php 41 if ( !$menu->id ) { 42 ?> 43 if ( form.name.value == '' ) { 44 alert( '<?php echo T_('This Menu item must have a title'); ?>' ); 45 return; 46 } else { 47 submitform( pressbutton ); 48 } 49 <?php 50 } else { 51 ?> 52 if ( form.name.value == '' ) { 53 alert( '<?php echo T_('This Menu item must have a title'); ?>' ); 54 } else { 55 submitform( pressbutton ); 56 } 57 <?php 58 } 59 ?> 60 } 61 </script> 62 63 <form action="index2.php" method="post" name="adminForm"> 64 65 <table class="adminheading"> 66 <tr> 67 <th> 68 <?php echo $menu->id ? T_('Edit') : T_('Add');?> <?php echo T_('Menu Item :: Blog - Content Section'); ?> 69 </th> 70 </tr> 71 </table> 72 73 <table width="100%"> 74 <tr valign="top"> 75 <td width="60%"> 76 <table class="adminform"> 77 <tr> 78 <th colspan="3"> 79 <?php echo T_('Details'); ?> 80 </th> 81 </tr> 82 <tr> 83 <td width="10%" align="right"><?php echo T_('Name:'); ?></td> 84 <td width="200px"> 85 <input class="inputbox" type="text" name="name" size="30" maxlength="100" value="<?php echo $menu->name; ?>" /> 86 </td> 87 <td> 88 </td> 89 </tr> 90 <tr> 91 <td valign="top" align="right"> 92 <?php echo T_('Section:'); ?> 93 </td> 94 <td> 95 <?php echo $lists['sectionid']; ?> 96 </td> 97 <td valign="top"> 98 <?php 99 echo mosToolTip( T_('You can select multiple Sections') ) 100 ?> 101 </td> 102 </tr> 103 <tr> 104 <td align="right"><?php echo T_('Url:'); ?></td> 105 <td colspan="2"> 106 <?php echo $lists['link']; ?> 107 </td> 108 </tr> 109 <tr> 110 <td align="right"><?php echo T_('Parent Item:'); ?></td> 111 <td colspan="2"> 112 <?php echo $lists['parent'];?> 113 </td> 114 </tr> 115 <tr> 116 <td valign="top" align="right"><?php echo T_('Ordering:'); ?></td> 117 <td colspan="2"> 118 <?php echo $lists['ordering']; ?> 119 </td> 120 </tr> 121 <tr> 122 <td valign="top" align="right"><?php echo T_('Access Level:'); ?></td> 123 <td colspan="2"> 124 <?php echo $lists['access']; ?> 125 </td> 126 </tr> 127 <tr> 128 <td valign="top" align="right"><?php echo T_('Published:'); ?></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="index.php?option=com_content&task=blogsection&id=0" /> 160 <input type="hidden" name="componentid" value="0" /> 161 <input type="hidden" name="task" value="" /> 162 <input type="hidden" name="hidemainmenu" value="0" /> 163 </form> 164 <script src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js" type="text/javascript"></script> 165 <?php 166 } 167 } 168 ?>
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 |