[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / fullcalendar / css / calendar_style.css.html
diff --git a/www/plugins/auto/fullcalendar/css/calendar_style.css.html b/www/plugins/auto/fullcalendar/css/calendar_style.css.html
new file mode 100644 (file)
index 0000000..93325fa
--- /dev/null
@@ -0,0 +1,9 @@
+#CACHE{3600*24*30}
+#HTTP_HEADER{Content-Type: text/css;}
+<?php
+       $query = "SELECT * FROM spip_fullcalendar_styles;";
+       $result = mysql_query($query) or die ($query." ".mysql_error());
+       while ( $row = mysql_fetch_array($result))
+               $CSS.=".f_".$row['0'].", .fc-agenda .f_".$row['0']." .fc-event-time, .f_".$row['0']." a {background-color:".$row['bgcolor'].";border-color:".$row['bordercolor'].";color:".$row['textcolor'].";}\n";
+       print $CSS;
+?>