Ticket #489: forum_forum_php.patch
File forum_forum_php.patch, 4.2 KB (added by , 17 years ago) |
---|
-
forum_forum.php
42 42 $category = BoincCategory::lookup_id($forum->category); 43 43 if ($category->is_helpdesk){ 44 44 page_head(tra("Questions and Answers").' : '.$forum->title); 45 echo '<link href="forum_help_desk.php" rel="up" title="Forum Index">';45 echo "<link href=\"forum_help_desk.php\" rel=\"up\" title=\"Forum Index\">"; 46 46 } else { 47 47 page_head(tra("Message boards").' : '.$forum->title); 48 echo '<link href="forum_index.php" rel="up" title="Forum Index">';48 echo "<link href=\"forum_index.php\" rel=\"up\" title=\"Forum Index\">"; 49 49 } 50 50 show_forum_header($user); 51 51 show_forum_title($category, $forum, NULL); 52 52 break; 53 53 case 1: 54 54 $team = BoincTeam::lookup_id($forum->category); 55 page_head("Team message board for <a href= team_display.php?teamid=$team->id>$team->name</a>");55 page_head("Team message board for <a href=\"team_display.php?teamid=$team->id\">$team->name</a>"); 56 56 show_forum_header($user); 57 57 break; 58 58 } 59 59 60 echo '61 <table width= "100%" cellspacing="0" cellpadding="0">62 <tr valign= "top">63 <td colspan= 2>64 ';60 echo " 61 <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> 62 <tr valign=\"top\"> 63 <td colspan=\"2\"> 64 "; 65 65 66 66 show_button("forum_post.php?id=$id", "New thread", "Add a new thread to this forum"); 67 67 … … 73 73 } 74 74 75 75 echo " <br><br></td>"; 76 echo '<td valign=top align="right">';77 echo ' <form action="forum_forum.php" method="get">78 <input type="hidden" name="id" value="'.$forum->id.'">';76 echo "<td valign=\"top\" align=\"right\">"; 77 echo "<form action=\"forum_forum.php\" method=\"get\"> 78 <input type=\"hidden\" name=\"id\" value=\"'.$forum->id.'\">"; 79 79 echo select_from_array("sort", $forum_sort_styles, $sort_style); 80 echo '<input type="submit" value="Sort"></form></td>';80 echo "<input type=\"submit\" value=\"Sort\"></form></td>"; 81 81 echo "</tr></table>"; 82 82 83 83 show_forum($forum, $start, $sort_style, $user); … … 93 93 $gotoStr = ""; 94 94 $nav = show_page_nav($forum, $start); 95 95 if ($nav) { 96 $gotoStr = "<div align=\"right\">$nav</div><br >";96 $gotoStr = "<div align=\"right\">$nav</div><br/>"; 97 97 } 98 98 echo $gotoStr; // Display the navbar 99 99 start_forum_table(array("", tra("Threads"), tra("Posts"), tra("Author"), tra("Views"), "<nobr>".tra("Last post")."</nobr>")); … … 115 115 116 116 if ($thread->status==1){ 117 117 // This is an answered helpdesk thread 118 echo '<tr class="row_hd'.$n.'">';118 echo "<tr class=\"row_hd'.$n.'\">"; 119 119 } else { 120 120 // Just a standard thread. 121 echo '<tr class="row'.$n.'">';121 echo "<tr class=\"row'.$n.'\">"; 122 122 } 123 123 124 echo "<td width=\"1%\" align=\"right\"><nobr>";124 echo "<td class=\"threadicon\"><nobr>"; 125 125 if ($user && ($thread->rating()>$user->prefs->high_rating_threshold)) { 126 126 show_image(EMPHASIZE_IMAGE, "This message has a high average rating"); 127 127 } … … 166 166 $title = substr($title,0,$titlelength)."..."; 167 167 } 168 168 $title = cleanup_title($title); 169 echo '<td class="threadline"><a href="forum_thread.php?id='.$thread->id.'"><b>'.$title.'</b></a><br></td>';169 echo "<td class=\"threadline\"><a href=\"forum_thread.php?id='.$thread->id.'\">'.$title.'</a><br/></td>"; 170 170 $n = ($n+1)%2; 171 171 172 echo '172 echo " 173 173 <td>'.($thread->replies+1).'</td> 174 <td align="left"><div class="authorcol">'.user_links($owner).'</div></td>174 <td class=\"threadauthor\"><div class=\"authorcol\">'.user_links($owner).'</div></td> 175 175 <td>'.$thread->views.'</td> 176 <td style="text-align:right">'.time_diff_str($thread->timestamp, time()).'</td>176 <td class=\"lastpost\">'.time_diff_str($thread->timestamp, time()).'</td> 177 177 </tr> 178 ';178 "; 179 179 flush(); 180 180 } 181 181 end_table(); 182 echo "<br >$gotoStr"; // show page links182 echo "<br/>$gotoStr"; // show page links 183 183 } 184 184 185 185 ?>