Fixing variable not parsed through PHP. Thanks to Scott Venier for the patch.
[squirrelmail.git] / templates / default / folder_manip.tpl
index f06cc102ef48c748dd4bf4455a38ebfe10c525ff..63cb82663b359d281ee3d8b951ec1bb5a52e6167 100644 (file)
@@ -34,7 +34,7 @@
 /* retrieve the template vars */
 extract($t);
 ?>
-<div id="folderManip">
+<div class="dialogbox">
 <table cellspacing="0" class="wrapper">
  <tr>
   <td class="header1">
@@ -50,7 +50,7 @@ extract($t);
      </td>
     </tr>
     <tr>
-     <td class="folderAction">
+     <td>
       <form method="post" action="folders.php" name="cf" id="cf">
       <input type="hidden" name="smaction" value="create" />
       <input type="text" name="folder_name" size="25" value="" />
@@ -87,12 +87,12 @@ extract($t);
      </td>
     </tr>
     <tr>
-     <td class="folderAction">
+     <td>
       <?php
         if ( !empty($rendel_folder_list) ) {
             ?>
      <form method="post" action="folders.php" name="rf" id="rf">
-     <input type="hidden" name="smaction" value="rename">
+     <input type="hidden" name="smaction" value="rename" />
      <select name="old_name">
       <option value="">[ <?php echo _("Select a folder") ?> ]</option>
       <?php echo $rendel_folder_list ?>
@@ -118,12 +118,12 @@ extract($t);
      </td>
     </tr>
     <tr>
-     <td class="folderAction">
+     <td>
       <?php
         if ( !empty($rendel_folder_list) ) { 
             ?>
       <form method="post" action="folders.php" name="df" id="df">
-      <input type="hidden" name="smaction" value="delete">
+      <input type="hidden" name="smaction" value="delete" />
       <select name="folder_name">
        <option value="">[ <?php echo _("Select a folder") ?> ]</option>
        <?php echo $rendel_folder_list ?>
@@ -152,7 +152,7 @@ extract($t);
      </td>
     </tr>
     <tr>
-     <td class="folderAction">
+     <td>
       <?php
         if (!empty($rendel_folder_list)) {
             ?>
@@ -170,12 +170,12 @@ extract($t);
         }
       ?>
      </td>
-     <td class="folderAction">
+     <td>
      <?php
         if ($no_list_for_subscribe) {
             ?>
       <form method="post" action="folders.php" name="sf" id="sf">
-      <input type="hidden" name="smaction" value="subscribe">
+      <input type="hidden" name="smaction" value="subscribe" />
       <input type="text" name="folder_names[]" size="25" />
       <input type="submit" value="<?php echo _("Subscribe") ?>" />
       </form>
@@ -192,7 +192,8 @@ extract($t);
       </select>
 */
             foreach ($subbox_option_list as $folder) {
-                echo '<input type="checkbox" name="folder_names[]" value="'.$folder['Value'].'" />'.$folder['Display'].'<br />';
+                echo '<input type="checkbox" name="folder_names[]" id="sub_'.$folder['Value'].'" value="'.$folder['Value'].'" /> '.
+                    '<label for="sub_'.$folder['Value'].'">'.$folder['Display'].'</label><br />';
             }
             ?>
       </div>
@@ -213,5 +214,5 @@ extract($t);
   </td>
  </tr>
 </table>
-<?php do_hook('folders_bottom');  ?>
-</div>
\ No newline at end of file
+<?php /* FIXME: no hooks in templates!! */ global $null; do_hook('folders_bottom', $null);  ?>
+</div>