All pastes #92710 Raw Edit

Hamster

public php v1 · immutable
#92710 ·published 2006-07-19 21:02 UTC
rendered paste body
<?php /** @version 0.8.4* @package Eventlist* @copyright (C) 2005 - 2006 Christoph Lukes* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL*/defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 	class eventlist_HTML{	/**	*	*Ausgabe Startseite	*	**/	function listeventsfront($option, &$rows, &$pageNav, $dellink, $total, $idx, $layoutsettings, $layoutcontents)	{		global $database, $mosConfig_absolute_path, $mosConfig_live_site, $Itemid, $mainframe, $params, $hide_js, $pop;	require($mosConfig_absolute_path."/administrator/components/com_eventlist/config.eventlist.php");		//Druckfunktion	$params->def( 'print', !$mainframe->getCfg( 'hidePrint' ) );	$params->def( 'icons', $mainframe->getCfg( 'icons' ) ); 		if ( $pop ) {//wenn druckansicht true setzen		$params->set( 'popup', 1 );	} 		$print_link = $mosConfig_live_site. '/index2.php?option=com_eventlist&Itemid='. $Itemid .'&pop=1'; 		//menüname anzeigen	$menuname = new mosMenu( $database );	$menuname->load($Itemid);	$eventlisthead = $menuname->name;		/*	*BUMP	$database->SetQuery( "SELECT set_show"                     . "\n FROM #__eventlist_settings"                      . "\n WHERE settingname = 'header'"					                     );  $showhead = $database->loadResult();*/	if ($layoutsettings[ $idx['header']]->set_show == 1) {	echo "<div align='left' style='width:100%' class='componentheading'>$eventlisthead</div>";	}	?>		<table class="contentpaneopen" style="width:100%">		<tr>			<td width="100%">&nbsp;</td>				<?php mosHTML::PrintIcon( $row, $params, $hide_js, $print_link ); ?>		</tr>	</table>		<?php	//Page titel setzen	$mainframe->setPageTitle( $eventlisthead );    $mainframe->addMetaTag( 'title' , $eventlisthead );		//Introtext anzeigen?	/*	* This part not needed anymore	* BUMP	$database->SetQuery( "SELECT set_show"                     . "\n FROM #__eventlist_settings"                      . "\n WHERE settingname = 'introtext'"					                     );  $showintrotext = $database->loadResult();  $showintrotext = $layoutsettings[ $idx['introtext']]->set_show;  if ($showintrotext == 1) {*/  if ($layoutsettings[ $idx['introtext']]->set_show == 1) {	//eingefügt	/*	* BUMP Not needed anymore here	$database->SetQuery( "SELECT *"                     . "\n FROM #__eventlist_settings_jfish"                     . "\n WHERE jfid = '1'"                      );  $database->loadObject( $layoutcontents);*/  //$datename       = $layoutcontents->datename;  //$titlename      = $layoutcontents->titlename;  //$infobuttonname = $layoutcontents->infobuttonname;  //$locationname   = $layoutcontents->locationname;  //$cityname       = $layoutcontents->cityname;  //$catfroname     = $layoutcontents->catfroname;	//$introtext = stripslashes($layoutcontents->introtext);	?>		<table width="100%"> 		<tr>    		<td><?php echo stripslashes($layoutcontents->introtext) ; ?>			</td>  		</tr>	</table>		<?php	}	//Link zum events einliefern/archiv anzeigen	if ( !$pop ) { //in druckansicht nicht darstellen?>		<div align="right">			<?php 						if ($dellink == 1) { 				echo"<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=deliver")."'>"._EVENTLIST_DELIVER."</a> | ";			} 			if ($oldevent == 2) {				echo"<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatarchive")."'>"._EVENTLIST_SHARCHIVE."</a>";			}			?>		</div>	<?php 	}/** BUMP Delete this, not needed anymore  $database->SetQuery( "SELECT settingname"                     . "\n FROM #__eventlist_settings"                      );  $testrows = $database->loadObjectList();  $idx = array();  $i = 0;  foreach ( $testrows as $testvalues){    $idx[$i] = $testvalues->settingname;    $i++;    }  $idx = array_flip ( $idx);  print_r ( $idx);*/      // These maybe used directly in the code from now on.  //$tablewidth      = $layoutsettings[$idx['table']]->set_width;  //$datewidth       = $layoutsettings[$idx['date']]->set_width;	//$titlewidth      = $layoutsettings[$idx['title']]->set_width;	//$infobuttonwidth = $layoutsettings[$idx['info']]->set_width;	//$locationwidth   = $layoutsettings[$idx['location']]->set_width;	//$citywidth       = $layoutsettings[$idx['city']]->set_width;	//$catfrowidth     = $layoutsettings[$idx['category']]->set_width;		//$showtitle       = $layoutsettings[$idx['title']]->set_show;	//$showlocate      = $layoutsettings[$idx['location']]->set_show;	//$showcity        = $layoutsettings[$idx['city']]->set_show;	//$showcat         = $layoutsettings[$idx['category']]->set_show;  //$showhead        = $layoutsettings[$idx['header']]->set_show;  //$showintrotext   = $layoutsettings[$idx['introtext']]->set_show;  //$showtime        = $layoutsettings[$idx['time']]->set_show;    //$showlinkclub    = $layoutsettings[$idx['location']]->set_linked;  //$catlinklist     = $layoutsettings[$idx['category']]->set_linked;	 	?>		<table width="<?php echo $layoutsettings[$idx['table']]->set_width; ?>" border="0" cellspacing="0" cellpadding="0">			<tr>				<td width="<?php echo $layoutsettings[$idx['date']]->set_width; ?>" class="sectiontableheader" align="left"><?php echo $layoutcontents->datename; ?></td>				<?php				if ($layoutsettings[$idx['title']]->set_show == 1) {				?>				<td width="<?php echo $layoutsettings[$idx['title']]->set_width; ?>" class="sectiontableheader" align="left"><?php echo $layoutcontents->titlename; ?></td>				<?php				}				//wenn width leer				if ($layoutsettings[$idx['info']]->set_width != "") {				?>				<td width="<?php echo $layoutsettings[$idx['info']]->set_width; ?>" class="sectiontableheader" align="left"><?php echo $layoutcontents->infobuttonname; ?></td>				<?php				}				if ($layoutsettings[$idx['location']]->set_show == 1) {				?>				<td width="<?php echo $layoutsettings[$idx['location']]->set_width; ?>" class="sectiontableheader" align="left"><?php echo $layoutcontents->locationname; ?></td>				<?php				}				if ($layoutsettings[$idx['city']]->set_show == 1) {				?>				<td width="<?php echo $layoutsettings[$idx['city']]->set_width; ?>" class="sectiontableheader" align="left"><?php echo $layoutcontents->cityname; ?></td>				<?php				}				if ($layoutsettings[$idx['category']]->set_show == 1) {				?>				<td width="<?php echo $layoutsettings[$idx['category']]->set_width; ?>" class="sectiontableheader" align="left"><?php echo $layoutcontents->catfroname; ?></td>				<?php				}				?>			</tr>	</table>		<table width="<?php echo $layoutsettings[$idx['table']]->set_width; ?>"  border="0" cellspacing="0" cellpadding="0">		<?php		$k = 0;		for ($i=0, $n=count($rows); $i < $n; $i++) {		$row = $rows[$i];					//Datum aus Tabelle formatieren		$datum = strftime($formatdate,strtotime( $row->dates ));		//versch. farbige Ausgabe		$tabclass = array( 'sectiontableentry1', 'sectiontableentry2' );			?>  			<tr class="<?php echo $tabclass[$k]; ?>">    			<td width="<?php echo $layoutsettings[$idx['date']]->set_width; ?>" align="left"><b><?php echo $datum; ?></b>				<?php				//Zeitabfrage				if ($layoutsettings[$idx['time']]->set_show == 1) {					$zeit = strftime( $formattime, strtotime( $row->times ));					$endzeit = strftime( $formattime, strtotime( $row->endtimes ));					echo "<br /> $zeit $timename"; 										if ($row->endtimes != "00:00:00") {					echo " - $endzeit $timename";					}				}				?>				</td>				<?php				//Link zu Details erzeugen				$detaillink = sefRelToAbs( 'index.php?option=com_eventlist&amp;Itemid='. $Itemid .'&amp;func=details&amp;did='. $row->id ); 				//titel				if (($layoutsettings[$idx['title']]->set_show == 1 ) && (($showdetails == 1) || ($showdetails == 3)) ) {				?>				<td width="<?php echo $layoutsettings[$idx['title']]->set_width; ?>" align="left"><a href="<?php echo $detaillink ; ?>"> <?php echo $row->titel; ?></a></td>				<?php				}				if (( $layoutsettings[$idx['title']]->set_show == 1 ) && (($showdetails == 2) || ($showdetails == 0)) ) {				?>				<td width="<?php echo $layoutsettings[$idx['title']]->set_width; ?>" align="left"><?php echo $row->titel; ?></td>				<?php				}								//Infomation icon				if ($layoutsettings[$idx['info']]->set_width != "") {					if (($showdetails == 2) || ($showdetails == 3)) {						if (empty ($row->datdescription) && empty($row->locdescription)) {				?>							<td width="<?php echo $layoutsettings[$idx['info']]->set_width; ?>" align="center">							<img src="<?php echo "$mosConfig_live_site/components/com_eventlist/images/information_no.png"; ?>" width="16" height="16">							</td>				<?php						} else {				?>							<td width="<?php echo $layoutsettings[$idx['info']]->set_width; ?>" align="center">							<a href="<?php echo $detaillink ; ?>"><img src="<?php echo "$mosConfig_live_site/components/com_eventlist/images/information.png"; ?>" width="16" height="16"></a>							</td>				<?php						}					}				}				if ($layoutsettings[$idx['location']]->set_show == 1) {				?>					<td width="<?php echo $layoutsettings[$idx['location']]->set_width; ?>" align="left">				<?php					if ($layoutsettings[$idx['location']]->set_linked == 1) {							echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shlocevents&locatid=$row->locid")."'>".$row->club."</a>"; 						} else {							echo $row->club;						}				?>					</td>				<?php				}				if ($layoutsettings[$idx['city']]->set_show == 1) {				?>					<td width="<?php echo $layoutsettings[$idx['city']]->set_width; ?>" align="left"><?php echo $row->city; ?></td>				<?php				}				if ($layoutsettings[$idx['category']]->set_show == 1) {					if ($layoutsettings[$idx['category']]->set_linked == 1) {					?>						<td width="<?php echo $layoutsettings[$idx['category']]->set_width; ?>" align="left"><?php echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$row->catid")."'>".$row->catname."</a>";?></td>					<?php 					} else { 					?>						<td width="<?php echo $layoutsettings[$idx['category']]->set_width; ?>" align="left"><?php echo $row->catname; ?></td>				<?php					}				}				?>			</tr>  		<?php $k = 1 - $k; } ?></table>			<?php 	$page = $total - $eventspage;	if (( $page > 0 ) && ( !$pop )) {	?>			<br />		<?php			$link = "index.php?option=com_eventlist&Itemid=$Itemid";	?>				<table width="<?php echo $layoutsettings[$idx['table']]->set_width; ?>"  border="0" align="center" cellpadding="0" cellspacing="0">  			<tr>   				<td align="center"><?php echo $pageNav->writePagesLinks($link); ?></td>  			</tr>  			<tr>    			<td align="center"><?php echo $pageNav->writePagesCounter(); ?></td>  			</tr>		</table>			<?php 	} 	?>		<br />	<?php	//function ListEvents ende	}	function ShowDeliverEvent($option, &$locations, &$categories, &$u_rows, $delloclink, $dellink, &$row, &$idx, &$layoutsettings, &$layoutcontents)	{		global $mainframe, $Itemid, $database, $mosConfig_absolute_path, $my, $params;	require($mosConfig_absolute_path."/administrator/components/com_eventlist/config.eventlist.php");		//Kalender holen	mosCommonHTML::loadCalendar();		//pathway	$mainframe->appendPathWay(_EVENTS_DELIVER);	//Menüname auslesen	$menuname = new mosMenu( $database );	$menuname->load($Itemid);	$eventlisthead = $menuname->name;		//Page titel setzen	$mainframe->setPageTitle( $eventlisthead );    $mainframe->addMetaTag( 'title' , $eventlisthead );	//Zugriff prüfen	if ($dellink == 0){	mosRedirect("index.php?option=com_eventlist&Itemid=$Itemid", _ADMIN_EVENTS_DELIV_REDI." ");	}	// Ausgabe	?>	<div class="componentheading">		<?php echo _EVENTS_DELIVER." "; ?>	</div>	<div align="right">		<?php 		$back 	= $params->get('back_button', $mainframe->getCfg('back_button'));		$params->set('back_button', $back);		mosHTML::BackButton( $params );		?>	</div>	<script language="javascript" type="text/javascript">	function chkFormular () {		var form = document.Eventlist;  		if (form.sendername.value == "") {    		alert("<?php echo _ADMIN_EVENTS_DELIVNAME_DESC." "; ?>");    		form.sendername.focus();    		return false;  		}  		if (form.sendermail.value == "") {    		alert("<?php echo _ADMIN_EVENTS_DELIVMAIL_DESC." "; ?>");    		form.sendermail.focus();    		return false;  		}  		if (form.sendermail.value.indexOf("@") == -1) {    		alert("<?php echo _ADMIN_EVENTS_DELMAILFORM." "; ?>");    		form.sendermail.focus();   			return false;  		}  		if (form.dates.value == "") {    		alert("<?php echo _EVENTS_DEL_DATE_EMPT." "; ?>");    		form.dates.focus();    		return false;  		}		var s = form.dates.value;		var erg = s.match(/[0-9]{4}-[0-1][0-9]-[0-3][0-9]/gi);		if(!erg) {    		alert("<?php echo _ADMIN_EVENTS_DELFORM." "; ?>");    		form.dates.focus();    		return false;  		}		<?php		if ( $layoutsettings[ $idx['time']]->set_show == 1 ) {		?>		if (form.times.value == "") {    		alert("<?php echo _EVENTS_DEL_TIME_EMPT." "; ?>");    		form.times.focus();    		return false;  		}		var t = form.times.value;		var erg2 = t.match(/[0-2][0-9]:[0-5][0-9]/gi);		if(!erg2) {    		alert("<?php echo _EVENTS_DEL_TIME_FORM." "; ?>");    		form.times.focus();    		return false;  		}				<?php } ?>				if (form.titel.value == "") {    		alert("<?php echo _EVENTS_DEL_TITEL_EMPT." "; ?>");    		form.titel.focus();    		return false;  		}		if (form.catsid.value == "0") {    		alert("<?php echo _EVENTS_DEL_CATEG_EMPT." "; ?>");    		form.catsid.focus();    		return false;  		}		if (form.locid.value == "0") {    		alert("<?php echo _EVENTS_DEL_LOCAT_EMPT." "; ?>");    		form.locid.focus();    		return false;  		}	}	var tastendruck = false	function rechne(restzeichen)	{		maximum = <?php echo $datdesclimit; ?>		if (restzeichen.datdescription.value.length > maximum)          {          restzeichen.datdescription.value = restzeichen.datdescription.value.substring(0, maximum)          links = 0          }  		else          {        links = maximum - restzeichen.datdescription.value.length         } 		restzeichen.zeige.value = links	  }	function berechne(restzeichen)   	{  		tastendruck = true  		rechne(restzeichen)   	}	</script>			<form enctype="multipart/form-data" name="Eventlist" action="index.php" method="post" onsubmit="return chkFormular()">	<INPUT TYPE="hidden" NAME="option" value="<?php echo $option ; ?>">	<INPUT TYPE="hidden" NAME="Itemid" value="<?php echo $Itemid ; ?>">	<?php	//registriert?	if ($my->usertype != ''){	?>	<INPUT TYPE="hidden" NAME="sendername" value="<?php echo $u_rows[0]->username ; ?>">	<INPUT TYPE="hidden" NAME="sendermail" value="<?php echo $u_rows[0]->email ; ?>">	<?php } 	?>	<INPUT TYPE="hidden" NAME="func" value="deliversend">		<table align="center" width="90%" CELLPADDING="0" CELLSPACING="4" BORDER="0">		<tr>			<th colspan="2"><?php echo _ADMIN_EVENTS_HEADER_EV." "; ?></th>		</tr>		<?php		if ($my->id == 0) {		?>		<tr>          	<td><?php echo _ADMIN_EVENTS_DELIVNAME." "; ?></td>			<td><input name="sendername" value="<?php echo $row->sendername; ?>" size="35" maxlength="20">				<b><?php echo _ADMIN_EVENTS_DELIVNAME_DESC." "; ?></b>			</td>		</tr>		<tr>			<td><?php echo _ADMIN_EVENTS_DELIVMAIL." "; ?></td>          	<td><input name="sendermail" value="<?php echo $row->sendermail; ?>" size="35" maxlength="40">			  <b><?php echo _ADMIN_EVENTS_DELIVMAIL_DESC." "; ?></b>			</td>		</tr>		<?php 		} 		?>		<tr>			<td><?php echo _ADMIN_EVENTS_CLUB_ID." "; ?>			</td>			<td>			<?php				$html = mosHTML::selectList( $locations, 'locid','size="1" class="inputbox"', 'value', 'text', $row->locid );				echo $html;				//Locationeinlieferung LINK				if ( $delloclink == 1 ) {					echo"<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=deliverloc")."'>"._EVENTLIST_DELIVER_LOC."</a>";				}				?>				<br />			</td>		</tr>		<tr>			<td><?php echo _ADMIN_EVENTS_DATE." "; ?>			</td>			<td>				<input id="dates" name="dates" value="<?php echo $row->dates; ?>" size="15" maxlength="10"> 				<?php 				if ($my->id) { 				?>					<input class="button" value="..." onclick="return showCalendar('dates', 'Y-m-d');" type="reset">				<?php 				} 				?>				<b><?php echo _ADMIN_EVENTS_DATE_NOTICE." "; ?></b>			</td>		</tr>		<tr>			<td>				<?php echo _ADMIN_EVENTS_TIME." "; ?>			</td>			<td>				<input name="times" value="<?php echo $row->times; ?>" size="15" maxlength="8">				<b>				<?php			  		if ( $layoutsettings[ $idx['time']]->set_show == 1 ) {			   			echo _ADMIN_EVENTS_TIME_NOTICE." "; 			  		} else {			   			echo _ADMIN_EVENTS_ENDTIME_NOTICE." ";			  		}				?>				</b>			</td>		</tr>		<tr>			<td>				<?php echo _ADMIN_EVENTS_ENDTIME." "; ?>			</td>			<td>				<input name="endtimes" value="<?php echo $row->endtimes; ?>" size="15" maxlength="8">				<b>				<?php echo _ADMIN_EVENTS_ENDTIME_NOTICE." "; ?>				</b>			</td>		</tr>		<tr>			<td>				<?php echo _ADMIN_EVENTS_TITEL." "; ?>			</td>			<td>				<input name="titel" value="<?php echo $row->titel; ?>" size="65" maxlength="60"></td>		</tr>		<tr>			<td>				<?php echo _ADMIN_EVENTS_CAT_ID." "; ?>			</td>			<td>				<?php					$html = mosHTML::selectList( $categories, 'catsid','size="1" class="inputbox"', 'value', 'text', $row->catsid );					echo $html;				?>					</td>		</tr>		<?php if ( $showfroregistra == 2 ) { 		?>		<tr>			<td><?php echo _ADMIN_EVENTS_REGISTRA." "; ?></td>			<td>				<?php			  	$html = mosHTML::yesnoSelectList( 'registra', 'class="inputbox"', $row->registra );				echo $html;				?>			</td>		</tr>		<?php if ( $showfrounregistra == 2 ) { ?>		<tr>			<td><?php echo _ADMIN_EVENTS_UNREGISTRA." "; ?></td>			<td>			<?php			$html = mosHTML::yesnoSelectList( 'unregistra', 'class="inputbox"', $row->unregistra );			echo $html;			?>			</td>		</tr>		  	<?php 			}//register ende			}//abmelden ende						if (( $imageenabled == 2 ) || ($imageenabled == 1)) { 			?>		<tr>			<td>				<?php echo _ADMIN_EVENTS_IMAGEUPL." "; ?>			</td>			<td>				<input name="userfile" class="inputbox" type="file" /> <?php echo _ADMIN_EVENTS_SETT_IMAGESIZE." "; ?></b> <?php echo $sizelimit; ?> kb<br>  			  	<br />			</td>		</tr>			<?php 			} 			?>		<tr>			<td>				<?php echo _ADMIN_EVENTS_DESCR_OPT." "; ?>			</td>			<td>				<b>				<?php echo _ADMIN_EVENTS_DESCR_INTRO." "; ?>				</b>			</td>		</tr>		<tr>			<td valign="top">				<?php echo _ADMIN_EVENTS_DESCR." "; ?>			</td>			<td valign="top">				<?php				$is_chef = (strtolower($my->usertype) == 'editor' || strtolower($my->usertype) == 'publisher' || strtolower($my->usertype) == 'manager' || strtolower($my->usertype) == 'administrator' || strtolower($my->usertype) == 'super administrator' );				if ($is_chef) {					// parameters : areaname, content, hidden field, width, height, rows, cols					editorArea( 'editor1',  $row->datdescription , 'datdescription', '80%;', '350', '20', '20' ) ; 				} else {				?>				<TEXTAREA style="width:80%;" ROWS="10" NAME="datdescription" class="inputbox" wrap="VIRTUAL" onkeyup="berechne(this.form)"></TEXTAREA><br />					<?php echo _EVENTS_DELTEXTARHTML." "; ?><br />					<input disabled value="<?php echo $datdesclimit; ?>" size="4" name="zeige"><?php echo _EVENTS_RESTZ." "; ?><br />					<a href="javascript:rechne(document.Eventlist);"><?php echo _EVENTS_RESTZAKT." "; ?></a>				<?php 				} 				?>			</td>		</tr>		<tr>			<td colspan="2" align="center"><INPUT TYPE="submit" NAME="send" class="button">			</td>		</tr>	</table>		</form>	<?php	}//funktion showdeliverevent ende		function ShowDetails($option, &$row, &$registers, &$usercheck, &$idx, &$layoutsettings, &$layoutcontents)	{			global $mainframe, $Itemid, $database, $mosConfig_absolute_path, $mosConfig_live_site, $my, $params, $hide_js, $pop;		require($mosConfig_absolute_path."/administrator/components/com_eventlist/config.eventlist.php");			//pathway		$mainframe->appendPathWay(_EVENTS_DETAILS);		//Menüname auslesen		$menuname = new mosMenu( $database );		$menuname->load($Itemid);		$eventlisthead = $menuname->name;		//Wenn link deaktiviert zugriff sperren		if ($showdetails == 0) {			mosRedirect("index.php?option=com_eventlist&Itemid=$Itemid", _ADMIN_EVENTS_DETA_REDI." ");		}			//Druckfunktion		$params->def( 'print', !$mainframe->getCfg( 'hidePrint' ) );		$params->def( 'icons', $mainframe->getCfg( 'icons' ) ); 			if ( $pop ) {			$params->set( 'popup', 1 );		} 			$print_link = $mosConfig_live_site. '/index2.php?option=com_eventlist&Itemid='. $Itemid .'&func=details&did='. $row->did .'&pop=1';	//Details ausgabe	?>	<table class="contentpaneopen" style="width:100%">		<tr>			<td width="100%">&nbsp;</td>				<?php mosHTML::PrintIcon( $row, $params, $hide_js, $print_link ); ?>		</tr>	</table>	<table width="100%">  		<tr>    		<td align="left" class='componentheading'><?php echo _EVENTS_DETAILS." " ;?></td>  		</tr>	</table>		<br />	<table width="100%">  		<tr>    		<td align="left" class="sectiontableheader" colspan="3"><?php echo _EVENTS_EVENT." " ;?></td>  		</tr>  		<tr>    		<td align="left" width="20%"><?php echo _EVENTS_WHEN." " ;?></td>    		<td align="left">			<?php 				$datum = strftime( $formatdate, strtotime( $row->dates ));				echo $datum; 				if (( $showtimedetails == 1) && ($row->times != "00:00:00")) {					echo " | "; 					$zeit = strftime( $formattime, strtotime( $row->times ));					echo "$zeit $timename"; 					$endzeit = strftime( $formattime, strtotime( $row->endtimes ));					if ($row->endtimes != "00:00:00") {						echo " - $endzeit $timename";					}				}			?>			</td>    		<td rowspan="4" align="left">				<?php //Zellenbereich für flyer				if (!empty($row->datimage)) {					$original = $mosConfig_live_site."/images/eventlist/events/".$row->datimage;					$thumb = $mosConfig_live_site."/images/eventlist/events/small/".$row->datimage;					if (file_exists($mosConfig_absolute_path."/images/eventlist/events/small/".$row->datimage)) {						$iminfo = @getimagesize("images/eventlist/events/".$row->datimage);						$widthev = $iminfo[0];						$heightev = $iminfo[1];					?>						<a href="javascript:void window.open('<?php echo $original; ?>','Popup','width=<?php echo $widthev; ?>,height=<?php echo $heightev; ?>,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no');">						<img src="<?php echo $thumb; ?>"></a>					<?php 					} else { ?>						<img src="<?php echo $original; ?>" width="<?php echo $imagewidth; ?>" height="<?php echo $imagehight; ?>">					<?php 					} 				} else {					echo "&nbsp;";				}				?> 			</td>  		</tr>    	<?php  	if ($showdetailstitel == 1) {   	?>    		<tr>    		<td align="left" width="20%"><?php echo _ADMIN_EVENTS_TITEL_LI_EV." ";  ?></td>    		<td align="left"><?php echo $row->titel; ?></td>  		</tr>		  	<?php   	}  	?>	  		<tr>    		<td align="left" width="20%"><?php echo _EVENTS_WHERE." " ;?></td>    		<td align="left">			<?php				if (( $showdetlinkclub == 1) && (!empty($row->url))) {					if(strtolower(substr($row->url, 0, 7)) == "http://") {           				// Wenn der Teilstring gleich "http://" ist,           				// dann  Link ohne "http://" erzeugen				?>						<a href="<?php echo $row->url; ?>" target="_blank"> <?php echo $row->club; ?></a>				<?php					} else {						// Wenn nicht, dann "http://" so dazu				?>						<a href="http://<?php echo $row->url; ?>" target="_blank"> <?php echo $row->club; ?></a>				<?php 					} 				} else {					echo $row->club;				}				?> - <?php echo $row->city; ?>			</td>  		</tr>		<tr>    		<td align="left" width="20%"><?php echo _ADMIN_EVENTS_CAT_ID." " ;?></td>    		<td align="left">				<?php echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$row->catsid")."'>".$row->catname."</a>";?>			</td>  		</tr>		<?php		if ($hidedetloc == 1) {		?>		<tr>		  <td align="left" width="20%">&nbsp;</td>		  <td align="left">&nbsp;</td>		  <td align="left">		  		<?php				//Link zu map				switch ($showmapserv) {					case 0:					break;						case 1:  						if ($map24id != "") {						?>							<a href="http://link2.map24.com/?lid=<?php echo $map24id ?>&maptype=JAVA&width0=2000&street0=<?php echo $row->street ?>&zip0=<?php echo $row->plz ?>&city0=<?php echo $row->city ?>&country0=<?php echo $row->country ?>&sym0=10280&description0=<?php echo $row->club ?>" target="_blank"> 							<img src="http://img.map24.com/map24/link2map24/de/show_address_7.gif" border=0 alt="Map24" /></a>						<?php 						} 					break;						case 2:				?>						<a href="http://maps.google.com/maps?q=<?php echo $row->street; ?>+<?php echo $row->city ?>+<?php echo $row->plz ?>" title="<?php echo _EVENTS_MAP." "; ?>" target="_blank"><?php echo _EVENTS_MAP." "; ?></a>				<?php					break;				}//switch ende				?>		  </td>	  	</tr>		<?php 		} //hideloc ende		?>  		<tr>    		<td colspan="3">&nbsp;</td>  		</tr>		  	<?php	if ($showevdescription == 1) { 	?>	  		<tr>    		<td align="left" class="sectiontableheader" colspan="3"><?php echo _EVENTS_DESC." "; ?></td>  		</tr>  		<tr>    		<td align="left" colspan='3'>				<?php				if (($row->datdescription == "") || ($row->datdescription == "<br />")) {					echo _EVENTS_DESCALERT." " ;				} else {					//Mambots ausführen					$row->text = $row->datdescription;					$row->title = $row->titel;					global $_MAMBOTS;					$_MAMBOTS->loadBotGroup( 'content' );					$results = $_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, 0 ), true );					echo $row->text;				}				?>			</td>  		</tr>  		<tr>    		<td colspan="3">&nbsp;</td>  		</tr>    	<?php  	}//showevdescription ende 	  	if ($hidedetloc == 1) {  		echo "</table>";  	} else {  	?>		<tr>  			<td align="left" class="sectiontableheader" colspan="3"><?php echo _EVENTS_LOCAT." " ; ?></td>  		</tr>  		<tr>  			<td align="left" width="20%" colspan="1"><?php echo $layoutcontents->locationname; ?></td>			<td align="left" width="80%" colspan="2"><?php echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shlocevents&locatid=$row->locid")."'>".$row->club."</a>"; ?></td>  		</tr>  		<tr>    		<td align="left" width="20%"><?php echo _EVENTS_HOMEPAGE_LO." "; ?></td>   			<td align="left">				<?php				if (($showdetlinkclub == 1) && (!empty($row->url))) {					if(strtolower(substr($row->url, 0, 7)) == "http://") {          				// Wenn der Teilstring gleich "http://" ist,           				// dann  Link ohne "http://" erzeugen						?>						<a href="<?php echo $row->url; ?>" target="_blank"> <?php echo $row->url; ?></a>						<?php					} else {						// Wenn nicht, dann "http://" so dazu						?>						<a href="http://<?php echo $row->url; ?>" target="_blank"> <?php echo $row->url; ?></a>						<?php 					} 				} else {					echo _EVENTS_HOMEPAGENO_LO." ";				}				?>			</td>    		<td align="left" rowspan="3">				<?php //Zellenbereich für flyer				if (!empty($row->locimage)) {					$originalloc = $mosConfig_live_site."/images/eventlist/location/".$row->locimage;					$thumbloc = $mosConfig_live_site."/images/eventlist/location/small/".$row->locimage;										if (file_exists($mosConfig_absolute_path."/images/eventlist/location/small/".$row->locimage)) {						$iminfoloc = @getimagesize("images/eventlist/location/".$row->locimage);						$widthloc = $iminfoloc[0];						$heightloc = $iminfoloc[1];						?>						<a href="javascript:void window.open('<?php echo $originalloc; ?>','Popup','width=<?php echo $widthloc; ?>,height=<?php echo $heightloc; ?>,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no');">						<img src="<?php echo $thumbloc; ?>"></a>						<?php 					} else { ?>						<img src="<?php echo $originalloc; ?>" width="<?php echo $imagewidth; ?>" height="<?php echo $imagehight; ?>">					<?php 					} 				} else {					echo "&nbsp;";				}				?> 				</td>  		</tr>  		<?php  		if ($showdetailsadress == 1) {  		?>  		<tr>    		<td align="left"><?php echo _ADMIN_EVENTS_CLUBSTREET_LO." "; ?></td>    		<td align="left"><?php echo $row->street; ?></td>  		</tr>  		<tr>    		<td align="left"><?php echo _ADMIN_EVENTS_CLUBPLZ_LO." "; ?></td>    		<td align="left"><?php echo $row->plz; ?></td>  		</tr>  		<tr>    		<td align="left" width="20%"><?php echo _EVENTS_CITY." " ;?></td>    		<td colspan="2" align="left"><?php echo $row->city; ?></td>  		</tr>  		<tr>    		<td align="left"><?php echo _EVENTS_COUNTRY_LO." "; ?></td>    		<td align="left"><?php echo $row->country; ?></td>    		<td align="left">				<?php				//Link zu map				switch ($showmapserv) {					case 0:					break;						case 1:  						if ($map24id != "") {						?>							<a href="http://link2.map24.com/?lid=<?php echo $map24id ?>&maptype=JAVA&width0=2000&street0=<?php echo $row->street ?>&zip0=<?php echo $row->plz ?>&city0=<?php echo $row->city ?>&country0=<?php echo $row->country ?>&sym0=10280&description0=<?php echo $row->club ?>" target="_blank"> 							<img src="http://img.map24.com/map24/link2map24/de/show_address_7.gif" border=0 alt="Map24" /></a>						<?php 						} 					break;						case 2:				?>						<a href="http://maps.google.com/maps?q=<?php echo $row->street; ?>+<?php echo $row->city ?>+<?php echo $row->plz ?>" title="<?php echo _EVENTS_MAP." "; ?>" target="_blank"><?php echo _EVENTS_MAP." "; ?></a>				<?php					break;				}//switch ende				?>			</td>  		</tr>  		<?php		}//showdetails ende	  		if ($showlocdescription == 1) {		?>  		<tr>    		<td align="left" colspan="3">&nbsp;</td>  		</tr>  		<tr>    		<td align="left" class="sectiontableheader" colspan="3"><?php echo _EVENTS_LOCDESC." " ;?></td>  		</tr>  		<tr>    		<td align="left" colspan="3">				<?php 				if (empty ($row->locdescription)) {					echo _EVENTS_DESCALERT." " ;				} else {					//execute the Mambot					$row->text = $row->locdescription;					$row->title = $row->club;					global $_MAMBOTS;					$_MAMBOTS->loadBotGroup( 'content' );					$results = $_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, 0 ), true );					echo $row->text;				}				?>			</td>  		</tr>   		<tr>			<td colspan="3">&nbsp;</td>  		</tr>		<?php  					}//end showlocdescription	}//end hidedetloc	  	//  	//Registration  	//  	//if aktivated  	if ($row->registra == 1) {				//wenn loc deaktiviert vorher geschlossene table öffnen		if ($hidedetloc == 1) {			echo "<table>";		}  	?>    		<tr>			<td align="left" class="sectiontableheader" colspan="3"><?php echo _EVENTS_REGISTRA_HEAD." "; ?>			</td>		</tr>  		<tr>			<td colspan="3">&nbsp;						</td>		</tr>  		<tr>			<td colspan="3">      			<?php     				foreach ($registers as $register) {					//Wenn CB  					if ($comunsolution == 1) {  						$query_avatar = "SELECT avatar FROM #__comprofiler WHERE user_id='".$register->uid."' AND avatarapproved=1";						$database->setQuery( $query_avatar );						$pics = $database->loadObjectList();								$thumb_path ="images/comprofiler/tn";						$no_photo = ' alt="'.$register->urname.'" border=0';												foreach ($pics as $pic) {							//Avatare sollen dargestellt werden							if (($comunoption == 2) && ($comunoption != 0)){								//User hat avatar								if(($pic->avatar!='') && ($register->uid!='0')) {									echo "<div style=\"float:left; margin: 4px; padding: 2px; width:100px; height:100px;\"><a href='".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=$register->uid")."'><img src=".$thumb_path.$pic->avatar.$no_photo."><br/>".$register->urname." </a>";									echo "</div>";								//Wenn nicht								}else {									echo "<div style=\"float:left; margin: 4px; padding: 2px; width:100px; height:100px;\"><a href='".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=$register->uid")."'><img src=\"components/com_comprofiler/images/english/tnnophoto.jpg\" border=0 alt=\"no photo\"><br/>".$register->urname." </a>";									echo "</div>";								}							//Wenn nicht dann nur link							} 							if ($comunoption == 1) {								echo "<div style=\"float:left; margin: 4px; padding: 2px;\"><a href='".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=$register->uid")."'>".$register->urname." </a>";								echo "</div>";							}						}					//Wenn CB ende - Wenn nicht CB dann 					} 										if (($comunoption == 0) || ($comunsolution == 0)) {						echo "<div style=\"float:left; padding:4px;\">".$register->urname."</div>";					}				}  			?>  			</td>  		</tr>  		<tr>    		<td colspan="3">&nbsp;</td>  		</tr>  		<tr>			<td colspan="3">  			<?php				$jetzt = date("Y-m-d");				$now = strtotime($jetzt);				$date = strtotime($row->dates);				$timecheck = $now - $date;				if ($timecheck <= 0) {  					if ($my->id) {   						if (!$usercheck) { 			?>							<form name="Eventlist" action="index.php" method="post">							<input type="hidden" NAME="option" value="<?php echo $option ; ?>">							<input type="hidden" NAME="Itemid" value="<?php echo $Itemid ; ?>">							<input type="hidden" NAME="rdid" value="<?php echo $row->did ; ?>">							<input type="hidden" NAME="func" value="userregister">							<?php echo _EVENTS_REGISTRA_REG." "; ?>							<input type="checkbox" name="reg_check" onClick="check(this, document.Eventlist.senden)"> 							<br />							<input type="submit" name="senden" value="<?php echo _EVENTS_REGISTRA_BUTTON." "; ?>" disabled>							</form>														<script language="JavaScript">								function check(checkbox, senden) {									if(checkbox.checked==true){										senden.disabled = false;									} else {										senden.disabled = true;									}								}							</script>			<?php 						} else {							if ($row->unregistra == 0) {								echo _EVENTS_REGISTRA_ALLRE." ";							} else {							?>							<form name="Eventlist" action="index.php" method="post">							<input type="hidden" NAME="option" value="<?php echo $option ; ?>">							<input type="hidden" NAME="Itemid" value="<?php echo $Itemid ; ?>">							<input type="hidden" NAME="rdid" value="<?php echo $row->did ; ?>">							<input type="hidden" NAME="func" value="delreguser">							<?php echo _EVENTS_REGISTRA_UNREG." "; ?>							<input type="checkbox" name="reg_check" onClick="check(this, document.Eventlist.senden)"> 							<br />							<input type="submit" name="senden" value="<?php echo _EVENTS_REGISTRA_BUTTON_UNREG." "; ?>" disabled>							</form>														<script language="JavaScript">								function check(checkbox, senden) {									if(checkbox.checked==true){										senden.disabled = false;									} else {										senden.disabled = true;									}								}							</script>							<?php							}//ende unregistra						}//ende usercheck					} else {						echo _EVENTS_REGISTRA_LOGIN." ";					}//ende my->id				} else {					echo _EVENTS_REGISTRA_TOLATE." ";				}//ende timecheck	?>  			</td>  		</tr>		<?php } //wenn aktiviert ende ?>	</table>		<br /><table width="100%" align="center">  <tr>    <td align="center">		<?php 		$back 	= $params->get('back_button', $mainframe->getCfg('back_button'));		$params->set('back_button', $back);		mosHTML::BackButton( $params );		?>	</td>  </tr>  <tr>    <td>&nbsp;</td>  </tr>  <tr>    <td align="center">        <br />	</td>  </tr></table>	<br />	<?php	}//funktion showDetails ende	function ShowDeliverLocation($option, &$u_rows, $delloclink, &$row)	{	global $mainframe, $Itemid, $database, $mosConfig_absolute_path, $my, $params;	require($mosConfig_absolute_path."/administrator/components/com_eventlist/config.eventlist.php");		//pathway	$mainframe->appendPathWay(_EVENTS_DELIVER_LOC);	//Menüname auslesen	$menuname = new mosMenu( $database );	$menuname->load($Itemid);	$eventlisthead = $menuname->name;	//Page titel setzen	$mainframe->setPageTitle( $eventlisthead );    $mainframe->addMetaTag( 'title' , $eventlisthead );		//Zugriff prüfen	if ($delloclink == 0){		mosRedirect("index.php?option=com_eventlist&Itemid=$Itemid", _ADMIN_EVENTS_DELIV_REDI." ");	}		//Ausgabe	?>		<div class="componentheading">		<?php echo _EVENTS_DELIVER_LOC." "; ?>	</div>		<div align="right">		<?php 		$back 	= $params->get('back_button', $mainframe->getCfg('back_button'));		$params->set('back_button', $back);		mosHTML::BackButton( $params );		?>	</div>	<script language="javascript" type="text/javascript">		function chkFormular () {			var form = document.Eventlist;  			if (form.sendernameloc.value == "") {    			alert("<?php echo _ADMIN_EVENTS_DELIVNAME_DESC." "; ?>");    			form.sendernameloc.focus();    			return false;  			}  			if (form.sendermailloc.value == "") {    			alert("<?php echo _ADMIN_EVENTS_DELIVMAIL_DESC." "; ?>");    			form.sendermailloc.focus();    			return false;  			}  			if (form.sendermailloc.value.indexOf("@") == -1) {    			alert("<?php echo _ADMIN_EVENTS_DELMAILFORM." "; ?>");    			form.sendermailloc.focus();   				return false;  			}  			if (form.club.value == "") {    			alert("<?php echo _ADMIN_EVENTS_SAVECLUB_LO." "; ?>");   	 			form.club.focus();    			return false;  			}			if (form.street.value == "") {    			alert("<?php echo _EVENTS_DEL_LOC_STREET_EMPT." "; ?>");    			form.street.focus();    			return false;  			}			if (form.plz.value == "") {    			alert("<?php echo _EVENTS_DEL_LOC_PLZ_EMPT." "; ?>");    			form.plz.focus();    			return false;  			}			if (form.city.value == "") {    			alert("<?php echo _ADMIN_EVENTS_SAVETOWN_LO." "; ?>");    			form.city.focus();    			return false;  			}			if (form.country.value == "") {    			alert("<?php echo _EVENTS_DEL_LOC_COUNTRY_EMPT." "; ?>");    			form.country.focus();    			return false;  			}		}		var tastendruck = false		function rechne(restzeichen)		{			maximum = <?php echo $datdesclimit; ?>			if (restzeichen.locdescription.value.length > maximum)          	{          		restzeichen.locdescription.value = restzeichen.locdescription.value.substring(0, maximum)          		links = 0          	}  			else          	{        		links = maximum - restzeichen.locdescription.value.length         	} 			restzeichen.zeige.value = links  		}		function berechne(restzeichen)   		{  			tastendruck = true  			rechne(restzeichen)  		}	</script>	<form enctype="multipart/form-data" name="Eventlist" action="index.php" method="post" onsubmit="return chkFormular()">	<?php	//Userdaten auslesen	if ($my->usertype != ''){		?>		<INPUT TYPE="hidden" NAME="sendernameloc" value="<?php echo $u_rows[0]->username ; ?>">		<INPUT TYPE="hidden" NAME="sendermailloc" value="<?php echo $u_rows[0]->email ; ?>">	<?php 	} 	?>	<INPUT TYPE="hidden" NAME="option" value="<?php echo $option ; ?>">	<INPUT TYPE="hidden" NAME="Itemid" value="<?php echo $Itemid ; ?>">	<INPUT TYPE="hidden" NAME="func" value="deliversendloc">		<table>  			<tr>    			<th colspan="2"><?php echo _ADMIN_EVENTS_HEADER_LO." "; ?></th>  			</tr>			<?php			if ($my->id == 0) {		   	?>		   	<tr>          	  	<td><?php echo _ADMIN_EVENTS_DELIVNAME." "; ?></td>          	  	<td><input name="sendernameloc" value="<?php echo $row->sendernameloc; ?>" size="35" maxlength="20">			  		<b><?php echo _ADMIN_EVENTS_DELIVNAME_DESC." "; ?></b>				</td>       	  	</tr>		  	<tr>          	  	<td><?php echo _ADMIN_EVENTS_DELIVMAIL." "; ?></td>          	  	<td><input name="sendermailloc" value="<?php echo $row->sendermailloc; ?>" size="35" maxlength="40">			  		<b><?php echo _ADMIN_EVENTS_DELIVMAIL_DESC." "; ?></b>				</td>       	  	</tr>		  	<?php 			} 			?>  			<tr>    			<td><?php echo _ADMIN_EVENTS_CLUB_LO." "; ?></td>    			<td><input name="club" value="<?php echo $row->club; ?>" size="55" maxlength="50"></td>  			</tr>  			<tr>    			<td><?php echo _ADMIN_EVENTS_CLUBHOME_LO." "; ?></td>    			<td><input name="url" value="<?php echo $row->url; ?>" size="55" maxlength="50">     			</td>  			</tr>  			<tr>  			  	<td>&nbsp;</td>  			  	<td><b><?php echo _ADMIN_EVENTS_CLUBHOME_NOTICE_LO." "; ?></b></td>		  	</tr>  			<tr>  				<td><?php echo _ADMIN_EVENTS_CLUBSTREET_LO." "; ?></td>				<td><input name="street" value="<?php echo $row->street; ?>" size="55" maxlength="50"></td>		  	</tr>  			<tr>  			  	<td><?php echo _ADMIN_EVENTS_CLUBPLZ_LO." "; ?></td>  			  	<td><input name="plz" value="<?php echo $row->plz; ?>" size="15" maxlength="10"></td>		  	</tr>  			<tr>  				<td><?php echo _ADMIN_EVENTS_CITY_LO." "; ?></td>  				<td><input name="city" value="<?php echo $row->city; ?>" size="55" maxlength="50">				</td>  			</tr>  			<tr>  			  	<td><?php echo _ADMIN_EVENTS_CLUBCOUNTRY_LO." "; ?></td>  			  	<td>					<input name="country" value="<?php echo $row->country; ?>" size="4" maxlength="3">  			  		<br />				</td>		  	</tr>			<?php 			if (( $imageenabled == 2 ) || ($imageenabled == 1)) { 			?>		   	<tr>  			  	<td><?php echo _ADMIN_EVENTS_IMAGEUPL." "; ?></td>  			  	<td>					<input name="userfile" class="inputbox" type="file" /> <?php echo _ADMIN_EVENTS_SETT_IMAGESIZE." "; ?></b> <?php echo $sizelimit; ?> kb  			  		<br />				</td>		  	</tr>			<?php 			} 			?>		  	<tr>				<td colspan="2"><?php //echo _ADMIN_EVENTS_OPTIONAL_LO." "; ?></td>		  	</tr>			<tr>  				<td>				</td>  				<td>					<b><?php echo _ADMIN_EVENTS_DESCR_INTRO_LO." "; ?></b>				</td>  			</tr>			<tr>  				<td valign="top"><?php echo _ADMIN_EVENTS_DESCR_LO." "; ?></td>  				<td valign="top">				<?php					$is_chef = (strtolower($my->usertype) == 'editor' || strtolower($my->usertype) == 'publisher' || strtolower($my->usertype) == 'manager' || strtolower($my->usertype) == 'administrator' || strtolower($my->usertype) == 'super administrator' );					if ($is_chef) {					// parameters : areaname, content, hidden field, width, height, rows, cols					editorArea( 'editor1',  $row->locdescription , 'locdescription', '80%;', '350', '20', '20' ) ; 					} else {				?>						<TEXTAREA style="width:80%;" ROWS="10" NAME="locdescription" class="inputbox" wrap="VIRTUAL" onkeyup="berechne(this.form)"></TEXTAREA><br />						<?php echo _EVENTS_DELTEXTARHTML." "; ?><br />						<input disabled value="<?php echo $datdesclimit; ?>" size="4" name="zeige"><?php echo _EVENTS_RESTZ." "; ?><br />						<a href="javascript:rechne(document.Eventlist);"><?php echo _EVENTS_RESTZAKT." "; ?></a>				<?php 					} 				?>				</td>  			</tr>			<tr>            	<td colspan="2" align="center"><INPUT TYPE="submit" NAME="send" class="button"></td>           </tr>		</table>	</form>	<?php	}//funktion showDeliverLocation endefunction ShowCatView($option, &$rows, $dellink, $func)	{	global $database, $Itemid, $mosConfig_absolute_path, $mosConfig_live_site, $mainframe, $params, $hide_js, $pop, $acl, $my;	require($mosConfig_absolute_path."/administrator/components/com_eventlist/config.eventlist.php");		//menüname anzeigen	$menuname = new mosMenu( $database );	$menuname->load($Itemid);	$eventlisthead = $menuname->name;		//Page titel setzen	$mainframe->setPageTitle( $eventlisthead );    $mainframe->addMetaTag( 'title' , $eventlisthead );			//Druckfunktion	$params->def( 'print', !$mainframe->getCfg( 'hidePrint' ) );	$params->def( 'icons', $mainframe->getCfg( 'icons' ) ); 		if ( $pop ) {		$params->set( 'popup', 1 );	} 		$print_link = $mosConfig_live_site. '/index2.php?option=com_eventlist&Itemid='. $Itemid .'&pop=1';	if ( !$pop ) {		if ($func == "shcatarchive") {		$func = "sharchive";	}		if (($dellink == 1) || ($func == "sharchive") || ($oldevent == 2)) {	?>		<div align="right">			<?php 			if ($dellink == 1) {				echo"<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=deliver")."'>"._EVENTLIST_DELIVER."</a> | ";			}			if ($func == "sharchive") {				echo"<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid")."'>"._EVENTLIST_CATVIEW1."</a>";			} 			if (($oldevent == 2) && ($func != "sharchive")){				echo"<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatarchive")."'>"._EVENTLIST_SHARCHIVE."</a>";			}			?>	</div>	<?php		}	}//if pop ende	?>		<table class="contentpaneopen" style="width:100%">		<tr>			<td width="100%">&nbsp;</td>				<?php mosHTML::PrintIcon( $row, $params, $hide_js, $print_link ); ?>		</tr>	</table>		<?php		$k = 0;		for ($i=0, $n=count($rows); $i < $n; $i++) {		$row = $rows[$i];	?>		<div align="left" class="componentheading">			<?php 			echo "$eventlisthead - $row->catname"; 			?>	</div>				<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center">        			<tr>           				<td align="left" width="100" valign="top">            				<?php 							if ($row->image != '') {								echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$row->id")."'><img src='".$mosConfig_live_site."/images/stories/".$row->image."' name='image' width='".$imagewidth."' height='".$imagehight."' border='0'></a>";							} else {								echo "&nbsp;";							}							?>							<br />							<?php							//Anzahl Events in Kategorie holen							if ($func == "sharchive") {								$database->SetQuery( "SELECT count(*)"												. "\nFROM #__eventlist_dates" 												. "\nWHERE published = -1 && catsid = $row->id"												);  								$total = $database->loadResult();							} else {								$database->SetQuery( "SELECT count(*)"												. "\nFROM #__eventlist_dates" 												. "\nWHERE published = 1 && catsid = $row->id"												);  								$total = $database->loadResult();							}							echo _EVENTLIST_CATVIEWCOUNTEV." ";							if ($func == "sharchive") {							echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=sharchive&categid=$row->id")."'>". $total."</a>";							} else {							echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$row->id")."'>". $total."</a>";							}							?>						</td>          				<td align="left" valign="top">		  					<p><?php echo $row->catdescription ; ?></p>		  					<p><?php 								if ($func == "sharchive") {									echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=sharchive&categid=$row->id")."'>"._EVENTLIST_SHARCHIVE."</a>";								} else {									echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$row->id")."'>"._EVENTLIST_CATVIEW1."</a>";								}								?></p>						</td>         			</tr>      			</table>	<br />		<?php	$k = 1 - $k; } 	?>		<?php		}//funktion ShowCatView ende		function ShowCatEvents($option, &$c_rows, &$rows, &$pageNav, $dellink, $func, $total, &$idx, &$layoutsettings, &$layoutcontents)	{	global $database, $Itemid, $mosConfig_absolute_path, $mosConfig_live_site, $mainframe, $params, $hide_js, $pop, $params;	require($mosConfig_absolute_path."/administrator/components/com_eventlist/config.eventlist.php");		//menüname anzeigen	$menuname = new mosMenu( $database );	$menuname->load($Itemid);	$eventlisthead = $menuname->name;		//Page titel setzen	$mainframe->setPageTitle( $eventlisthead );    $mainframe->addMetaTag( 'title' , $eventlisthead );		//Druckfunktion	$params->def( 'print', !$mainframe->getCfg( 'hidePrint' ) );	$params->def( 'icons', $mainframe->getCfg( 'icons' ) ); 		if ( $pop ) {		$params->set( 'popup', 1 );	} 		$print_link = $mosConfig_live_site. '/index2.php?option=com_eventlist&Itemid='. $Itemid .'&func=shcatev1&categid='. $c_rows[0]->id .'&pop=1';	if ( !$pop ) {	?>		<div align="right">	<?php 			if ($dellink == 1) {				echo"<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=deliver")."'>"._EVENTLIST_DELIVER."</a>";			}	?>		</div>	<?php 	} 	?>			<div class="componentheading"><?php echo "$eventlisthead - ".$c_rows[0]->catname; ?></div>			<table class="contentpaneopen" style="width:100%">			<tr>				<td width="100%">&nbsp;</td>					<?php mosHTML::PrintIcon( $row, $params, $hide_js, $print_link ); ?>			</tr>		</table>			<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center">    	    <tr>      	     	<td width="100" align="center" valign="top">				<?php				if ($c_rows[0]->image != '') {				?>     		       	<img src="<?php echo $mosConfig_live_site."/images/stories/".$c_rows[0]->image ; ?>" name="image" width="<?php echo $imagewidth; ?>" height="<?php echo $imagehight; ?>" border="0">				<?php 				} else {					echo "&nbsp;";				}				?>					<br />				</td>       		   	<td align="left" valign="top">			  		<p><?php echo $c_rows[0]->catdescription ; ?></p>				</td>    	   </tr>  		</table>   	<br />			<table width="<?php echo $layoutsettings[ $idx['table']]->set_width; ?>" border="0" cellspacing="0" cellpadding="0">			<tr>				<td align="left" width="<?php echo $layoutsettings[$idx['date']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->datename; ?></td>				<?php				if ($layoutsettings[ $idx['title']]->set_show == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['title']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->titlename; ?></td>				<?php				}				//designsache				//if ("$showdetails" == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['info']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->infobuttonname; ?></td>				<?php				//}				if ($layoutsettings[ $idx['location']]->set_show == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['location']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->locationname; ?></td>				<?php				}				if ($layoutsettings[ $idx['city']]->set_show == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['city']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->cityname; ?></td>				<?php				}				if ($layoutsettings[ $idx['category']]->set_show == 1) {				?>				<td width="<?php echo $layoutsettings[ $idx['category']]->set_width; ?>" align="left" class="sectiontableheader"><?php echo $layoutcontents->catfroname; ?></td>				<?php				}				?>			</tr>		</table>				<table width="<?php echo $layoutsettings[ $idx['table']]->set_width; ?>"  border="0" cellspacing="0" cellpadding="0">	<?php		$k = 0;		for ($i=0, $n=count($rows); $i < $n; $i++) {		$row = $rows[$i];		//Datum aus Tabelle formatieren		$datum = strftime($formatdate,strtotime( $row->dates ));		//versch. farbige Ausgabe		$tabclass = array( 'sectiontableentry1', 'sectiontableentry2' );			?>  			<tr class="<?php echo $tabclass[$k]; ?>">    			<td width="<?php echo $layoutsettings[ $idx['date']]->set_width; ?>" align="left"><b><?php echo $datum; ?></b>				<?php				//Zeitabfrage				if ($layoutsettings[ $idx['time']]->set_show == 1) {					$zeit = strftime("$formattime",strtotime( $row->times ));					$endzeit = strftime("$formattime",strtotime( $row->endtimes ));					echo "<br /> $zeit $timename"; 										if ($row->endtimes != "00:00:00") {					echo " - $endzeit $timename";					}				}				?>				</td>				<?php				//Link zu Details erzeugen				$detaillink = sefRelToAbs( 'index.php?option=com_eventlist&amp;Itemid='. $Itemid .'&amp;func=details&amp;did='. $row->id ); 				//titel				if (($layoutsettings[ $idx['title']]->set_show == 1 ) && (($showdetails == 1) || ($showdetails == 3)) ) {				?>				<td width="<?php echo $layoutsettings[ $idx['title']]->set_width; ?>" align="left"><a href="<?php echo $detaillink ; ?>"> <?php echo $row->titel; ?></a></td>				<?php				}				if (( $layoutsettings[ $idx['title']]->set_show == 1 ) && (($showdetails == 2) || ($showdetails == 0)) ) {				?>				<td width="<?php echo $layoutsettings[ $idx['title']]->set_width; ?>" align="left"><?php echo $row->titel; ?></td>				<?php				}								//Infomation icon				if (($showdetails == 2) || ($showdetails == 3)) {				if (empty ($row->datdescription) && empty($row->locdescription)) {				?>				<td width="<?php echo $layoutsettings[ $idx['info']]->set_width; ?>" align="center">				<img src="<?php echo "$mosConfig_live_site/components/com_eventlist/images/information_no.png"; ?>" width="16" height="16">				</td>				<?php				} else {				?>				<td width="<?php echo $layoutsettings[ $idx['info']]->set_width; ?>" align="center">				<a href="<?php echo $detaillink ; ?>"><img src="<?php echo "$mosConfig_live_site/components/com_eventlist/images/information.png"; ?>" width="16" height="16"></a>				</td>				<?php				}				}				if ($layoutsettings[ $idx['location']]->set_show == 1) {				?>				<td width="<?php echo $layoutsettings[ $idx['location']]->set_width; ?>" align="left">				<?php				if ($layoutsettings[ $idx['location']]->set_show == 1) {					echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shlocevents&locatid=$row->locid")."'>".$row->club."</a>";				} else {					echo $row->club;				}				?>				</td>				<?php				}				if ($layoutsettings[ $idx['city']]->set_show == 1) {				?>				<td width="<?php echo $layoutsettings[ $idx['city']]->set_width; ?>" align="left"><?php echo $row->city; ?></td>				<?php				}				if ($layoutsettings[ $idx['category']]->set_show == 1) {					if ($layoutsettings[ $idx['category']]->set_linked == 1) {					?>						<td width="<?php echo $layoutsettings[ $idx['category']]->set_width; ?>" align="left"><?php echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$row->catid")."'>".$row->catname."</a>";?></td>					<?php 					} else { 					?>						<td width="<?php echo $layoutsettings[ $idx['category']]->set_width; ?>" align="left"><?php echo $row->catname; ?></td>				<?php					}				}				?>			</tr>		<?php		$k = 1 - $k; } 		?>		</table>				<?php 		$page = $total - $eventspage;		if (( $page > 0 ) && ( !$pop )) {		?>			<br />		<?php			if ($func == "sharchive") {				$link = "index.php?option=com_eventlist&Itemid=$Itemid&func=sharchive&categid=$row->catid";			} else {				$link = "index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$row->catid";			}		?>				<table width="<?php echo $layoutsettings[ $idx['table']]->set_width; ?>"  border="0" align="center" cellpadding="0" cellspacing="0">  			<tr>    			<td align="center"><?php echo $pageNav->writePagesLinks($link); ?></td>  			</tr>  			<tr>    			<td align="center"><?php echo $pageNav->writePagesCounter(); ?></td>  			</tr>		</table>				<?php 		}//if page > 0 ende 		?>				<div align="center">		<br />		<?php 			$back 	= $params->get('back_button', $mainframe->getCfg('back_button'));			$params->set('back_button', $back);			mosHTML::BackButton( $params );		?>			<?php	}//funktion ShowCatEvents ende		function ShowCatViewDet($option, &$rows, $dellink, &$idx, &$layoutsettings, &$layoutcontents)	{	global $database, $Itemid, $mosConfig_absolute_path, $mosConfig_live_site, $mainframe, $params, $hide_js, $pop, $my;	require($mosConfig_absolute_path."/administrator/components/com_eventlist/config.eventlist.php");		//menüname anzeigen	$menuname = new mosMenu( $database );	$menuname->load($Itemid);	$eventlisthead = $menuname->name;		//Page titel setzen	$mainframe->setPageTitle( $eventlisthead );    $mainframe->addMetaTag( 'title' , $eventlisthead );		//Druckfunktion	$params->def( 'print', !$mainframe->getCfg( 'hidePrint' ) );	$params->def( 'icons', $mainframe->getCfg( 'icons' ) ); 		if ( $pop ) {		$params->set( 'popup', 1 );	} 		$print_link = $mosConfig_live_site. '/index2.php?option=com_eventlist&Itemid='. $Itemid .'&pop=1';	?>			<table class="contentpaneopen" style="width:100%">			<tr>				<td width="100%">&nbsp;</td>					<?php mosHTML::PrintIcon( $row, $params, $hide_js, $print_link ); ?>			</tr>		</table>			<?php	if ( !$pop ) {	?>		<div align="right">		<?php 			if ($dellink == 1) {				echo"<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=deliver")."'>"._EVENTLIST_DELIVER."</a> | ";			}			if ($oldevent == 2) {				echo"<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatarchive")."'>"._EVENTLIST_SHARCHIVE."</a>";			}		?>		</div>			<?php	}//if pop ende			$k = 0;		for ($i=0, $n=count($rows); $i < $n; $i++) {		$row = $rows[$i];	?>		<div class="componentheading">			<?php 			echo "$eventlisthead - $row->catname"; 			?>		</div>		<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center">			<tr> 				<td width="100" align="center" valign="top">					<?php 					if ($row->image != '') {						echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$row->id")."'><img src='".$mosConfig_live_site."/images/stories/".$row->image."' name='image' width='".$imagewidth."' height='".$imagehight."' border='0'></a>";					} else {						echo "&nbsp;";					}					?>					<?php					//Anzahl Events in Kategorie holen					$database->SetQuery( "SELECT count(*)"										. "\nFROM #__eventlist_dates" 										. "\nWHERE published = 1 && catsid = $row->id"										);					$total = $database->loadResult();										echo _EVENTLIST_CATVIEWCOUNTEV." ";					echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$row->id")."'>". $total."</a>";					?>				</td>				<td align="left" valign="top">					<?php echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$row->id")."'>"._EVENTLIST_CATVIEW1."</a>"; ?>				</td> 			</tr>		</table>				<table width="<?php echo $layoutsettings[ $idx['table']]->set_width; ?>" border="0" cellspacing="0" cellpadding="0">			<tr>				<td align="left" width="<?php echo $layoutsettings[ $idx['date']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->datename; ?></td>				<?php				if ($layoutsettings[ $idx['title']]->set_show == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['title']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->titlename; ?></td>				<?php				}				//designsache				//if ("$showdetails" == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['info']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->infobuttonname; ?></td>				<?php				//}				if ($layoutsettings[ $idx['location']]->set_show == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['location']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->locationname; ?></td>				<?php				}				if ($layoutsettings[ $idx['city']]->set_show == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['city']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->cityname; ?></td>				<?php				}				if ($layoutsettings[ $idx['category']]->set_show == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['category']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->catfroname; ?></td>				<?php				}				?>			</tr>		</table>				<table width="<?php echo $layoutsettings[ $idx['table']]->set_width; ?>"  border="0" cellspacing="0" cellpadding="0">			<?php			//Events auslesen			$query = "SELECT a.*, l.club, l.city, l.url, c.catname, c.id AS catid"					. "\nFROM #__eventlist_dates AS a"					. "\nLEFT JOIN #__eventlist_locate AS l ON l.id = a.locid"					. "\nLEFT JOIN #__eventlist_categories AS c ON c.id = a.catsid" 					. "\nWHERE a.published = 1 && a.catsid = $row->id"					. "\n AND access <= $my->gid"					. "\nORDER BY a.dates, a.times"					. "\nLIMIT 3"					;			$database->SetQuery($query);			$rowse = $database->loadObjectList();				$ke = 0;			for ($ie=0, $ne=count($rowse); $ie < $ne; $ie++) {				$rowe = $rowse[$ie];				//Datum aus Tabelle formatieren				$datum = strftime($formatdate,strtotime( $rowe->dates ));				//versch. farbige Ausgabe				$tabclass = array( 'sectiontableentry1', 'sectiontableentry2' );				?>  			<tr class="<?php echo $tabclass[$ke]; ?>">    			<td width="<?php echo $layoutsettings[ $idx['date']]->set_width; ?>" align="left"><b><?php echo $datum; ?></b>				<?php				//Zeitabfrage				if ($layoutsettings[ $idx['time']]->set_show == 1) {					$zeit = strftime("$formattime",strtotime( $rowe->times ));					$endzeit = strftime("$formattime",strtotime( $rowe->endtimes ));					echo "<br /> $zeit $timename"; 										if ($rowe->endtimes != "00:00:00") {					echo " - $endzeit $timename";					}				}				?>				</td>					<?php					//Link zu Details erzeugen					$detaillink = sefRelToAbs( 'index.php?option=com_eventlist&amp;Itemid='. $Itemid .'&amp;func=details&amp;did='. $rowe->id ); 					//titel					if (($layoutsettings[ $idx['title']]->set_show == 1 ) && (($showdetails == 1) || ($showdetails == 3)) ) {					?>				<td width="<?php echo $layoutsettings[ $idx['title']]->set_width; ?>" align="left"><a href="<?php echo $detaillink ; ?>"> <?php echo $rowe->titel; ?></a></td>					<?php					}					if (( $layoutsettings[ $idx['title']]->set_show == 1 ) && (($showdetails == 2) || ($showdetails == 0)) ) {					?>				<td width="<?php echo $layoutsettings[ $idx['title']]->set_width; ?>" align="left"><?php echo $rowe->titel; ?></td>					<?php					}					//Infomation icon					if (($showdetails == 2) || ($showdetails == 3)) {						if (empty ($rowe->datdescription) && empty($rowe->locdescription)) {					?>							<td width="<?php echo $layoutsettings[ $idx['info']]->set_width; ?>" align="center">							<img src="<?php echo "$mosConfig_live_site/components/com_eventlist/images/information_no.png"; ?>" width="16" height="16">							</td>						<?php						} else {						?>							<td width="<?php echo $layoutsettings[ $idx['info']]->set_width; ?>" align="center">							<a href="<?php echo $detaillink ; ?>"><img src="<?php echo "$mosConfig_live_site/components/com_eventlist/images/information.png"; ?>" width="16" height="16"></a>							</td>						<?php						}					}					if ($layoutsettings[ $idx['location']]->set_show == 1) {					?>				<td width="<?php echo $layoutsettings[ $idx['location']]->set_width; ?>" align="left">					<?php						if ($layoutsettings[ $idx['location']]->set_linked == 1) {							echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shlocevents&locatid=$rowe->locid")."'>".$rowe->club."</a>";						} else {							echo $rowe->club;						}					?>				</td>					<?php					}//showlocate ende					if ($layoutsettings[ $idx['city']]->set_show == 1) {					?>				<td width="<?php echo $layoutsettings[ $idx['city']]->set_width; ?>" align="left"><?php echo $rowe->city; ?></td>					<?php					}					if ($layoutsettings[ $idx['category']]->set_show == 1) {					if ($layoutsettings[ $idx['category']]->set_linked == 1) {					?>						<td width="<?php echo $layoutsettings[ $idx['category']]->set_width; ?>" align="left"><?php echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$rowe->catid")."'>".$row->catname."</a>";?></td>					<?php 					} else { 					?>						<td width="<?php echo $layoutsettings[ $idx['category']]->set_width; ?>" align="left"><?php echo $row->catname; ?></td>				<?php					}					}				?>			</tr>	<?php	$ke = 1 - $ke; } 	?>		</table>				<br />			<?php	$k = 1 - $k; } 	?>	<?php	}//funktion ShowCatViewDet ende		function ShowlocEvents($option, &$l_rows, &$rows, &$pageNav, $dellink, $total, $idx, $layoutsettings, $layoutcontents)	{	global $database, $Itemid, $mosConfig_absolute_path, $mosConfig_live_site, $mainframe, $params, $hide_js, $pop, $params;	require($mosConfig_absolute_path."/administrator/components/com_eventlist/config.eventlist.php");		//menüname anzeigen	$menuname = new mosMenu( $database );	$menuname->load($Itemid);	$eventlisthead = $menuname->name;		//Page titel setzen	$mainframe->setPageTitle( $eventlisthead );    $mainframe->addMetaTag( 'title' , $eventlisthead );		//Druckfunktion	$params->def( 'print', !$mainframe->getCfg( 'hidePrint' ) );	$params->def( 'icons', $mainframe->getCfg( 'icons' ) ); 		if ( $pop ) {		$params->set( 'popup', 1 );	} 		$print_link = $mosConfig_live_site. '/index2.php?option=com_eventlist&Itemid='. $Itemid .'&func=shlocevents&locatid='. $l_rows[0]->id .'&pop=1'; 	if ( !$pop ) {	?>		<div align="right">			<?php 			if ($dellink == 1) {				echo"<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=deliver")."'>"._EVENTLIST_DELIVER."</a>";			} 			?>		</div>			<?php 	} 	?>		<div align="left" class="componentheading">			<?php echo "$eventlisthead - ".$l_rows[0]->club; ?>		</div>				<table class="contentpaneopen" style="width:100%">			<tr>				<td width="100%">&nbsp;</td>					<?php mosHTML::PrintIcon( $row, $params, $hide_js, $print_link ); ?>			</tr>		</table>		<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center">     		<tr>  				<td align="left" width="20%" colspan="1"><?php echo $layoutcontents->locationname; ?></td>				<td align="left" width="80%" colspan="2"><?php echo $l_rows[0]->club; ?></td>  			</tr> 			<tr>    			<td align="left" width="20%"><?php echo _EVENTS_HOMEPAGE_LO." "; ?></td>  				<td align="left">				<?php					if (($showdetlinkclub == 1) && (!empty($l_rows[0]->url))) {						if(strtolower(substr($l_rows[0]->url, 0, 7)) == "http://") {          				 // Wenn der Teilstring gleich "http://" ist,          				 // dann  Link ohne "http://" erzeugen					?>							<a href="<?php echo $l_rows[0]->url; ?>" target="_blank"> <?php echo $l_rows[0]->url; ?></a>						<?php						} else {							// Wenn nicht, dann "http://" so dazu						?>							<a href="http://<?php echo $l_rows[0]->url; ?>" target="_blank"> <?php echo $l_rows[0]->url; ?></a>						<?php 						} 					} else {						echo _EVENTS_HOMEPAGENO_LO." ";					}				?>				</td>   				<td align="left" rowspan="3">					<?php //Zellenbereich für flyer					if (!empty($l_rows[0]->locimage)) {					$originalloc = $mosConfig_live_site."/images/eventlist/location/".$l_rows[0]->locimage;					$thumbloc = $mosConfig_live_site."/images/eventlist/location/small/".$l_rows[0]->locimage;						if (file_exists($mosConfig_absolute_path."/images/eventlist/location/small/".$l_rows[0]->locimage)) {							$iminfoloc = @getimagesize("images/eventlist/location/".$l_rows[0]->locimage);							$widthloc = $iminfoloc[0];							$heightloc = $iminfoloc[1];					?>							<a href="javascript:void window.open('<?php echo $originalloc; ?>','Popup','width=<?php echo $widthloc; ?>,height=<?php echo $heightloc; ?>,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no');">							<img src="<?php echo $thumbloc; ?>"></a>					<?php 						} else { ?>							<img src="<?php echo $originalloc; ?>" width="<?php echo $imagewidth; ?>" height="<?php echo $imageheight; ?>">					<?php 						} 					}					?> 				</td>  			</tr>  			<?php  			if ($showdetailsadress == "1") {  			?>  			<tr>    			<td align="left"><?php echo _ADMIN_EVENTS_CLUBSTREET_LO." "; ?></td>    			<td align="left"><?php echo $l_rows[0]->street; ?></td>  			</tr>  			<tr>    			<td align="left"><?php echo _ADMIN_EVENTS_CLUBPLZ_LO." "; ?></td>    			<td align="left"><?php echo $l_rows[0]->plz; ?></td>  			</tr>  			<tr>    			<td width="20%" align="left"><?php echo _EVENTS_CITY." " ;?></td>   				<td colspan="2" align="left"><?php echo $l_rows[0]->city; ?></td>  			</tr>  			<tr>    			<td align="left"><?php echo _EVENTS_COUNTRY_LO." "; ?></td>    			<td align="left"><?php echo $l_rows[0]->country; ?></td>    			<td align="left">					<?php					//Link zu map24  					if (($showmapserv == 1) && ($map24id != '')){					?>						<a href="http://link2.map24.com/?lid=<?php echo $map24id ?>&maptype=JAVA&width0=2000&street0=<?php echo $l_rows[0]->street ?>&zip0=<?php echo $l_rows[0]->plz ?>&city0=<?php echo $l_rows[0]->city ?>&country0=<?php echo $l_rows[0]->country ?>&sym0=10280&description0=<?php echo $l_rows[0]->club ?>" target="_blank"> 						<img src="http://img.map24.com/map24/link2map24/de/show_address_7.gif" border=0 alt="Map24" /></a>					<?php 					} 					?>				</td>  			</tr>  			<?php			}//showdetailsadress ende						if ($showlocdescription == "1") {  			?>  			<tr>    			<td colspan="3">&nbsp;</td>  			</tr>  			<tr>   	 			<td align="left" class="sectiontableheader" colspan="3"><?php echo _EVENTS_LOCDESC." " ;?></td>  			</tr>  			<tr>    			<td align="left" colspan="3">					<?php 					if (empty ($l_rows[0]->locdescription)) {						echo _EVENTS_DESCALERT." " ;					} else {						//execute the Mambot						$l_rows[0]->text = $l_rows[0]->locdescription;						$l_rows[0]->title = $l_rows[0]->club;						global $_MAMBOTS;						$_MAMBOTS->loadBotGroup( 'content' );						$results = $_MAMBOTS->trigger( 'onPrepareContent', array( &$l_rows[0], &$params, 0 ), true );						echo $l_rows[0]->text;					}					?>				</td>  			</tr>			<?php 			} 			?>      	</table>			<br />			<table width="<?php echo $layoutsettings[ $idx['table']]->set_width; ?>" border="0" cellspacing="0" cellpadding="0">			<tr>				<td align="left" width="<?php echo $layoutsettings[ $idx['date']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->datename; ?></td>				<?php				if ($layoutsettings[ $idx['title']]->set_show == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['title']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->titlename; ?></td>				<?php				}				//wenn width leer				if ($layoutsettings[ $idx['title']]->set_width != "") {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['info']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->infobuttonname; ?></td>				<?php				}				if ($layoutsettings[ $idx['location']]->set_show == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['location']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->locationname; ?></td>				<?php				}				if ($layoutsettings[ $idx['city']]->set_show == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['city']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->cityname; ?></td>				<?php				}				if ($layoutsettings[ $idx['category']]->set_show == 1) {				?>				<td align="left" width="<?php echo $layoutsettings[ $idx['category']]->set_width; ?>" class="sectiontableheader"><?php echo $layoutcontents->catfroname; ?></td>				<?php				}				?>			</tr>		</table>				<table width="<?php echo $layoutsettings[ $idx['table']]->set_width; ?>"  border="0" cellspacing="0" cellpadding="0">			<?php			$k = 0;			for ($i=0, $n=count($rows); $i < $n; $i++) {				$row = $rows[$i];				//Datum aus Tabelle formatieren				$datum = strftime($formatdate,strtotime( $row->dates ));				//versch. farbige Ausgabe				$tabclass = array( 'sectiontableentry1', 'sectiontableentry2' );			?>  			<tr class="<?php echo $tabclass[$k]; ?>">    			<td width="<?php echo $layoutsettings[ $idx['date']]->set_width; ?>" align="left"><b><?php echo $datum; ?></b>				<?php				//Zeitabfrage				if ($layoutsettings[ $idx['time']]->set_show == 1) {					$zeit = strftime("$formattime",strtotime( $row->times ));					$endzeit = strftime("$formattime",strtotime( $row->endtimes ));					echo "<br /> $zeit $timename"; 										if ($row->endtimes != "00:00:00") {					echo " - $endzeit $timename";					}				}				?>				</td>				<?php				//Link zu Details erzeugen				$detaillink = sefRelToAbs( 'index.php?option=com_eventlist&amp;Itemid='. $Itemid .'&amp;func=details&amp;did='. $row->id ); 				//titel				if (($layoutsettings[ $idx['title']]->set_show == 1 ) && (($showdetails == 1) || ($showdetails == 3)) ) {				?>				<td width="<?php echo $layoutsettings[ $idx['title']]->set_width; ?>" align="left"><a href="<?php echo $detaillink ; ?>"> <?php echo $row->titel; ?></a></td>				<?php				}				if (( $layoutsettings[ $idx['title']]->set_show == 1 ) && (($showdetails == 2) || ($showdetails == 0)) ) {				?>				<td width="<?php echo $layoutsettings[ $idx['title']]->set_width; ?>" align="left"><?php echo $row->titel; ?></td>				<?php				}								//Infomation icon				if (($showdetails == 2) || ($showdetails == 3)) {				if (empty ($row->datdescription) && empty($row->locdescription)) {				?>				<td width="<?php echo $layoutsettings[ $idx['info']]->set_width; ?>" align="center">				<img src="<?php echo "$mosConfig_live_site/components/com_eventlist/images/information_no.png"; ?>" width="16" height="16">				</td>				<?php				} else {				?>				<td width="<?php echo $layoutsettings[ $idx['info']]->set_width; ?>" align="center">				<a href="<?php echo $detaillink ; ?>"><img src="<?php echo "$mosConfig_live_site/components/com_eventlist/images/information.png"; ?>" width="16" height="16"></a>				</td>				<?php				}				}				if ($layoutsettings[ $idx['location']]->set_show == 1) {				?>				<td width="<?php echo $layoutsettings[ $idx['location']]->set_width; ?>" align="left">				<?php				if ($layoutsettings[ $idx['location']]->set_linked == 1) {					echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shlocevents&locatid=$row->locid")."'>".$row->club."</a>";				} else {					echo $row->club;				}				?>				</td>				<?php				}				if ($layoutsettings[ $idx['city']]->set_show == 1) {				?>				<td width="<?php echo $layoutsettings[ $idx['city']]->set_width; ?>" align="left"><?php echo $row->city; ?></td>				<?php				}				if ($layoutsettings[ $idx['category']]->set_show == 1) {					if ($layoutsettings[ $idx['category']]->set_linked == 1) {					?>						<td width="<?php echo $layoutsettings[ $idx['category']]->set_width; ?>" align="left"><?php echo "<a href='".sefRelToAbs("index.php?option=com_eventlist&Itemid=$Itemid&func=shcatev1&categid=$row->catid")."'>".$row->catname."</a>";?></td>					<?php 					} else { 					?>						<td width="<?php echo $layoutsettings[ $idx['category']]->set_width; ?>" align="left"><?php echo $row->catname; ?></td>				<?php					}				}				?>			</tr>	<?php	$k = 1 - $k; } 	?>	</table>		<?php 	$page = $total - $eventspage;	if (( $page > 0 ) && ( !$pop )) {	?>			<br />				<?php		$link = "index.php?option=com_eventlist&Itemid=$Itemid&func=shlocevents&locatid=$row->locid";		?>				<table width="<?php echo $layoutsettings[ $idx['table']]->set_width; ?>"  border="0" align="center" cellpadding="0" cellspacing="0">			<tr>				<td align="center"><?php echo $pageNav->writePagesLinks($link); ?></td>			</tr>			<tr>				<td align="center"><?php echo $pageNav->writePagesCounter(); ?></td>			</tr>		</table>			<?php 	} 	?>	<div align="center">	<br />			<?php 			$back 	= $params->get('back_button', $mainframe->getCfg('back_button'));			$params->set('back_button', $back);			mosHTML::BackButton( $params );			?>	<br />	</div>			<?php	}//funktion ShowlocEvents ende	//class ende}		?>