$searchcontent = isset($CFG->adminsearchquery) ? $CFG->adminsearchquery : '';
$this->content->footer = '<div class="adminsearchform">'.
- '<form action="'.$CFG->wwwroot.'/admin/search.php" method="get">'.
+ '<form action="'.$CFG->wwwroot.'/admin/search.php" method="get"><div>'.
'<label for="query" class="accesshide">'.get_string('searchinsettings', 'admin').'</label>'.
'<input type="text" name="query" id="query" size="8" value="'.s($searchcontent).'" />'.
- '<input type="submit" value="'.get_string('search').'" />'.
+ '<input type="submit" value="'.get_string('search').'" /></div>'.
'</form></div>';
} else {
$this->content = new stdClass;
//basic search form
$this->content->text =
- '<form name="query" method="get" action="'. $CFG->wwwroot .'/search/query.php">'
+ '<form name="query" method="get" action="'. $CFG->wwwroot .'/search/query.php"><div>'
. '<label for="block_search_q">'. $label .'</label>'
. '<input id="block_search_q" type="text" name="query_string" length="50" />'
. '<input type="submit" value="'.$button.'" />'
- . '</form>';
+ . '</div></form>';
} else {
$this->content->text = "Sorry folks, PHP 5 is needed for the new search module.";
} //else
$button = (isset($CFG->block_search_button)) ? $CFG->block_search_button : get_string('go');
$this->content->text = '<div class="searchform">';
- $this->content->text .= '<form name="search" action="'.$CFG->wwwroot.'/mod/forum/search.php" style="display:inline">';
+ $this->content->text .= '<form name="search" action="'.$CFG->wwwroot.'/mod/forum/search.php" style="display:inline"><div>';
$this->content->text .= '<input name="id" type="hidden" value="'.$this->instance->pageid.'" />'; // course
$this->content->text .= '<input name="search" type="text" size="16" />';
$this->content->text .= '<button type="submit" title="'.get_string('search').'">'.$button.'</button><br />';
$this->content->text .= '<a href="'.$CFG->wwwroot.'/mod/forum/search.php?id='.$this->instance->pageid.'">'.$advancedsearch.'</a>';
$this->content->text .= helpbutton('search', $advancedsearch, 'moodle', true, false, '', true);
- $this->content->text .= '</form></div>';
+ $this->content->text .= '</div></form></div>';
return $this->content;
}
$straddactivity = get_string('addactivity');
$straddresource = get_string('addresource');
- $output = '<div class="section_add_menus" style="text-align: right">';
+ $output = '<div class="section_add_menus">';
+
+ if (!$vertical) {
+ $output .= '<div class="horizontal">';
+ }
if (!empty($resources)) {
$output .= popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&section=$section&sesskey=".sesskey()."&add=",
$resources, "ressection$section", "", $straddresource, 'resource/types', $straddresource, true);
}
- if ($vertical) {
- $output .= '<div>';
- }
-
if (!empty($activities)) {
$output .= ' ';
$output .= popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&section=$section&sesskey=".sesskey()."&add=",
$activities, "section$section", "", $straddactivity, 'mods', $straddactivity, true);
}
- if ($vertical) {
+ if (!$vertical) {
$output .= '</div>';
}
// changed reference to document.getElementById('id_abc') instead of document.abc
// MDL-7861
- $startoutput = '<form action="'.$CFG->wwwroot.'/course/jumpto.php"'.
+ $output = '<form action="'.$CFG->wwwroot.'/course/jumpto.php"'.
' method="get"'.
$target.
' id="'.$formid.'"'.
' class="popupform">';
+ if ($help) {
+ $button = helpbutton($help, $helptext, 'moodle', true, false, '', true);
+ } else {
+ $button = '';
+ }
- $output = '<div><select name="jump" onchange="'.$targetwindow.'.location=document.getElementById(\''.$formid.'\').jump.options[document.getElementById(\''.$formid.'\').jump.selectedIndex].value;">'."\n";
+ $output .= '<div>'.$button.'<select name="jump" onchange="'.$targetwindow.'.location=document.getElementById(\''.$formid.'\').jump.options[document.getElementById(\''.$formid.'\').jump.selectedIndex].value;">'."\n";
if ($nothing != '') {
$output .= " <option value=\"javascript:void(0)\">$nothing</option>\n";
"\n//]]>\n".'</script>';
$output .= '</form>' . "\n";
- if ($help) {
- $button = helpbutton($help, $helptext, 'moodle', true, false, '', true);
- } else {
- $button = '';
- }
-
if ($return) {
- return $startoutput.$button.$output;
+ return $output;
} else {
- echo $startoutput.$button.$output;
+ echo $output;
}
}
$target = ' target="'.$CFG->framename.'"';
}
- return "<form$target method=\"get\" action=\"$CFG->wwwroot/course/view.php\">".
+ return "<form$target method=\"get\" action=\"$CFG->wwwroot/course/view.php\"><div>".
"<input type=\"hidden\" name=\"id\" value=\"$courseid\" />".
"<input type=\"hidden\" name=\"edit\" value=\"$edit\" />".
"<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />".
- "<input type=\"submit\" value=\"$string\" /></form>";
+ "<input type=\"submit\" value=\"$string\" /></div></form>";
}
}
list-style: none;
}
+.section_add_menus {
+ text-align:right;
+}
+
+.section_add_menus .horizontal div {
+ display:inline;
+}
+
+
/*#course-view ul.section li.activity ul li,
#site-index ul.section li.activity ul li {
list-style: disc;