Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Template help  (Read 251 times)
0 Members and 1 Guest are viewing this topic.
tcoverdale
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: August 04, 2003, 04:45:00 PM »

OK, I'm trying to limit my list to just the current event happening, but can't seem to get my template to stop listing the upcoming ones for the remainder of the day.

Any ideas?

<%
$STYLE = "List";
&getEvents( {'duration'=> '1'});
$DAY = $Grid->{'grid'}->

  • ->
  • ;
    $total_events=1;
    %>
    <DL>
    <%FOREACH EVENTLIST%>
       <%IF EVENTS EXIST%>
       <%$total_events++;%>
             <%FOREACH EVENT%>
             <table width="100%">
             <tr>
             <td><font style="font-family: verdana, sans-serif; font-size: 9px; font-weight: normal;"><%= SCHEDULE FIELD(start_time) %> - <%= SCHEDULE FIELD(end_time) %></font></td>
             <td width="5px"></td>
    <font style="font-family: verdana, sans-serif; font-size: 9px; font-weight: normal;"><%= $EVENT->{'details'}->{'title'} %></font>
             </font>
             </td>
             </tr>
             </table>
          <%/FOREACH%>
       <%/IF%>
    <%/FOREACH%>
    <%unless($total_events){%>
    <CENTER><I>No Events</I></CENTER>
    <% } %>
    </dl>
Logged
Pages: [1]   Go Up
Print
Jump to: