mirror of https://github.com/BOINC/boinc.git
User web: add HTML DOCTYPE (4.01 Transitional) to all pages, make some HTML validity changes.
svn path=/trunk/boinc/; revision=13928
This commit is contained in:
parent
615e108441
commit
4b28e7c183
|
@ -9731,3 +9731,19 @@ David 21 Oct 2007
|
|||
|
||||
api/
|
||||
graphics2_unix.C
|
||||
|
||||
Rytis 22 Oct 2007
|
||||
- User web: add HTML DOCTYPE (4.01 Transitional) to all pages, make some
|
||||
HTML validity changes.
|
||||
|
||||
html/
|
||||
inc/
|
||||
forum.inc
|
||||
stats_sites.inc
|
||||
util.inc
|
||||
project.sample/
|
||||
project.inc
|
||||
user/
|
||||
forum_forum.php
|
||||
forum_index.php
|
||||
stats.php
|
||||
|
|
|
@ -368,10 +368,10 @@ function show_post($post, $thread, $logged_in_user, $n, $controls=FORUM_CONTROLS
|
|||
/**
|
||||
* Start the forum table, output the proper headings and such.
|
||||
**/
|
||||
function start_forum_table($headings, $extra="width=100%") {
|
||||
function start_forum_table($headings, $extra="width=\"100%\"") {
|
||||
$span = null;
|
||||
|
||||
start_table($extra." cellspacing=0 cellpadding=2");
|
||||
start_table($extra." cellspacing=\"0\"");
|
||||
echo "<tr>";
|
||||
|
||||
for ($i=0; $i<count($headings); $i++) {
|
||||
|
|
|
@ -134,7 +134,7 @@ function site_list($sites) {
|
|||
$url = $s[0];
|
||||
$name = $s[1];
|
||||
$comment = $s[2];
|
||||
echo "<li> <a href=$url>$name</a> $comment\n";
|
||||
echo "<li><a href=\"$url\">$name</a> $comment\n";
|
||||
}
|
||||
echo "</ul>\n";
|
||||
}
|
||||
|
|
|
@ -111,26 +111,24 @@ function page_head($title, $java_onload=null, $title_plain=null, $prefix="") {
|
|||
$styleSheet = URL_BASE . "/".STYLESHEET;
|
||||
$rssname = PROJECT . " RSS 2.0";
|
||||
$rsslink = URL_BASE . "/rss_main.php";
|
||||
|
||||
|
||||
if (defined("CHARSET")) {
|
||||
header("Content-type: text/html; charset=".tr(CHARSET));
|
||||
}
|
||||
|
||||
// echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">';
|
||||
|
||||
|
||||
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n";
|
||||
|
||||
if (!$title_plain) {
|
||||
echo "<html><head><title>".strip_tags($title)."</title>
|
||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"$styleSheet\">
|
||||
<link rel=\"alternate\" type=\"application/rss+xml\" title=\"$rssname\" href=\"$rsslink\">
|
||||
</head>";
|
||||
echo "<html><head><title>".strip_tags($title)."</title>\n";
|
||||
} else {
|
||||
echo "<html><head><title>".strip_tags($title_plain)."</title>
|
||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"$styleSheet\">
|
||||
<link rel=\"alternate\" type=\"application/rss+xml\" title=\"$rssname\" href=\"$rsslink\">
|
||||
</head>";
|
||||
echo "<html><head><title>".strip_tags($title_plain)."</title>\n";
|
||||
}
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$styleSheet\">
|
||||
<link rel=\"alternate\" type=\"application/rss+xml\" title=\"$rssname\" href=\"$rsslink\">
|
||||
</head>
|
||||
";
|
||||
if ($java_onload){
|
||||
echo "<body bgcolor=ffffff onload=\"".$java_onload."\">"; } else { echo "<body bgcolor=ffffff>";
|
||||
echo "<body bgcolor=\"#ffffff\" onload=\"".$java_onload."\">"; } else { echo "<body bgcolor=\"#ffffff\">";
|
||||
}
|
||||
display_cvs_versions();
|
||||
project_banner($title, $prefix);
|
||||
|
@ -223,12 +221,12 @@ function time_str($x) {
|
|||
function pretty_time_str($x) {
|
||||
return time_str($x);
|
||||
}
|
||||
function start_table($extra="width=100%") {
|
||||
echo "<table border=1 cellpadding=5 $extra>";
|
||||
function start_table($extra="width=\"100%\"") {
|
||||
echo "<table border=\"1\" cellpadding=\"5\" $extra>";
|
||||
}
|
||||
|
||||
function start_table_noborder($width="100%") {
|
||||
echo "<table border=0 cellpadding=5 width=$width>";
|
||||
echo "<table border=\"0\" cellpadding=\"5\" width=\"$width\">";
|
||||
}
|
||||
|
||||
function end_table() {
|
||||
|
|
|
@ -26,8 +26,7 @@ define("POST_REPORT_EMAILS", "moderator1@$master_url|moderator2@$master_url");
|
|||
function project_banner($title) {
|
||||
// Put your project title and logo here
|
||||
|
||||
echo "<link rel=stylesheet type=text/css href=white.css>
|
||||
<table width=100%>
|
||||
echo "<table width=\"100%\">
|
||||
<tr>
|
||||
<td><h2>$title</h2></td>
|
||||
<td align=right>
|
||||
|
@ -38,7 +37,7 @@ function project_banner($title) {
|
|||
function project_footer($show_return, $show_date) {
|
||||
echo "<br><hr noshade size=1><center>";
|
||||
if ($show_return) {
|
||||
echo "<a href=".URL_BASE.">Return to ".PROJECT." main page</a><br>\n";
|
||||
echo "<a href=\"".URL_BASE."\">Return to ".PROJECT." main page</a><br>\n";
|
||||
}
|
||||
echo "<br><br>Copyright © ".date("Y ").COPYRIGHT_HOLDER."</center>\n";
|
||||
if ($show_date) {
|
||||
|
|
|
@ -21,7 +21,9 @@ if (!$sort_style) {
|
|||
if ($user){
|
||||
$sort_style = $user->getForumSortStyle();
|
||||
} else {
|
||||
list($sort_style,$thread_style)=explode("|",$_COOKIE['sorting']);
|
||||
if (isset($_COOKIE['sorting'])) {
|
||||
list($sort_style,$thread_style)=explode("|",$_COOKIE['sorting']);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// set the sort style
|
||||
|
|
|
@ -20,18 +20,18 @@ if ((get_int("read", true) == 1) && ($logged_in_user)) {
|
|||
}
|
||||
|
||||
function forum_summary($forum) {
|
||||
echo '
|
||||
<tr class="row1">
|
||||
echo "
|
||||
<tr class=\"row1\">
|
||||
<td>
|
||||
<em>
|
||||
<a href="forum_forum.php?id='.$forum->getID().'">'.$forum->getTitle().'
|
||||
<a href=\"forum_forum.php?id=".$forum->getID()."\">".$forum->getTitle()."
|
||||
</a></em>
|
||||
<br><font size="-2">'.$forum->getDescription().'
|
||||
<br><span class=\"smalltext\">".$forum->getDescription()."</span>
|
||||
</td>
|
||||
<td>'.$forum->getThreadCount().'</td>
|
||||
<td>'.$forum->getPostCount().'</td>
|
||||
<td>'.time_diff_str($forum->getLastTimestamp(), time()).'</td>
|
||||
</tr>';
|
||||
<td>".$forum->getThreadCount()."</td>
|
||||
<td>".$forum->getPostCount()."</td>
|
||||
<td>".time_diff_str($forum->getLastTimestamp(), time())."</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
page_head(tr(FORUM_TITLE));
|
||||
|
|
|
@ -7,9 +7,9 @@ echo "
|
|||
<p>
|
||||
Statistics for ".PROJECT.":
|
||||
<ul>
|
||||
<li><a href=top_users.php>Top participants</a>
|
||||
<li><a href=top_hosts.php>Top computers</a>
|
||||
<li><a href=top_teams.php>Top teams</a>
|
||||
<li><a href=\"top_users.php\">Top participants</a>
|
||||
<li><a href=\"top_hosts.php\">Top computers</a>
|
||||
<li><a href=\"top_teams.php\">Top teams</a>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
|
@ -28,7 +28,7 @@ site_list($sig_sites);
|
|||
echo "
|
||||
You can get your individual statistics
|
||||
across all BOINC projects from several sites;
|
||||
see your <a href=home.php>home page</a>.
|
||||
see your <a href=\"home.php\">home page</a>.
|
||||
";
|
||||
|
||||
page_tail();
|
||||
|
|
Loading…
Reference in New Issue