id ){ // load only if logged in (no need before [mic] require_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/HTML_toolbar.php' ); } // option masks define( 'MASK_BACKTOLIST', 0x0001 ); define( 'MASK_READON', 0x0002 ); define( 'MASK_POPUP', 0x0004 ); define( 'MASK_HIDEPDF', 0x0008 ); define( 'MASK_HIDEPRINT', 0x0010 ); define( 'MASK_HIDEEMAIL', 0x0020 ); define( 'MASK_IMAGES', 0x0040 ); define( 'MASK_VOTES', 0x0080 ); define( 'MASK_VOTEFORM', 0x0100 ); define( 'MASK_HIDEAUTHOR', 0x0200 ); define( 'MASK_HIDECREATEDATE', 0x0400 ); define( 'MASK_HIDEMODIFYDATE', 0x0800 ); define( 'MASK_LINK_TITLES', 0x1000 ); // mos_content.mask masks define( 'MASK_HIDE_TITLE', 0x0001 ); define( 'MASK_HIDE_INTRO', 0x0002 ); Class HTML_events { /* displays event */ function viewEventRow( $id, $title, $task, $year, $month, $day, $contactlink, $option, $Itemid, $fgcolor ="orange",$bgcolor ="inherit") { global $catidsOut; $cat = ""; if ($catidsOut != 0){ $cat = '&catids='.$catidsOut; } $cfg = & EventsConfig::getInstance(); $eventlink = sefRelToAbs( 'index.php?option=' . $option . '&task=' . $task . '&agid=' . $id . '&year=' . $year . '&month=' . $month . '&day=' . $day . '&Itemid=' . $Itemid . $cat ); // [mic] if title is too long, cut 'em for display $tmpTitle = $title; if( strlen( $title ) >= 50 ){ $tmpTitle = substr( $title, 0, 50 ) . ' ...'; } ?> get('com_byview') == '1' ) { echo _CAL_LANG_BY . ' '. $contactlink .''; } ?> id . '&year=' . $year . '&month=' . $month . '&day=' . $day . '&Itemid=' . $Itemid );?>
  • title . ( $state ? '' : _CAL_LANG_UNPUBLISHED );?>         
  • getShortVersion())>=1.5){ $dispatcher =& JEventDispatcher::getInstance(); } else { global $_MAMBOTS; $_MAMBOTS->loadBotGroup( 'content' ); $dispatcher =& $_MAMBOTS; } $cfg = & EventsConfig::getInstance(); // Mat Oct 5/04 show details only if called from a selected event to avoid probs with navbar if (isset($row)) { // process bots //$row->text = $row->content; $params->set("image",1); // text field is the one I want to change - mambots only look at content field $row->text = $row->content; $results = $dispatcher->trigger( 'onPrepareContent', array( &$row, &$params, $page ), true ); $row->content = $row->text ; // Also want to cloak contact details so $contactDetails = new stdClass(); $contactDetails->text = $contactlink; $dispatcher->trigger( 'onPrepareContent', array( &$contactDetails, &$params, $page ), true ); $contactlink=$contactDetails->text; ?> adresse_info ) || !empty( $row->contact_info )){ ?> extra_info )){ ?>
    title; ?> created_by == $my->id || strtolower($my->usertype ) == 'super administrator' || strtolower($my->usertype ) == 'administrator' || strtolower($my->usertype ) == 'publisher') && !( $mask & MASK_POPUP )) { ?> <?php echo _E_EDIT;?> created_by == $my->id || strtolower($my->usertype ) == 'super administrator' || strtolower($my->usertype ) == 'administrator' || strtolower($my->usertype ) == 'publisher') && !( $mask & MASK_POPUP )) { ?> <?php echo _CAL_LANG_DELETE;?> <?php echo _CMN_PRINT; ?> <?php echo _CMN_PRINT;?>
    get('com_repeatview') == '1' ){ ?>
    start_date == $row->stop_date ){ if ($row->start_time != $row->stop_time) { echo $row->start_date . ', ' . $row->start_time . ' - ' . $row->stop_time; } else { echo $row->start_date; } } else { // recurring events should have time related to recurrance not range of dates if ($row->start_time != $row->stop_time && !($row->reccurtype > 0)) { echo _CAL_LANG_FROM . ' ' . $row->start_date . ' -  ' . $row->start_time . '
    ' . _CAL_LANG_TO . ' ' . $row->stop_date . ' - ' . $row->stop_time . '
    '; } else { echo _CAL_LANG_FROM . ' ' . $row->start_date . '
    ' . _CAL_LANG_TO . ' ' . $row->stop_date . '
    '; } } if( $row->reccurtype > 0 ){ switch( $row->reccurtype ){ case '1': $reccur = _CAL_LANG_REP_WEEK; break; case '2': $reccur = _CAL_LANG_REP_WEEK; break; case '3': $reccur = _CAL_LANG_REP_MONTH; break; case '4': $reccur = _CAL_LANG_REP_MONTH; break; case '5': $reccur = _CAL_LANG_REP_YEAR; break; } if( $row->reccurday >= 0 || ($row->reccurtype==1 || $row->reccurtype==2)){ $timeString = ""; if ($row->start_time != $row->stop_time) { $timeString = $row->start_time." - ".$row->stop_time." "; } echo $timeString; if (intval($row->reccurday)<0){ $event_start_date = strtotime($row->publish_up) ; $reccurday = intval(date( 'w',$event_start_date)); } else $reccurday =$row->reccurday; if( $row->reccurtype == 1 ){ $dayname = mosEventsHTML::getLongDayName( $reccurday ); echo $dayname . ' ' . _CAL_LANG_EACHOF . ' ' . $reccur; }else if($row->reccurtype == 2 ){ $each = _CAL_LANG_EACH . ' '; if ($grammar==1){ $each = strtolower($each); } $daystring=""; if (strlen($row->reccurweeks)==0){ $days = explode("|",$row->reccurweekdays); for ($d=0;$dreccurweekdays); for ($d=0;$dreccurweeks == 'pair' ? _CAL_LANG_REP_WEEKPAIR : ( $row->reccurweeks == 'impair' ? _CAL_LANG_REP_WEEKIMPAIR : "" ); if ($weekstring==""){ switch ($grammar){ case 1: $weekstring = "- "._CAL_LANG_REP_WEEK." "; $weekstring .= str_replace("|",", ",$row->reccurweeks)." "; $weekstring .= strtolower(_CAL_LANG_EACHMONTH); break; default: $weekstring = str_replace("|",", ",$row->reccurweeks)." "; $weekstring .= $reccur." "; $weekstring .= strtolower(_CAL_LANG_EACHMONTH); break; } } } $firstword=true; switch ($grammar){ case 1: echo $daystring.$weekstring; break; default: echo $each.$daystring.$weekstring; break; } } else { echo _CAL_LANG_EACH . ' ' . $reccur; } } else { echo _CAL_LANG_EACH . ' ' . $reccur; } } else { if( $row->start_date != $row->stop_date ){ echo _CAL_LANG_ALLDAYS; } } ?>
    get('com_byview') == '1' ){ echo _CAL_LANG_BY . ' ' . $contactlink; } ?> get('com_hitsview') == '1' ){ echo _CAL_LANG_EVENT_HITS . ' : ' . $row->hits; } ?>
    content; ?>
    adresse_info )){ ?> : adresse_info; ?> contact_info )){ if( !empty( $row->adresse_info )){ ?>
    : contact_info; ?>
    extra_info; ?>
    trigger( 'onAfterDisplayContent', array( &$row, &$params, $page ) ); echo trim( implode( "\n", $results ) ); } else { ?>

    set( 'joomlaJavascript', 1 ); require_once( $mosConfig_absolute_path . '/includes/HTML_toolbar.php' ); $admin_html = $mainframe->getPath( 'admin_html' ) ; $admindir = dirname($admin_html); // load language constants EventsHelper::loadLanguage('admin'); require_once($admin_html ); echo '
    '; mosToolBar::startTable(); global $access; if (isset($row) && isset($row->id) && $row->id>0 && isset($row->state) && $row->state==0 && $access->canPublish){ mosToolBar::custom("publish","publish.png","publish_f2.png","",false); mosToolBar::spacer(); } mosToolBar::save(); mosToolBar::spacer(); mosToolBar::cancel(); mosToolBar::endtable(); echo '
    '; if (isset($row) && isset($row->id)) $eventid = $row->id; // get list of images global $mosConfig_absolute_path; $imgFiles = mosReadDirectory( $mosConfig_absolute_path . '/images/stories' ); $images = array(); $folders = array(); $folders[] = mosHTML::makeOption( '/' ); foreach ( $imgFiles as $file) { if( is_dir( $mosConfig_absolute_path . '/images/stories/' . $file )) { $folders[] = mosHTML::makeOption( '/' . $file ); $folder = mosReadDirectory( $mosConfig_absolute_path . '/images/stories/' . $file ); foreach( $folder as $file2 ){ if( eregi( 'bmp|gif|jpg|png', $file2 ) && is_file( $mosConfig_absolute_path . '/images/stories/' . $file . '/' . $file2 )) { $images["/$file"][] = mosHTML::makeOption( $file . '/' . $file2 ); } } }elseif( eregi( 'bmp|gif|jpg|png', $file ) && is_file( $mosConfig_absolute_path . '/images/stories/' . $file )) { $images['/'][] = mosHTML::makeOption( $file ); } } $lists['ilist'] = mosHTML::selectList( $images['/'], 'imagefiles', "class=\"inputbox\" size=\"10\" multiple=\"multiple\"" . " onchange=\"previewImage('imagefiles','view_imagefiles','$mosConfig_live_site/images/stories/')\"", 'value', 'text', null ); $lists['folderlist'] = mosHTML::selectList( $folders, 'folders', 'class="inputbox" size="1" ' . 'onchange="changeDynaList(\'imagefiles\', folderimages, document.adminForm.folders.options[document.adminForm.folders.selectedIndex].value, 0, 0)"', 'value', 'text', '/' ); // make the list of saved images $images2 = array(); if (trim( $row->images )) { $row->images = explode( "\n", $row->images ); } else { $row->images = array(); } foreach ($row->images as $file) { $temp = explode( '|', $file ); $images2[] = mosHTML::makeOption( $file, $temp[0] ); } $lists['i2list'] = mosHTML::selectList( $images2, 'imagelist', 'class="inputbox" size="10"' . " onchange=\"showImageProps('$mosConfig_live_site/images/stories/')\"", 'value', 'text', null ); // make the select list for the image positions $pos[] = mosHTML::makeOption( 'left', _CAL_LANG_LEFT ); $pos[] = mosHTML::makeOption( 'center', _CAL_LANG_CENTER ); $pos[] = mosHTML::makeOption( 'right', _CAL_LANG_RIGHT ); // build the html select list $lists['poslist'] = mosHTML::selectList( $pos, '_align', 'class="inputbox" size="3"', 'value', 'text', null ); global $my , $database; if ($my->usertype=="Manager" || $my->usertype=="Administrator" || $my->usertype=="Super Administrator"){ // get list of groups $query = "SELECT id AS value, name AS text" . "\n FROM #__groups" . "\n ORDER BY id" ; $database->setQuery( $query ); $groups = $database->loadObjectList(); // build the html select list $glist = mosHTML::selectList( $groups, 'access', 'class="inputbox" size="1"', 'value', 'text', intval( $row->access ) ); } $creator = ''; $modifier = ''; if( $eventid ) { $query = "SELECT name" . "\n FROM #__users" . "\n WHERE id=$row->created_by" ; $database->setQuery( $query ); $creator = $database->loadResult(); $query = "SELECT name" . "\n FROM #__users" . "\n WHERE id=$row->modified_by" ; $database->setQuery( $query ); $modifier = $database->loadResult(); } $hiddenVals = "\n".''."\n"; $hiddenVals .= ''; $hiddenVals .= ''; /* // Captch code for anon and registered users global $my; if ($my->gid<2){ mosToolBar::spacer(); if (file_exists($mosConfig_absolute_path.'/administrator/components/com_securityimages/client.php')) { include_once($mosConfig_absolute_path.'/administrator/components/com_securityimages/client.php'); $secImg = insertSecurityImage("security_refid"); $hiddenVals .= $secImg; $hiddenVals .= getSecurityImageText("security_try"); } } */ $glist = null; $section = 0; // NO YET IMPLEMENTED HTML_events_admin::editEvents( $row, $start_publish, $stop_publish, $start_time, $end_time, $section, $glist, $images, $creator, $modifier, $option, $mode, $catColors, $lists, $hiddenVals); } function viewNavTableBarIconic( $today_date, $this_date, $dates, $alts, $option, $task, $Itemid ) { global $catidsOut; global $mosConfig_live_site; $cfg = & EventsConfig::getInstance(); $cat = ""; $hiddencat = ""; if ($catidsOut!=0){ $cat = '&catids=' . $catidsOut; $hiddencat = ''; } $imgSingle = 'get('com_navbarcolor') . '.gif" alt="' . $alts['prev2'] . '" />'; $g = $imgSingle . 'g_' . $cfg->get('com_navbarcolor') . '.gif" alt="' . $alts['prev1'] . '" />'; $d = $imgSingle . 'd_' . $cfg->get('com_navbarcolor') . '.gif" alt="' . $alts['next1'] . '" />'; $dd = $imgDouble . 'dd_' . $cfg->get('com_navbarcolor') . '.gif" alt="' . $alts['next2'] . '" />'; $link = 'index.php?option=' . $option . '&task=' . $task . $cat . '&Itemid=' . $Itemid. '&'; $prev2 = '' . $gg . '' . "\n"; $prev1 = '' . $g . '' . "\n"; $next1 = '' . $d . '' . "\n"; $next2 = ''.$dd.''."\n"; $transparentGif = $mosConfig_live_site."/components/com_events/images/transp.gif"; ?>
    >> *************************** * prev2 prev1 next1 next2 * << < > >> */ function viewNavTableBar( $today_date, $this_date, $dates, $alts, $option, $task, $Itemid ) { global $catidsOut; global $mosConfig_live_site; $cfg = & EventsConfig::getInstance(); $cat = ""; $hiddencat = ""; if ($catidsOut!=0){ $cat = '&catids=' . $catidsOut; $hiddencat = ''; } $imgSingle = 'get('com_navbarcolor') . '.gif" alt="' . $alts['prev2'] . '" />'; $g = $imgSingle . 'g_' . $cfg->get('com_navbarcolor') . '.gif" alt="' . $alts['prev1'] . '" />'; $d = $imgSingle . 'd_' . $cfg->get('com_navbarcolor') . '.gif" alt="' . $alts['next1'] . '" />'; $dd = $imgDouble . 'dd_' . $cfg->get('com_navbarcolor') . '.gif" alt="' . $alts['next2'] . '" />'; $link = 'index.php?option=' . $option . '&task=' . $task . $cat . '&Itemid=' . $Itemid. '&'; $prev2 = '' . $gg . '' . "\n"; $prev1 = '' . $g . '' . "\n"; $next1 = '' . $d . '' . "\n"; $next2 = ''.$dd.''."\n"; $today_link = '' . _CAL_LANG_VIEWTODAY . '' . "\n"; //$current_month_link = ''._CAL_LANG_VIEWBYMONTH.''."\n"; //$current_week_link = ''._CAL_LANG_VIEWBYWEEK.''."\n"; //$archive_link = ''._CAL_LANG_ARCHIVE.' '.$this_date->getYear(1).''."\n"; //$categories_link = ''._CAL_LANG_VIEWBYCAT.''."\n"; $lastmonth_link = '' . _CAL_LANG_VIEWTOCOME . '' . "\n"; ?>
    */ ?> */ ?>
    getYear(1), $this_date->getMonth(1), $this_date->getDay(1), 'onchange="submit(this.form)" style="font-size:10px;"' );*/ /*Month Select*/ mosEventsHTML::buildMonthSelect( $this_date->getMonth(1), 'onchange="submit(this.form)" style="font-size:10px;"'); /*Year Select*/ mosEventsHTML::buildYearSelect( $this_date->getYear(1), 'onchange="submit(this.form)" style="font-size:10px;"' ); ?>

    1, 'author' =>2, 'editor' =>3, 'publisher' =>4, 'manager' =>5, 'administrator'=>6, 'super administrator'=>7); $frontendPublish = $cfg->get('com_frontendPublish'); if ($frontendPublish == 0) $frontendPublish=7; if(array_key_exists( strtolower( $my->usertype ), $mapping)) { $frontendPublish = ($frontendPublish <= $mapping[strtolower( $my->usertype )]); } else { $frontendPublish = false; } if( ($is_event_editor) && ($frontendPublish) ) { ?>
    getLongVersion() . ', ' . html_entity_decode($version->getLongCopyright()) . ', ' . $version->getUrl() . ' -->' . "\n"; ?> set("print",true); $params->set("icons",true); if ($pop) $params->set("popup",true); mosHTML::PrintIcon( $row, $params, false, $print_link ); } ?>
    name)) echo $menu->name; else echo _CAL_LANG_EVENT_CALENDAR; ?>
    get('com_copyright', 1) == 1) { ?>

    getLongVersion();?>   getShortCopyright();?>