5 * Template for displaying recent/saved searches
7 * The following variables are available in this template:
8 * $list_title - Translated title for this list.
9 * $show_list - boolean TRUE if this list is to be shown, i.e. it is unfolded
10 * $is_recent_list - boolean TRUE if this is the list of recent searches.
11 * Different query options are displayed for each list
12 * $expand_collapse_toggle - URL to fold/unfold this list
13 * $save_recent - base URL to save a recent query
14 * $do_recent - base URL to repeat a recent query
15 * $forget_recent - base URL to forget a recent query
16 * $edit_saved - base URL to edit a saved query
17 * $do_saved - base URL to repeat a saved query
18 * $delete_saved - base URL to delete a saved query
19 * $query_list - array containing the list of queries to be displayed.
20 * Index of each element is the query number. Each of the
21 * base URLs above MUST be followed by this index in order
24 * @copyright © 1999-2006 The SquirrelMail Project Team
25 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
27 * @package squirrelmail
28 * @subpackage templates
31 /** add required includes **/
32 require_once(SM_PATH . 'templates/util_global.php');
34 /** extract template variables **/
37 /** Begin template **/
40 <table cellspacing="0" class="table2">
42 <td style="width:1%" class="header4">
43 <a href="<?php echo $expand_collapse_toggle; ?>">
46 echo getIcon($icon_theme_path, 'minus.png', '-', _("Fold"));
48 echo getIcon($icon_theme_path, 'plus.png', '+', _("Unfold"));
53 <td class="header4" colspan="4">
54 <?php echo $list_title; ?>
60 foreach ($query_list as $id=>$desc) {
65 <tr class="<?php echo $class; ?>">
66 <td class="queryDesc">
69 <td class="queryDesc">
73 if ($is_recent_list) {
75 <td class="queryAction">
76 <a href="<?php echo $save_recent.$id; ?>"><?php echo _("Save"); ?></a>
78 <td class="queryAction">
79 <a href="<?php echo $do_recent.$id; ?>"><?php echo _("Search"); ?></a>
81 <td class="queryAction">
82 <a href="<?php echo $forget_recent.$id; ?>"><?php echo _("Forget"); ?></a>
87 <td class="queryAction">
88 <a href="<?php echo $edit_saved.$id; ?>"><?php echo _("Edit"); ?></a>
90 <td class="queryAction">
91 <a href="<?php echo $do_saved.$id; ?>"><?php echo _("Search"); ?></a>
93 <td class="queryAction">
94 <a href="<?php echo $delete_saved.$id; ?>"><?php echo _("Delete"); ?></a>