mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
#12687 Added info message
This commit is contained in:
parent
2f24344025
commit
35713c358b
@ -42,11 +42,10 @@ if (check_acl($config['id_user'], 0, 'PM') === false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
require_once $config['homedir'].'/include/class/Prd.class.php';
|
require_once $config['homedir'].'/include/class/Prd.class.php';
|
||||||
$msg = '';
|
|
||||||
|
|
||||||
// Instance of the prd class.
|
// Instance of the prd class.
|
||||||
$prd = new Prd();
|
$prd = new Prd();
|
||||||
|
|
||||||
|
$msg = '';
|
||||||
if (isset($_FILES['resource_import']) === true) {
|
if (isset($_FILES['resource_import']) === true) {
|
||||||
if (empty($_FILES['resource_import']['tmp_name']) === false) {
|
if (empty($_FILES['resource_import']['tmp_name']) === false) {
|
||||||
$data = parse_ini_file($_FILES['resource_import']['tmp_name'], true);
|
$data = parse_ini_file($_FILES['resource_import']['tmp_name'], true);
|
||||||
@ -279,6 +278,13 @@ echo '</div>';
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof msg.info === 'object' && Object.keys(msg.info).length > 0) {
|
||||||
|
message += "<br><br>";
|
||||||
|
Object.entries(msg.info).forEach(([key, value]) => {
|
||||||
|
message += value + "<br>";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
confirmDialog({
|
confirmDialog({
|
||||||
title: title,
|
title: title,
|
||||||
message: message,
|
message: message,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user