:
getNullDate(); for ($i=0, $n=count( $rows ); $i < $n; $i++) { $row = &$rows[$i]; $link = 'index.php?option=com_content§ionid='. $redirect .'&task=edit&cid[]='. $row->id; $row->sect_link = JRoute::_( 'index.php?option=com_sections&task=edit&cid[]='. $row->sectionid ); $row->cat_link = JRoute::_( 'index.php?option=com_categories&task=edit&cid[]='. $row->catid ); $publish_up =& JFactory::getDate($row->publish_up); $publish_down =& JFactory::getDate($row->publish_down); $publish_up->setOffset($config->getValue('config.offset')); $publish_down->setOffset($config->getValue('config.offset')); if ( $now->toUnix() <= $publish_up->toUnix() && $row->state == 1 ) { $img = 'publish_y.png'; $alt = JText::_( 'Published' ); } else if ( ( $now->toUnix() <= $publish_down->toUnix() || $row->publish_down == $nullDate ) && $row->state == 1 ) { $img = 'publish_g.png'; $alt = JText::_( 'Published' ); } else if ( $now->toUnix() > $publish_down->toUnix() && $row->state == 1 ) { $img = 'publish_r.png'; $alt = JText::_( 'Expired' ); } else if ( $row->state == 0 ) { $img = 'publish_x.png'; $alt = JText::_( 'Unpublished' ); } else if ( $row->state == -1 ) { $img = 'disabled.png'; $alt = JText::_( 'Archived' ); } $times = ''; if (isset($row->publish_up)) { if ($row->publish_up == $nullDate) { $times .= JText::_( 'Start: Always' ); } else { $times .= JText::_( 'Start' ) .": ". $publish_up->toFormat(); } } if (isset($row->publish_down)) { if ($row->publish_down == $nullDate) { $times .= "
". JText::_( 'Finish: No Expiry' ); } else { $times .= "
". JText::_( 'Finish' ) .": ". $publish_down->toFormat(); } } if ( $user->authorize( 'com_users', 'manage' ) ) { if ( $row->created_by_alias ) { $author = $row->created_by_alias; } else { $linkA = 'index.php?option=com_users&task=edit&cid[]='. $row->created_by; $author = ''. $row->author .''; } } else { if ( $row->created_by_alias ) { $author = $row->created_by_alias; } else { $author = $row->author; } } $access = JHTML::_('grid.access', $row, $i, $row->state ); $checked = JHTML::_('grid.checkedout', $row, $i ); ?> ">
getListFooter(); ?>
getRowOffset( $i ); ?> get ('id'), $row->checked_out ) ) { echo $row->title; } else if ($row->state == -1) { echo htmlspecialchars($row->title, ENT_QUOTES, 'UTF-8'); echo ' [ '. JText::_( 'Archived' ) .' ]'; } else { ?> title, ENT_QUOTES); ?> <?php echo $alt; ?> <?php echo ( $row->frontpage ) ? JText::_( 'Yes' ) : JText::_( 'No' );?> orderUpIcon( $i, ($row->catid == @$rows[$i-1]->catid), 'orderup', 'Move Up', $ordering); ?> orderDownIcon( $i, $n, ($row->catid == @$rows[$i+1]->catid), 'orderdown', 'Move Down', $ordering ); ?> class="text_area" style="text-align: center" /> section_name; ?> name; ?> created, JText::_('DATE_FORMAT_LC4') ); ?> hits ?> id; ?>
:
cat_link = JRoute::_( 'index.php?option=com_categories&task=edit&cid[]='. $row->catid ); $row->sec_link = JRoute::_( 'index.php?option=com_sections&task=edit&cid[]='. $row->sectionid ); if ( $user->authorize( 'com_users', 'manage' ) ) { if ( $row->created_by_alias ) { $author = $row->created_by_alias; } else { $linkA = JRoute::_( 'index.php?option=com_users&task=edit&cid[]='. $row->created_by ); $author = ''. $row->author .''; } } else { if ( $row->created_by_alias ) { $author = $row->created_by_alias; } else { $author = $row->author; } } ?> ">
getListFooter(); ?>
getRowOffset( $i ); ?> id ); ?> title; ?> id; ?> sectname; ?> name; ?> created, JText::_( 'DATE_FORMAT_LC4' ) ); ?>
$row is passed with the id * property set to 0. * @param JTableContent The category object * @param string The html for the groups select list */ function editContent( &$row, $section, &$lists, &$sectioncategories, $option, &$form ) { JRequest::setVar( 'hidemainmenu', 1 ); jimport('joomla.html.pane'); JFilterOutput::objectHTMLSafe( $row ); $db = &JFactory::getDBO(); $editor = &JFactory::getEditor(); // TODO: allowAllClose should default true in J!1.6, so remove the array when it does. $pane = &JPane::getInstance('sliders', array('allowAllClose' => true)); JHTML::_('behavior.tooltip'); ?>
display( 'text', $row->text , '100%', '550', '75', '20' ) ; ?>
startPane("content-pane"); echo $pane->startPanel( $title, "detail-page" ); echo $form->render('details'); $title = JText::_( 'Parameters - Advanced' ); echo $pane->endPanel(); echo $pane->startPanel( $title, "params-page" ); echo $form->render('params', 'advanced'); $title = JText::_( 'Metadata Information' ); echo $pane->endPanel(); echo $pane->startPanel( $title, "metadata-page" ); echo $form->render('meta', 'metadata'); echo $pane->endPanel(); echo $pane->endPane(); ?>
:


:
"; foreach ( $items as $item ) { echo "
  • ". $item->title ."
  • "; } echo ""; ?>


    "; } ?>
    :


    :
    "; foreach ( $items as $item ) { echo "
  • ". $item->title ."
  • "; } echo ""; ?>


    "; } ?>
    setLink(JURI::root()); JHTML::_('behavior.caption'); ?>
    getNullDate(); // used to hide "Reset Hits" when hits = 0 if ( !$row->hits ) { $visibility = 'style="display: none; visibility: hidden;"'; } else { $visibility = ''; } ?> id ) { ?>
    : id; ?>
    state > 0 ? JText::_( 'Published' ) : ($row->state < 0 ? JText::_( 'Archived' ) : JText::_( 'Draft Unpublished' ) );?>
    hits;?> >
    version;?>
    created == $nullDate ) { echo JText::_( 'New document' ); } else { echo JHTML::_('date', $row->created, JText::_('DATE_FORMAT_LC2') ); } ?>
    modified == $nullDate ) { echo JText::_( 'Not modified' ); } else { echo JHTML::_('date', $row->modified, JText::_('DATE_FORMAT_LC2')); } ?>