This commit is contained in:
Luca 2018-02-28 23:44:30 +01:00
parent 68649a8b8f
commit f1b0c2e2be
8 changed files with 11 additions and 13 deletions

View File

@ -568,7 +568,4 @@ input.small-width {
min-height: 140px;
margin: 5%;
}
}
.bound{
cursor: pointer;
}

View File

@ -3,7 +3,7 @@ $(document).ready(function () {
$('[data-href]').not('.ask, .bound').click(function () {
launch_modal($(this).data('title'), $(this).data('href'), 1, $(this).data('target'));
});
$('[data-href]').not('.ask, .bound').addClass('bound');
$('[data-href]').not('.ask, .bound').addClass('bound clickable');
// Tooltip
$('.tip').not('.tooltipstered').each(function () {

View File

@ -4,7 +4,7 @@ include_once __DIR__.'/../../core.php';
switch (post('op')) {
case 'import':
$i = 0;
foreach ($data as $key => $value) {
if (!empty($value)){

View File

@ -48,7 +48,7 @@ switch (post('op')) {
// Richiamo delle operazioni specifiche
include $imports[$id_record]['import'];
$_SESSION['infos'][] = tr('Importazione completata. '.$i.' righe processate.');
$_SESSION['infos'][] = tr('Importazione completata. '.count($csv).' righe processate.');
break;
}

View File

@ -96,11 +96,12 @@ if (empty($id_record)) {
</form>';
?>
<script>
$( document ).ready(function() {
$(document).ready(function(){
<?php if ($first_row){ ?>
$('#first_row').prop('checked', true);
$('#first_row').prop('checked', false);
<?php } ?>
)};
$('#save').html( "<i class='fa fa-flag-checkered'></i> <?= 'Avvia importazione' ?> ");
});
</script>
<?php
}

View File

@ -99,7 +99,7 @@ $_SESSION['superselect']['idanagrafica'] = $records[0]['idanagrafica'];
<!-- RIGA 3 -->
<div class="row">
<div class="col-md-3">
{[ "type": "span", "label": "<?php echo tr('Codice'); ?>", "name": "codice", "value": "$codice$", "extra": "<?php echo $readonly; ?>" ]}
{[ "type": "span", "label": "<?php echo tr('Numero'); ?>", "name": "codice", "value": "$codice$", "extra": "<?php echo $readonly; ?>" ]}
</div>
<div class="col-md-3">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
$report_name = 'contratto_'.$id_record.'.pdf';
$report_name = sanitizeFilename('contratto_'.$records[0]['numero'].'.pdf');
$autofill = [
'count' => 0, // Conteggio delle righe

View File

@ -4,7 +4,7 @@ include_once __DIR__.'/../../core.php';
include_once $docroot.'/modules/interventi/modutil.php';
$report_name = 'contratto_'.$id_record.'_cons.pdf';
$report_name = sanitizeFilename('contratto_'.$records[0]['numero'].'_cons.pdf');
echo '
<div class="row">
@ -371,7 +371,7 @@ if (!empty($interventi)) {
echo '
<br><small class="text-muted">'.tr('Intervento num. _NUM_ del _DATE_', [
'_NUM_' => $int['id'],
'_NUM_' => $int['codice'],
'_DATE_' => Translator::dateToLocale($int['inizio']),
]).'.</small>';