Skip to content
Snippets Groups Projects
Unverified Commit 1a1b12b9 authored by Helmo's avatar Helmo
Browse files

Squashed commit of the following: 6334-show-name-to-delete

commit 46c7e58a
Author: Herman van Rink <rink@initfour.nl>
Date:   Sat Apr 23 13:39:55 2022 +0200

    Show the client name on the delete confirmation page
parent d294b8cd
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
<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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment