Add plugin output next to paginator template
[squirrelmail.git] / templates / default / options.tpl
index 246523355c2361c6dafa3d39a667e1c8df7c0d11..e9cf2d5a92a9631ceaa5d26cb203c658c63a5dbc 100644 (file)
 
 /** extract variables */
 extract($t);
+
+
+if ( !empty($topmessage) ) {
+       echo "<div id=\"optionMessage\">\n$topmessage\n</div>\n\n";
+}
 ?>
+
 <div id="optionDisplay">
 <?php
 foreach ($options as $option) {
@@ -38,19 +44,31 @@ foreach ($options as $option) {
     foreach ($option['options'] as $opt) {
         if ($opt->type != SMOPT_TYPE_HIDDEN) {
             echo   "<tr>\n" .
-                   " <td class=\"optionName\">\n" .
-                   "  ".$opt->caption."\n" .
-                   " </td>\n" .
+                   " <td class=\"optionName\">\n  ";
+
+            if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX
+             || $opt->type == SMOPT_TYPE_BOOLEAN) {
+                echo '<label for="new_' . $opt->name . '">'
+                   . $opt->caption . '</label>';
+            } else {
+                echo $opt->caption;
+            }
+
+            echo   "\n </td>\n" .
                    " <td class=\"optionValue\">\n" .
-                   "  ".$opt->createHTMLWidget()."\n" .
+                   "  ".$opt->createWidget()."\n" .
                    " </td>\n" .
                    "</tr>\n";
         } else {
-            echo $opt->createHTMLWidget();
+            echo $opt->createWidget();
         }
     }
 
+    echo " <tr>\n  <td colspan=\"2\" align=\"right\">\n"
+       . "   <input type=\"submit\" value=\"" . _("Submit") 
+       . "\" name=\"" . $submit_name . "\" />&nbsp;&nbsp;&nbsp;&nbsp;\n  </td>\n </tr>\n";
+
     echo "</table>\n";
 }
 ?>
-</div>
\ No newline at end of file
+</div>