| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: commonhtml.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla.Legacy 5 * @subpackage 1.5 6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 9 * to the GNU General Public License, and as distributed it includes or 10 * is derivative of works licensed under the GNU General Public License or 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 14 15 // Check to ensure this file is within the rest of the framework 16 defined('JPATH_BASE') or die(); 17 18 /** 19 * Legacy class, use {@link JHTML::_()} instead 20 * 21 * @deprecated As of version 1.5 22 * @package Joomla.Legacy 23 * @subpackage 1.5 24 */ 25 class mosCommonHTML 26 { 27 /** 28 * Legacy function, use {@link JHTML::_('legend');} instead 29 * 30 * @deprecated As of version 1.5 31 */ 32 function ContentLegend( ) 33 { 34 JHTML::addIncludePath( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_content'.DS.'html' ); 35 JHTML::_('grid.legend'); 36 } 37 38 /** 39 * Legacy function, deprecated 40 * 41 * @deprecated As of version 1.5 42 */ 43 function menuLinksContent( &$menus ) 44 { 45 foreach( $menus as $menu ) { 46 ?> 47 <tr> 48 <td colspan="2"> 49 <hr /> 50 </td> 51 </tr> 52 <tr> 53 <td width="90" valign="top"> 54 <?php echo JText::_( 'Menu' ); ?> 55 </td> 56 <td> 57 <a href="javascript:go2('go2menu','<?php echo $menu->menutype; ?>');" title="<?php echo JText::_( 'Go to Menu' ); ?>"> 58 <?php echo $menu->menutype; ?></a> 59 </td> 60 </tr> 61 <tr> 62 <td width="90" valign="top"> 63 <?php echo JText::_( 'Link Name' ); ?> 64 </td> 65 <td> 66 <strong> 67 <a href="javascript:go2('go2menuitem','<?php echo $menu->menutype; ?>','<?php echo $menu->id; ?>');" title="<?php echo JText::_( 'Go to Menu Item' ); ?>"> 68 <?php echo $menu->name; ?></a> 69 </strong> 70 </td> 71 </tr> 72 <tr> 73 <td width="90" valign="top"> 74 <?php echo JText::_( 'State' ); ?> 75 </td> 76 <td> 77 <?php 78 switch ( $menu->published ) { 79 case -2: 80 echo '<font color="red">'. JText::_( 'Trashed' ) .'</font>'; 81 break; 82 case 0: 83 echo JText::_( 'UnPublished' ); 84 break; 85 case 1: 86 default: 87 echo '<font color="green">'. JText::_( 'Published' ) .'</font>'; 88 break; 89 } 90 ?> 91 </td> 92 </tr> 93 <?php 94 } 95 ?> 96 <tr> 97 <td colspan="2"> 98 <input type="hidden" name="menu" value="" /> 99 <input type="hidden" name="menuid" value="" /> 100 </td> 101 </tr> 102 <?php 103 } 104 105 /** 106 * Legacy function, deprecated 107 * 108 * @deprecated As of version 1.5 109 */ 110 function menuLinksSecCat( &$menus ) 111 { 112 $i = 1; 113 foreach( $menus as $menu ) { 114 ?> 115 <fieldset> 116 <legend align="right"> <?php echo $i; ?>. </legend> 117 118 <table class="admintable"> 119 <tr> 120 <td valign="top" class="key"> 121 <?php echo JText::_( 'Menu' ); ?> 122 </td> 123 <td> 124 <a href="javascript:go2('go2menu','<?php echo $menu->menutype; ?>');" title="<?php echo JText::_( 'Go to Menu' ); ?>"> 125 <?php echo $menu->menutype; ?></a> 126 </td> 127 </tr> 128 <tr> 129 <td valign="top" class="key"> 130 <?php echo JText::_( 'Type' ); ?> 131 </td> 132 <td> 133 <?php echo $menu->type; ?> 134 </td> 135 </tr> 136 <tr> 137 <td valign="top" class="key"> 138 <?php echo JText::_( 'Item Name' ); ?> 139 </td> 140 <td> 141 <strong> 142 <a href="javascript:go2('go2menuitem','<?php echo $menu->menutype; ?>','<?php echo $menu->id; ?>');" title="<?php echo JText::_( 'Go to Menu Item' ); ?>"> 143 <?php echo $menu->name; ?></a> 144 </strong> 145 </td> 146 </tr> 147 <tr> 148 <td valign="top" class="key"> 149 <?php echo JText::_( 'State' ); ?> 150 </td> 151 <td> 152 <?php 153 switch ( $menu->published ) { 154 case -2: 155 echo '<font color="red">'. JText::_( 'Trashed' ) .'</font>'; 156 break; 157 case 0: 158 echo JText::_( 'UnPublished' ); 159 break; 160 case 1: 161 default: 162 echo '<font color="green">'. JText::_( 'Published' ) .'</font>'; 163 break; 164 } 165 ?> 166 </td> 167 </tr> 168 </table> 169 </fieldset> 170 <?php 171 $i++; 172 } 173 ?> 174 <input type="hidden" name="menu" value="" /> 175 <input type="hidden" name="menuid" value="" /> 176 <?php 177 } 178 179 /** 180 * Legacy function, use {@link JHTMLGrid::checkedOut()} instead 181 * 182 * @deprecated As of version 1.5 183 */ 184 function checkedOut( &$row, $overlib=1 ) 185 { 186 jimport('joomla.html.html.grid'); 187 return JHTML::_('grid.checkedOut',$row, $overlib); 188 } 189 190 /** 191 * Legacy function, use {@link JHTML::_('behavior.tooltip')} instead 192 * 193 * @deprecated As of version 1.5 194 */ 195 function loadOverlib() 196 { 197 JHTML::_('behavior.tooltip'); 198 } 199 200 /** 201 * Legacy function, use {@link JHTML::_('behavior.calendar')} instead 202 * 203 * @deprecated As of version 1.5 204 */ 205 function loadCalendar() 206 { 207 JHTML::_('behavior.calendar'); 208 } 209 210 /** 211 * Legacy function, use {@link JHTML::_('grid.access')} instead 212 * 213 * @deprecated As of version 1.5 214 */ 215 function AccessProcessing( &$row, $i, $archived=NULL ) 216 { 217 return JHTML::_('grid.access', $row, $i, $archived); 218 } 219 220 /** 221 * Legacy function, use {@link JHTML::_('grid.checkedout')} instead 222 * 223 * @deprecated As of version 1.5 224 */ 225 function CheckedOutProcessing( &$row, $i ) 226 { 227 return JHTML::_('grid.checkedout', $row, $i); 228 } 229 230 /** 231 * Legacy function, use {@link JHTML::_('grid.published')} instead 232 * 233 * @deprecated As of version 1.5 234 */ 235 function PublishedProcessing( &$row, $i, $imgY='tick.png', $imgX='publish_x.png' ) 236 { 237 return JHTML::_('grid.published',$row, $i, $imgY, $imgX); 238 } 239 240 /** 241 * Legacy function, use {@link JHTML::_('grid.state')} instead 242 * 243 * @deprecated As of version 1.5 244 */ 245 function selectState( $filter_state=NULL, $published='Published', $unpublished='Unpublished', $archived=NULL ) 246 { 247 return JHTML::_('grid.state', $filter_state, $published, $unpublished, $archived); 248 } 249 250 /** 251 * Legacy function, use {@link JHTML::_('grid.order')} instead 252 * 253 * @deprecated As of version 1.5 254 */ 255 function saveorderButton( $rows, $image='filesave.png' ) 256 { 257 echo JHTML::_('grid.order', $rows, $image); 258 } 259 260 /** 261 * Legacy function, use {@link echo JHTML::_('grid.sort')} instead 262 * 263 * @deprecated As of version 1.5 264 */ 265 function tableOrdering( $text, $ordering, &$lists, $task=NULL ) 266 { 267 // TODO: We may have to invert order_Dir here because this control now does the flip for you 268 echo JHTML::_('grid.sort', $text, $ordering, @$lists['order_Dir'], @$lists['order'], $task); 269 } 270 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |