|
|
@@ -1218,7 +1218,7 @@ function validateCompany(source) {
|
|
|
} catch (Exception $e) {
|
|
|
$showDetails = $e->getMessage();
|
|
|
}
|
|
|
- return $showDetails;
|
|
|
+ return htmlentities($showDetails);
|
|
|
};
|
|
|
|
|
|
for ($ka = 1; $ka < 10; $ka++) {
|
|
|
@@ -1237,7 +1237,7 @@ function validateCompany(source) {
|
|
|
<td style="text-align:right"><?=$number_format(round(Benford::benford($ka) * 100, 3))?></td>
|
|
|
<td style="text-align:right"><?=$odchylenie?></td>
|
|
|
<td<?=$va['correct'] ? '' : ' name="firstStageDesc" data-ka="' . $ka . '"'?> nowrap><?=$va['correct'] ? 'Tak' : 'Nie (rozwiń)'?></td>
|
|
|
- <td<?=$va['correct'] ? '>' : ' onClick="showAlert(\''. htmlentities($showDetails, ENT_QUOTES) .'\')"><span class="glyphicon glyphicon-search"></span>'?></td>
|
|
|
+ <td<?=$va['correct'] ? '>' : ' onClick="showAlert(\''. $showDetails .'\')"><span class="glyphicon glyphicon-search"></span>'?></td>
|
|
|
<?php if($edit):?>
|
|
|
<td<?=$va['correct'] ? '' : ' onClick="_click(\'checkFirstStage_' . $ka . '\')"'?>><input type="checkbox" <?=$va['correct'] ? 'disabled' : 'checked id="checkFirstStage_' . $ka . '" name="checkFirstStage[]" value="' . $ka . '" onClick="toggleCheckFirst(this)"'?>></td>
|
|
|
<?php endif;?>
|
|
|
@@ -1260,7 +1260,7 @@ function validateCompany(source) {
|
|
|
<td style="text-align:right"><?=$number_format(round(Benford::benford($ka * 10 + $kb) * 100, 3))?></td>
|
|
|
<td style="text-align:right"><?=$odchylenie?></td>
|
|
|
<td><?=$vb['correct'] ? 'Tak' : 'Nie'?></td>
|
|
|
- <td<?=$vb['correct'] ? '>' : ' style="cursor:pointer;" onClick="showAlert(\''. htmlentities($showDetails, ENT_QUOTES) .'\')"><span class="glyphicon glyphicon-search"></span>'?></td>
|
|
|
+ <td<?=$vb['correct'] ? '>' : ' style="cursor:pointer;" onClick="showAlert(\''. $showDetails .'\')"><span class="glyphicon glyphicon-search"></span>'?></td>
|
|
|
<?php if($edit):?>
|
|
|
<td<?=$vb['correct'] ? '' : ' style="cursor:pointer;" onClick="_click(\'checkSecondStage_' . $ka . $kb . '\')"'?>><input type="checkbox"<?=$vb['correct'] ?: ' checked id="checkSecondStage_' . $ka . $kb . '" name="checkSecondStage[]" value="' . $ka . $kb . '" onClick="toggleCheckSecond(this)"'?> disabled></td>
|
|
|
<?php endif;?>
|
|
|
@@ -1285,7 +1285,7 @@ function validateCompany(source) {
|
|
|
#benford .tr-stage1-green,.tr-stage2-green {color:#008800;}
|
|
|
#benford .tr-stage1-red,.tr-stage2-red {color:#ff0000;}
|
|
|
body { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;}
|
|
|
-td {font-size: 12px;}
|
|
|
+td {font-size: 12px; font-color: auto;}
|
|
|
::selection {background: transparent;}
|
|
|
#alert {display:none; position: fixed; left: 0; top: 0; width: 100%; height: 100%; text-align: center; z-index: 1000; background-color: rgba(0,0,0,0.5);}
|
|
|
#alert div {width: 500px; height: auto; margin: 200px auto; background: #fff; padding: 10px; text-align: center; overflow: hidden;}
|