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


Login with username, password and session length

Search

 
Advanced search

8022 Posts in 1850 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)Add oneclick event by clicking on day in grid view
Pages: [1]   Go Down
Print
Author Topic: Add oneclick event by clicking on day in grid view  (Read 244 times)
0 Members and 1 Guest are viewing this topic.
k9barry
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: December 06, 2003, 02:32:00 PM »

I know this can be done and I have found references to it in this forum, but I have not been able to locate any code.  I am trying to click on a day in the default.html grid view and have it take me to the oneclick add event screen, and automatically fill in the date.

I think I need to modify the followin line in this code from default.html (near the bottom)

looks like this:
<A HREF="<%=$CGI_URL_QUERYSTRING%>selected_datestring=<%=$DAY->{'datestring'}%>&datestring=<%=$DAY->{'datestring'}%>&view=Day" CLASS="griddatetext"><%if($DAY->{'dd'}==1&&$VIEW ne "Month"){%><%=$DAY->{'monthname'}%> <%}%><%=$DAY->{'dd'}%></A>

***************
CODE BELOW
***************

      <%-- MONTHLY OR WEEKLY VIEW --%>
      <% if ($VIEW eq "Month" | | $VIEW eq "Week" | | $VIEW eq "Two-Week" | | $VIEW eq "Three-Week" | | $VIEW eq "Four-Week") { %>
         <%-- GRID STYLE DISPLAY --%>
         <% if ($STYLE eq "Grid") { %>
            <TABLE BORDER="1" CLASS="thinborder" HEIGHT="100%" WIDTH="100%" CELLPADDING="2" CELLSPACING="1">
               <TR>
                  <%FOREACH GRID COLUMN%>
                  <TH CLASS="thinborder" BGCOLOR="<%=$_COLUMN_HEADER_BGCOLOR%>"><SPAN CLASS="columnheader"><%= $Grid->{'daynames'}->[$COL] %></SPAN></TH>
                  <%/FOREACH%>
               </TR>
               <%FOREACH GRID ROW%>
               <TR <%=$rowheight%>>
                  <%FOREACH GRID COLUMN%>
                  <% $i=0; %>
                  <TD CLASS="thinborder" VALIGN="TOP" WIDTH="14%" <%=$rowheight%> BGCOLOR="<%IF SELECTED%><%=$_GRID_CELL_SELECTED_BGCOLOR%><%ELSE%><%=$_GRID_CELL_BGCOLOR%><%/IF%>">
                     <%IF DISPLAY%>
                        <SPAN BGCOLOR="<%=$_GRID_DATE_BGCOLOR%>" CLASS="griddatetext"> <NOBR><A HREF="<%=$CGI_URL_QUERYSTRING%>selected_datestring=<%=$DAY->{'datestring'}%>&datestring=<%=$DAY->{'datestring'}%>&view=Day" CLASS="griddatetext"><%if($DAY->{'dd'}==1&&$VIEW ne "Month"){%><%=$DAY->{'monthname'}%> <%}%><%=$DAY->{'dd'}%></A> </NOBR></SPAN>
                        <%FOREACH EVENT%>
                           <%$i++;%>
                           <SPAN CLASS="gridtext">
<%

Thanks for any help

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 220

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


WWW
« Reply #1 on: December 06, 2003, 08:05:00 PM »

The schedule_oneclick_non_recurring.html template is not designed to accept data passed to it. You would fist need to modify that template's code to accept the passed data and then modify it to insert that data into the appropriate form field(s).

Dan O.

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

Logged
Pages: [1]   Go Up
Print
Jump to: