Commit 8145fbd3 authored by xaver's avatar xaver

Sort and limit in ispconfig all templates... additional info howtoforge -...

Sort and limit in ispconfig all templates... additional info howtoforge - http://www.howtoforge.com/forums/showthread.php?p=274790
parent b4daebfa
......@@ -191,11 +191,16 @@ class listform {
public function getPagingSQL($sql_where = '1')
{
global $app, $conf;
//* Add Global Limit from selectbox
if(!empty($_POST['search_limit']) AND intval($_POST['search_limit'])){
$_SESSION['search']['limit'] = $_POST['search_limit'];
}
//* Get Config variables
$list_name = $this->listDef['name'];
$search_prefix = $this->listDef['search_prefix'];
$records_per_page = $this->listDef['records_per_page'];
$records_per_page = (empty($_SESSION['search']['limit']) ? $this->listDef['records_per_page'] : $_SESSION['search']['limit']) ;
$table = $this->listDef['table'];
//* set PAGE to zero, if in session not set
......
......@@ -55,7 +55,34 @@ class listform_actions {
$app->tpl->newTemplate("listpage.tpl.htm");
$app->tpl->setInclude('content_tpl','templates/'.$app->listform->listDef["name"].'_list.htm');
//* Manipulate order by for sorting / Every list has a stored value
//* Against notice error
if(!isset($_SESSION['search'][$app->listform->listDef["name"]]['order'])){
$_SESSION['search'][$app->listform->listDef["name"]]['order'] = '';
}
if(!empty($_GET['orderby'])){
$order = str_replace('tbl_col_','',$_GET['orderby']);
//* Check the css class submited value
if (preg_match("/^[a-z\_]{1,}$/",$order)) {
if($_SESSION['search'][$app->listform->listDef["name"]]['order'] == $order){
$_SESSION['search'][$app->listform->listDef["name"]]['order'] = $order.' DESC';
} else {
$_SESSION['search'][$app->listform->listDef["name"]]['order'] = $order;
}
}
}
// If a manuel oder by like customers isset the sorting will be infront
if(!empty($_SESSION['search'][$app->listform->listDef["name"]]['order'])){
if(empty($this->SQLOrderBy)){
$this->SQLOrderBy = "ORDER BY ".$_SESSION['search'][$app->listform->listDef["name"]]['order'];
} else {
$this->SQLOrderBy = str_replace("ORDER BY ","ORDER BY ".$_SESSION['search'][$app->listform->listDef["name"]]['order'].', ',$this->SQLOrderBy);
}
}
// Getting Datasets from DB
$records = $app->db->queryAllRecords($this->getQueryString());
......@@ -130,7 +157,99 @@ class listform_actions {
$limit_sql = $app->listform->getPagingSQL($sql_where);
$app->tpl->setVar('paging',$app->listform->pagingHTML);
return 'SELECT * FROM '.$app->listform->listDef['table']." WHERE $sql_where $order_by_sql $limit_sql";
$extselect = '';
$join = '';
if(!empty($_SESSION['search'][$app->listform->listDef["name"]]['order'])){
$order = str_replace(' DESC','',$_SESSION['search'][$app->listform->listDef["name"]]['order']);
if($order == 'server_id' && $app->listform->listDef['table'] != 'server'){
$join .= ' LEFT JOIN server as s ON '.$app->listform->listDef['table'].'.server_id = s.server_id ';
$order_by_sql = str_replace('server_id','server_name',$order_by_sql);
} elseif($order == 'client_id' && $app->listform->listDef['table'] != 'client'){
$join .= ' LEFT JOIN client as c ON '.$app->listform->listDef['table'].'.client_id = c.client_id ';
$order_by_sql = str_replace('client_id','contact_name',$order_by_sql);
} elseif($order == 'parent_domain_id'){
$join .= ' LEFT JOIN web_domain as wd ON '.$app->listform->listDef['table'].'.parent_domain_id = wd.domain_id ';
$order_by_sql = str_replace('parent_domain_id','wd.domain',$order_by_sql);
$sql_where = str_replace('type',$app->listform->listDef['table'].'.type',$sql_where);
} elseif($order == 'sys_groupid'){
$join .= ' LEFT JOIN sys_group as sg ON '.$app->listform->listDef['table'].'.sys_groupid = sg.groupid ';
$order_by_sql = str_replace('sys_groupid','name',$order_by_sql);
} elseif($order == 'rid'){
$join .= ' LEFT JOIN spamfilter_users as su ON '.$app->listform->listDef['table'].'.rid = su.id ';
$order_by_sql = str_replace('rid','email',$order_by_sql);
} elseif($order == 'policy_id'){
$join .= ' LEFT JOIN spamfilter_policy as sp ON '.$app->listform->listDef['table'].'.policy_id = sp.id ';
$order_by_sql = str_replace('policy_id','policy_name',$order_by_sql);
} elseif($order == 'web_folder_id'){
$join .= ' LEFT JOIN web_folder as wf ON '.$app->listform->listDef['table'].'.web_folder_id = wf.web_folder_id ';
$order_by_sql = str_replace('web_folder_id','path',$order_by_sql);
} elseif($order == 'ostemplate_id' && $app->listform->listDef['table'] != 'openvz_ostemplate'){
$join .= ' LEFT JOIN openvz_ostemplate as oo ON '.$app->listform->listDef['table'].'.ostemplate_id = oo.ostemplate_id ';
$order_by_sql = str_replace('ostemplate_id','template_name',$order_by_sql);
} elseif($order == 'template_id' && $app->listform->listDef['table'] != 'openvz_template'){
$join .= ' LEFT JOIN openvz_template as ot ON '.$app->listform->listDef['table'].'.template_id = ot.template_id ';
$order_by_sql = str_replace('template_id','template_name',$order_by_sql);
} elseif($order == 'sender_id' && $app->listform->listDef['table'] != 'sys_user'){
$join .= ' LEFT JOIN sys_user as su ON '.$app->listform->listDef['table'].'.sender_id = su.userid ';
$order_by_sql = str_replace('sender_id','username',$order_by_sql);
} elseif($order == 'web_traffic_last_month'){
$tmp_year = date('Y',mktime(0, 0, 0, date("m")-1, date("d"), date("Y")));
$tmp_month = date('m',mktime(0, 0, 0, date("m")-1, date("d"), date("Y")));
$extselect .= ', SUM(wt.traffic_bytes) as calctraffic';
$join .= ' JOIN web_traffic as wt ON '.$app->listform->listDef['table'].'.domain = wt.hostname ';
$sql_where .= " AND YEAR(wt.traffic_date) = '$tmp_year' AND MONTH(wt.traffic_date) = '$tmp_month'";
$order_by_sql = str_replace('web_traffic_last_month','calctraffic',$order_by_sql);
$order_by_sql = "GROUP BY domain ".$order_by_sql;
} elseif($order == 'web_traffic_this_month'){
$tmp_year = date('Y');
$tmp_month = date('m');
$extselect .= ', SUM(wt.traffic_bytes) as calctraffic';
$join .= ' JOIN web_traffic as wt ON '.$app->listform->listDef['table'].'.domain = wt.hostname ';
$sql_where .= " AND YEAR(wt.traffic_date) = '$tmp_year' AND MONTH(wt.traffic_date) = '$tmp_month'";
$order_by_sql = str_replace('web_traffic_this_month','calctraffic',$order_by_sql);
$order_by_sql = "GROUP BY domain ".$order_by_sql;
} elseif($order == 'web_traffic_last_year'){
$tmp_year = date('Y',mktime(0, 0, 0, date("m")-1, date("d"), date("Y")));
$extselect .= ', SUM(wt.traffic_bytes) as calctraffic';
$join .= ' JOIN web_traffic as wt ON '.$app->listform->listDef['table'].'.domain = wt.hostname ';
$sql_where .= " AND YEAR(wt.traffic_date) = '$tmp_year'";
$order_by_sql = str_replace('web_traffic_last_year','calctraffic',$order_by_sql);
$order_by_sql = "GROUP BY domain ".$order_by_sql;
} elseif($order == 'web_traffic_this_year'){
$tmp_year = date('Y');
$extselect .= ', SUM(wt.traffic_bytes) as calctraffic';
$join .= ' JOIN web_traffic as wt ON '.$app->listform->listDef['table'].'.domain = wt.hostname ';
$sql_where .= " AND YEAR(wt.traffic_date) = '$tmp_year'";
$order_by_sql = str_replace('web_traffic_this_year','calctraffic',$order_by_sql);
$order_by_sql = "GROUP BY domain ".$order_by_sql;
} elseif($order == 'mail_traffic_last_month'){
$tmp_date = date('Y-m',mktime(0, 0, 0, date("m")-1, date("d"), date("Y")));
$join .= ' JOIN mail_traffic as mt ON '.$app->listform->listDef['table'].'.mailuser_id = mt.mailuser_id ';
$sql_where .= " AND mt.month like '$tmp_date%'";
$order_by_sql = str_replace('mail_traffic_last_month','traffic',$order_by_sql);
} elseif($order == 'mail_traffic_this_month'){
$tmp_date = date('Y-m');
$join .= ' JOIN mail_traffic as mt ON '.$app->listform->listDef['table'].'.mailuser_id = mt.mailuser_id ';
$sql_where .= " AND mt.month like '$tmp_date%'";
$order_by_sql = str_replace('mail_traffic_this_month','traffic',$order_by_sql);
} elseif($order == 'mail_traffic_last_year'){
$tmp_date = date('Y',mktime(0, 0, 0, date("m")-1, date("d"), date("Y")));
$extselect .= ', SUM(mt.traffic) as calctraffic';
$join .= ' JOIN mail_traffic as mt ON '.$app->listform->listDef['table'].'.mailuser_id = mt.mailuser_id ';
$sql_where .= " AND mt.month like '$tmp_date%'";;
$order_by_sql = str_replace('mail_traffic_last_year','calctraffic',$order_by_sql);
$order_by_sql = "GROUP BY mailuser_id ".$order_by_sql;
} elseif($order == 'mail_traffic_this_year'){
$tmp_date = date('Y');
$extselect .= ', SUM(mt.traffic) as calctraffic';
$join .= ' JOIN mail_traffic as mt ON '.$app->listform->listDef['table'].'.mailuser_id = mt.mailuser_id ';
$sql_where .= " AND mt.month like '$tmp_date%'";
$order_by_sql = str_replace('mail_traffic_this_year','calctraffic',$order_by_sql);
$order_by_sql = "GROUP BY mailuser_id ".$order_by_sql;
}
}
return 'SELECT '.$app->listform->listDef['table'].'.*'.$extselect.' FROM '.$app->listform->listDef['table']."$join WHERE $sql_where $order_by_sql $limit_sql";
}
......@@ -145,6 +264,15 @@ class listform_actions {
include($lng_file);
$app->tpl->setVar($wb);
//* Limit each page
$limits = array('5'=>'5','15'=>'15','25'=>'25','50'=>'50','100'=>'100','999999999' => 'all');
//* create options and set selected, if default -> 15 is selected
foreach($limits as $key => $val){
$options .= '<option value="'.$key.'" '.(isset($_SESSION['search']['limit']) && $_SESSION['search']['limit'] == $key ? 'selected="selected"':'' ).(!isset($_SESSION['search']['limit']) && $key == '15' ? 'selected="selected"':'').'>'.$val.'</option>';
}
$app->tpl->setVar('search_limit','<select name="search_limit" style="width:50px">'.$options.'</select>');
$app->tpl->setVar('toolsarea_head_txt',$app->lng('toolsarea_head_txt'));
$app->tpl->setVar($app->listform->wordbook);
$app->tpl->setVar('form_action', $app->listform->listDef['file']);
......
......@@ -82,7 +82,43 @@ class plugin_listview extends plugin_base {
if(isset($this->options["sql_order_by"])) {
$sql_order_by = $this->options["sql_order_by"];
}
//* Limit each page
$limits = array('5'=>'5','15'=>'15','25'=>'25','50'=>'50','100'=>'100','999999999' => 'all');
//* create options and set selected, if default -> 15 is selected
foreach($limits as $key => $val){
$options .= '<option value="'.$key.'" '.(isset($_SESSION['search']['limit']) && $_SESSION['search']['limit'] == $key ? 'selected="selected"':'' ).(!isset($_SESSION['search']['limit']) && $key == '15' ? 'selected="selected"':'').'>'.$val.'</option>';
}
$listTpl->setVar('search_limit','<select name="search_limit" style="width:50px">'.$options.'</select>');
//Sorting
if(!isset($_SESSION['search'][$app->listform->listDef["name"]]['order'])){
$_SESSION['search'][$app->listform->listDef["name"]]['order'] = '';
}
if(!empty($_GET['orderby'])){
$order = str_replace('tbl_col_','',$_GET['orderby']);
//* Check the css class submited value
if (preg_match("/^[a-z\_]{1,}$/",$order)) {
if($_SESSION['search'][$app->listform->listDef["name"]]['order'] == $order){
$_SESSION['search'][$app->listform->listDef["name"]]['order'] = $order.' DESC';
} else {
$_SESSION['search'][$app->listform->listDef["name"]]['order'] = $order;
}
}
}
// If a manuel oder by like customers isset the sorting will be infront
if(!empty($_SESSION['search'][$app->listform->listDef["name"]]['order'])){
if(empty($sql_order_by)){
$sql_order_by = "ORDER BY ".$_SESSION['search'][$app->listform->listDef["name"]]['order'];
} else {
$sql_order_by = str_replace("ORDER BY ","ORDER BY ".$_SESSION['search'][$app->listform->listDef["name"]]['order'].', ',$sql_order_by);
}
}
// Loading language field
$lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
include($lng_file);
......
......@@ -22,7 +22,7 @@
<th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
<th class="tbl_col_tcp_port" scope="col"><tmpl_var name="tcp_port_txt"></th>
<th class="tbl_col_udp_port" scope="col"><tmpl_var name="udp_port_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -16,12 +16,12 @@
<thead>
<tr>
<th class="tbl_col_remote_userid" scope="col"><tmpl_var name="parent_remote_userid_txt"></th>
<th class="tbl_col_username" scope="col"><tmpl_var name="username_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="tbl_col_remote_username" scope="col"><tmpl_var name="username_txt"></th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_remote_userid"></td>
<td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td>
<td class="tbl_col_remote_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td>
<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','admin/remote_user_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td>
</tr>
</thead>
......@@ -29,7 +29,7 @@
<tmpl_loop name="records">
<tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
<td class="tbl_col_remote_userid"><a href="#" onClick="loadContent('admin/remote_user_edit.php?id={tmpl_var name='remote_userid'}');">{tmpl_var name="remote_userid"}</a></td>
<td class="tbl_col_username"><a href="#" onClick="loadContent('admin/remote_user_edit.php?id={tmpl_var name='remote_userid'}');">{tmpl_var name="remote_username"}</a></td>
<td class="tbl_col_remote_username"><a href="#" onClick="loadContent('admin/remote_user_edit.php?id={tmpl_var name='remote_userid'}');">{tmpl_var name="remote_username"}</a></td>
<td class="tbl_col_buttons">
<div class="buttons icons16">
<a class="icons16 icoDelete" href="javascript: del_record('admin/remote_user_del.php?id={tmpl_var name='remote_userid'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a>
......
......@@ -9,7 +9,7 @@
<thead>
<tr>
<th class="tbl_col_server_name" scope="col"><tmpl_var name="server_name_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_server_name"><input type="text" name="search_server_name" value="{tmpl_var name='search_server_name'}" /></td>
......
......@@ -23,7 +23,7 @@
<th class="tbl_col_ip_address" scope="col"><tmpl_var name="ip_address_txt"></th>
<th class="tbl_col_virtualhost" scope="col"><tmpl_var name="virtualhost_txt"></th>
<th class="tbl_col_virtualhost_port" scope="col"><tmpl_var name="virtualhost_port_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="tbl_col_buttons" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_server_id"><select name="search_server_id">{tmpl_var name='search_server_id'}</select></td>
......
......@@ -15,7 +15,7 @@
<th class="tbl_col_file_server" scope="col"><tmpl_var name="file_server_txt"></th>
<th class="tbl_col_db_server" scope="col"><tmpl_var name="db_server_txt"></th>
<th class="tbl_col_vserver_server" scope="col"><tmpl_var name="vserver_server_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_server_name"><input type="text" name="search_server_name" value="{tmpl_var name='search_server_name'}" /></td>
......
......@@ -20,10 +20,10 @@
<thead>
<tr>
<th class="tbl_col_username" scope="col"><tmpl_var name="username_txt"></th>
<th class="tbl_col_vorname" scope="col"><tmpl_var name="vorname_txt"></th>
<th class="tbl_col_name" scope="col"><tmpl_var name="name_txt"></th>
<th class="tbl_col_ort" scope="col"><tmpl_var name="ort_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col"><tmpl_var name="vorname_txt"></th>
<th class="" scope="col"><tmpl_var name="name_txt"></th>
<th class="" scope="col"><tmpl_var name="ort_txt"></th>
<th scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td>
......
......@@ -45,6 +45,16 @@ $liste["auth"] = "yes";
* Suchfelder
*****************************************************/
$liste["item"][] = array( 'field' => "template_id",
'datatype' => "INTEGER",
'formtype' => "TEXT",
'op' => "=",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => "");
$liste["item"][] = array( 'field' => "template_type",
'datatype' => "VARCHAR",
'formtype' => "SELECT",
......
......@@ -18,12 +18,14 @@
<table class="list">
<thead>
<tr>
<th class="tbl_col_template_id" scope="col"><tmpl_var name="template_id_txt"></th>
<th class="tbl_col_template_type" scope="col"><tmpl_var name="template_type_txt"></th>
<th class="tbl_col_template_name" scope="col"><tmpl_var name="template_name_txt"></th>
<th class="tbl_col_last" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_template_type"><select name="search_template_type">{tmpl_var name='search_template_type'}</select></td>
<td class="tbl_col_template_id"><input type="text" name="search_template_id" value="{tmpl_var name='search_template_id'}" style="width:30px;" /></td>
<td class="tbl_col_template_type"><select name="search_template_type">{tmpl_var name='search_template_type'}</select></td>
<td class="tbl_col_template_name"><input type="text" name="search_template_name" value="{tmpl_var name='search_template_name'}" /></td>
<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','client/client_template_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td>
</tr>
......@@ -31,6 +33,7 @@
<tbody>
<tmpl_loop name="records">
<tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
<td class="tbl_col_template_id"><a href="#" onClick="loadContent('client/client_template_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="template_id"}</a></td>
<td class="tbl_col_template_type"><a href="#" onClick="loadContent('client/client_template_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="template_type"}</a></td>
<td class="tbl_col_template_name"><a href="#" onClick="loadContent('client/client_template_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="template_name"}</a></td>
<td class="tbl_col_buttons">
......@@ -43,7 +46,7 @@
</tbody>
<tfoot>
<tr>
<td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td>
<td class="tbl_footer tbl_paging" colspan="7"><tmpl_var name="paging"></td>
</tr>
</tfoot>
</table>
......
......@@ -24,7 +24,7 @@
<th class="tbl_col_username" scope="col"><tmpl_var name="username_txt"></th>
<th class="tbl_col_city" scope="col"><tmpl_var name="city_txt"></th>
<th class="tbl_col_country" scope="col"><tmpl_var name="country_txt"></th>
<th class="tbl_col_country" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_client_id"><input type="text" name="search_client_id" value="{tmpl_var name='search_client_id'}" style="width:30px;" /></td>
......
......@@ -23,7 +23,7 @@
<th class="tbl_col_contact_name" scope="col"><tmpl_var name="contact_name_txt"></th>
<th class="tbl_col_city" scope="col"><tmpl_var name="city_txt"></th>
<th class="tbl_col_country" scope="col"><tmpl_var name="country_txt"></th>
<th class="tbl_col_country" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_client_id"><input type="text" name="search_client_id" value="{tmpl_var name='search_client_id'}" style="width:30px;" /></td>
......
......@@ -48,7 +48,7 @@
<th class="tbl_col_name" scope="col"><tmpl_var name="name_txt"></th>
<th class="tbl_col_data" scope="col"><tmpl_var name="data_txt"></th>
<th class="tbl_col_aux" scope="col"><tmpl_var name="aux_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -22,7 +22,7 @@
<th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
<th class="tbl_col_origin" scope="col"><tmpl_var name="origin_txt"></th>
<th class="tbl_col_ns" scope="col"><tmpl_var name="ns_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -29,7 +29,7 @@
<th class="tbl_col_origin" scope="col"><tmpl_var name="origin_txt"></th>
<th class="tbl_col_ns" scope="col"><tmpl_var name="ns_txt"></th>
<th class="tbl_col_mbox" scope="col"><tmpl_var name="mbox_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -20,7 +20,7 @@
<tr>
<th class="tbl_col_visible" scope="col"><tmpl_var name="visible_txt"></th>
<th class="tbl_col_name" scope="col"><tmpl_var name="name_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_visible"><select name="search_visible">{tmpl_var name='search_visible'}</select></td>
......
......@@ -25,8 +25,8 @@
<thead>
<tr>
<th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th>
<th class="tbl_col_domain" scope="col"><tmpl_var name="user_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="tbl_col_sys_groupid" scope="col"><tmpl_var name="user_txt">A</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_domain"><input type="text" name="search_domain" value="{tmpl_var name='search_domain'}" /></td>
......
......@@ -20,7 +20,7 @@
<tr>
<th class="tbl_col_sender_id" scope="col"><tmpl_var name="sender_id_txt"></th>
<th class="tbl_col_subject" scope="col"><tmpl_var name="subject_txt"></th>
<th class="tbl_col_subject" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_sender_id"><select name="search_sender_id">{tmpl_var name='search_sender_id'}</select></td>
......
......@@ -21,7 +21,7 @@
<th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th>
<th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th>
<th class="tbl_col_destination" scope="col"><tmpl_var name="destination_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -21,7 +21,7 @@
<th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th>
<th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th>
<th class="tbl_col_destination" scope="col"><tmpl_var name="destination_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -22,7 +22,7 @@
<th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
<th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th>
<th class="tbl_col_type" scope="col"><tmpl_var name="type_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -22,7 +22,7 @@
<th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
<th class="tbl_col_pattern" scope="col"><tmpl_var name="pattern_txt"></th>
<th class="tbl_col_action" scope="col"><tmpl_var name="action_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -21,7 +21,7 @@
<th class="tbl_col_sys_groupid" scope="col"><tmpl_var name="sys_groupid_txt"></th>
<th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
<th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -21,7 +21,7 @@
<th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th>
<th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th>
<th class="tbl_col_destination" scope="col"><tmpl_var name="destination_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -21,7 +21,7 @@
<th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th>
<th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
<th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -21,7 +21,7 @@
<th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th>
<th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th>
<th class="tbl_col_destination" scope="col"><tmpl_var name="destination_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -23,7 +23,7 @@
<th class="tbl_col_source_server" scope="col"><tmpl_var name="source_server_txt"></th>
<th class="tbl_col_source_username" scope="col"><tmpl_var name="source_username_txt"></th>
<th class="tbl_col_destination" scope="col"><tmpl_var name="destination_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -19,7 +19,7 @@
<tr>
<th class="tbl_col_listname" scope="col"><tmpl_var name="listname_txt"></th>
<th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_listname"><input type="text" name="search_listname" value="{tmpl_var name='search_listname'}" /></td>
......
......@@ -20,7 +20,7 @@
<th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th>
<th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
<th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -23,7 +23,7 @@
<th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th>
<th class="tbl_col_transport" scope="col"><tmpl_var name="transport_txt"></th>
<th class="tbl_col_sort_order" scope="col"><tmpl_var name="sort_order_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -15,11 +15,11 @@
<thead>
<tr>
<th class="tbl_col_rulename" scope="col"><tmpl_var name="rulename_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="tbl_col_buttons" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_rulename"><input type="text" name="search_rulename" value="{tmpl_var name='search_rulename'}" /></td>
<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_edit.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td>
<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="changeTab('filter_records','mail/mail_user_edit.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td>
</tr>
</thead>
<tbody>
......
......@@ -22,7 +22,7 @@
<tmpl_if name="enable_custom_login"><th class="tbl_col_login" scope="col"><tmpl_var name="login_txt"></th></tmpl_if>
<th class="tbl_col_name" scope="col"><tmpl_var name="name_txt"></th>
<th class="tbl_col_autoresponder" scope="col"><tmpl_var name="autoresponder_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_email"><input type="text" name="search_email" value="{tmpl_var name='search_email'}" /></td>
......
......@@ -9,11 +9,11 @@
<thead>
<tr>
<th class="tbl_col_email" scope="col"><tmpl_var name="email_txt"></th>
<th class="tbl_col_this_month" scope="col"><tmpl_var name="this_month_txt"></th>
<th class="tbl_col_last_month" scope="col"><tmpl_var name="last_month_txt"></th>
<th class="tbl_col_this_year" scope="col"><tmpl_var name="this_year_txt"></th>
<th class="tbl_col_last_year" scope="col"><tmpl_var name="last_year_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="tbl_col_mail_traffic_this_month" scope="col"><tmpl_var name="this_month_txt"></th>
<th class="tbl_col_mail_traffic_last_month" scope="col"><tmpl_var name="last_month_txt"></th>
<th class="tbl_col_mail_traffic_this_year" scope="col"><tmpl_var name="this_year_txt"></th>
<th class="tbl_col_mail_traffic_last_year" scope="col"><tmpl_var name="last_year_txt"></th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_email"><input type="text" name="search_email" value="{tmpl_var name='search_email'}" /></td>
......
......@@ -22,7 +22,7 @@
<th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
<th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th>
<th class="tbl_col_type" scope="col"><tmpl_var name="type_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -23,7 +23,7 @@
<th class="tbl_col_priority" scope="col"><tmpl_var name="priority_txt"></th>
<th class="tbl_col_rid" scope="col"><tmpl_var name="rid_txt"></th>
<th class="tbl_col_email" scope="col"><tmpl_var name="email_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_active"><select name="search_active">{tmpl_var name='search_active'}</select></td>
......
......@@ -23,7 +23,7 @@
<th class="tbl_col_spam_lover" scope="col"><tmpl_var name="spam_lover_txt"></th>
<th class="tbl_col_banned_files_lover" scope="col"><tmpl_var name="banned_files_lover_txt"></th>
<th class="tbl_col_bad_header_lover" scope="col"><tmpl_var name="bad_header_lover_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_policy_name"><input type="text" name="search_policy_name" value="{tmpl_var name='search_policy_name'}" /></td>
......
......@@ -23,7 +23,7 @@
<th class="tbl_col_priority" scope="col"><tmpl_var name="priority_txt"></th>
<th class="tbl_col_policy_id" scope="col"><tmpl_var name="policy_id_txt"></th>
<th class="tbl_col_fullname" scope="col"><tmpl_var name="fullname_txt"></th>
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
<th class="" scope="col">{tmpl_var name='search_limit'}</th>
</tr>
<tr>
<td class="tbl_col_local"><select name="search_local">{tmpl_var name='search_local'}</select></td>
......
......@@ -23,7 +23,7 @@
<th class="tbl_col_priority" scope="col"><tmpl_var name="priority_txt"></th>
<th class="tbl_col_rid" scope="col"><tmpl_var name="rid_txt"></th>