Better looking search boxes
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@
|
||||
echo "<BR>";
|
||||
|
||||
// Print a form to search forums
|
||||
print_simple_box("Search Discussions", $align="CENTER", $width="100%", $color="$THEME->cellheading");
|
||||
print_simple_box(get_string("search","forum"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
|
||||
echo "<DIV ALIGN=CENTER>";
|
||||
forum_print_search_form($course);
|
||||
echo "</DIV>";
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@
|
||||
print_side_block("", $moddata, "", $modicon);
|
||||
|
||||
// Print a form to search forums
|
||||
print_simple_box("Search Discussions", $align="CENTER", $width="100%", $color="$THEME->cellheading");
|
||||
print_simple_box(get_string("search","forum"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
|
||||
echo "<DIV ALIGN=CENTER>";
|
||||
forum_print_search_form($course);
|
||||
echo "</DIV>";
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@
|
||||
print_side_block("", $moddata, "", $modicon);
|
||||
|
||||
// Print a form to search forums
|
||||
print_simple_box("Search Discussions", $align="CENTER", $width="100%", $color="$THEME->cellheading");
|
||||
print_simple_box(get_string("search","forum"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
|
||||
echo "<DIV ALIGN=CENTER>";
|
||||
forum_print_search_form($course);
|
||||
echo "</DIV>";
|
||||
|
||||
@@ -66,6 +66,7 @@ $string[repliesmany] = "\$a replies so far";
|
||||
$string[repliesone] = "\$a reply so far";
|
||||
$string[reply] = "Reply";
|
||||
$string[search] = "Search";
|
||||
$string[searchforums] = "Search forums";
|
||||
$string[sendinratings] = "Send in my latest ratings";
|
||||
$string[singleforum] = "A single simple discussion";
|
||||
$string[subject] = "Subject";
|
||||
|
||||
+1
-1
@@ -297,7 +297,7 @@ function forum_print_search_form($course, $search="") {
|
||||
echo "<TABLE BORDER=0 CELLPADDING=10 CELLSPACING=0><TR><TD ALIGN=CENTER>";
|
||||
echo "<FORM NAME=search ACTION=\"$CFG->wwwroot/mod/forum/search.php\">";
|
||||
echo "<INPUT NAME=search TYPE=text SIZE=15 VALUE=\"$search\"><BR>";
|
||||
echo "<INPUT VALUE=\"".get_string("search", "forum")."\" TYPE=submit>";
|
||||
echo "<INPUT VALUE=\"".get_string("searchforums", "forum")."\" TYPE=submit>";
|
||||
echo "<INPUT NAME=id TYPE=hidden VALUE=\"$course->id\">";
|
||||
echo "</FORM>";
|
||||
echo "</TD></TR></TABLE>";
|
||||
|
||||
Reference in New Issue
Block a user