]> code.citadel.org Git - citadel.git/blobdiff - webcit/event.c
Removed logging subsystem from webcit. It's all syslog now.
[citadel.git] / webcit / event.c
index 6106ec1dbca0637eb8f3224852f3ef70b4e99a9e..5d44e3f80b9d27e64be02cbc9cc01dd7a85514a6 100644 (file)
@@ -3,10 +3,10 @@
  *
  * Copyright (c) 1996-2010 by the citadel.org team
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -15,7 +15,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
 #include "webcit.h"
@@ -95,7 +95,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
        get_pref_long("weekstart", &weekstart, 17);
        if (weekstart > 6) weekstart = 0;
 
-       lprintf(9, "display_edit_individual_event(%ld) calview=%s year=%s month=%s day=%s\n",
+       syslog(9, "display_edit_individual_event(%ld) calview=%s year=%s month=%s day=%s\n",
                msgnum, bstr("calview"), bstr("year"), bstr("month"), bstr("day")
        );
 
@@ -171,8 +171,6 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
 
        wc_printf("<div id=\"content\" class=\"service\">\n");
 
-       wc_printf("<div class=\"fix_scrollbar_bug\">");
-
        /************************************************************
         * Uncomment this to see the UID in calendar events for debugging
        wc_printf("UID == ");
@@ -180,8 +178,8 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
        if (p != NULL) {
                escputs((char *)icalproperty_get_comment(p));
        }
-       wc_printf("<br />\n");
-       wc_printf("SEQUENCE == %d<br />\n", sequence);
+       wc_printf("<br>\n");
+       wc_printf("SEQUENCE == %d<br>\n", sequence);
        *************************************************************/
 
        wc_printf("<form name=\"EventForm\" method=\"POST\" action=\"save_event\">\n");
@@ -438,7 +436,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
        wc_printf("<table border='0' width='100%%'>\n");        /* same table style as the event tab */
        wc_printf("<tr><td><b>");
        wc_printf(_("Attendees"));
-       wc_printf("</b><br />"
+       wc_printf("</b><br>"
                "<font size='-2'>");
        wc_printf(_("(One per line)"));
        wc_printf("</font>\n");
@@ -594,7 +592,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
        }
 
        wc_printf(_("on day %s%d%s of the month"), "<span id=\"rrmday\">", rrmday, "</span>");
-       wc_printf("<br />\n");
+       wc_printf("<br>\n");
 
        wc_printf("<input type=\"radio\" name=\"rrmonthtype\" id=\"rrmonthtype_wday\" "
                "value=\"rrmonthtype_wday\" "
@@ -626,7 +624,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
        }
        wc_printf("</select>");
 
-       wc_printf(" %s<br />\n", _("of the month"));
+       wc_printf(" %s<br>\n", _("of the month"));
 
        wc_printf("</div>\n");                          /* end 'monthday_selector' div */
 
@@ -656,7 +654,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
                ((which_rryeartype_is_preselected == 0) ? "checked='checked'" : "")
        );
        wc_printf(_("every "));
-       wc_printf("<span id=\"ymday\">%s</span><br />", _("year on this date"));
+       wc_printf("<span id=\"ymday\">%s</span><br>", _("year on this date"));
 
        wc_printf("<input type=\"radio\" name=\"rryeartype\" id=\"rryeartype_ywday\" "
                "value=\"rryeartype_ywday\" "
@@ -700,7 +698,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
                );
        }
        wc_printf("</select>");
-       wc_printf("<br />\n");
+       wc_printf("<br>\n");
 
        wc_printf("</div>\n");                          /* end 'yearday_selector' div */
 
@@ -720,7 +718,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
                "%s onChange=\"RecurrenceShowHide();\">",
                ((which_rrend_is_preselected == 0) ? "checked='checked'" : "")
        );
-       wc_printf("%s<br />\n", _("No ending date"));
+       wc_printf("%s<br>\n", _("No ending date"));
 
        wc_printf("<input type=\"radio\" name=\"rrend\" id=\"rrend_count\" "
                "value=\"rrend_count\" "
@@ -731,7 +729,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
        wc_printf(" <input type=\"text\" name=\"rrcount\" id=\"rrcount\" maxlength=\"3\" size=\"3\" ");
        wc_printf("value=\"%d\"> ", recur.count);
        wc_printf(_("times"));
-       wc_printf("<br />\n");
+       wc_printf("<br>\n");
 
        wc_printf("<input type=\"radio\" name=\"rrend\" id=\"rrend_until\" "
                "value=\"rrend_until\" "
@@ -744,7 +742,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
                recur.until = icaltime_add(t_start, icaldurationtype_from_int(604800));
        }
        display_icaltimetype_as_webform(&recur.until, "rruntil", 1);
-       wc_printf("<br />\n");
+       wc_printf("<br>\n");
 
        wc_printf("</td></tr>\n");
 
@@ -772,8 +770,6 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
        end_tab(3, 3);
        wc_printf("</form>\n");
 
-       wc_printf("</div>\n");                  /* end 'fix_scrollbar_bug' div */
-
        StrBufAppendPrintf(WC->trailing_javascript,
                "eventEditAllDay();             \n"
                "RecurrenceShowHide();          \n"