]> git.mjollnir.org Git - moodle.git/commitdiff
Small changes to tables to make them display better with Japanese
authormoodler <moodler>
Sat, 7 Dec 2002 08:39:24 +0000 (08:39 +0000)
committermoodler <moodler>
Sat, 7 Dec 2002 08:39:24 +0000 (08:39 +0000)
course/categories.php
mod/quiz/category.php
mod/quiz/lib.php

index 2958736d82d315e6aa267cccfab6d0640c37a995..e6ace10e078f0243a3270557ea793e370156905f 100644 (file)
@@ -98,7 +98,7 @@
 /// Print the table of all categories
     $table->head  = array ($strcategory, $strcourses, $straction);
     $table->align = array ("LEFT", "CENTER", "CENTER");
-    $table->size = array ("50", "20", "20");
+    $table->size = array ("80", "50", "50");
     $table->width = 100;
 
     echo "<FORM ACTION=categories.php METHOD=post>";
index 53675dfbca1ae99750d2810f79559ef695e5b590..da93b1dd03b2fb7cea30c5b67af51789efe2acb7 100644 (file)
 /// Print the table of all categories
     $table->head  = array ($strcategory, $strcategoryinfo, $strpublish, $strquestions, $straction);
     $table->align = array ("LEFT", "LEFT", "CENTER", "CENTER", "CENTER");
-    $table->size = array ("50", "50", "10", "10", "20");
+    $table->size = array ("80", "80", "40", "40", "50");
     $table->width = 200;
+    $table->nowrap = true;
 
     echo "<FORM ACTION=category.php METHOD=post>";
     foreach ($categories as $category) {
index 6cb7f8300151120de9b3863ebda9ff0f367c9bd3..8afa78dcf1945774bbef5bc80fd5f0cfd0d6aad5 100644 (file)
@@ -492,7 +492,7 @@ function quiz_print_category_form($course, $current) {
     $strshow = get_string("show", "quiz");
     $streditcats = get_string("editcategories", "quiz");
 
-    echo "<TABLE width=\"100%\"><TR><TD>";
+    echo "<TABLE width=\"100%\"><TR><TD NOWRAP>";
     echo "<FORM METHOD=POST ACTION=edit.php>"; 
     echo "<B>$strcategory:</B>&nbsp;";
     choose_from_menu($catmenu, "cat", "$current");
@@ -567,7 +567,7 @@ function quiz_print_question_list($questionlist, $grades) {
     $total = count($order);
     echo "<FORM METHOD=post ACTION=edit.php>";
     echo "<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=2 WIDTH=\"100%\">";
-    echo "<TR><TH WIDTH=10 COLSPAN=3>$strorder</TH><TH align=left WIDTH=\"100%\">$strquestionname</TH><TH width=16>$strtype</TH><TH WIDTH=10>$strgrade</TH><TH WIDTH=10>$stredit</TH></TR>";
+    echo "<TR><TH WIDTH=\"*\" COLSPAN=3 NOWRAP>$strorder</TH><TH align=left WIDTH=\"100%\" NOWRAP>$strquestionname</TH><TH width=\"*\" NOWRAP>$strtype</TH><TH WIDTH=\"*\" NOWRAP>$strgrade</TH><TH WIDTH=\"*\" NOWRAP>$stredit</TH></TR>";
     foreach ($order as $qnum) {
         $count++;
         echo "<TR BGCOLOR=\"$THEME->cellcontent\">";
@@ -585,7 +585,7 @@ function quiz_print_question_list($questionlist, $grades) {
         }
         echo "</TD>";
         echo "<TD>".$questions[$qnum]->name."</TD>";
-        echo "<TD WIDTH=16 ALIGN=CENTER>";
+        echo "<TD ALIGN=CENTER>";
         quiz_print_question_icon($questions[$qnum]);
         echo "</TD>";
         echo "<TD>";
@@ -662,9 +662,9 @@ function quiz_print_cat_question_list($categoryid) {
 
     echo "<FORM METHOD=post ACTION=edit.php>";
     echo "<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=2 WIDTH=\"100%\">";
-    echo "<TR><TH width=10>$strselect</TH><TH width=* align=left>$strquestionname</TH><TH WIDTH=16>$strtype</TH>";
+    echo "<TR><TH width=\"*\" NOWRAP>$strselect</TH><TH width=\"100%\" align=left NOWRAP>$strquestionname</TH><TH WIDTH=\"*\" NOWRAP>$strtype</TH>";
     if ($canedit) {
-        echo "<TH width=10>$stredit</TH>";
+        echo "<TH width=\"*\" NOWRAP>$stredit</TH>";
     }
     echo "</TR>";
     foreach ($questions as $question) {
@@ -673,7 +673,7 @@ function quiz_print_cat_question_list($categoryid) {
         echo "<INPUT TYPE=CHECKBOX NAME=q$question->id VALUE=\"1\">";
         echo "</TD>";
         echo "<TD>".$question->name."</TD>";
-        echo "<TD WIDTH=16 ALIGN=CENTER>";
+        echo "<TD ALIGN=CENTER>";
         quiz_print_question_icon($question);
         echo "</TD>";
         if ($canedit) {