cvs: phpweb /include shared-manual.inc
| From: | Gabor Hojtsy | Date: | Sat, 18 Jun 2005 08:51:22 +0000 |
| Subject: | cvs: phpweb /include shared-manual.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-28525@lists.php.net to get a copy of this message | ||
goba Sat Jun 18 04:51:22 2005 EDT
Modified files:
/phpweb/include shared-manual.inc
Log:
provide a visible link on the date for every particular note
http://cvs.php.net/diff.php/phpweb/include/shared-manual.inc?r1=1.219&r2=1.220&ty=u
Index: phpweb/include/shared-manual.inc
diff -u phpweb/include/shared-manual.inc:1.219 phpweb/include/shared-manual.inc:1.220
--- phpweb/include/shared-manual.inc:1.219 Fri Feb 18 07:50:57 2005
+++ phpweb/include/shared-manual.inc Sat Jun 18 04:51:17 2005
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: shared-manual.inc,v 1.219 2005/02/18 12:50:57 derick Exp $
+// $Id: shared-manual.inc,v 1.220 2005/06/18 08:51:17 goba Exp $
/*
@@ -401,8 +401,11 @@
function manual_note_display($date, $name, $text, $id)
{
if ($name) { $name = "\n <strong>" . htmlspecialchars($name) .
"</strong><br />"; }
- $datestr = "\n " . date("d-M-Y h:i", $date);
-
+ $datestr = date("d-M-Y h:i", $date);
+ $datestr = ($id ? "\n <a href=\"#$id\">$datestr</a>" :
"\n $datestr");
+ $anchor = ($id ? "<a name=\"$id\"></a>\n " : "");
+ $text = clean_note($text);
+
// If the viewer is logged in, show admin options
if (isset($_COOKIE['MAGIC_COOKIE']) && $id) {
@@ -431,10 +434,6 @@
} else { $admin = ''; }
- $text = clean_note($text);
-
- $anchor = ($id ? "<a name=\"$id\"></a>\n " : "");
-
echo <<<USER_NOTE_TEXT
{$anchor}<div class="note">{$admin}{$name}{$datestr}