Updating copyrights. Happy New Year.
[squirrelmail.git] / templates / default / addressbook_search_form.tpl
1 <?php
2 /**
3 * addressbook_search_form.tpl
4 *
5 * Display the form for searching the address book. Called from addrbook_search.php
6 *
7 * The following variables are available in this template:
8 * $use_js - boolean TRUE if we should use Javascript in the address book
9 * $backends - array containing list of all available backends.
10 *
11 * @copyright 1999-2012 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id$
14 * @package squirrelmail
15 * @subpackage templates
16 */
17
18 /** add required includes **/
19
20 /** extract template variables **/
21 extract($t);
22
23 /** Begin template **/
24 ?>
25 <div id="addrBookSearch">
26 <table cellspacing="0" class="wrapper">
27 <tr>
28 <td class="header2">
29 <?php echo _("Address book search"); ?>
30 </td>
31 </tr>
32 <tr>
33 <td>
34 <table cellspacing="0">
35 <tr>
36 <td>
37 <label for="query"><?php echo _("Search for"); ?>:</label>
38 </td>
39 <td>
40 <input type="text" id="query" name="query" />
41 </td>
42 <td>
43 <?php
44 if (count($backends) > 1) {
45 ?>
46 <label for="backend"><?php echo _("in"); ?></label>
47 <select name="backend" id="backend">
48 <?php
49 foreach ($backends as $id=>$name) {
50 echo '<option value="'.$id.'">'.htmlspecialchars($name).'</option>'."\n";
51 }
52 ?>
53 </select>
54 <?php
55 } else {
56 ?>
57 <input type="hidden" name="backend" value="-1" />
58 <?php
59 }
60 ?>
61 </td>
62 </tr>
63 <tr>
64 <td colspan="3" class="buttons">
65 <input type="submit" name="show" value=<?php echo '"'._("Search").'"'; ?> />
66 &nbsp;&nbsp;
67 <input type="submit" name="listall" value=<?php echo '"'._("List all").'"'; ?> />
68 <?php
69 if ($javascript_on && $compose_addr_pop) {
70 ?>
71 &nbsp;&nbsp;
72 <input type="submit" onclick="parent.close()" value=<?php echo '"'._("Close").'"'; ?> />
73 <?php
74 }
75 ?>
76 </td>
77 </tr>
78 </table>
79 </td>
80 </tr>
81 </table>
82 </div>