Happy New Year
[squirrelmail.git] / templates / default / addressbook_search_form.tpl
index 8f6cb6961b8a60291d83c8cfc4ee1ade065b696d..5c4b21366df0c638352e5641c36b869fc46191ab 100644 (file)
@@ -8,7 +8,7 @@
  *      $use_js   - boolean TRUE if we should use Javascript in the address book
  *      $backends - array containing list of all available backends.
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2020 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -47,14 +47,14 @@ extract($t);
    <select name="backend" id="backend">
         <?php
         foreach ($backends as $id=>$name) {
-            echo '<option value="'.$id.'">'.htmlspecialchars($name).'</option>'."\n";
+            echo '<option value="'.$id.'">'.sm_encode_html_special_chars($name).'</option>'."\n";
         }
         ?>
    </select>
         <?php
     } else {
         ?>
-   <input type="hidden" name="backend" value="-1">
+   <input type="hidden" name="backend" value="-1" />
         <?php
     }
    ?>
@@ -66,7 +66,7 @@ extract($t);
    &nbsp;&nbsp;
    <input type="submit" name="listall" value=<?php echo '"'._("List all").'"'; ?> />
    <?php
-    if ($use_js) {
+    if ($javascript_on && $compose_addr_pop) {
         ?>
    &nbsp;&nbsp;
    <input type="submit" onclick="parent.close()" value=<?php echo '"'._("Close").'"'; ?> />
@@ -79,4 +79,4 @@ extract($t);
   </td>
  </tr>
 </table>
-</div>
\ No newline at end of file
+</div>