cvs: phpweb / cal.php
| From: | Rasmus Lerdorf | Date: | Thu, 12 Jul 2001 18:13:53 +0000 |
| Subject: | cvs: phpweb / cal.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-5499@lists.php.net to get a copy of this message | ||
rasmus Thu Jul 12 14:13:53 2001 EDT
Modified files:
/phpweb cal.php
Log:
Oops, we already have a built-in way to not enclose the page content in
a table
Index: phpweb/cal.php
diff -u phpweb/cal.php:1.12 phpweb/cal.php:1.13
--- phpweb/cal.php:1.12 Thu Jul 12 14:02:49 2001
+++ phpweb/cal.php Thu Jul 12 14:13:52 2001
@@ -1,6 +1,6 @@
<?php
require_once 'prepend.inc';
- commonHeader("Event Calendar");
+ commonHeader("Event Calendar",1);
require_once 'cvs-auth.inc';
if (isset($save) && isset($pw)) { # non-developers don't have $user set
@@ -146,28 +146,6 @@
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;
@@ -190,7 +168,6 @@
$nm = 1;
$ny = $y+1;
}
- escape_to_full_width();
?>
<table border=0 cellspacing=0 cellpadding=3 width=100%><tr bgcolor=#d0d0d0>
<th align=left>
@@ -246,7 +223,6 @@
else echo "<font color=#f02020>$aerr</font>";
if($ap) draw_app();
echo "</table>\n";
-restore_php_net_table_layout();
}
function draw_event($ev) {