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