diff --git a/interface/web/client/client_edit.php b/interface/web/client/client_edit.php index 76616fc26f5b0b28b5e358ae6ea5c09f2d3fd42a..fd760af1399cdbced0248b8298977cd3b6e38215 100644 --- a/interface/web/client/client_edit.php +++ b/interface/web/client/client_edit.php @@ -101,7 +101,7 @@ class page_action extends tform_actions { global $app; - $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a'"; + $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a' ORDER BY template_name ASC"; $tpls = $app->db->queryAllRecords($sql); $option = ''; $tpl = array(); diff --git a/interface/web/client/client_template_list.php b/interface/web/client/client_template_list.php index da316a75d85115d483fa30a2d0ac4914155a4531..f0d1752850d4970d521bb58635dfc1a7b1634d4f 100644 --- a/interface/web/client/client_template_list.php +++ b/interface/web/client/client_template_list.php @@ -44,5 +44,6 @@ $app->auth->check_module_permissions('client'); if(!$_SESSION["s"]["user"]["typ"] == 'admin') die('Client-Templates are only for Admins.'); $app->uses('listform_actions'); +$app->listform_actions->SQLOrderBy = 'ORDER BY template_name'; $app->listform_actions->onLoad(); ?> diff --git a/interface/web/client/form/client.tform.php b/interface/web/client/form/client.tform.php index d29a54c8df3440eb73142c3a82b53598c1a88438..8a76281bbadcc4bdb76b3ad8ee04164cd896a0a4 100644 --- a/interface/web/client/form/client.tform.php +++ b/interface/web/client/form/client.tform.php @@ -38,16 +38,16 @@ */ -$form["title"] = "Client"; -$form["description"] = ""; -$form["name"] = "client"; -$form["action"] = "client_edit.php"; -$form["db_table"] = "client"; +$form["title"] = "Client"; +$form["description"] = ""; +$form["name"] = "client"; +$form["action"] = "client_edit.php"; +$form["db_table"] = "client"; $form["db_table_idx"] = "client_id"; -$form["db_history"] = "yes"; +$form["db_history"] = "yes"; $form["tab_default"] = "address"; $form["list_default"] = "client_list.php"; -$form["auth"] = 'yes'; +$form["auth"] = 'yes'; $form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user $form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user @@ -101,9 +101,9 @@ $form["tabs"]['address'] = array ( 'contact_name' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'contact_error_empty'), - ), + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'contact_error_empty'), + ), 'default' => '', 'value' => '', 'separator' => '', @@ -129,19 +129,19 @@ $form["tabs"]['address'] = array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'username_error_empty'), - 1 => array ( 'type' => 'CUSTOM', - 'class' => 'validate_client', - 'function' => 'username_unique', - 'errmsg'=> 'username_error_unique'), - 2 => array ( 'type' => 'CUSTOM', - 'class' => 'validate_client', - 'function' => 'username_collision', - 'errmsg'=> 'username_error_collision'), - 3 => array ( 'type' => 'REGEX', - 'regex' => '/^[\w\.\-\_]{0,64}$/', - 'errmsg'=> 'username_error_regex'), - ), + 'errmsg'=> 'username_error_empty'), + 1 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_client', + 'function' => 'username_unique', + 'errmsg'=> 'username_error_unique'), + 2 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_client', + 'function' => 'username_collision', + 'errmsg'=> 'username_error_collision'), + 3 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-\_]{0,64}$/', + 'errmsg'=> 'username_error_regex'), + ), 'default' => '', 'value' => '', 'separator' => '', @@ -235,14 +235,13 @@ $form["tabs"]['address'] = array ( ), 'country' => array ( 'datatype' => 'VARCHAR', - 'formtype' => 'SELECT', 'default' => (isset($conf['language']) ? strtoupper($conf['language']) : ''), - 'datasource' => array ( 'type' => 'SQL', - 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name', - 'keyfield'=> 'iso', - 'valuefield'=> 'printable_name' - ), + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY iso ASC', + 'keyfield' => 'iso', + 'valuefield' => 'printable_name' + ), 'value' => '' ), 'telephone' => array ( diff --git a/interface/web/client/list/client.list.php b/interface/web/client/list/client.list.php index 03ce0d9c9d1811f2a41ed5891f7c158763c5062f..2d451798147a26daf5552436cd382e5241a6f148 100644 --- a/interface/web/client/list/client.list.php +++ b/interface/web/client/list/client.list.php @@ -13,13 +13,13 @@ // Name of the list -$liste["name"] = "clients"; +$liste["name"] = "clients"; // Database table -$liste["table"] = "client"; +$liste["table"] = "client"; // Index index field of the database table -$liste["table_idx"] = "client_id"; +$liste["table_idx"] = "client_id"; // Search Field Prefix $liste["search_prefix"] = "search_"; @@ -28,10 +28,10 @@ $liste["search_prefix"] = "search_"; $liste["records_per_page"] = "15"; // Script File of the list -$liste["file"] = "client_list.php"; +$liste["file"] = "client_list.php"; // Script file of the edit form -$liste["edit_file"] = "client_edit.php"; +$liste["edit_file"] = "client_edit.php"; // Script File of the delete script $liste["delete_file"] = "client_del.php"; @@ -40,66 +40,65 @@ $liste["delete_file"] = "client_del.php"; $liste["paging_tpl"] = "templates/paging.tpl.htm"; // Enable authe -$liste["auth"] = "yes"; +$liste["auth"] = "yes"; /***************************************************** * Suchfelder *****************************************************/ -$liste["item"][] = array( 'field' => "client_id", - 'datatype' => "INTEGER", - 'formtype' => "TEXT", - 'op' => "=", - 'prefix' => "", - 'suffix' => "", - 'width' => "", - 'value' => ""); - -$liste["item"][] = array( 'field' => "company_name", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - -$liste["item"][] = array( 'field' => "contact_name", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - -$liste["item"][] = array( 'field' => "username", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - -$liste["item"][] = array( 'field' => "city", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - -$liste["item"][] = array( 'field' => "country", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - +$liste["item"][] = array( 'field' => "client_id", + 'datatype' => "INTEGER", + 'formtype' => "TEXT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "company_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "contact_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "username", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "city", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "country", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); ?> \ No newline at end of file diff --git a/interface/web/client/list/reseller.list.php b/interface/web/client/list/reseller.list.php index 06be49f2193c022b81fe79a59d04056e1c3ffe11..2e2fbe7f812d1b5aefc13a84289e7e41a29d306b 100644 --- a/interface/web/client/list/reseller.list.php +++ b/interface/web/client/list/reseller.list.php @@ -13,13 +13,13 @@ // Name of the list -$liste["name"] = "resellers"; +$liste["name"] = "resellers"; // Database table -$liste["table"] = "client"; +$liste["table"] = "client"; // Index index field of the database table -$liste["table_idx"] = "client_id"; +$liste["table_idx"] = "client_id"; // Search Field Prefix $liste["search_prefix"] = "search_"; @@ -28,10 +28,10 @@ $liste["search_prefix"] = "search_"; $liste["records_per_page"] = "15"; // Script File of the list -$liste["file"] = "reseller_list.php"; +$liste["file"] = "reseller_list.php"; // Script file of the edit form -$liste["edit_file"] = "reseller_edit.php"; +$liste["edit_file"] = "reseller_edit.php"; // Script File of the delete script $liste["delete_file"] = "reseller_del.php"; @@ -40,57 +40,56 @@ $liste["delete_file"] = "reseller_del.php"; $liste["paging_tpl"] = "templates/paging.tpl.htm"; // Enable authe -$liste["auth"] = "yes"; +$liste["auth"] = "yes"; /***************************************************** * Suchfelder *****************************************************/ -$liste["item"][] = array( 'field' => "client_id", - 'datatype' => "INTEGER", - 'formtype' => "TEXT", - 'op' => "=", - 'prefix' => "", - 'suffix' => "", - 'width' => "", - 'value' => ""); - -$liste["item"][] = array( 'field' => "company_name", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - -$liste["item"][] = array( 'field' => "contact_name", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - -$liste["item"][] = array( 'field' => "city", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - -$liste["item"][] = array( 'field' => "country", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - +$liste["item"][] = array( 'field' => "client_id", + 'datatype' => "INTEGER", + 'formtype' => "TEXT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "company_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "contact_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "city", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "country", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); ?> \ No newline at end of file diff --git a/interface/web/client/templates/clients_list.htm b/interface/web/client/templates/clients_list.htm index c3b3d57b0b317bdbde97cbc070929eccf4e43392..cb3ee9cc08e41c6fade47c5e6a061a5922be7b7b 100644 --- a/interface/web/client/templates/clients_list.htm +++ b/interface/web/client/templates/clients_list.htm @@ -32,7 +32,7 @@ <td class="tbl_col_contact_name"><input type="text" name="search_contact_name" value="{tmpl_var name='search_contact_name'}" style="width:120px;" /></td> <td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" style="width:120px;" /></td> <td class="tbl_col_city"><input type="text" name="search_city" value="{tmpl_var name='search_city'}" style="width:120px;" /></td> - <td class="tbl_col_country"><input type="text" name="search_country" value="{tmpl_var name='search_country'}" style="width:30px;" /></td> + <td class="tbl_col_country"><select name="search_country" style="width:120px;">{tmpl_var name='search_country'}</select></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_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> </tr> </thead> diff --git a/interface/web/client/templates/resellers_list.htm b/interface/web/client/templates/resellers_list.htm index 5ed9e94a55e2b3d10423fd147d275247908f6379..ace481515a39cf0ca0fa68ccc99a193e260c2b61 100644 --- a/interface/web/client/templates/resellers_list.htm +++ b/interface/web/client/templates/resellers_list.htm @@ -30,7 +30,7 @@ <td class="tbl_col_company_name"><input type="text" name="search_company_name" value="{tmpl_var name='search_company_name'}" style="width:120px;" /></td> <td class="tbl_col_contact_name"><input type="text" name="search_contact_name" value="{tmpl_var name='search_contact_name'}" style="width:120px;" /></td> <td class="tbl_col_city"><input type="text" name="search_city" value="{tmpl_var name='search_city'}" style="width:120px;" /></td> - <td class="tbl_col_country"><input type="text" name="search_country" value="{tmpl_var name='search_country'}" style="width:30px;" /></td> + <td class="tbl_col_country"><select name="search_country" style="width:120px;">{tmpl_var name='search_country'}</select></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/reseller_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> </tr> </thead> diff --git a/interface/web/dns/dns_template_list.php b/interface/web/dns/dns_template_list.php index 20efa8d43d75b17f6363ea416a3fe5538a845616..37648a1efc0bff7503600b5f4757831615113e04 100644 --- a/interface/web/dns/dns_template_list.php +++ b/interface/web/dns/dns_template_list.php @@ -18,6 +18,7 @@ $app->auth->check_module_permissions('dns'); $app->uses('listform_actions'); // $app->listform_actions->SQLExtWhere = "access = 'REJECT'"; +$app->listform_actions->SQLOrderBy = 'ORDER BY name'; $app->listform_actions->onLoad(); diff --git a/interface/web/dns/dns_wizard.php b/interface/web/dns/dns_wizard.php index cdb24480dcc8e506c85f79d57c8fcf708ab8a5fb..18c75298aa461e22a77ded181d526a57a6f02009 100644 --- a/interface/web/dns/dns_wizard.php +++ b/interface/web/dns/dns_wizard.php @@ -56,7 +56,7 @@ if($_SESSION['s']['user']['typ'] == 'admin') { // Load the templates -$records = $app->db->queryAllRecords("SELECT * FROM dns_template WHERE visible = 'Y'"); +$records = $app->db->queryAllRecords("SELECT * FROM dns_template WHERE visible = 'Y' ORDER BY name ASC"); $template_id_option = ''; $n = 0; foreach($records as $rec){ diff --git a/interface/web/dns/list/dns_slave.list.php b/interface/web/dns/list/dns_slave.list.php index aaa09e03439be00de6860c0a92100613ed9a7464..1e6354434f171f127220b64cdfcea0e7d34c420d 100644 --- a/interface/web/dns/list/dns_slave.list.php +++ b/interface/web/dns/list/dns_slave.list.php @@ -13,13 +13,13 @@ // Name of the list -$liste["name"] = "dns_slave"; +$liste["name"] = "dns_slave"; // Database table -$liste["table"] = "dns_slave"; +$liste["table"] = "dns_slave"; // Index index field of the database table -$liste["table_idx"] = "id"; +$liste["table_idx"] = "id"; // Search Field Prefix $liste["search_prefix"] = "search_"; @@ -28,10 +28,10 @@ $liste["search_prefix"] = "search_"; $liste["records_per_page"] = "15"; // Script File of the list -$liste["file"] = "dns_slave_list.php"; +$liste["file"] = "dns_slave_list.php"; // Script file of the edit form -$liste["edit_file"] = "dns_slave_edit.php"; +$liste["edit_file"] = "dns_slave_edit.php"; // Script File of the delete script $liste["delete_file"] = "dns_slave_del.php"; @@ -40,7 +40,7 @@ $liste["delete_file"] = "dns_slave_del.php"; $liste["paging_tpl"] = "templates/paging.tpl.htm"; // Enable auth -$liste["auth"] = "yes"; +$liste["auth"] = "yes"; /***************************************************** @@ -48,50 +48,46 @@ $liste["auth"] = "yes"; *****************************************************/ -$liste["item"][] = array( 'field' => "active", - 'datatype' => "VARCHAR", - 'formtype' => "SELECT", - 'op' => "=", - 'prefix' => "", - 'suffix' => "", - 'width' => "", - 'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); - - -$liste["item"][] = array( 'field' => "server_id", - 'datatype' => "VARCHAR", - 'formtype' => "SELECT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'datasource' => array ( 'type' => 'CUSTOM', - 'class'=> 'custom_datasource', - 'function'=> 'dns_servers' - ), - 'width' => "", - 'value' => ""); - -$liste["item"][] = array( 'field' => "origin", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - - -$liste["item"][] = array( 'field' => "ns", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - - - - +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource'=> array ( 'type' => 'CUSTOM', + 'class'=> 'custom_datasource', + 'function'=> 'dns_servers' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "origin", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "ns", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); ?> \ No newline at end of file diff --git a/interface/web/dns/list/dns_template.list.php b/interface/web/dns/list/dns_template.list.php index 90316d26e5cb3eeec5e8ea0ee08a8e3ab89a933a..58055fbb4ae6137ba58970336b8d17e238e83f68 100644 --- a/interface/web/dns/list/dns_template.list.php +++ b/interface/web/dns/list/dns_template.list.php @@ -13,13 +13,13 @@ // Name of the list -$liste["name"] = "dns_template"; +$liste["name"] = "dns_template"; // Database table -$liste["table"] = "dns_template"; +$liste["table"] = "dns_template"; // Index index field of the database table -$liste["table_idx"] = "template_id"; +$liste["table_idx"] = "template_id"; // Search Field Prefix $liste["search_prefix"] = "search_"; @@ -28,10 +28,10 @@ $liste["search_prefix"] = "search_"; $liste["records_per_page"] = "15"; // Script File of the list -$liste["file"] = "dns_template_list.php"; +$liste["file"] = "dns_template_list.php"; // Script file of the edit form -$liste["edit_file"] = "dns_template_edit.php"; +$liste["edit_file"] = "dns_template_edit.php"; // Script File of the delete script $liste["delete_file"] = "dns_template_del.php"; @@ -40,7 +40,7 @@ $liste["delete_file"] = "dns_template_del.php"; $liste["paging_tpl"] = "templates/paging.tpl.htm"; // Enable auth -$liste["auth"] = "yes"; +$liste["auth"] = "yes"; /***************************************************** @@ -48,33 +48,23 @@ $liste["auth"] = "yes"; *****************************************************/ -$liste["item"][] = array( 'field' => "visible", - 'datatype' => "VARCHAR", - 'formtype' => "SELECT", - 'op' => "=", - 'prefix' => "", - 'suffix' => "", - 'width' => "", - 'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); - - -$liste["item"][] = array( 'field' => "name", - 'datatype' => "VARCHAR", - 'formtype' => "TEXT", - 'op' => "like", - 'prefix' => "%", - 'suffix' => "%", - 'width' => "", - 'value' => ""); - - - - - - - - - - +$liste["item"][] = array( 'field' => "visible", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); ?> \ No newline at end of file diff --git a/interface/web/domain/domain_list.php b/interface/web/domain/domain_list.php index 381285e36742cef651c44ecab8a3b113bb91c79b..65a889774f04f1dd753179e7fc24e539a8255b65 100644 --- a/interface/web/domain/domain_list.php +++ b/interface/web/domain/domain_list.php @@ -46,6 +46,7 @@ $app->auth->check_module_permissions('domain'); $app->uses('listform_actions'); +$app->listform_actions->SQLOrderBy = 'ORDER BY domain'; $app->listform_actions->onLoad(); ?> \ No newline at end of file diff --git a/interface/web/mail/mail_domain_list.php b/interface/web/mail/mail_domain_list.php index 5bdfb69044981fb8286d9ab60a827bcad9c3baa4..d07855c0507ca7d567299d79180d9d13ecebd8e8 100644 --- a/interface/web/mail/mail_domain_list.php +++ b/interface/web/mail/mail_domain_list.php @@ -21,6 +21,7 @@ $app->uses('listform_actions'); // Limit the results to alias domains // $app->listform_actions->SQLExtWhere = "type = 'local'"; +$app->listform_actions->SQLOrderBy = 'ORDER BY domain'; $app->listform_actions->onLoad(); diff --git a/interface/web/sites/database_list.php b/interface/web/sites/database_list.php index 9ced595f4c1eb08636dbc0450baaff12712ba790..dfe11bef24108035b9bb0058b3383f9e36d9ff69 100644 --- a/interface/web/sites/database_list.php +++ b/interface/web/sites/database_list.php @@ -67,6 +67,7 @@ class list_action extends listform_actions { } $list = new list_action; +$list->SQLOrderBy = 'ORDER BY database_name'; $list->onLoad(); diff --git a/interface/web/sites/ftp_user_list.php b/interface/web/sites/ftp_user_list.php index ef94dc246d1c5ceb40b9fdbf9b6b6bc80a161905..250efcfd0e3f8b6729e617b5243a4a9e11fd158a 100644 --- a/interface/web/sites/ftp_user_list.php +++ b/interface/web/sites/ftp_user_list.php @@ -68,6 +68,7 @@ class list_action extends listform_actions { } $list = new list_action; +$list->SQLOrderBy = 'ORDER BY username'; $list->onLoad(); diff --git a/interface/web/sites/shell_user_list.php b/interface/web/sites/shell_user_list.php index a9c95fdf9269cda588b5a7c35e5f39f4ce67ccca..3307d63d26c510142159cf0c478bea1dd3cef334 100644 --- a/interface/web/sites/shell_user_list.php +++ b/interface/web/sites/shell_user_list.php @@ -49,6 +49,7 @@ $app->uses('listform_actions'); // Limit the results to alias domains //$app->listform_actions->SQLExtWhere = "type = 'subdomain'"; +$app->listform_actions->SQLOrderBy = 'ORDER BY username'; $app->listform_actions->onLoad(); diff --git a/interface/web/sites/user_quota_stats.php b/interface/web/sites/user_quota_stats.php index 0b23b1a1629af4c0fa134a9d15223e4b9bb8f8c7..539d4ff35ea0ddec7ff5364c18aa7974ed924e44 100644 --- a/interface/web/sites/user_quota_stats.php +++ b/interface/web/sites/user_quota_stats.php @@ -88,7 +88,7 @@ class list_action extends listform_actions { $list = new list_action; $list->SQLExtWhere = "type = 'vhost'"; - +$list->SQLOrderBy = 'ORDER BY domain'; $list->onLoad(); diff --git a/interface/web/sites/web_aliasdomain_list.php b/interface/web/sites/web_aliasdomain_list.php index 9417bb3bdb9817ffe16227314fa0598b1ca659d7..ef4a181ad47bc3c1781fab7ca2469236e33cd7b0 100644 --- a/interface/web/sites/web_aliasdomain_list.php +++ b/interface/web/sites/web_aliasdomain_list.php @@ -48,7 +48,7 @@ $app->uses('listform_actions'); // Limit the results to alias domains $app->listform_actions->SQLExtWhere = "type = 'alias'"; - +$app->listform_actions->SQLOrderBy = 'ORDER BY domain'; $app->listform_actions->onLoad(); diff --git a/interface/web/sites/web_domain_list.php b/interface/web/sites/web_domain_list.php index da46e761cb826e7e102118f217e1888b569ef967..16cac5a46b434af51c775c4a54f9dd7b4529f491 100644 --- a/interface/web/sites/web_domain_list.php +++ b/interface/web/sites/web_domain_list.php @@ -53,7 +53,7 @@ class list_action extends listform_actions { $list = new list_action; $list->SQLExtWhere = "type = 'vhost'"; +$list->SQLOrderBy = 'ORDER BY domain'; $list->onLoad(); - ?> \ No newline at end of file diff --git a/interface/web/sites/web_sites_stats.php b/interface/web/sites/web_sites_stats.php index 076858bcb9b14feb9656357e0380dab638a5058b..e9a6c8dd0a78a9f16e8c499b8333384b7589c172 100644 --- a/interface/web/sites/web_sites_stats.php +++ b/interface/web/sites/web_sites_stats.php @@ -59,7 +59,7 @@ class list_action extends listform_actions { $list = new list_action; $list->SQLExtWhere = "type = 'vhost'"; - +$list->SQLOrderBy = 'ORDER BY domain'; $list->onLoad(); diff --git a/interface/web/sites/web_subdomain_list.php b/interface/web/sites/web_subdomain_list.php index 78855cab7f61b8b49234cb637d8186ad63c9e6c8..f5feaf7cf53dc22b2a605608e97e4b02785c451b 100644 --- a/interface/web/sites/web_subdomain_list.php +++ b/interface/web/sites/web_subdomain_list.php @@ -48,7 +48,7 @@ $app->uses('listform_actions'); // Limit the results to alias domains $app->listform_actions->SQLExtWhere = "type = 'subdomain'"; - +$app->listform_actions->SQLOrderBy = 'ORDER BY domain'; $app->listform_actions->onLoad(); diff --git a/interface/web/sites/webdav_user_list.php b/interface/web/sites/webdav_user_list.php index bac3de98c9264c776775f0b4b3d53767f7e07930..cc4532c09c6926ae4f2deaf21da6e37fedd5655d 100644 --- a/interface/web/sites/webdav_user_list.php +++ b/interface/web/sites/webdav_user_list.php @@ -44,7 +44,7 @@ $list_def_file = "list/webdav_user.list.php"; $app->auth->check_module_permissions('sites'); $app->uses('listform_actions'); - +$app->listform_actions->SQLOrderBy = 'ORDER BY username'; $app->listform_actions->onLoad(); diff --git a/interface/web/vm/openvz_ip_list.php b/interface/web/vm/openvz_ip_list.php index 2a637880765e3e9e127e6beb08c531b0bd248cb2..8892efcc80915751e1546d8b588d33201f1483d4 100644 --- a/interface/web/vm/openvz_ip_list.php +++ b/interface/web/vm/openvz_ip_list.php @@ -47,8 +47,8 @@ if($_SESSION["s"]["user"]["typ"] != 'admin') die('permission denied'); $app->uses('listform_actions'); -// $app->listform_actions->SQLOrderBy = 'ORDER BY company_name, contact_name, client_id'; // $app->listform_actions->SQLExtWhere = "limit_client = 0"; +$app->listform_actions->SQLOrderBy = 'ORDER BY server_id,ip_address'; $app->listform_actions->onLoad();