| [ 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 newsfeed_category_table_menu_html { 27 28 function editCategory( &$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 <?php 40 if ( !$menu->id ) { 41 ?> 42 if ( getSelectedValue( 'adminForm', 'componentid' ) < 1 ) { 43 alert( '<?php echo T_('You must select a category'); ?>' ); 44 return; 45 } 46 cat = getSelectedText( 'adminForm', 'componentid' ); 47 48 form.link.value = "index.php?option=com_newsfeeds&catid=" + form.componentid.value; 49 if ( form.name.value == '' ) { 50 form.name.value = cat; 51 } 52 submitform( pressbutton ); 53 <?php 54 } else { 55 ?> 56 if ( form.name.value == '' ) { 57 alert( '<?php echo T_('This Menu item must have a title'); ?>' ); 58 } else { 59 submitform( pressbutton ); 60 } 61 <?php 62 } 63 ?> 64 } 65 </script> 66 <form action="index2.php" method="post" name="adminForm"> 67 <table class="adminheading"> 68 <tr> 69 <th> 70 <?php echo $menu->id ? T_('Edit') : T_('Add');?> <?php echo T_('Menu Item :: Table - News Feed Category'); ?> 71 </th> 72 </tr> 73 </table> 74 75 <table width="100%"> 76 <tr valign="top"> 77 <td width="60%"> 78 <table class="adminform"> 79 <tr> 80 <th colspan="3"> 81 <?php echo T_('Details'); ?> 82 </th> 83 </tr> 84 <tr> 85 <td width="10%" align="right" valign="top"> 86 <?php echo T_('Name:'); ?> 87 </td> 88 <td width="200px"> 89 <input type="text" name="name" size="30" maxlength="100" class="inputbox" value="<?php echo $menu->name; ?>"/> 90 </td> 91 <td> 92 <?php 93 if ( !$menu->id ) { 94 echo mosToolTip( T_('If you leave this blank the Category name will be automatically used') ); 95 } 96 ?> 97 </td> 98 </tr> 99 <tr> 100 <td width="10%" align="right" valign="top"> 101 <?php echo T_('Category:'); ?> 102 </td> 103 <td colspan="2"> 104 <?php echo $lists['componentid']; ?> 105 </td> 106 </tr> 107 <tr> 108 <td align="right"> 109 <?php echo T_('Url:'); ?> 110 </td> 111 <td colspan="2"> 112 <?php echo $lists['link']; ?> 113 </td> 114 </tr> 115 <tr> 116 <td align="right"> 117 <?php echo T_('Parent Item:'); ?> 118 </td> 119 <td colspan="2"> 120 <?php echo $lists['parent'];?> 121 </td> 122 </tr> 123 <tr> 124 <td valign="top" align="right"> 125 <?php echo T_('Ordering:'); ?> 126 </td> 127 <td colspan="2"> 128 <?php echo $lists['ordering']; ?> 129 </td> 130 </tr> 131 <tr> 132 <td valign="top" align="right"> 133 <?php echo T_('Access Level:'); ?> 134 </td> 135 <td colspan="2"> 136 <?php echo $lists['access']; ?> 137 </td> 138 </tr> 139 <tr> 140 <td valign="top" align="right"> 141 <?php echo T_('Published:'); ?> 142 </td> 143 <td colspan="2"> 144 <?php echo $lists['published']; ?> 145 </td> 146 </tr> 147 <tr> 148 <td colspan="3"> </td> 149 </tr> 150 </table> 151 </td> 152 <td width="40%"> 153 <table class="adminform"> 154 <tr> 155 <th> 156 <?php echo T_('Parameters'); ?> 157 </th> 158 </tr> 159 <tr> 160 <td> 161 <?php echo $params->render();?> 162 </td> 163 </tr> 164 </table> 165 </td> 166 </tr> 167 </table> 168 169 <input type="hidden" name="option" value="<?php echo $option;?>" /> 170 <input type="hidden" name="id" value="<?php echo $menu->id; ?>" /> 171 <input type="hidden" name="menutype" value="<?php echo $menu->menutype; ?>" /> 172 <input type="hidden" name="type" value="<?php echo $menu->type; ?>" /> 173 <input type="hidden" name="link" value="<?php echo $menu->link; ?>" /> 174 <input type="hidden" name="task" value="" /> 175 <input type="hidden" name="hidemainmenu" value="0" /> 176 </form> 177 <script src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js" type="text/javascript"></script> 178 <?php 179 } 180 } 181 ?>
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 |