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
Judah - MW
ISPConfig 3
Commits
46c7e58a
Unverified
Commit
46c7e58a
authored
Apr 23, 2022
by
Helmo
Browse files
Show the client name on the delete confirmation page
parent
221728d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/client/client_del.php
View file @
46c7e58a
...
...
@@ -110,6 +110,11 @@ class page_action extends tform_actions {
$table_list
=
array
();
$client_group_id
=
$app
->
functions
->
intval
(
$client_group
[
'groupid'
]);
if
(
$client_group_id
>
1
)
{
$client
=
$app
->
db
->
queryOneRecord
(
"SELECT CONCAT(IF(client.company_name != '', CONCAT(client.company_name, ' :: '), ''), IF(client.contact_firstname != '', CONCAT(client.contact_firstname, ' '), ''), 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.groupid = ?"
,
$client_group_id
);
$app
->
tpl
->
setVar
(
'contactname'
,
$client
[
'contactname'
]);
foreach
(
$this
->
tables
as
$table
=>
$field
)
{
if
(
$table
!=
''
)
{
$records
=
$app
->
db
->
queryAllRecords
(
"SELECT * FROM ?? WHERE sys_groupid = ?"
,
$table
,
$client_group_id
);
...
...
interface/web/client/templates/client_del.htm
View file @
46c7e58a
<div
class=
'page-header'
><h1><tmpl_var
name=
"list_head_txt"
></h1></div>
<div
class=
'page-header'
><h1><tmpl_var
name=
"list_head_txt"
>
<tmpl_var
name=
"contactname"
>
</h1></div>
<tmpl_if
name=
'number_records'
>
<tmpl_var
name=
"delete_explanation"
>
:
<br
/><br
/>
<div
class=
"table-wrapper marginTop15"
>
...
...
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