Even better HTML email content style containment
[squirrelmail.git] / templates / default / addressbook_search_form.tpl
index 980dca9de5d312527990fbec6e5a4a4091e24939..33c1ae270315c3508ecacf779176930780e2c30e 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-2019 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -47,7 +47,7 @@ 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>
@@ -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").'"'; ?> />