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: ssi.html  (Read 340 times)
0 Members and 1 Guest are viewing this topic.
Keith
Guest
« on: March 18, 2003, 06:41:00 PM »

using the following in my ssi.html file but the events are not linked when they are displayed on my web page. Any help would be appreciated.

Keith

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

  • ->
  • ;$EVENTS =
    $DAY->{events};$total_events=0;%>

    <head>
    <title></title>
    <style fprolloverstyle>A:hover {color: #808000}
    </style>
    </head>

    <body link="#000080" vlink="#000080" alink="#000080">

    <table border="0" cellpadding=0 cellspacing=0 width="175" style="font-size: 8pt; font-family: Arial">
    <%FOREACHEVENTLIST%><%IF EVENTS EXIST%><tr><td align="center" bgcolor=#C0C0C0 style="font-size: 8pt; font-family: Arial" width="175"><b>
    <%$total_events++;%><%=$DAY->{dayname}%>,
    <%=$DAY->{monthname}%>
    <%=$DAY->{dd}%></b></td></tr><tr><td>
    <%FOREACH EVENT%>
    <% if ($EVENT->{'schedule'}->{'start_time'}) {%><%= $EVENT->{'schedule'}->{'start_time'} %><% }%>
    <% if ($EVENT->{'schedule'}->{'end_time'}) { %>-
    <%=$EVENT->{'schedule'}->{'end_time'} %><% } %>
    <% if($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %><A HREF="<%= EVENT FIELD(link) %>">
    <%=$EVENT->{'details'}->{'title'} %></a><br>
    <%/FOREACH%></td></tr>
    <%/IF%><%/FOREACH%></table>
    <%unless($total_events){%>
    <p><font size="2" face="Arial">No Events Scheduled</font><br> <% } %></p>


Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: March 18, 2003, 06:57:00 PM »

** but the events are not linked  **

Have a look in the default template file for how links to events are made there, then add that code (or something similar) to your ssi.html file.

Dan O.

------------------

Logged
keith
Guest
« Reply #2 on: March 22, 2003, 09:44:00 AM »

Went through the template as you suggested and could not get it to work. my code produces the following link:

<A HREF="http://www.franconiaskiclub.com/cgi-bin/calendar.pl?view=Event&template=ssi.html&duration=1&event_id=17&view=Event&event_id=17">test 1</a>

I need it to produce a link like this:

<A HREF="http://www.franconiaskiclub.com/cgi-bin/calendar.pl?view=Event&event_id=17">test 1</a>

In other words...how do I get rid of:

view=Event&template=ssi.html&duration=1&event_id=17

Logged
keith
Guest
« Reply #3 on: March 22, 2003, 10:03:00 AM »

Fixed Problem!  Forget last post....keith
Logged
Pages: [1]   Go Up
Print
Jump to: