예제 #1
0
파일: default.php 프로젝트: JKoelman/JEM-3
         }
     }
     $catinfo[] = array('catid' => $category->id, 'color' => $category->color);
 }
 // end of category-loop
 $catz = implode(' ', $catz);
 $content .= '<div id="catz" hidecat="" class="' . $catz . '">';
 $contentend .= '</div>';
 $color = '<div id="eventcontenttop" class="eventcontenttop">';
 $color .= $colorpic;
 $color .= '</div>';
 //for time in calendar
 $timeData = '';
 if ($this->settings->get('global_show_timedetails', '1')) {
     $start = JemOutput::formattime($row->times, '', false);
     $end = JemOutput::formattime($row->endtimes, '', false);
     $multi = new stdClass();
     $multi->row = isset($row->multi) ? $row->multi : 'na';
     if ($multi->row) {
         if ($multi->row == 'first') {
             $timeData .= $image = JHtml::_("image", "com_jem/arrow-left.png", '', NULL, true) . ' ' . $start;
             $timeData .= '<br />';
         } elseif ($multi->row == 'middle') {
             $timeData .= JHtml::_("image", "com_jem/arrow-middle.png", '', NULL, true);
             $timeData .= '<br />';
         } elseif ($multi->row == 'zlast') {
             $timeData .= JHtml::_("image", "com_jem/arrow-right.png", '', NULL, true) . ' ' . $end;
             $timeData .= '<br />';
         } elseif ($multi->row == 'na') {
             if ($start != '') {
                 $timeData .= $start;
예제 #2
0
파일: default.php 프로젝트: JKoelman/JEM-3
				</td>
			</tr>
		</tfoot>

		<tbody id="search_in_here">
			<?php 
    foreach ($this->items as $i => $row) {
        //Prepare date
        $displaydate = JemOutput::formatLongDateTime($row->dates, null, $row->enddates, null);
        // Insert a break between date and enddate if possible
        $displaydate = str_replace(" - ", " -<br />", $displaydate);
        //Prepare time
        if (!$row->times) {
            $displaytime = '';
        } else {
            $displaytime = '<span class="label label-info">' . JemOutput::formattime($row->times) . '</span><br>';
        }
        $ordering = $listOrder == 'ordering';
        $canCreate = $user->authorise('core.create');
        $canEdit = $user->authorise('core.edit');
        $canCheckin = $user->authorise('core.manage', 'com_checkin') || $row->checked_out == $userId || $row->checked_out == 0;
        $canChange = $user->authorise('core.edit.state') && $canCheckin;
        $venuelink = 'index.php?option=com_jem&amp;task=venue.edit&amp;id=' . $row->locid;
        $published = JHtml::_('jgrid.published', $row->published, $i, 'events.');
        ?>
			<tr class="row<?php 
        echo $i % 2;
        ?>
">
				<td class="center"><?php 
        echo $this->pagination->getRowOffset($i);
예제 #3
0
	/**
	 * structures the keywords
	 */
	function keyword_switcher($keyword, $row, $categories, $formattime, $formatdate)
	{
		$content = '';

		switch ($keyword)
		{
		case 'categories':
			$catnames = array();
			foreach ($categories as $category) {
				$catnames[] = $this->escape($category->catname);
			}
			$content = implode(', ', array_filter($catnames));
			break;

		case 'a_name':
			$content = $row->venue;
			break;

		case 'times':
		case 'endtimes':
			if (isset($row->$keyword)) {
				$content = JemOutput::formattime($row->$keyword);
			}
			break;

		case 'dates':
		case 'enddates':
			if (isset($row->$keyword)) {
				$content = JemOutput::formatdate($row->$keyword);
			}
			break;

		case 'title':
		default:
			if (isset($row->$keyword)) {
				$content = $row->$keyword;
			}
			break;
		}

		return $content;
	}
예제 #4
0
			</tr>
		</tfoot>

		<tbody id="search_in_here">
			<?php
			foreach ($this->items as $i => $row) :
				//Prepare date
				$displaydate = JemOutput::formatLongDateTime($row->dates, null, $row->enddates, null);
				// Insert a break between date and enddate if possible
				$displaydate = str_replace(" - ", " -<br />", $displaydate);

				//Prepare time
				if (!$row->times) {
					$displaytime = '-';
				} else {
					$displaytime = JemOutput::formattime($row->times);
				}

				$ordering	= ($listOrder == 'ordering');
				$canCreate	= $user->authorise('core.create');
				$canEdit	= $user->authorise('core.edit');
				$canCheckin	= $user->authorise('core.manage', 'com_checkin') || $row->checked_out == $userId || $row->checked_out == 0;
				$canChange	= $user->authorise('core.edit.state') && $canCheckin;

				$venuelink 		= 'index.php?option=com_jem&amp;task=venue.edit&amp;id='.$row->locid;
				$published 		= JHtml::_('jgrid.published', $row->published, $i, 'events.');
			?>
			<tr class="row<?php echo $i % 2; ?>">
				<td class="center"><?php echo $this->pagination->getRowOffset( $i ); ?></td>
				<td class="center"><?php echo JHtml::_('grid.id', $i, $row->id); ?></td>
				<td>
예제 #5
0
 /**
  * structures the keywords
  */
 function keyword_switcher($keyword, $row, $categories, $formattime, $formatdate)
 {
     switch ($keyword) {
         case "categories":
             $i = 0;
             $content = '';
             $n = count($categories);
             foreach ($categories as $category) {
                 $content .= $this->escape($category->catname);
                 $i++;
                 if ($i != $n) {
                     $content .= ', ';
                 }
             }
             break;
         case "a_name":
             $content = $row->venue;
             break;
         case "times":
         case "endtimes":
             $content = '';
             if ($row->{$keyword}) {
                 $content = JemOutput::formattime($row->{$keyword});
             }
             break;
         case "dates":
             $content = JemOutput::formatdate($row->dates);
             break;
         case "enddates":
             $content = JemOutput::formatdate($row->enddates);
             break;
         case "title":
             $content = $row->title;
             break;
         default:
             $content = "";
             if (isset($row->{$keyword})) {
                 $content = $row->{$keyword};
             }
             break;
     }
     return $content;
 }
예제 #6
0
파일: modal.php 프로젝트: JKoelman/JEM-3
?>
				</td>
			</tr>
		</tfoot>
		<tbody>
		<?php 
foreach ($this->rows as $i => $item) {
    //Prepare date
    $displaydate = JemOutput::formatLongDateTime($item->dates, null, $item->enddates, null);
    // Insert a break between date and enddate if possible
    $displaydate = str_replace(" - ", " -<br />", $displaydate);
    //Prepare time
    if (!$item->times) {
        $displaytime = '-';
    } else {
        $displaytime = JemOutput::formattime($item->times);
    }
    if ($item->language && JLanguageMultilang::isEnabled()) {
        $tag = strlen($item->language);
        if ($tag == 5) {
            $lang = substr($item->language, 0, 2);
        } elseif ($tag == 6) {
            $lang = substr($item->language, 0, 3);
        } else {
            $lang = "";
        }
    } elseif (!JLanguageMultilang::isEnabled()) {
        $lang = "";
    }
    ?>
			<tr class="row<?php