diff --git a/interface/web/domain/domain_edit.php b/interface/web/domain/domain_edit.php index 8e6e6384193792b48dd160520a9edd7cb238d201..cc9780640c89aa0fd5fa860ca108995c18bdb186 100644 --- a/interface/web/domain/domain_edit.php +++ b/interface/web/domain/domain_edit.php @@ -108,7 +108,7 @@ class page_action extends tform_actions { if(isset($this->dataRecord['client_group_id']) && $this->dataRecord['client_group_id'] == 0) { $app->tform->errorMessage .= $wb['error_client_group_id_empty']; } - //* make sure that the email domain is lowercase + //* make sure that the domain is lowercase if(isset($this->dataRecord["domain"])) $this->dataRecord["domain"] = strtolower($this->dataRecord["domain"]); } else { diff --git a/interface/web/domain/list/domain.list.php b/interface/web/domain/list/domain.list.php index bd96addf21453a8a71e94d86e21292ecbd8102ab..e9630e388a621aa77991409b56c03a36cb561340 100644 --- a/interface/web/domain/list/domain.list.php +++ b/interface/web/domain/list/domain.list.php @@ -76,9 +76,24 @@ $liste["auth"] = "yes"; $liste["item"][] = array( 'field' => "domain", 'datatype' => "VARCHAR", 'formtype' => "TEXT", - 'op' => "like", + 'op' => "LIKE", 'prefix' => "%", 'suffix' => "%", 'width' => "", 'value' => ""); + +$liste["item"][] = array( 'field' => "sys_groupid", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT a.groupid, a.name FROM sys_group a, domain b WHERE (a.groupid = b.sys_groupid) AND ({AUTHSQL-B}) ORDER BY name', + 'keyfield'=> 'groupid', + 'valuefield'=> 'name' + ), + 'width' => "", + 'value' => ""); + ?> \ No newline at end of file diff --git a/interface/web/domain/templates/domain_list.htm b/interface/web/domain/templates/domain_list.htm index b8533840ef757e7eedfec70bd46cd44059804b0b..1e0bd11ede2e2f0f312c0648c92babb8952b1e09 100644 --- a/interface/web/domain/templates/domain_list.htm +++ b/interface/web/domain/templates/domain_list.htm @@ -25,17 +25,20 @@ +   -
+ +
{tmpl_var name="domain"} + {tmpl_var name="sys_groupid"}