Ticket #872: many.changes.patch
File many.changes.patch, 21.3 KB (added by , 16 years ago) |
---|
-
inc/forum.inc
108 108 // show a banner with search form on left and PM info on right 109 109 // 110 110 function show_forum_header($user) { 111 echo "<form action=\"forum_search_action.php\" method=\"POST\"> 112 "; 113 start_table_noborder(); 114 echo "<tr> 115 "; 116 117 // Search 118 echo " 119 <td> 120 <input type=\"hidden\" name=\"search_max_time\" value=\"30\"> 121 <input type=\"hidden\" name=\"search_forum\" value=\"-1\"> 122 <input type=\"hidden\" name=\"search_sort\" value=\"5\"> 123 <input type=\"text\" name=\"search_keywords\"> 124 <input class=\"btn\" title=\"".tra("Search for words in forum messages")."\" type=\"submit\" value=\"".tra("Search forums")."\"><br> 125 <span class=\"smalltext\"><a href=\"forum_search.php\">".tra("Advanced search")."</a></span> 126 </td> 127 "; 128 129 if ($user) { 130 echo "<td align=\"right\">\n"; 131 echo "<p>".tra("Private messages").": ", pm_notification($user); 132 echo "</td>\n"; 133 } 134 echo "</tr> 135 "; 136 end_table(); 137 echo "</form> 138 "; 111 112 start_table_noborder(); 113 // Search 114 ?> 115 <tr><td> 116 <form action="forum_search_action.php" method="POST"> 117 <input type="hidden" name="search_max_time" value="30"> 118 <input type="hidden" name="search_forum" value="-1"> 119 <input type="hidden" name="search_sort" value="5"> 120 <div class="bordered" id="searchbox"> 121 <input type="text" name="search_keywords"> 122 <input class="btn" title="<?php echo tra("Search for words in forum messages") ?>" type="submit" value="<?php echo tra("Search forums") ?>"><br /> 123 <span class="smalltext"><a href="forum_search.php"><?php echo tra("Advanced search") ?></a></span> 124 </div> 125 </form> 126 <?php 127 128 // Private Messages 129 if ($user) { 130 echo "<div class=\"bordered\" id=\"pmbox\">".tra("Private messages").": ", pm_notification($user); 131 echo "</div></td></tr>\n"; 132 } 133 end_table(); 134 139 135 } 140 136 141 137 // Output the forum/thread title. … … 198 194 199 195 // Start the forum table, output the proper headings and such. 200 196 // 201 function start_forum_table($headings, $extra="width=\"100%\" ") {197 function start_forum_table($headings, $extra="width=\"100%\" id=\"forum_main\"") { 202 198 $span = null; 203 199 204 200 start_table($extra); … … 213 209 } 214 210 } else { 215 211 $title = $headings[$i]; 216 $class = "heading ";212 $class = "heading_forum"; 217 213 $span=""; 218 214 } 219 215 echo "<th class=$class$span>$title</th>"; -
inc/profile.inc
82 82 function offensive_profile_warning($verify_flag) { 83 83 if ($verify_flag == 0) { 84 84 return " 85 <font size='+2' color='#3 3cc33'>85 <font size='+2' color='#3c3'> 86 86 Your profile will be made visible to other people<br> 87 87 as soon as it has been approved by the project.<br> 88 88 This may take up to a few days.<br> … … 90 90 "; 91 91 } else if ($verify_flag == -1) { 92 92 return " 93 <font size='+2' color='#f f3333'>93 <font size='+2' color='#f33'> 94 94 Your profile has been marked as unacceptable.<br> 95 95 It is not visible to other people. Please change it.<br> 96 96 </font> … … 245 245 BoincForumPrefs::lookup($logged_in_user); 246 246 $options = get_output_options($logged_in_user); 247 247 248 row1 (show_profile_heading1());248 row1_top(show_profile_heading1()); 249 249 row1(output_transform($profile->response1, $options), 2, "foobar"); 250 250 row1(show_profile_heading2()); 251 251 row1(output_transform($profile->response2, $options), 2, "foobar"); -
inc/team.inc
32 32 start_table(); 33 33 row2('<b>'.tra('Search criteria (use one or more)').'</b>', ''); 34 34 row2(tra('Key words').'<br><span class="note">'.tra('Find teams with these words in their names or descriptions').'</span>', 35 '<input name="keywords" value="' . htmlspecialchars($params->keywords) . '">');35 '<input type="text" name="keywords" value="' . htmlspecialchars($params->keywords) . '">'); 36 36 row2_init(tra('Country'), ''); 37 37 echo '<select name="country"><option value="" selected>---</option>'; 38 38 $country = $params->country; … … 74 74 global $team_name_sites; 75 75 page_head("$team->name"); 76 76 77 echo "< 77 78 echo sanitize_html($team->name_html); 78 79 echo "<p>"; 79 80 start_table(); 80 row1 (tra('Team info'));81 row1_top(tra('Team info')); 81 82 if (strlen($team->description)) { 82 83 row2(tra('Description'), sanitize_html($team->description)); 83 84 } -
inc/user.inc
194 194 $email_text = "Verification pending"; 195 195 } 196 196 197 row1 (tra("Account information"));197 row1_top(tra("Account information")); 198 198 row2(tra("Name"), $user->name); 199 199 row2(tra("Email address"), $email_text); 200 200 if (strlen($user->url)) { … … 231 231 } 232 232 233 233 function show_community_private($user) { 234 row1 (tra("Community"));234 row1_top(tra("Community")); 235 235 236 236 if ($user->has_profile) { 237 237 $x = "<a href=\"view_profile.php?userid=$user->id\">".tra("View")."</a> | <a href=\"delete_profile.php\">".tra("Delete")."</a>"; -
inc/util.inc
123 123 124 124 125 125 if (!$title_plain) { 126 echo "<html><head><title>". strip_tags($title)."</title>\n";126 echo "<html><head><title>". PROJECT." :: ".strip_tags($title)."</title>\n"; 127 127 } else { 128 echo "<html><head><title>". strip_tags($title_plain)."</title>\n";128 echo "<html><head><title>". PROJECT." :: ".strip_tags($title_plain)."</title>\n"; 129 129 } 130 130 echo "<link rel=stylesheet type=\"text/css\" href=\"main.css\" media=\"all\" /> 131 131 <link rel=stylesheet type=\"text/css\" href=\"$stylesheet\"> … … 274 274 echo "<tr><td class=\"$class\" colspan=\"$ncols\">$x</td></tr>\n"; 275 275 } 276 276 277 function row1_top($x, $ncols=2, $class="heading") { 278 echo "<tr><td class=\"$class ontop\" colspan=\"$ncols\">$x</td></tr>\n"; 279 } 280 277 281 function row2($x, $y, $show_error=false) { 278 282 if ($x=="") $x="<br>"; 279 283 if ($y=="") $y="<br>"; -
project.sample/project.inc
42 42 43 43 function project_footer($show_return, $show_date, $prefix) { 44 44 // If you include any links, prepend URL with $prefix 45 echo "<br><hr noshade size=1><center>";45 echo "<br><hr /><center>"; 46 46 if ($show_return) { 47 47 echo "<a href=".$prefix."index.php>Home</a> | <a href=".$prefix."home.php>My Account</a> | <a href=".$prefix."forum_index.php>Message Boards</a><br>\n"; 48 48 } … … 54 54 } 55 55 56 56 function show_profile_heading1() { 57 return "Your personal background .";57 return "Your personal background"; 58 58 } 59 59 60 60 function show_profile_question1() { -
user/apps.php
42 42 echo " <name>$app->user_friendly_name</name>\n"; 43 43 } else { 44 44 echo " 45 <tr><th c olspan=4>$app->user_friendly_name</th></tr>45 <tr><th class=\"heading\" colspan=4>$app->user_friendly_name</th></tr> 46 46 <tr> 47 <th >".tra("Platform")."</th>48 <th >".tra("Version")."</th>49 <th >".tra("Installation time")."</th>47 <th class=\"apphead\">".tra("Platform")."</th> 48 <th class=\"apphead\">".tra("Version")."</th> 49 <th class=\"apphead\">".tra("Installation time")."</th> 50 50 </tr> 51 51 "; 52 52 } … … 81 81 } 82 82 echo "<tr> 83 83 <td>$platform->user_friendly_name</td> 84 <td >$version_num_f</td>84 <td class=\"numbers\">$version_num_f</td> 85 85 <td>$create_time_f</td> 86 86 </tr> 87 87 "; -
user/create_profile.php
173 173 $response2 = $profile->response2; 174 174 } 175 175 176 row1 (show_profile_heading1());176 row1_top(show_profile_heading1()); 177 177 rowify(show_profile_question1().html_info()); 178 178 show_textarea("response1", $response1); 179 179 row1( show_profile_heading2()); -
user/edit_email_form.php
31 31 32 32 echo "<form method=post action=edit_email_action.php>\n"; 33 33 start_table(); 34 row1 ("Change the email address of your account");34 row1_top("Change the email address of your account"); 35 35 row2("New email address 36 36 <br><font size=-2>Must be a valid address of the form 'name@domain'</font>", 37 37 "<input name=email_addr size=50 value='$email_text'>" -
user/edit_forum_preferences_form.php
190 190 } 191 191 } 192 192 row2("Filtered users". 193 "<br><span class=note>Ignore message board posts and private messages from these 193 "<br><span class=note>Ignore message board posts and private messages from these users.</span>", 194 194 "$forum_filtered_userlist 195 195 <br> 196 196 <input type=\"text\" name=\"forum_filter_user\" size=12> User ID (For instance: 123456789) -
user/edit_passwd_form.php
52 52 "<input name=auth size=40>" 53 53 ); 54 54 } 55 row2("New password", "<input type= password name=passwd size=40>");56 row2("New password, again", "<input type= password name=passwd2 size=40>");55 row2("New password", "<input type=text type=password name=passwd size=40>"); 56 row2("New password, again", "<input type=text type=password name=passwd2 size=40>"); 57 57 row2("", "<input type=submit value='Change password'>"); 58 58 end_table(); 59 59 echo "</form>\n"; -
user/edit_user_info_form.php
30 30 echo form_tokens($user->authenticator); 31 31 start_table(); 32 32 row2("Name<br><font size=-2>real name or nickname</font>", 33 "<input name=user_name size=30 value='$user->name'>"33 "<input type=text name=user_name size=30 value='$user->name'>" 34 34 ); 35 35 row2("URL<br><font size=-2>of your web page; optional</font>", 36 "http://<input name=url size=50 value='$user->url'>"36 "http://<input type=text name=url size=50 value='$user->url'>" 37 37 ); 38 38 row2_init("Country", 39 39 "<select name=country>" … … 41 41 print_country_select($user->country); 42 42 echo "</select></td></tr>\n"; 43 43 row2("Postal (ZIP) code<br><font size=-2>Optional</font>", 44 "<input name=postal_code size=20 value='$user->postal_code'>"44 "<input type=text name=postal_code size=20 value='$user->postal_code'>" 45 45 ); 46 46 47 47 row2("", "<input type=submit value='Update info'>"); -
user/forum_forum.php
106 106 echo " 107 107 <p> 108 108 This message board is available as an 109 <a href=forum_rss.php?forumid=$forum->id& setup=1>RSS feed109 <a href=forum_rss.php?forumid=$forum->id&setup=1>RSS feed 110 110 <img src=img/feed_logo.png></a> 111 111 "; 112 112 … … 155 155 echo '<tr class="row'.$n.'">'; 156 156 } 157 157 158 echo "<td width=\"1%\" align=\"right\"><nobr>";158 echo "<td width=\"1%\"><nobr>"; 159 159 if ($user && ($thread->rating()>$user->prefs->high_rating_threshold)) { 160 160 show_image(EMPHASIZE_IMAGE, "This message has a high average rating", "Highly rated"); 161 161 } … … 204 204 $n = ($n+1)%2; 205 205 206 206 echo ' 207 <td >'.($thread->replies+1).'</td>208 <td >'.user_links($owner).'</td>209 <td >'.$thread->views.'</td>210 <td class= \"lastpost\">'.time_diff_str($thread->timestamp, time()).'</td>207 <td class="numbers leftborder">'.($thread->replies+1).'</td> 208 <td class="author leftborder">'.user_links($owner).'</td> 209 <td class="numbers leftborder">'.$thread->views.'</td> 210 <td class="lastpost leftborder">'.time_diff_str($thread->timestamp, time()).'</td> 211 211 </tr> 212 212 '; 213 213 flush(); -
user/forum_index.php
60 60 </em> 61 61 <br><span class=\"smalltext\">$d</span> 62 62 </td> 63 <td class=\"numbers \">$forum->threads</td>64 <td class=\"numbers \">$forum->posts</td>65 <td class=\"lastpost \">".time_diff_str($forum->timestamp, time())."</td>63 <td class=\"numbers leftborder\">$forum->threads</td> 64 <td class=\"numbers leftborder\">$forum->posts</td> 65 <td class=\"lastpost leftborder\">".time_diff_str($forum->timestamp, time())."</td> 66 66 </tr>"; 67 67 } 68 68 -
user/forum_post.php
88 88 89 89 echo "<form action=\"forum_post.php?id=".$forum->id."\" method=\"POST\">\n"; 90 90 echo form_tokens($logged_in_user->authenticator); 91 echo "<br />"; 91 92 92 93 start_table(); 93 94 94 row1 (tra("Create a new thread")); //New thread95 row1_top(tra("Create a new thread")); //New thread 95 96 $submit_help = ""; 96 97 $body_help = ""; 97 98 -
user/forum_search.php
26 26 27 27 start_table(); 28 28 echo "<form action=\"forum_search_action.php\" method=\"post\">"; 29 row1 ("Search query");29 row1_top("Search query"); 30 30 row2("Search for keywords:<br /> 31 31 <font size=-1>Posts that contain all the specified words will be displayed</font>", 32 32 '<input type="text" style="width: 290px" name="search_keywords" size="30" /><br /> -
user/main.css
13 13 } 14 14 15 15 h1, h2 { 16 font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; 16 17 font-size: x-large; 17 18 font-weight: normal; 18 19 } … … 24 25 h3, h4 { font-weight: bold; } 25 26 26 27 hr { 28 border-top-width: 2px; 29 border-top-style: solid; 27 30 size: 0; 28 31 margin: 8px 2px; 29 32 } … … 38 41 margin: 2px; 39 42 } 40 43 41 table.bordered {44 .bordered { 42 45 border-width: 2px; 43 46 border-style: solid; 44 47 -moz-border-radius: 6px; … … 53 56 } 54 57 55 58 td { 59 padding: 4px; 56 60 vertical-align: top; 57 padding: 4px;58 61 } 59 62 60 63 td.bordered { … … 67 70 border-left-style: solid; 68 71 } 69 72 70 td.heading { 73 .heading { 74 font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; 71 75 font-weight: bold; 72 76 margin: 4px 0; 73 77 padding: 8px; … … 104 108 vertical-align: middle; 105 109 } 106 110 111 .ontop { 112 -moz-border-radius: 6px 6px 0 0; 113 -khtml-border-radius-topleft: 6px; 114 -khtml-border-radius-topright: 6px; 115 -webkit-border-radius-topleft: 6px; 116 -webkit-border-radius-topright: 6px; 117 border-radius-topleft: 6px; 118 border-radius-topright: 6px; 119 } 120 107 121 .row0, 108 122 .row1 , 109 123 .highlighted_row0, … … 131 145 /* IE6 doesn't understand [type=XXXX] so we use class "button" */ 132 146 133 147 a.button { 134 135 148 line-height: 2.4em; 136 149 padding: 4px 8px; 137 150 margin: 0 4px; … … 154 167 text-decoration: none; 155 168 } 156 169 157 input[type="text"], select, textarea {170 input[type="text"], input[type="file"], select, textarea { 158 171 border-width: 1px; 159 172 border-style: solid; 160 173 margin: 2px 4px; 161 174 padding: 3px; 162 font-size: 1 2px;175 font-size: 11px; 163 176 -moz-border-radius: 5px; 164 177 -webkit-border-radius: 5px; 165 178 -khtml-border-radius: 5px; … … 237 250 height: 24px; 238 251 margin-left: 4px; 239 252 padding-left: 8px; 240 -moz-border-radius: 0 10px;253 -moz-border-radius: 0 0 10px 10px; 241 254 -webkit-border-radius-bottomleft: 10px; 242 255 -webkit-border-radius-bottomright: 10px; 243 256 -khtml-border-radius-bottomleft: 10px; … … 280 293 margin: 4px 0; 281 294 } 282 295 283 td.threadline , 284 td.numbers { 296 td.threadline { 285 297 text-align: left; 286 298 } 287 299 288 300 td.numbers { 289 301 text-align: center; 302 vertical-align: middle; 290 303 } 291 304 292 305 td.lastpost { 306 vertical-align: middle; 293 307 } 294 308 295 309 .title { 310 font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; 296 311 font-size: 14px; 297 312 font-weight: bold; 298 313 } … … 332 347 .authorcol .button { 333 348 margin: 0 6px; 334 349 line-height: 2.6em; 335 } 350 } 336 351 352 .leftborder { 353 border-left-width: 1px; 354 border-left-style: solid; 355 } 356 337 357 blockquote.postbody { 338 358 border-left-width: 2px; 339 359 border-left-style: solid; … … 348 368 overflow: visible; 349 369 } 350 370 371 #thread th, 372 .heading_forum { 373 font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; 374 } 375 376 #forum_main { 377 border: none; 378 padding: 6px; 379 border-spacing: 0 1px; 380 } 381 382 #pmbox { 383 height: 24px; 384 float: right; 385 text-align: center; 386 padding: 7px 8px 0 8px; 387 } 388 389 #searchbox { 390 height: 48px; 391 float: left; 392 padding: 6px 8px 2px 8px 393 } 394 395 #searchbox input[type="text"]{ 396 margin-left: 0; 397 } 398 399 #searchbox .btn { 400 padding: 3px 8px; 401 } 402 351 403 .forum_toplinks td { 352 404 vertical-align: middle; 353 405 } 354 406 355 407 span.page_title { 356 408 font-size: 24px; 357 margin: 20px;409 margin: 10px 16px; 358 410 } 359 411 360 412 span.note { -
user/prefs_edit.php
16 16 // You should have received a copy of the GNU Lesser General Public License 17 17 // along with BOINC. If not, see <http://www.gnu.org/licenses/>. 18 18 19 20 21 19 include_once("../inc/db.inc"); 22 20 include_once("../inc/util.inc"); 23 21 include_once("../inc/prefs.inc"); -
user/profile_menu.php
51 51 echo sub_sentence(output_transform(strip_tags($profile->response1)), ' ', 150, true); 52 52 } 53 53 54 echo "</td></tr> ";54 echo "</td></tr><br />"; 55 55 56 56 row1(tra("User Profile Explorer")); 57 57 echo "<tr><td> … … 71 71 row1(tra("Search profile text")); 72 72 rowify(" 73 73 <form action=\"profile_search_action.php\" method=\"GET\"> 74 <input name=\"search_string\">74 <input type=\"text\" type=\menu\" name=\"search_string\"> 75 75 <input type=\"submit\" value=\"".tra("Search")."\"> 76 76 </form> 77 77 "); -
user/project.inc.sample
39 39 // project-specific information that needs to be set by the project administrators. 40 40 41 41 function show_profile_heading1() { 42 row1("Your personal background .");42 row1("Your personal background"); 43 43 } 44 44 45 45 function show_profile_question1() { -
user/white.css
12 12 } 13 13 14 14 hr { 15 border-top : 2px solid#e8e8e8;15 border-top-color: #e8e8e8; 16 16 } 17 17 18 table.bordered {18 .bordered { 19 19 border-color: #e8e8e8; 20 background-color: #fff; 20 21 } 21 22 22 23 th { … … 49 50 } 50 51 51 52 .row0 { 52 background-color: # d9d9d9;53 background-color: #ededed; 53 54 } 54 55 55 56 .row1 { 56 background-color: # eee;57 background-color: #f5f5f5; 57 58 } 58 59 59 60 .highlighted_row0 { … … 72 73 background-color: #defade; 73 74 } 74 75 75 tr.message { 76 tr.message, 77 th.apphead { 76 78 background-color: #e0e0e0; 77 79 } 78 80 … … 112 114 border-color: #eee; 113 115 } 114 116 115 td.category , tr.subtitle{ 117 #forum_main { 118 background: #666 url("img/forum_gradient.png") repeat-x; 119 } 120 121 #forum_main .row0:hover, #forum_main .row1:hover { 122 background: #ddd; 123 } 124 125 .heading_forum { 126 background-color: #666; 127 color: #fff; 128 } 129 130 td.category, tr.subtitle{ 116 131 background-color: #ddd; 117 132 } 118 133 119 td.postheader { 134 td.postheader , 135 td.postfooter { 120 136 background-color: #eee; 121 137 } 122 138 123 139 td.postbody { 124 background : transparent url('img/75pct_white.png');140 background-color: #fff; 125 141 } 126 142 127 td.postfooter {128 background-color: #eee;129 }130 131 143 tr.postseperator { 132 144 background-color: #c8c8c8; 133 145 border-color: #aaa; … … 142 154 border-color: #a8a8a8; 143 155 } 144 156 157 .leftborder { 158 border-left-color: #fff; 159 } 160 145 161 blockquote.postbody { 146 162 border-left-color: #0089e1; 147 163 background-color: #f5fffa;