diff --git a/checkin_notes b/checkin_notes index 56f49bf58b..29d3c6c331 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/html/inc/forum.inc b/html/inc/forum.inc index 76b4e28049..242360b058 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -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 ""; for ($i=0; $i $name $comment\n"; + echo "
  • $name $comment\n"; } echo "\n"; } diff --git a/html/inc/util.inc b/html/inc/util.inc index 7e310fc685..4493d8cdde 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -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 ''; - + + echo "\n"; + if (!$title_plain) { - echo "".strip_tags($title)." - - - "; + echo "".strip_tags($title)."\n"; } else { - echo "".strip_tags($title_plain)." - - - "; + echo "".strip_tags($title_plain)."\n"; } + echo " + + + "; if ($java_onload){ - echo ""; } else { echo ""; + echo ""; } else { echo ""; } 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 ""; +function start_table($extra="width=\"100%\"") { + echo "
    "; } function start_table_noborder($width="100%") { - echo "
    "; + echo "
    "; } function end_table() { diff --git a/html/project.sample/project.inc b/html/project.sample/project.inc index a4c01b2a4d..1cdc3e1d9c 100644 --- a/html/project.sample/project.inc +++ b/html/project.sample/project.inc @@ -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 " -
    + echo "
    + echo " + - - - - '; + + + + "; } page_head(tr(FORUM_TITLE)); diff --git a/html/user/stats.php b/html/user/stats.php index 5368ae52de..6f65f81061 100644 --- a/html/user/stats.php +++ b/html/user/stats.php @@ -7,9 +7,9 @@ echo "

    Statistics for ".PROJECT.":

    @@ -28,7 +28,7 @@ site_list($sig_sites); echo " You can get your individual statistics across all BOINC projects from several sites; -see your home page. +see your home page. "; page_tail();

    $title

    @@ -38,7 +37,7 @@ function project_banner($title) { function project_footer($show_return, $show_date) { echo "

    "; if ($show_return) { - echo "Return to ".PROJECT." main page
    \n"; + echo "Return to ".PROJECT." main page
    \n"; } echo "

    Copyright © ".date("Y ").COPYRIGHT_HOLDER."
    \n"; if ($show_date) { diff --git a/html/user/forum_forum.php b/html/user/forum_forum.php index 427c3bfa36..0ef229f340 100644 --- a/html/user/forum_forum.php +++ b/html/user/forum_forum.php @@ -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 diff --git a/html/user/forum_index.php b/html/user/forum_index.php index 0e8d3d5339..ed9dc814c2 100644 --- a/html/user/forum_index.php +++ b/html/user/forum_index.php @@ -20,18 +20,18 @@ if ((get_int("read", true) == 1) && ($logged_in_user)) { } function forum_summary($forum) { - echo ' -
    - '.$forum->getTitle().' + getID()."\">".$forum->getTitle()." -
    '.$forum->getDescription().' +
    ".$forum->getDescription()."
    '.$forum->getThreadCount().''.$forum->getPostCount().''.time_diff_str($forum->getLastTimestamp(), time()).'
    ".$forum->getThreadCount()."".$forum->getPostCount()."".time_diff_str($forum->getLastTimestamp(), time())."