Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
332ae547
Commit
332ae547
authored
Dec 02, 2013
by
Till Brehm
Browse files
Improved client select field in domain input form of the client module.
parent
466f308b
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/client/domain_edit.php
View file @
332ae547
...
...
@@ -69,7 +69,8 @@ class page_action extends tform_actions {
if
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
)
{
// Getting Clients of the user
$sql
=
"SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER BY name"
;
//$sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER BY name";
$sql
=
"SELECT sys_group.groupid, sys_group.name, CONCAT(IF(client.company_name != '', CONCAT(client.company_name, ' :: '), ''), client.contact_name, ' (', client.username, IF(client.customer_no != '', CONCAT(', ', client.customer_no), ''), ')') 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"
;
$clients
=
$app
->
db
->
queryAllRecords
(
$sql
);
$client_select
=
''
;
if
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
)
$client_select
.
=
"<option value='0'></option>"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment