You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$records = $app->db->queryAllRecords("SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND server_id IN (".$server_ids.") AND ".$app->tform->getAuthSQL('r')." ORDER BY domain");
Copy file name to clipboardExpand all lines: interface/web/dns/dns_import.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -84,14 +84,14 @@
84
84
$app->tpl->setVar("server_id",$server_id_option);
85
85
86
86
// load the list of clients
87
-
$sql = "SELECT groupid, nameFROM sys_groupWHERE client_id > 0 ORDER BY name";
87
+
$sql = "SELECT groupid, name, CONCAT(company_name,' :: ',contact_name) as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id AND sys_group.client_id > 0 ORDER BY sys_group.name";
Copy file name to clipboardExpand all lines: interface/web/dns/dns_slave_edit.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -72,34 +72,34 @@ function onShowEnd() {
72
72
// If user is admin, we will allow him to select to whom this record belongs
73
73
if($_SESSION["s"]["user"]["typ"] == 'admin') {
74
74
// Getting Domains of the user
75
-
$sql = "SELECT groupid, nameFROM sys_groupWHERE client_id > 0 ORDER by name";
75
+
$sql = "SELECT groupid, name, CONCAT(company_name,' :: ',contact_name) as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id AND sys_group.client_id > 0 ORDER BY sys_group.name";
$client = $app->db->queryOneRecord("SELECT client.client_id, client.contact_name FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
91
+
$client = $app->db->queryOneRecord("SELECT client.client_id, sys_group.name, client.contact_name, CONCAT(company_name,' :: ',contact_name) as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
92
92
93
93
// Fill the client select field
94
-
$sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name";
94
+
$sql = "SELECT groupid, name, CONCAT(company_name,' :: ',contact_name) as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name";
95
95
$clients = $app->db->queryAllRecords($sql);
96
96
$tmp = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$client['client_id']);
Copy file name to clipboardExpand all lines: interface/web/dns/dns_soa_edit.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -82,34 +82,34 @@ function onShowEnd() {
82
82
// If user is admin, we will allow him to select to whom this record belongs
83
83
if($_SESSION["s"]["user"]["typ"] == 'admin') {
84
84
// Getting Domains of the user
85
-
$sql = "SELECT groupid, nameFROM sys_groupWHERE client_id > 0 ORDER by name";
85
+
$sql = "SELECT groupid, name, CONCAT(company_name,' :: ',contact_name) as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id AND sys_group.client_id > 0 ORDER BY sys_group.name";
$client = $app->db->queryOneRecord("SELECT client.client_id, client.contact_name FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
101
+
$client = $app->db->queryOneRecord("SELECT client.client_id, client.contact_name, CONCAT(company_name,' :: ',contact_name) as contactname, sys_group.name FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
102
102
103
103
// Fill the client select field
104
-
$sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name";
104
+
$sql = "SELECT groupid, name, CONCAT(company_name,' :: ',contact_name) as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name";
105
105
$clients = $app->db->queryAllRecords($sql);
106
106
$tmp = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$client['client_id']);
Copy file name to clipboardExpand all lines: interface/web/dns/dns_wizard.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -81,14 +81,14 @@
81
81
$app->tpl->setVar("server_id",$server_id_option);
82
82
83
83
// load the list of clients
84
-
$sql = "SELECT groupid, nameFROM sys_groupWHERE client_id > 0 ORDER BY name";
84
+
$sql = "SELECT groupid, name, CONCAT(company_name,' :: ',contact_name) as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id AND sys_group.client_id > 0 ORDER BY sys_group.name";
0 commit comments