Skip to content

Commit b09b5ab

Browse files
author
cfoe
committed
changed mail_user_list autoresponder filter INPUT to SELECT
1 parent da90a74 commit b09b5ab

File tree

2 files changed

+43
-44
lines changed

2 files changed

+43
-44
lines changed

interface/web/mail/list/mail_user.list.php

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414

1515
// Name of the list
16-
$liste["name"] = "mail_user";
16+
$liste["name"] = "mail_user";
1717

1818
// Database table
19-
$liste["table"] = "mail_user";
19+
$liste["table"] = "mail_user";
2020

2121
// Index index field of the database table
22-
$liste["table_idx"] = "mailuser_id";
22+
$liste["table_idx"] = "mailuser_id";
2323

2424
// Search Field Prefix
2525
$liste["search_prefix"] = "search_";
@@ -28,10 +28,10 @@
2828
$liste["records_per_page"] = "15";
2929

3030
// Script File of the list
31-
$liste["file"] = "mail_user_list.php";
31+
$liste["file"] = "mail_user_list.php";
3232

3333
// Script file of the edit form
34-
$liste["edit_file"] = "mail_user_edit.php";
34+
$liste["edit_file"] = "mail_user_edit.php";
3535

3636
// Script File of the delete script
3737
$liste["delete_file"] = "mail_user_del.php";
@@ -40,48 +40,47 @@
4040
$liste["paging_tpl"] = "templates/paging.tpl.htm";
4141

4242
// Enable auth
43-
$liste["auth"] = "yes";
43+
$liste["auth"] = "yes";
4444

4545

4646
/*****************************************************
4747
* Suchfelder
4848
*****************************************************/
4949

50-
$liste["item"][] = array( 'field' => "email",
51-
'datatype' => "VARCHAR",
52-
'formtype' => "TEXT",
53-
'op' => "like",
54-
'prefix' => "%",
55-
'suffix' => "%",
56-
'width' => "",
57-
'value' => "");
58-
59-
$liste["item"][] = array( 'field' => "login",
60-
'datatype' => "VARCHAR",
61-
'formtype' => "TEXT",
62-
'op' => "like",
63-
'prefix' => "%",
64-
'suffix' => "%",
65-
'width' => "",
66-
'value' => "");
67-
68-
$liste["item"][] = array( 'field' => "name",
69-
'datatype' => "VARCHAR",
70-
'formtype' => "TEXT",
71-
'op' => "like",
72-
'prefix' => "%",
73-
'suffix' => "%",
74-
'width' => "",
75-
'value' => "");
76-
77-
$liste["item"][] = array( 'field' => "autoresponder",
78-
'datatype' => "VARCHAR",
79-
'formtype' => "TEXT",
80-
'op' => "like",
81-
'prefix' => "%",
82-
'suffix' => "%",
83-
'width' => "",
84-
'value' => "");
85-
86-
50+
$liste["item"][] = array( 'field' => "email",
51+
'datatype' => "VARCHAR",
52+
'formtype' => "TEXT",
53+
'op' => "like",
54+
'prefix' => "%",
55+
'suffix' => "%",
56+
'width' => "",
57+
'value' => "");
58+
59+
$liste["item"][] = array( 'field' => "login",
60+
'datatype' => "VARCHAR",
61+
'formtype' => "TEXT",
62+
'op' => "like",
63+
'prefix' => "%",
64+
'suffix' => "%",
65+
'width' => "",
66+
'value' => "");
67+
68+
$liste["item"][] = array( 'field' => "name",
69+
'datatype' => "VARCHAR",
70+
'formtype' => "TEXT",
71+
'op' => "like",
72+
'prefix' => "%",
73+
'suffix' => "%",
74+
'width' => "",
75+
'value' => "");
76+
77+
$liste["item"][] = array( 'field' => "autoresponder",
78+
'datatype' => "VARCHAR",
79+
'formtype' => "SELECT",
80+
'op' => "=",
81+
'prefix' => "",
82+
'suffix' => "",
83+
'width' => "",
84+
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));
85+
8786
?>

interface/web/mail/templates/mail_user_list.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h2><tmpl_var name="list_head_txt"></h2>
2828
<td class="tbl_col_email"><input type="text" name="search_email" value="{tmpl_var name='search_email'}" /></td>
2929
<td class="tbl_col_name"><input type="text" name="search_name" value="{tmpl_var name='search_name'}" /></td>
3030
<tmpl_if name="enable_custom_login"><td class="tbl_col_login"><input type="text" name="search_login" value="{tmpl_var name='search_login'}" /></td></tmpl_if>
31-
<td class="tbl_col_autoresponder"><input type="text" name="search_autoresponder" value="{tmpl_var name='search_autoresponder'}" /></td>
31+
<td class="tbl_col_autoresponder"><select name="search_autoresponder">{tmpl_var name='search_autoresponder'}</select></td>
3232
<td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_user_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td>
3333
</tr>
3434
</thead>

0 commit comments

Comments
 (0)