cvs: phpweb / cal.php sitewide.css

From: Date: Sat, 16 Aug 2003 12:32:02 +0000
Subject: cvs: phpweb / cal.php sitewide.css
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-20409@lists.php.net to get a copy of this message
goba Sat Aug 16 08:32:02 2003 EDT Modified files: /phpweb cal.php sitewide.css Log: The CSS validator don't seem to like _ in a classname, so avoid that, and also use a more appropriate cat# naming, as we refer to categories here Index: phpweb/cal.php diff -u phpweb/cal.php:1.45 phpweb/cal.php:1.46 --- phpweb/cal.php:1.45 Fri Aug 15 06:30:44 2003 +++ phpweb/cal.php Sat Aug 16 08:32:02 2003 @@ -1,5 +1,5 @@ <?php -// $Id: cal.php,v 1.45 2003/08/15 10:30:44 goba Exp $ +// $Id: cal.php,v 1.46 2003/08/16 12:32:02 goba Exp $ $_SERVER['BASE_PAGE'] = 'cal.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; @@ -219,7 +219,7 @@ || ($event['start'] == $day)) { echo '<div class="event">', ($COUNTRY == $event['country'] ? "<strong>" : ""), - '<a class="type_' . $event['category'] . '" href="/cal.php', + '<a class="cat' . $event['category'] . '" href="/cal.php', "?id=$event[id]&amp;cm=$cm&amp;cy=$cy", '">', stripslashes(htmlentities($event['sdesc'])), '</a>', Index: phpweb/sitewide.css diff -u phpweb/sitewide.css:1.19 phpweb/sitewide.css:1.20 --- phpweb/sitewide.css:1.19 Fri Aug 15 10:36:33 2003 +++ phpweb/sitewide.css Sat Aug 16 08:32:02 2003 @@ -303,11 +303,11 @@ background-color: #d0d0d0; color: inherit; } -table#cal a.type_1 { +table#cal a.cat1 { color: green; background-color: transparent; } -table#cal a.type_3 { +table#cal a.cat3 { color: black; background-color: transparent; }

« previous php.mirrors (#20409) next »