|
|
@@ -1369,7 +1369,7 @@ function validateCompany(source) {
|
|
|
}
|
|
|
?>
|
|
|
<div class="container" style="margin-top:20px">
|
|
|
- <form method="post">
|
|
|
+ <form method="post" onSubmit="showMsg('Proszę czekać, generuję raport...');">
|
|
|
<legend>
|
|
|
Analiza rozkładu Benford'a
|
|
|
<span class="pull-right">Tabela: <?=$this->SOURCE['TABLE']?></span>
|
|
|
@@ -1502,8 +1502,7 @@ td {font-size: 12px;}
|
|
|
<!--
|
|
|
function showDetails(groupField, ka, kb) {
|
|
|
event.stopPropagation();
|
|
|
- document.getElementById('detailsMsg').innerHTML = "<h4>Proszę czekać...</h4>";
|
|
|
- document.getElementById('details').style.display = 'block';
|
|
|
+ showMsg('Proszę czekać...');
|
|
|
var post = "_noMenu=1&action=getDetails&_groupField=" + groupField + "&_ka=" + ka;
|
|
|
if (kb !== null) post += "&_kb=" + kb;
|
|
|
var xhttp = new XMLHttpRequest();
|
|
|
@@ -1521,6 +1520,10 @@ function showDetails2(node, ka, kb) {
|
|
|
var groupField = form['_groupField'].value;
|
|
|
showDetails(groupField, ka, kb);
|
|
|
}
|
|
|
+function showMsg(msg) {
|
|
|
+ document.getElementById('detailsMsg').innerHTML = "<h4>" + msg + "</h4>";
|
|
|
+ document.getElementById('details').style.display = 'block';
|
|
|
+}
|
|
|
function hideDetails() {
|
|
|
document.getElementById('details').style.display = 'none';
|
|
|
}
|
|
|
@@ -1627,7 +1630,7 @@ function toggleCheckSecond(check) {
|
|
|
'step' => V::get('step', '', $_POST),
|
|
|
'table' => $this->SOURCE['TABLE'],
|
|
|
'valueField' => $benford['conf']['valueField'],
|
|
|
- 'groupFields' => $benford['conf']['groupFields'],
|
|
|
+ 'groupField' => implode(',', $benford['conf']['groupFields']),
|
|
|
'count' => $benford['conf']['count'],
|
|
|
'L_APPOITMENT_INFO' => V::get('L_APPOITMENT_INFO', '', $_POST),
|
|
|
'A_RECORD_CREATE_AUTHOR' => User::getName(),
|