* Begin handling of TRANSP property to show event times as free or
authorArt Cancro <ajc@citadel.org>
Mon, 6 Jan 2003 18:01:35 +0000 (18:01 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 6 Jan 2003 18:01:35 +0000 (18:01 +0000)
  busy (not finished).

webcit/ChangeLog
webcit/event.c

index 2c50a03d54f3ec407f27e18f27b4362c5f23ca57..ded8bde69c72c0b1d39ca6c9c560a1d475c58c3f 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 400.79  2003/01/06 18:01:35  ajc
+* Begin handling of TRANSP property to show event times as free or
+  busy (not finished).
+
 Revision 400.78  2003/01/05 21:02:14  ajc
 * Summary page: three columns are now all the same width
 
@@ -1223,3 +1227,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 45d1e2932f1b0751e017998a01633e4c727cd185..7c1b3843159632d78ec9a411bf652200101818da 100644 (file)
@@ -250,6 +250,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum)
                        }
                }
        }
+
        wprintf("<TR><TD><B>Organizer</B></TD><TD>");
        escputs(organizer_string);
        if (organizer_is_me) {
@@ -269,7 +270,29 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum)
 
        wprintf("</TD></TR>\n");
 
-       /* Attendees (do more with this later) */
+       /* Transparency */
+       wprintf("<TR><TD><B>Show time as:</B></TD><TD>");
+
+       p = icalcomponent_get_first_property(vevent, ICAL_TRANSP_PROPERTY);
+       if (p == NULL) {
+               /* No transparency found.  Default to opaque (busy). */
+               p = icalproperty_new_transp(ICAL_TRANSP_OPAQUE);
+               if (p != NULL) {
+                       icalcomponent_add_property(vevent, p);
+               }
+       }
+
+       wprintf("<INPUT TYPE=\"radio\" NAME=\"transp\" VALUE=\"transparent\"");
+       if (0) wprintf(" CHECKED");
+       wprintf(">Free&nbsp;&nbsp;");
+
+       wprintf("<INPUT TYPE=\"radio\" NAME=\"transp\" VALUE=\"opaque\"");
+       if (0) wprintf(" CHECKED");
+       wprintf(">Busy");
+
+       wprintf("</TD></TR>\n");
+
+       /* Attendees */
        wprintf("<TR><TD><B>Attendes</B><BR>"
                "<FONT SIZE=-2>(Separate multiple attendees with commas)"
                "</FONT></TD><TD>"