Skip to content
Browse files

Tweak to modify interface a bit (changed header and made courses a link)

  • Loading branch information...
1 parent db95b60 commit 8e652a3660ed2f2a318d554b4f2673a41db2e75e martin committed Sep 9, 2002
Showing with 3 additions and 2 deletions.
  1. +3 −2 course/categories.php
View
5 course/categories.php
@@ -21,6 +21,7 @@
$strcourses = get_string("courses");
$stredit = get_string("edit");
$strdelete = get_string("delete");
+ $straction = get_string("action");
$stradd = get_string("add");
print_header("$site->fullname: $strcategories", "$site->fullname",
@@ -95,7 +96,7 @@
/// Print the table of all categories
- $table->head = array ($strcategory, $strcourses, $strdelete);
+ $table->head = array ($strcategory, $strcourses, $straction);
$table->align = array ("LEFT", "CENTER", "CENTER");
$table->size = array ("50", "20", "20");
$table->width = 100;
@@ -109,7 +110,7 @@
$delete = "<A HREF=\"categories.php?delete=$category->id\">$strdelete</A>";
}
$table->data[] = array ("<INPUT TYPE=text NAME=\"c$category->id\" VALUE=\"$category->name\" SIZE=30>",
- "$count", $delete);
+ "<A HREF=\"index.php?category=$category->id\">$count</A>", $delete);
}
$table->data[] = array ("<INPUT TYPE=text NAME=\"new\" VALUE=\"\" SIZE=30>", "", "$stradd");
print_table($table);

0 comments on commit 8e652a3

Please sign in to comment.
Something went wrong with that request. Please try again.