cvs: pearweb /include pear-auth.php pear-format-html.php /public_html/bugs bug.php /public_html/css style.css /templates category-manager.html
| From: | Daniel Convissor | Date: | Wed, 16 Jun 2004 22:26:20 +0000 |
| Subject: | cvs: pearweb /include pear-auth.php pear-format-html.php /public_html/bugs bug.php /public_html/css style.css /templates category-manager.html | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-20772@lists.php.net to get a copy of this message | ||
danielc Wed Jun 16 18:26:20 2004 EDT
Modified files:
/pearweb/include pear-auth.php pear-format-html.php
/pearweb/public_html/bugs bug.php
/pearweb/public_html/css style.css
/pearweb/templates category-manager.html
Log:
* Further unification of error message formatting.
http://cvs.php.net/diff.php/pearweb/include/pear-auth.php?r1=1.47&r2=1.48&ty=u
Index: pearweb/include/pear-auth.php
diff -u pearweb/include/pear-auth.php:1.47 pearweb/include/pear-auth.php:1.48
--- pearweb/include/pear-auth.php:1.47 Wed Jun 16 17:34:24 2004
+++ pearweb/include/pear-auth.php Wed Jun 16 18:26:19 2004
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: pear-auth.php,v 1.47 2004/06/16 21:34:24 danielc Exp $
+ $Id: pear-auth.php,v 1.48 2004/06/16 22:26:19 danielc Exp $
*/
function auth_reject($realm = null, $message = null)
@@ -35,9 +35,11 @@
report_error($message);
} elseif ($format == 'html') {
$GLOBALS['ONLOAD'] = "document.login.PEAR_USER.focus();";
- report_error($message);
+ if ($message) {
+ report_error($message);
+ }
print "<form name=\"login\" action=\"/login.php\"
method=\"post\">\n";
- print '<table class="form-holder" cellspacing="1"
border="1">' . "\n";
+ print '<table class="form-holder" cellspacing="1">' .
"\n";
print " <tr>\n";
print ' <th class="form-label_left">';
print 'Use<span class="accesskey">r</span>name:</th>'
. "\n";
http://cvs.php.net/diff.php/pearweb/include/pear-format-html.php?r1=1.118&r2=1.119&ty=u
Index: pearweb/include/pear-format-html.php
diff -u pearweb/include/pear-format-html.php:1.118 pearweb/include/pear-format-html.php:1.119
--- pearweb/include/pear-format-html.php:1.118 Wed Jun 16 17:34:24 2004
+++ pearweb/include/pear-format-html.php Wed Jun 16 18:26:19 2004
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: pear-format-html.php,v 1.118 2004/06/16 21:34:24 danielc Exp $
+ $Id: pear-format-html.php,v 1.119 2004/06/16 22:26:19 danielc Exp $
*/
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler');
@@ -375,7 +375,7 @@
$error .= " : $info";
}
}
- print "<span style=\"color:
#990000;\"><strong>$error</strong></span><br />\n";
+ print '<div class="errors">' . $error . "</div>\n";
}
function error_handler($errobj, $title = 'Error')
@@ -392,7 +392,7 @@
if ((DEVBOX || !empty($_GET['__debug'])) && $info) {
$report .= ": $info";
}
- print "<span class=\"error\">$report</span><br />\n";
+ print '<div class="errors">' . $report. "</div>\n";
response_footer();
exit;
}
http://cvs.php.net/diff.php/pearweb/public_html/bugs/bug.php?r1=1.41&r2=1.42&ty=u
Index: pearweb/public_html/bugs/bug.php
diff -u pearweb/public_html/bugs/bug.php:1.41 pearweb/public_html/bugs/bug.php:1.42
--- pearweb/public_html/bugs/bug.php:1.41 Wed Jun 16 17:34:25 2004
+++ pearweb/public_html/bugs/bug.php Wed Jun 16 18:26:19 2004
@@ -15,7 +15,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2004 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: bug.php,v 1.41 2004/06/16 21:34:25 danielc Exp $
+ * @version $Id: bug.php,v 1.42 2004/06/16 22:26:19 danielc Exp $
*/
/*
@@ -92,7 +92,7 @@
if (!$bug) {
response_header('No such bug.');
- echo '<h1 class="error">No such bug #'.$id.'!</h1>';
+ echo '<div class="errors"><h1>No such bug #' . $id .
'!</h1></div>';
response_footer();
exit;
}
http://cvs.php.net/diff.php/pearweb/public_html/css/style.css?r1=1.17&r2=1.18&ty=u
Index: pearweb/public_html/css/style.css
diff -u pearweb/public_html/css/style.css:1.17 pearweb/public_html/css/style.css:1.18
--- pearweb/public_html/css/style.css:1.17 Wed Jun 16 17:34:25 2004
+++ pearweb/public_html/css/style.css Wed Jun 16 18:26:19 2004
@@ -1,4 +1,4 @@
-/* $Id: style.css,v 1.17 2004/06/16 21:34:25 danielc Exp $ */
+/* $Id: style.css,v 1.18 2004/06/16 22:26:19 danielc Exp $ */
@import url(/css/tabs.css);
@@ -361,11 +361,6 @@
.tableExtras {
font-size: 85%;
color: #FFFFFF;
-}
-
-.error {
- font-weight: bold;
- color: #900;
}
.tip {
http://cvs.php.net/diff.php/pearweb/templates/category-manager.html?r1=1.2&r2=1.3&ty=u
Index: pearweb/templates/category-manager.html
diff -u pearweb/templates/category-manager.html:1.2 pearweb/templates/category-manager.html:1.3
--- pearweb/templates/category-manager.html:1.2 Mon Jun 9 03:47:04 2003
+++ pearweb/templates/category-manager.html Wed Jun 16 18:26:20 2004
@@ -115,7 +115,7 @@
</div>
</td>
<td valign="top">
- <span class="error"><?=@$message?></span>
+ <div class="errors"><?=@$message?></div>
<form action="category-manager.php" name="category_form"
method="post">
<input type="hidden" name="action" value="" />