diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-09-29 01:39:27 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-09-29 01:39:27 +0000 |
commit | 27af6791b1e4cf02d0e47b60fa446c2396f21e4c (patch) | |
tree | 067956b5a1fe50d1c7563b4dcc53d578371a0f63 | |
parent | ce366dcff1289fbd3246536dd8cd2215faaa4dd1 (diff) | |
download | phpicalendar-27af6791b1e4cf02d0e47b60fa446c2396f21e4c.tar.gz phpicalendar-27af6791b1e4cf02d0e47b60fa446c2396f21e4c.tar.bz2 phpicalendar-27af6791b1e4cf02d0e47b60fa446c2396f21e4c.zip |
Inegrated drei's code with new look of day.php
-rw-r--r-- | day.php | 12 | ||||
-rw-r--r-- | sidebar.php | 12 |
2 files changed, 22 insertions, 2 deletions
@@ -41,6 +41,8 @@ $display_month3 = strftime ($dateFormat_month, strtotime("+1 month", $date)); $parse_month = date ("Ym", $date); $thisday2 = strftime($dateFormat_week_list, $date); +$dayborder = 0; + $nbrGridCols = 1; if ($master_array[($getdate)]) { foreach($master_array[($getdate)] as $ovlKey => $ovlValue) { @@ -120,7 +122,15 @@ if ($master_array[($getdate)]) { echo "<td width=\"1\" height=\"" . $gridLength . "\"></td>\n"; } if (sizeof($event_length) == 0) { - echo "<td bgcolor=\"#ffffff\" colspan=\"" . $nbrGridCols . "\" class=\"dayborder\"> </td>\n"; + if ($dayborder == 0) { + $class = " class=\"dayborder\""; + $dayborder++; + } else { + $class = ""; + $dayborder = 0; + } + echo "<td bgcolor=\"#ffffff\" colspan=\"" . $nbrGridCols . "\" $class> </td>\n"; + } else { $emptyWidth = $nbrGridCols; for ($i=0;$i<sizeof($event_length);$i++) { diff --git a/sidebar.php b/sidebar.php index fc44ac6..616a767 100644 --- a/sidebar.php +++ b/sidebar.php @@ -1,3 +1,13 @@ + <?php + + $cal_displayname2 = urldecode($cal) . " $calendar_lang"; + if (strlen($cal_displayname2) > 24) { + $cal_displayname2 = substr("$cal_displayname2", 0, 21); + $cal_displayname2 = $cal_displayname2 . "..."; + } + + ?> + <table cellpadding="0" cellspacing="0" border="0" width="160"> <tr> <td valign="center" align="center"> @@ -15,7 +25,7 @@ </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><?php echo "$cal $calendar_lang"; ?></td> + <td colspan="6" class="G10B"><?php echo "$cal_displayname2"; ?></td> </tr> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td> |