| Server IP : 180.180.241.3 / Your IP : 216.73.216.35 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/components/com_jevents/views/default/helpers/ |
Upload File : |
<?php
defined('_JEXEC') or die('Restricted access');
function DefaultViewEventRowAdmin($view,$row, $manage=false){
$modifylink = "";
if (!$manage && JEVHelper::canEditEvent($row)){
$modifylink = '<a href="' . $row->editlink(true) . '" title="' . JText::_('JEV_MODIFY') . '"><b>' . JText::_('JEV_MODIFY') . "</b></a>\n";
}
$deletelink = "";
if (!$manage && JEVHelper::canDeleteEvent($row)){
$deletelink = '<a href="' . $row->deletelink(false)."&rettask=admin.listevents" . '" title="'. JText::_('JEV_DELETE') . '"><b>' . JText::_('JEV_DELETE') . "</b></a>\n";
}
if (!$manage && JEVHelper::canPublishEvent($row)){
if ($row->published()){
$publishlink = '<a href="' . $row->unpublishlink(false)."&rettask=admin.listevents" . '" title="' . JText::_('UNPUBLISH') . '"><b>' . JText::_('UNPUBLISH') . "</b></a>\n";
}
else {
$publishlink = '<a href="' . $row->publishlink(false)."&rettask=admin.listevents" . '" title="' . JText::_('PUBLISH') . '"><b>' . JText::_('PUBLISH') . "</b></a>\n";
}
}
else {
$publishlink = "";
}
$eventlink = $row->viewDetailLink($row->yup(),$row->mup(),$row->dup(),false);
$eventlink = JRoute::_($eventlink.$view->datamodel->getCatidsOutLink());
$border="border-color:".$row->bgcolor().";";
?>
<li class="ev_td_li" style="<?php echo $border;?>">
<a class="<?php echo $row->state() ? 'ev_link_row' : 'ev_link_unpublished'; ?>" style="font-weight:bold;" href="<?php echo $eventlink; ?>" title="<?php echo JEventsHTML::special($row->title()) . ( $row->state() ? '' : JText::_('JEV_UNPUBLISHED') );?>"><?php echo $row->title() . ( $row->state() ? '' : JText::_('JEV_UNPUBLISHED') );?></a>
<?php echo JText::_('JEV_BY');?>
<i><?php echo $row->contactlink('',true);?></i>
<?php echo $deletelink;?>
<?php echo $modifylink;?>
<?php echo $publishlink;?>
</li>
<?php
}