Fix minori

This commit is contained in:
Luca 2018-10-30 22:19:15 +01:00
parent c9e5d86dc3
commit 7cbaa89bae
5 changed files with 25 additions and 15 deletions

View File

@ -99,8 +99,9 @@ foreach ($settings as $name => $values) {
$description = str_replace(['>', '<'], '', $description);
}
$description = tr('Valore consigliato: _VALUE_', [
$description = tr('Valore consigliato: _VALUE_ (Valore attuale: _INI_)', [
'_VALUE_' => $description,
'_INI_' => ini_get($name),
]);
}

View File

@ -87,7 +87,7 @@ function search(button) {
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">
'.tr('Carica un aggiornamento').' <span class="tip" title="'.tr('Form di caricamento per aggiornamenti del gestionale e innesti di moduli e plugin').'"><i class="fa fa-question-circle-o"></i></span>
'.tr('Carica un aggiornamento').' <span class="tip" title="'.tr('Form di caricamento aggiornamenti del gestionale e innesti di moduli e plugin').'"><i class="fa fa-question-circle-o"></i></span>
</h3>
</div>
<div class="box-body">
@ -110,7 +110,7 @@ function search(button) {
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">
'.tr('Ricerca aggiornamenti').' <span class="tip" title="'.tr('Controllo automatica sulla presenza di aggiornamenti del gestionale').'"><i class="fa fa-question-circle-o"></i></span>
'.tr('Ricerca aggiornamenti').' <span class="tip" title="'.tr('Controllo automatico della presenza di aggiornamenti per il gestionale').'"><i class="fa fa-question-circle-o"></i></span>
</h3>
</div>
<div class="box-body" id="update-search">

View File

@ -5,8 +5,8 @@ include_once __DIR__.'/../../core.php';
switch (post('op')) {
case 'add':
$dbo->insert('zz_documenti', [
'idcategoria' => post('nome'),
'nome' => post('idcategoria'),
'idcategoria' => post('idcategoria'),
'nome' => post('nome'),
'data' => post('data'),
]);
$id_record = $dbo->last_inserted_id();
@ -17,8 +17,8 @@ switch (post('op')) {
case 'update':
$dbo->update('zz_documenti', [
'idcategoria' => post('nome'),
'nome' => post('idcategoria'),
'idcategoria' => post('idcategoria'),
'nome' => post('nome'),
'data' => post('data'),
], ['id' => $id_record]);

View File

@ -516,7 +516,7 @@ $(document).ready(function(){
});
});
</script>';
}
// Fix apertura non corrisposta di un tag div
echo '</div>';
}

View File

@ -188,16 +188,25 @@ class FileManager implements ManagerInterface
<script>
$(document).ready(function(){
$("#'.$attachment_id.' #categoria").autocomplete({
$("#'.$attachment_id.' #categoria").autocomplete({';
$first = true;
foreach ($categories as $category) {
if (!empty($category['category'])){
if ($first)
$result .= '
source: [';
foreach ($categories as $category) {
$result .= '
"'.$category['category'].'",';
}
if ($first)
$result .= '
],';
$first = false;
}
}
$result .= '
],
minLength: 0
}).focus(function() {
$(this).autocomplete("search", $(this).val())