mirror of https://github.com/BOINC/boinc.git
user web: add some CSS classes for easier styling
svn path=/trunk/boinc/; revision=22850
This commit is contained in:
parent
341c1e0d2a
commit
e0bcf3805f
948
checkin_notes
948
checkin_notes
File diff suppressed because it is too large
Load Diff
|
@ -3,7 +3,7 @@
|
|||
$bbcode_js = "<script type=\"text/javascript\" src=\"bbcode_toolbar.js\"></script>";
|
||||
|
||||
$bbcode_html = <<<EOT
|
||||
<table width="40%" border="0" cellspacing="0" cellpadding="2">
|
||||
<table width="40%" border="0" cellspacing="0" cellpadding="2" class="bbcode_buttons">
|
||||
<tr align="center" valign="middle">
|
||||
<td><span class="genmed">
|
||||
<input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" title="Bold text: [b]text[/b] (alt+b)" />
|
||||
|
|
|
@ -111,7 +111,7 @@ $special_user_bitfield[S_SCIENTIST]="Project scientist";
|
|||
function show_forum_header($user) {
|
||||
echo "<form action=\"forum_search_action.php\" method=\"POST\">
|
||||
";
|
||||
start_table_noborder();
|
||||
echo "<table cellpadding=\"5\" width=\"100%\" class=\"forum_header\">";
|
||||
echo "<tr>
|
||||
";
|
||||
|
||||
|
@ -501,7 +501,7 @@ function show_post(
|
|||
|
||||
|
||||
// Print the special user lines, if any
|
||||
global $special_user_bitfield;
|
||||
global $special_user_bitfield;
|
||||
$fstatus="";
|
||||
$keys = array_keys($special_user_bitfield);
|
||||
$is_posted_by_special = false;
|
||||
|
@ -626,13 +626,13 @@ function show_post(
|
|||
|
||||
echo "<p>", $posttext, "</p>";
|
||||
echo "</td></tr><tr><td class=\"postfooter\">ID: <i>", $post->id;
|
||||
if ($no_forum_rating) {
|
||||
if ($no_forum_rating) {
|
||||
echo " | <a href=\"forum_report_post.php?post=".$post->id."\">";
|
||||
show_image(REPORT_POST_IMAGE, "Report this post as offensive", "Report as offensive", REPORT_POST_IMAGE_HEIGHT);
|
||||
echo "</a>";
|
||||
} else {
|
||||
$rating = $post->rating();
|
||||
echo " | Rating: ", $rating, "</i> | rate:
|
||||
echo " | Rating: ", $rating, "</i> | rate:
|
||||
<a href=\"forum_rate.php?post=".$post->id."&choice=p$tokens\">
|
||||
";
|
||||
show_image(RATE_POSITIVE_IMAGE, "Click if you like this message", "Rate +", RATE_POSITIVE_IMAGE_HEIGHT);
|
||||
|
@ -978,7 +978,7 @@ function get_thread_posts($threadid, $sort_style, $show_hidden) {
|
|||
break;
|
||||
default:
|
||||
$sql .= ' ORDER BY timestamp asc';
|
||||
break;
|
||||
break;
|
||||
}
|
||||
return BoincPost::enum($sql);
|
||||
}
|
||||
|
|
|
@ -126,12 +126,12 @@ if ($can_edit_title) {
|
|||
if ($preview) {
|
||||
row2(
|
||||
tra("Message").html_info().post_warning(),
|
||||
$bbcode_html."<textarea name=\"content\" rows=\"12\" cols=\"80\">".htmlspecialchars($content)."</textarea>"
|
||||
$bbcode_html."<textarea name=\"content\" rows=\"12\" cols=\"80\" class=\"message_field\">".htmlspecialchars($content)."</textarea>"
|
||||
);
|
||||
} else {
|
||||
row2(
|
||||
tra("Message").html_info().post_warning(),
|
||||
$bbcode_html.'<textarea name="content" rows="12" cols="80">'.htmlspecialchars($post->content).'</textarea>'
|
||||
$bbcode_html.'<textarea name="content" rows="12" cols="80" class="message_field">'.htmlspecialchars($post->content).'</textarea>'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ case 1:
|
|||
echo '
|
||||
<p>
|
||||
<form action="forum_forum.php" method="get">
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<table width="100%" cellspacing="0" cellpadding="0" class="forum_toplinks">
|
||||
<tr valign="top">
|
||||
<td colspan=2>
|
||||
';
|
||||
|
|
|
@ -116,7 +116,7 @@ if ($force_title && $title){
|
|||
|
||||
//Message
|
||||
row2(tra("Message").html_info().post_warning().$body_help,
|
||||
$bbcode_html."<textarea name=\"content\" rows=\"12\" cols=\"54\">".htmlspecialchars($content)."</textarea>"
|
||||
$bbcode_html."<textarea name=\"content\" rows=\"12\" cols=\"80\" class=\"message_field\">".htmlspecialchars($content)."</textarea>"
|
||||
);
|
||||
|
||||
if (!$logged_in_user->prefs->no_signature_by_default) {
|
||||
|
|
Loading…
Reference in New Issue