cvs: phpweb / cal.php
| From: | Rasmus Lerdorf | Date: | Thu, 12 Jul 2001 18:02:49 +0000 |
| Subject: | cvs: phpweb / cal.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-5498@lists.php.net to get a copy of this message | ||
rasmus Thu Jul 12 14:02:49 2001 EDT
Modified files:
/phpweb cal.php
Log:
I'd like to have the full width available for this thing...
Index: phpweb/cal.php
diff -u phpweb/cal.php:1.11 phpweb/cal.php:1.12
--- phpweb/cal.php:1.11 Thu Jul 12 13:52:41 2001
+++ phpweb/cal.php Thu Jul 12 14:02:49 2001
@@ -146,6 +146,28 @@
return $days;
}
+ function escape_to_full_width() {
+?>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<?
+ }
+
+ function restore_php_net_table_layout() {
+?>
+<table cellpadding="0" cellspacing="0">
+ <tr valign="top">
+ <td>
+ <table width="625" cellpadding="10" cellspacing="0">
+ <tr>
+ <td valign="top">
+<?
+ }
+
function draw_cal($y,$m) {
global $a, $err;
global $ap, $aerr;
@@ -168,6 +190,7 @@
$nm = 1;
$ny = $y+1;
}
+ escape_to_full_width();
?>
<table border=0 cellspacing=0 cellpadding=3 width=100%><tr bgcolor=#d0d0d0>
<th align=left>
@@ -223,6 +246,7 @@
else echo "<font color=#f02020>$aerr</font>";
if($ap) draw_app();
echo "</table>\n";
+restore_php_net_table_layout();
}
function draw_event($ev) {