diff --git a/course/category.php b/course/category.php index d667bf3b957..5fcce5afadd 100644 --- a/course/category.php +++ b/course/category.php @@ -123,11 +123,9 @@ make_categories_list($displaylist, $parentlist, ""); - echo '
| ';
- echo " $strcategories: "; - echo " | "; - popup_form("category.php?id=", $displaylist, "switchcategory", "$category->id", "", "", "", false); - echo " |
| ".get_string('course')." | \n"; @@ -578,7 +578,7 @@ function print_mnet_log($hostid, $course, $user=0, $date=0, $order="l.time ASC", print_paging_bar($totalcount, $page, $perpage, "$url&perpage=$perpage&"); - echo "
|---|
| ".get_string('course')." | \n"; @@ -1650,12 +1650,12 @@ function print_category_info($category, $depth, $files = false) { $coursecount = count_records('course') <= FRONTPAGECOURSELIMIT; if ($files and $coursecount) { - $catimage = '
|---|
| '.$catimage.' | '; - echo ''; + echo ' | '; echo ''.$category->name.''; echo ' | '; echo ''; @@ -1680,28 +1680,28 @@ function print_category_info($category, $depth, $files = false) { if ($courses && !(isset($CFG->max_category_depth)&&($depth>=$CFG->max_category_depth-1))) { foreach ($courses as $course) { $linkcss = $course->visible ? '' : ' class="dimmed" '; - echo ' |
| '; - echo ' | '; + echo ' | ||
| '; + echo ' | '; echo ''.$course->fullname.''; - echo ' | '; + echo ' | ';
if ($course->guest ) {
echo '';
- echo ' ';
} else {
- echo ' ';
}
if ($course->password) {
echo '';
- echo ' ';
} else {
- echo ' ';
}
if ($course->summary) {
link_to_popup_window ('/course/info.php?id='.$course->id, 'courseinfo',
- ' ',
400, 500, $strsummary);
} else {
- echo ' ';
}
echo ' | '; + echo ' | '; echo ''.$category->name.''; echo ' | '; echo '';
@@ -1865,23 +1865,22 @@ function print_course_search($value="", $return=false, $format="plain") {
if ($format == 'plain') {
$output = '';
+ $output .= '';
} else if ($format == 'short') {
$output = '';
+ $output .= '';
} else if ($format == 'navbar') {
- $output = '';
+ $output .= '';
}
if ($return) {
diff --git a/lib/weblib.php b/lib/weblib.php
index 9bf4b33b0e2..e609d26b517 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -930,7 +930,8 @@ function print_textfield ($name, $value, $alt = '',$size=50,$maxlength=0, $retur
* @return string If $return is true then the entire form is returned as a string.
* @todo Finish documenting this function */ -function popup_form($common, $options, $formid, $selected='', $nothing='choose', $help='', $helptext='', $return=false, $targetwindow='self') { +function popup_form($common, $options, $formid, $selected='', $nothing='choose', $help='', $helptext='', $return=false, +$targetwindow='self', $selectlabel='') { global $CFG; static $go, $choose; /// Locally cached, in case there's lots on a page @@ -963,7 +964,11 @@ function popup_form($common, $options, $formid, $selected='', $nothing='choose', $button = ''; } - $output .= ' '.$button.' ';
+ $output .= '';
$output .= '' . "\n";
if ($return) {
diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css
index f3d136ceed0..f0a226886cb 100644
--- a/theme/standard/styles_layout.css
+++ b/theme/standard/styles_layout.css
@@ -1354,6 +1354,11 @@ body#course-view .headingblock {
border-style:solid;
}
+.categorypicker {
+ text-align:center;
+ padding-bottom:10px;
+}
+
.coursebox .cost {
padding-top: 20px;
}
@@ -1364,6 +1369,18 @@ body#course-view .headingblock {
margin:0;
}
+#course-category #renameform {
+ text-align:center;
+}
+
+#course-category .singlebutton {
+ text-align:center;
+}
+
+#course-category #coursesearch {
+ text-align:center;
+}
+
/***
*** Doc
|