]> git.mjollnir.org Git - moodle.git/commitdiff
formattign issues
authortoyomoyo <toyomoyo>
Thu, 16 Mar 2006 08:22:53 +0000 (08:22 +0000)
committertoyomoyo <toyomoyo>
Thu, 16 Mar 2006 08:22:53 +0000 (08:22 +0000)
blog/edit.html
blog/preferences.php

index cc59bc85645774c530590267bcd0329f66dbe35e..f73ff8feef99ca699147b7fbb1f65c8e0ac6220b 100755 (executable)
     </td>
 </tr>
 <tr>
-    <td>
-    <b><?php print_string('otags','blog'); ?></b>
-    </td>
-    <td>
-    <b><?php print_string('ptags','blog'); ?></b>
+    <td align="right">
+        <strong><?php print_string('tags'); echo ':';?></strong>
     </td>
-</tr>
 
-<tr>
     <td>
-    <select name="otags[]" multiple="multiple" size="8">
-    <?php
-        $otags = get_records_sql('SELECT * from '.$CFG->prefix.'tags WHERE type=\'official\' ORDER by text ASC');
-        foreach ($otags as $otag) {
-            if (in_array($otag->id, $usedtags)) {
-                echo '<option value="'.$otag->id.'" selected="selected">'.$otag->text.'</option>';
-            } else {
-                echo '<option value="'.$otag->id.'">'.$otag->text.'</option>';
-            }
-        }
-    ?>
-    </select>
-    </td>
-    
-    <td>
-    <select name="ptags[]" multiple="multiple" size="8">
-    <?php
-        $ptags = get_records_sql('SELECT * from '.$CFG->prefix.'tags WHERE type=\'personal\' ORDER by text ASC');
-        foreach ($ptags as $ptag) {
-            if (in_array($ptag->id, $usedtags)) {
-                echo '<option value="'.$ptag->id.'" selected="selected">'.$ptag->text.'</option>';
-            } else {
-                echo '<option value="'.$ptag->id.'">'.$ptag->text.'</option>';
-            }
-        }
-    ?>
-    </select>
+        <table>
+            <tr>
+                <td>
+                <b><?php print_string('otags','blog'); ?></b>
+                </td>
+                <td>
+                <b><?php print_string('ptags','blog'); ?></b>
+                </td>
+            </tr>
+            <tr>
+                <td>
+                <select name="otags[]" multiple="multiple" size="8">
+                <?php
+                    $otags = get_records_sql('SELECT * from '.$CFG->prefix.'tags WHERE type=\'official\' ORDER by text ASC');
+                    foreach ($otags as $otag) {
+                        if (in_array($otag->id, $usedtags)) {
+                            echo '<option value="'.$otag->id.'" selected="selected">'.$otag->text.'</option>';
+                        } else {
+                            echo '<option value="'.$otag->id.'">'.$otag->text.'</option>';
+                        }
+                    }
+                ?>
+                </select>
+                </td>
+
+                <td>
+                <select name="ptags[]" multiple="multiple" size="8">
+                <?php
+                    $ptags = get_records_sql('SELECT * from '.$CFG->prefix.'tags WHERE type=\'personal\' ORDER by text ASC');
+                    foreach ($ptags as $ptag) {
+                        if (in_array($ptag->id, $usedtags)) {
+                            echo '<option value="'.$ptag->id.'" selected="selected">'.$ptag->text.'</option>';
+                        } else {
+                            echo '<option value="'.$ptag->id.'">'.$ptag->text.'</option>';
+                        }
+                    }
+                ?>
+                </select>
+                </td>
+            </tr>
+        </table>
     </td>
 </tr>
 
+
+
 <tr>
     <td>
     <?php
index 5f677911f9898c6bf1540bdac8a1e466227ad7c8..3d1dcfc56ad64d4a631247cea54f115d9565f894 100755 (executable)
@@ -9,7 +9,7 @@
 
     // detemine where the user is coming from in case we need to send them back there
 
-    if (!$referrer = optional_param('referrer','', PARAM_NOTAGS)) {
+    if (!$referrer = optional_param('referrer','', PARAM_URL)) {
         if (isset($_SERVER['HTTP_REFERER'])) {
             $referrer = $_SERVER['HTTP_REFERER'];
         } else {