Files
@ 51a566e6db62
Branch filter:
Location: hot67beta/plugins/system/legacy/html.php - annotation
51a566e6db62
9.8 KiB
text/x-php
header kill
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 | c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 c7d7e38b2269 | <?php
/**
* @version $Id: html.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla.Legacy
* @subpackage 1.5
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();
/**
* Legacy class, use {@link JHTML} instead
*
* @deprecated As of version 1.5
* @package Joomla.Legacy
* @subpackage 1.5
*/
class mosHTML
{
/**
* Legacy function, use {@link JHTML::_('select.option')} instead
*
* @deprecated As of version 1.5
*/
function makeOption( $value, $text='', $value_name='value', $text_name='text' )
{
return JHTML::_('select.option', $value, $text, $value_name, $text_name);
}
/**
* Legacy function, use {@link JHTML::_('select.genericlist')} instead
*
* @deprecated As of version 1.5
*/
function selectList( &$arr, $tag_name, $tag_attribs, $key, $text, $selected=NULL, $idtag=false, $flag=false )
{
return JHTML::_('select.genericlist', $arr, $tag_name, $tag_attribs, $key, $text, $selected, $idtag, $flag );
}
/**
* Legacy function, use {@link JHTML::_('select.integerlist')} instead
*
* @deprecated As of version 1.5
*/
function integerSelectList( $start, $end, $inc, $tag_name, $tag_attribs, $selected, $format="" )
{
return JHTML::_('select.integerlist', $start, $end, $inc, $tag_name, $tag_attribs, $selected, $format) ;
}
/**
* Legacy function, use {@link JHTML::_('select.radiolist')} instead
*
* @deprecated As of version 1.5
*/
function radioList( &$arr, $tag_name, $tag_attribs, $selected=null, $key='value', $text='text', $idtag=false )
{
return JHTML::_('select.radiolist', $arr, $tag_name, $tag_attribs, $key, $text, $selected, $idtag) ;
}
/**
* Legacy function, use {@link JHTML::_('select.booleanlist')} instead
*
* @deprecated As of version 1.5
*/
function yesnoRadioList( $tag_name, $tag_attribs, $selected, $yes='yes', $no='no', $id=false )
{
return JHTML::_('select.booleanlist', $tag_name, $tag_attribs, $selected, $yes, $no, $id ) ;
}
/**
* Legacy function, deprecated
*
* @deprecated As of version 1.5
*/
function writableCell( $folder, $relative=1, $text='', $visible=1 )
{
$writeable = '<b><font color="green">'. JText::_( 'Writable' ) .'</font></b>';
$unwriteable = '<b><font color="red">'. JText::_( 'Unwritable' ) .'</font></b>';
echo '<tr>';
echo '<td class="item">';
echo $text;
if ( $visible ) {
echo $folder . '/';
}
echo '</td>';
echo '<td >';
if ( $relative ) {
echo is_writable( "../$folder" ) ? $writeable : $unwriteable;
} else {
echo is_writable( "$folder" ) ? $writeable : $unwriteable;
}
echo '</td>';
echo '</tr>';
}
/**
* Legacy function, deprecated
*
* @deprecated As of version 1.5
*/
function monthSelectList( $tag_name, $tag_attribs, $selected )
{
$arr = array(
mosHTML::makeOption( '01', JText::_( 'JANUARY_SHORT' ) ),
mosHTML::makeOption( '02', JText::_( 'FEBRUARY_SHORT' ) ),
mosHTML::makeOption( '03', JText::_( 'MARCH_SHORT' ) ),
mosHTML::makeOption( '04', JText::_( 'APRIL_SHORT' ) ),
mosHTML::makeOption( '05', JText::_( 'MAY_SHORT' ) ),
mosHTML::makeOption( '06', JText::_( 'JUNE_SHORT' ) ),
mosHTML::makeOption( '07', JText::_( 'JULY_SHORT' ) ),
mosHTML::makeOption( '08', JText::_( 'AUGUST_SHORT' ) ),
mosHTML::makeOption( '09', JText::_( 'SEPTEMBER_SHORT' ) ),
mosHTML::makeOption( '10', JText::_( 'OCTOBER_SHORT' ) ),
mosHTML::makeOption( '11', JText::_( 'NOVEMBER_SHORT' ) ),
mosHTML::makeOption( '12', JText::_( 'DECEMBER_SHORT' ) )
);
return mosHTML::selectList( $arr, $tag_name, $tag_attribs, 'value', 'text', $selected );
}
/**
* Legacy function, deprecated
*
* @deprecated As of version 1.5
*/
function treeSelectList( &$src_list, $src_id, $tgt_list, $tag_name, $tag_attribs, $key, $text, $selected )
{
// establish the hierarchy of the menu
$children = array();
// first pass - collect children
foreach ($src_list as $v ) {
$pt = $v->parent;
$list = @$children[$pt] ? $children[$pt] : array();
array_push( $list, $v );
$children[$pt] = $list;
}
// second pass - get an indent list of the items
$ilist = JHTML::_('menu.treerecurse', 0, '', array(), $children );
// assemble menu items to the array
$this_treename = '';
foreach ($ilist as $item) {
if ($this_treename) {
if ($item->id != $src_id && strpos( $item->treename, $this_treename ) === false) {
$tgt_list[] = mosHTML::makeOption( $item->id, $item->treename );
}
} else {
if ($item->id != $src_id) {
$tgt_list[] = mosHTML::makeOption( $item->id, $item->treename );
} else {
$this_treename = "$item->treename/";
}
}
}
// build the html select list
return mosHTML::selectList( $tgt_list, $tag_name, $tag_attribs, $key, $text, $selected );
}
/**
* Legacy function, deprecated
*
* @deprecated As of version 1.5
*/
function yesnoSelectList( $tag_name, $tag_attribs, $selected, $yes='yes', $no='no' )
{
$arr = array(
mosHTML::makeOption( 0, JText::_( $no ) ),
mosHTML::makeOption( 1, JText::_( $yes ) ),
);
return mosHTML::selectList( $arr, $tag_name, $tag_attribs, 'value', 'text', (int) $selected );
}
/**
* Legacy function, use {@link JHTML::_('grid.id')} instead
*
* @deprecated As of version 1.5
*/
function idBox( $rowNum, $recId, $checkedOut=false, $name='cid' )
{
return JHTML::_('grid.id', $rowNum, $recId, $checkedOut, $name);
}
/**
* Legacy function, deprecated
*
* @deprecated As of version 1.5
*/
function sortIcon( $text, $base_href, $field, $state='none' )
{
$alts = array(
'none' => JText::_( 'No Sorting' ),
'asc' => JText::_( 'Sort Ascending' ),
'desc' => JText::_( 'Sort Descending' ),
);
$next_state = 'asc';
if ($state == 'asc') {
$next_state = 'desc';
} else if ($state == 'desc') {
$next_state = 'none';
}
if ($state == 'none') {
$img = '';
} else {
$img = "<img src=\"images/sort_$state.png\" width=\"12\" height=\"12\" border=\"0\" alt=\"{$alts[$next_state]}\" />";
}
$html = "<a href=\"$base_href&field=$field&order=$next_state\">"
. JText::_( $text )
. ' '
. $img
. "</a>";
return $html;
}
/**
* Legacy function, deprecated
*
* @deprecated As of version 1.5
*/
function CloseButton ( &$params, $hide_js=NULL )
{
// displays close button in Pop-up window
if ( $params->get( 'popup' ) && !$hide_js ) {
?>
<div align="center" style="margin-top: 30px; margin-bottom: 30px;">
<script type="text/javascript">
document.write('<a href="#" onclick="javascript:window.close();"><span class="small"><?php echo JText::_( 'Close Window' );?></span></a>');
</script>
<?php
if ( $_SERVER['HTTP_REFERER'] != "") {
echo '<noscript>';
echo '<a href="'. $_SERVER['HTTP_REFERER'] .'"><span class="small">'. JText::_( 'BACK' ) .'</span></a>';
echo '</noscript>';
}
?>
</div>
<?php
}
}
/**
* Legacy function, deprecated
*
* @deprecated As of version 1.5
*/
function BackButton ( &$params, $hide_js=NULL )
{
// Back Button
if ( $params->get( 'back_button' ) && !$params->get( 'popup' ) && !$hide_js) {
?>
<div class="back_button">
<a href='javascript:history.go(-1)'>
<?php echo JText::_( 'BACK' ); ?></a>
</div>
<?php
}
}
/**
* Legacy function, use {@link JFilterOutput::cleanText()} instead
*
* @deprecated As of version 1.5
*/
function cleanText ( &$text ) {
return JFilterOutput::cleanText($text);
}
/**
* Legacy function, deprecated
*
* @deprecated As of version 1.5
*/
function PrintIcon( &$row, &$params, $hide_js, $link, $status=NULL )
{
if ( $params->get( 'print' ) && !$hide_js ) {
// use default settings if none declared
if ( !$status ) {
$status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no';
}
// checks template image directory for image, if non found default are loaded
if ( $params->get( 'icons' ) ) {
$image = mosAdminMenus::ImageCheck( 'printButton.png', '/images/M_images/', NULL, NULL, JText::_( 'Print' ), JText::_( 'Print' ) );
} else {
$image = JText::_( 'ICON_SEP' ) .' '. JText::_( 'Print' ) .' '. JText::_( 'ICON_SEP' );
}
if ( $params->get( 'popup' ) && !$hide_js ) {
// Print Preview button - used when viewing page
?>
<script type="text/javascript">
document.write('<td align="right" width="100%" class="buttonheading">');
document.write('<a href="#" onclick="javascript:window.print(); return false" title="<?php echo JText::_( 'Print' );?>">');
document.write('<?php echo $image;?>');
document.write('</a>');
document.write('</td>');
</script>
<?php
} else {
// Print Button - used in pop-up window
?>
<td align="right" width="100%" class="buttonheading">
<a href="<?php echo $link; ?>" onclick="window.open('<?php echo $link; ?>','win2','<?php echo $status; ?>'); return false;" title="<?php echo JText::_( 'Print' );?>">
<?php echo $image;?></a>
</td>
<?php
}
}
}
/**
* Legacy function, use {@link JHTML::_('email.cloak')} instead
*
* @deprecated As of version 1.5
*/
function emailCloaking( $mail, $mailto=1, $text='', $email=1 )
{
return JHTML::_('email.cloak', $mail, $mailto, $text, $email);
}
/**
* Legacy function, use {@link JHTML::_('behavior.keepalive')} instead
*
* @deprecated As of version 1.5
*/
function keepAlive()
{
echo JHTML::_('behavior.keepalive');
}
}
|