* @copyright (C) 2005-2009 Christoph Lukes * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ defined('_JEXEC') or die; $gdv = JEMImage::gdVersion(); ?> <div class="width-100"> <fieldset class="adminform"> <legend><?php echo JText::_( 'COM_JEM_IMAGE_HANDLING' ); ?></legend> <ul class="adminformlist"> <li><?php echo $this->form->getLabel('sizelimit'); ?> <?php echo $this->form->getInput('sizelimit'); ?></li> <li><?php echo $this->form->getLabel('imagehight'); ?> <?php echo $this->form->getInput('imagehight'); ?></li> <li><?php echo $this->form->getLabel('imagewidth'); ?> <?php echo $this->form->getInput('imagewidth'); ?> <span <?php echo JEMOutput::tooltip(JText::_('COM_JEM_WARNING'), JText::_('COM_JEM_WARNING_MAX_IMAGEWIDTH'), 'error'); ?>> <?php echo $this->WarningIcon(); ?> </span> </li> <?php if ($gdv && $gdv >= 2) : //is the gd library installed on the server and its version > 2? ?> <li><?php echo $this->form->getLabel('gddisabled'); ?> <?php echo $this->form->getInput('gddisabled'); ?></li> <?php endif; ?> <li id="lb1" style="display:none"><?php echo $this->form->getLabel('lightbox'); ?> <?php echo $this->form->getInput('lightbox'); ?></li> </ul> </fieldset> </div>
/** * Get a category names list * @param unknown $categories Category List * @param boolean $doLink Link the categories to the respective Category View * @param boolean $backend Used for backend (true) or frontend (false, default) * @return string|multitype: */ static function getCategoryList($categories, $doLink, $backend = false) { $output = array_map( function ($category) use ($doLink, $backend) { if ($doLink) { if ($backend) { $path = $category->path; $path = str_replace('/', ' » ', $path); $value = '<span '.JEMOutput::tooltip(JText::_('COM_JEM_EDIT_CATEGORY'), $path, 'editlinktip').'>'; $value .= '<a href="index.php?option=com_jem&task=category.edit&id='. $category->id.'">'. $category->catname.'</a>'; $value .= '</span>'; } else { $value = '<a href="'.JRoute::_(JemHelperRoute::getCategoryRoute($category->catslug)).'">'. $category->catname.'</a>'; } } else { $value = $category->catname; } return $value; }, $categories); return $output; }
for (var i = 0; i < selectBox.options.length; i++){ selectBox.options[i].selected = false; } } </script> <div id="jem" class="jem_jem"> <form action="index.php" method="post" name="adminForm" enctype="multipart/form-data" id="adminForm"> <div class="width-50 fltlft"> <fieldset class="adminform"> <legend><?php echo JText::_('COM_JEM_EXPORT_EVENTS_LEGEND');?></legend> <ul class="adminformlist"> <li><label <?php echo JEMOutput::tooltip(JText::_('COM_JEM_EXPORT_ADD_CATEGORYCOLUMN'), JText::_('COM_JEM_EXPORT_ADD_CATEGORYCOLUMN'), 'editlinktip'); ?>> <?php echo JText::_('COM_JEM_EXPORT_ADD_CATEGORYCOLUMN'); ?></label> <?php $categorycolumn = array(); $categorycolumn[] = JHtml::_('select.option', '0', JText::_('JNO')); $categorycolumn[] = JHtml::_('select.option', '1', JText::_('JYES')); $categorycolumn = JHtml::_('select.genericlist', $categorycolumn, 'categorycolumn', array('size'=>'1','class'=>'inputbox'), 'value', 'text', '1'); echo $categorycolumn;?></li> <li><label for="dates"><?php echo JText::_('COM_JEM_EXPORT_FROM_DATE').':'; ?></label> <?php echo JHtml::_('calendar', date("Y-m-d"), 'dates', 'dates', '%Y-%m-%d', array('class' => 'inputbox validate-date')); ?></li> <li><label for="enddates"><?php echo JText::_('COM_JEM_EXPORT_TO_DATE').':'; ?></label> <?php echo JHtml::_('calendar', date("Y-m-d"), 'enddates', 'enddates', '%Y-%m-%d', array('class' => 'inputbox validate-date')); ?></li> <li><label for="cid"><?php echo JText::_('COM_JEM_CATEGORY').':'; ?></label> <?php echo $this->categories; ?> <input class="button" name="selectall" value="<?php echo JText::_('COM_JEM_EXPORT_SELECT_ALL_CATEGORIES'); ?>" onclick="selectAll();"><br />
<th align="left" class="sectiontableheader"><?php echo JHtml::_('grid.sort', 'COM_JEM_STATE', 'con.state', $this->lists['order_Dir'], $this->lists['order'] ); ?></th> <?php if (0) : /* removed because it maybe forbidden to show */ ?> <th align="left" class="sectiontableheader"><?php echo JText::_('COM_JEM_EMAIL'); ?></th> <th align="left" class="sectiontableheader"><?php echo JText::_('COM_JEM_TELEPHONE'); ?></th> <?php endif; ?> </tr> </thead> <tbody> <?php if (empty($this->rows)) : ?> <tr align="center"><td colspan="0"><?php echo JText::_('COM_JEM_NOCONTACTS'); ?></td></tr> <?php else :?> <?php foreach ($this->rows as $i => $row) : ?> <tr class="row<?php echo $i % 2; ?>"> <td class="center"><?php echo $this->pagination->getRowOffset( $i ); ?></td> <td align="left"> <span <?php echo JEMOutput::tooltip(JText::_('COM_JEM_SELECT'), $row->name, 'editlinktip'); ?>> <a class="pointer;" onclick="if (window.parent) window.parent.<?php echo $this->escape($function);?>('<?php echo $row->id; ?>', '<?php echo $this->escape(addslashes($row->name)); ?>');"><?php echo $this->escape($row->name); ?></a> </span> </td> <?php if (0) : /* removed because it maybe forbidden to show */ ?> <td align="left"><?php echo $this->escape($row->address); ?></td> <?php endif; ?> <td align="left"><?php echo $this->escape($row->suburb); ?></td> <td align="left"><?php echo $this->escape($row->state); ?></td> <?php if (0) : /* removed because it maybe forbidden to show */ ?> <td align="left"><?php echo $this->escape($row->email_to); ?></td> <td align="left"><?php echo $this->escape($row->telephone); ?></td> <?php endif; ?> </tr> <?php endforeach; ?> <?php endif; ?>
<?php echo JText::_('COM_JEM_EMAIL').': '; ?><a href="mailto:<?php echo $row->email; ?>"><?php echo $row->email; ?></a><br /> <?php $created = JHtml::_('date',$row->created,JText::_('DATE_FORMAT_LC2')); $modified = JHtml::_('date',$row->modified,JText::_('DATE_FORMAT_LC2') ); $image = JHtml::_('image','com_jem/icon-16-info.png',NULL,NULL,true ); $overlib = JText::_('COM_JEM_CREATED_AT').': '.$created.'<br />'; if ($row->author_ip != '') { $overlib .= JText::_('COM_JEM_WITH_IP').': '.$row->author_ip.'<br />'; } if ($row->modified != '0000-00-00 00:00:00') { $overlib .= JText::_('COM_JEM_EDITED_AT').': '.$modified.'<br />'; $overlib .= JText::_('COM_JEM_GLOBAL_MODIFIEDBY').': '.$row->modified_by.'<br />'; } ?> <span <?php echo JEMOutput::tooltip(JText::_('COM_JEM_EVENTS_STATS'), $overlib, 'editlinktip'); ?>> <?php echo $image; ?> </span> </td> <td class="center"><?php echo $row->hits; ?></td> <td class="center"> <?php if ($row->registra == 1) { $linkreg = 'index.php?option=com_jem&view=attendees&id='.$row->id; $count = $row->regCount; if ($row->maxplaces) { $count .= '/'.$row->maxplaces; if ($row->waitinglist && $row->waiting) { $count .= ' +'.$row->waiting;
<p class="smallsub" title="<?php echo $this->escape($item->path);?>"> <?php echo str_repeat('<span class="gtr">|—</span>', $repeat) ?> <?php if (empty($item->note)) : ?> <?php echo JText::sprintf('JGLOBAL_LIST_ALIAS', $this->escape($item->alias));?> <?php else : ?> <?php echo JText::sprintf('JGLOBAL_LIST_ALIAS_NOTE', $this->escape($item->alias), $this->escape($item->note));?> <?php endif; ?></p> </td> <td class="center"> <div class="colorpreview" style="width: 20px; cursor:default;background-color: <?php echo ( $item->color == '' )?"transparent":$item->color; ?>;" title="<?php echo $item->color; ?>"> </div> </td> <td class="center"> <?php if ($item->catgroup) : ?> <span <?php echo JEMOutput::tooltip(JText::_('COM_JEM_GROUP_EDIT'), $item->catgroup, 'editlinktip'); ?>> <a href="<?php echo $grouplink; ?>"> <?php echo $this->escape($item->catgroup); ?> </a></span> <?php elseif ($item->groupid) : ?> <?php echo JText::sprintf('COM_JEM_CATEGORY_UNKNOWN_GROUP', $item->groupid); ?> <?php else : ?> <?php echo '-'; ?> <?php endif; ?> </td> <td class="center"> <?php echo $item->assignedevents; ?> </td> <td class="center"> <?php echo JHtml::_('jgrid.published', $item->published, $i, 'categories.', $canChange);?> </td>
<?php echo JText::_( 'COM_JEM_EVENT_TIME' ); ?></option> <option value="[enddates]" <?php if(in_array("[enddates]",$meta_key)) { echo "selected=\"selected\""; } ?>> <?php echo JText::_( 'COM_JEM_ENDDATE' ); ?></option> <option value="[endtimes]" <?php if(in_array("[endtimes]",$meta_key)) { echo "selected=\"selected\""; } ?>> <?php echo JText::_( 'COM_JEM_END_TIME' ); ?></option> </select> </div> </li> <li><?php echo $this->form->getLabel('meta_description'); ?> <div style="display: inline-block;"> <input class="inputbox" type="button" onclick="insert_keyword('[title]')" value="<?php echo JText::_( 'COM_JEM_EVENT_TITLE' ); ?>" /> <input class="inputbox" type="button" onclick="insert_keyword('[a_name]')" value="<?php echo JText::_( 'COM_JEM_VENUE' ); ?>" /> <input class="inputbox" type="button" onclick="insert_keyword('[dates]')" value="<?php echo JText::_( 'COM_JEM_DATE' ); ?>" /> <input class="inputbox" type="button" onclick="insert_keyword('[times]')" value="<?php echo JText::_( 'COM_JEM_EVENT_TIME' ); ?>" /> <input class="inputbox" type="button" onclick="insert_keyword('[enddates]')" value="<?php echo JText::_( 'COM_JEM_ENDDATE' ); ?>" /> <input class="inputbox" type="button" onclick="insert_keyword('[endtimes]')" value="<?php echo JText::_( 'COM_JEM_END_TIME' ); ?>" /> <br/> <?php echo $this->form->getInput('meta_description'); ?> <br/> <input type="button" value="<?php echo JText::_( 'COM_JEM_META_DESCRIPTION_BUTTON' ); ?>" onclick="include_description()" /> <span <?php echo JEMOutput::tooltip(JText::_('COM_JEM_WARNING'), JText::_('COM_JEM_META_DESCRIPTION_WARN'), 'error'); ?>> <?php echo $this->WarningIcon(); ?> </span> </div> </li> </ul> </fieldset> </div>
<?php endif;?> <th class="center"><?php echo JText::_('COM_JEM_REMOVE_USER'); ?></th> </tr> </thead> <tbody> <?php foreach ($this->rows as $i => $row) : ?> <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><?php echo $row->$namefield; ?></td> <?php if ($this->enableemailaddress == 1) {?> <td><a href="mailto:<?php echo $row->email; ?>"><?php echo $row->email; ?></a></td> <?php } ?> <td><?php echo JHtml::_('date',$row->uregdate,JText::_('DATE_FORMAT_LC2')); ?></td> <?php if ($this->event->waitinglist): ?> <td <?php echo JEMOutput::tooltip(JText::_($row->waiting ? 'COM_JEM_ATTENDEES_ON_WAITINGLIST' : 'COM_JEM_ATTENDEES_ATTENDING'), '', 'center'); ?> <?php if ($row->waiting):?> <?php echo JHtml::_('link',JRoute::_('index.php?option=com_jem&view=attendees&task=attendees.attendeetoggle&id='.$row->id),JHtml::_('image','com_jem/publish_y.png',JText::_('COM_JEM_ON_WAITINGLIST'),NULL,true)); ?> <?php else: ?> <?php echo JHtml::_('link',JRoute::_('index.php?option=com_jem&view=attendees&task=attendees.attendeetoggle&id='.$row->id),JHtml::_('image','com_jem/tick.png', JText::_('COM_JEM_ATTENDEES_ATTENDING'),NULL,true)); ?> <?php endif;?> </td> <?php endif;?> <td class="center"><a href="javascript: void(0);" onclick="return listItemTask('cb<?php echo $i;?>','attendees.attendeeremove')"><?php echo JHtml::_('image','com_jem/publish_r.png', JText::_('COM_JEM_ATTENDEES_DELETE'), array('title' => JText::_('COM_JEM_ATTENDEES_DELETE')), true); ?></a></td> </tr> <?php endforeach; ?> </tbody> </table> <?php echo JHtml::_('form.token'); ?>
</ul> </fieldset> <!-- IMAGE --> <fieldset class="jem_fldst_image"> <legend><?php echo JText::_('COM_JEM_IMAGE'); ?></legend> <?php if ($this->item->datimage) : echo JEMOutput::flyer($this->item, $this->dimage, 'event', 'datimage'); endif; ?> <ul class="adminformlist"> <li> <label for="userfile"> <?php echo JText::_('COM_JEM_IMAGE'); ?> <small <?php echo JEMOutput::tooltip(JText::_('COM_JEM_NOTES'), JText::_('COM_JEM_MAX_IMAGE_FILE_SIZE').' '.$this->jemsettings->sizelimit.' kb', 'editlinktip'); ?>> <?php echo $this->infoimage; ?> </small> </label> <input class="inputbox <?php echo $this->jemsettings->imageenabled == 2 ? 'required' : ''; ?>" name="userfile" id="userfile" type="file" /> <button type="button" class="button3" onclick="document.getElementById('userfile').value = ''"><?php echo JText::_('JSEARCH_FILTER_CLEAR') ?></button> <?php if ($this->item->datimage) : echo JHtml::image('media/com_jem/images/publish_r.png', null, array('id' => 'userfile-remove', 'data-id' => $this->item->id, 'data-type' => 'events', 'title' => JText::_('COM_JEM_REMOVE_IMAGE'))); endif; ?> </li> </ul> <input type="hidden" name="removeimage" id="removeimage" value="0" /> </fieldset>
?> <div class="width-100"> <fieldset class="adminform"> <legend><?php echo JText::_( 'COM_JEM_DISPLAY_SETTINGS' ); ?></legend> <ul class="adminformlist"> <li><?php echo $this->form->getLabel('showdetails'); ?> <?php echo $this->form->getInput('showdetails'); ?></li> <li><?php echo $this->form->getLabel('formatShortDate'); ?> <?php echo $this->form->getInput('formatShortDate'); ?> <span <?php echo JEMOutput::tooltip(JText::_('COM_JEM_PHP_DATE_MANUAL'), JText::_('COM_JEM_PHP_DATE_MANUAL_DESC'), 'error'); ?>> <a href="http://php.net/manual/en/function.date.php" target="_blank"><?php echo $this->WarningIcon(); ?></a> </span> </li> <li><?php echo $this->form->getLabel('formatdate'); ?> <?php echo $this->form->getInput('formatdate'); ?> <span <?php echo JEMOutput::tooltip(JText::_('COM_JEM_PHP_DATE_MANUAL'), JText::_('COM_JEM_PHP_DATE_MANUAL_DESC'), 'error'); ?>> <a href="http://php.net/manual/en/function.date.php" target="_blank"><?php echo $this->WarningIcon(); ?></a> </span> </li> <li><?php echo $this->form->getLabel('formattime'); ?> <?php echo $this->form->getInput('formattime'); ?> <span <?php echo JEMOutput::tooltip(JText::_('COM_JEM_TIME_STRFTIME'), JText::_('COM_JEM_TIME_STRFTIME_DESC'), 'error'); ?>> <a href="http://www.php.net/strftime" target="_blank"><?php echo $this->WarningIcon(); ?></a> </span> </li> <li><?php echo $this->form->getLabel('timename'); ?> <?php echo $this->form->getInput('timename'); ?></li> <li><?php echo $this->form->getLabel('storeip'); ?> <?php echo $this->form->getInput('storeip'); ?></li> </ul> </fieldset> </div>
<div class="files"> <h2 class="description"><?php echo JText::_('COM_JEM_FILES'); ?></h2> <table class="file"> <tbody> <?php foreach ($this->attachments as $file): ?> <tr> <td> <?php $overlib = JText::_('COM_JEM_FILE').': '.$this->escape($file->file); if (!empty($file->name)) { $overlib .= '<BR />'.JText::_('COM_JEM_FILE_NAME').': '.$this->escape($file->name); } if (!empty($file->description)) { $overlib .= '<BR />'.JText::_('COM_JEM_FILE_DESCRIPTION').': '.$this->escape($file->description); } ?> <span <?php echo JEMOutput::tooltip(JText::_('COM_JEM_DOWNLOAD'), $overlib, 'file-dl-icon file-name'); ?>> <?php $filename = $this->escape($file->name ? $file->name : $file->file); $image = JHtml::_('image','com_jem/download_16.png', JText::_('COM_JEM_DOWNLOAD'),NULL,true)." "."<span class=file-name>".$filename."</span>"; $attribs = array('class'=>'file-name'); echo JHtml::_('link','index.php?option=com_jem&task=getfile&format=raw&file='.$file->id,$image,$attribs); ?> </span> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <?php endif;