die veranstaltungen(datumsabhängig) werden im objektmodul eingeben und mit der jeweiligen kategorie versehen :
- allgemein
- sport
- kultur
- ...
wie kann ich das am einfachsten mit dem objektmodul und dem newsletter modul machen? muss ich für jede kategorie eine eigene vorlage machen ??
wie kann ich einfach die einzelnen kategorien auf der seite sortiert ausgeben?
Code: Alles auswählen
<?php /* Start - Contentbereich */ ?>
<table width="100%" height="0" border="0" cellpadding="0" cellspacing="0" class="b1">
<tr>
<td bgcolor="#FFFFFF">
<p align="center">[b]<font face="Arial" size="4">Aktuelle& Termine &
Veranstaltungen </font>[/b] </p>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="172" height="25">
<div align="center">[b] <font face="Arial, Helvetica, sans-serif" size="2">
<a href="index.php">Datum</a>
[img]bild.gif[/img]
</font>[/b]</div>
</td>
<td width="440" height="25">&</td>
<td width="149" height="25">
<div align="center">[b]<font face="Arial, Helvetica, sans-serif" size="2">
<a href="index2.php">Kategorie</a>
[img]eventpfeil_sd.gif[/img]
</font>[/b]
</div>
</td>
</tr>
<tr>
<td width="172">
[img]/we_demo/layout_images/pixel.gif[/img]</td>
<td width="440">&</td>
<td width="149">
[img]/we_demo/layout_images/pixel.gif[/img]</td>
</tr>
</table>
<tr>
<?php
function switchColors($color1,$color2) {
static $myTag=0;
if($myTag==0)
{print $color1; $myTag=1;}
else
{print $color2; $myTag=0;}
}
?>
<?php $condition = "Beginndatum >=' ".time()." -1' OR Ende >=' ".time()." ' OR weiterertermin1 >=' ".time()." ' OR weiterertermin2 >=' ".time()." ' OR weiterertermin3 >=' ".time()." ' OR weiterertermin4 >=' ".time()." ' OR weiterertermin5 >=' ".time()." ' "; ?>
<td valign="top" class="normal"> <we:listview type="object" classid="3" rows="40" order="/Sortierung" condition="$condition" >
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<we:repeat>
<tr>
<td class="normal">
<table width="100%" border="0" bgcolor='<?php switchColors("FFFFFF","D0DCD6");?>' style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0" height="87">
<tr>
<td valign="top" rowspan="3" width="244" height="34" class="ft12">
<div align="center">
<we:field type="date" name="Beginndatum" format="D d.m.Y" > <font face="Arial, Helvetica, sans-serif" size="2">[b]
<we:ifFieldNotEmpty match="bis">
bis& <we:field type="date" name="Ende" format="D d.m.Y">
</we:ifFieldNotEmpty>[/b]</font></div>
</td>
<td colspan="2" height="32" class="tu12"><we:field name="Titel"></td>
<td rowspan="3" width="189" height="34" class="ft12">
<div align="center"><we:field name="Kategorie"></div>
</td>
</tr>
<tr>
<td width="100%" height="19" class="ft12"><we:field name="Ort"></td>
</tr>
<tr>
<td colspan="2" height="1"></td>
</tr>
<tr>
<td valign="top" width="244" height="19">
<we:ifFieldNotEmpty match="Bild" type="img">
<we:field name="Bild" type="img">
</we:ifFieldNotEmpty>
</td>
<td colspan="2" height="19" class="ft12"><we:field name="Beschreibung"></td>
<td width="189" height="19">&</td>
</tr>
<tr>
<td valign="top" width="244" height="32">
[img]/we_demo/layout_images/pixel.gif[/img]</td>
<td colspan="2" height="32"><font face="Arial, Helvetica, sans-serif" size="2">
<we:ifFieldNotEmpty match="Eintritt">
[b]Eintritt: [/b]<we:field name="Eintritt">
</we:ifFieldNotEmpty></font></td>
<td width="189" height="32">[img]/we_demo/layout_images/pixel.gif[/img]</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="9" class="normal">&</td>
</tr>
</we:repeat> <we:ifNotFound>
<tr>
<td colspan="9" class="normal"><font face="Arial, Helvetica, sans-serif" size="2">Leider
nichts gefunden!</font></td>
</tr>
<we:else/>
<tr>
<td colspan="9" class="normal">
<table cellpadding="0" border="0" cellspacing="0" width="100%">
<tr>
<td colspan="2">[img]/we_demo/layout_images/pixel.gif[/img]</td>
</tr>
<tr>
<td class="normal"><we:ifBack><we:back style="text-decoration:none"><font face="Arial, Helvetica, sans-serif" size="2">&&
zurück</font></we:back></we:ifBack></td>
<td class="normal" align="right"><we:ifNext><we:next style="text-decoration:none"><font face="Arial, Helvetica, sans-serif" size="2">weiter
&&</font></we:next></we:ifNext></td>
</tr>
</table>
</td>
</tr>
</we:ifNotFound>
</table>
</we:listview>
</td>
</tr>
<we:form id="114" method="get"> </we:form>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td width="10%">&</td>
<td width="90%"><P align=center><FONT face="Arial, Helvetica, sans-serif" size=1>Karten im Info-Kiosk des Tourismusverbandes am </A><BR>
Angaben ohne Gew&hr / <Auml;nderungen vorbehalten.</FONT></P></td>
</tr>
</table>
<?php /* Ende - Contentbereich */ ?>