'. JText::_( 'Writable' ) .'';
$unwriteable = ''. JText::_( 'Unwritable' ) .'';
echo '';
echo '';
echo $text;
if ( $visible ) {
echo $folder . '/';
}
echo ' | ';
echo '';
if ( $relative ) {
echo is_writable( "../$folder" ) ? $writeable : $unwriteable;
} else {
echo is_writable( "$folder" ) ? $writeable : $unwriteable;
}
echo ' | ';
echo '
';
}
/**
* 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 = "
";
}
$html = ""
. JText::_( $text )
. ' '
. $img
. "";
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 ) {
?>
get( 'back_button' ) && !$params->get( 'popup' ) && !$hide_js) {
?>
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
?>
|