118 lines
3.5 KiB
PHP
118 lines
3.5 KiB
PHP
|
<?php
|
||
|
include_once(__DIR__."/../../core.php");
|
||
|
|
||
|
?><form action="" method="post" role="form">
|
||
|
<input type="hidden" name="backto" value="record-edit">
|
||
|
<input type="hidden" name="op" value="update">
|
||
|
<input type="hidden" name="id_record" value="<?php echo $id_record ?>">
|
||
|
|
||
|
|
||
|
<div class="panel panel-<?php echo $_SESSION['profilo_pannello'] ?>">
|
||
|
<div class="clearfix"></div>
|
||
|
</br>
|
||
|
<div class="col-md-4">
|
||
|
<div class="pull-left">
|
||
|
<button type="submit" class="btn-app btn-success"><i class="fa fa-check"></i> Salva </button>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-4">
|
||
|
<div class="pull-right">
|
||
|
<div class="pull-left showcase sweet">
|
||
|
<button type="button" class="btn-app btn-danger" ><i class="fa fa-trash-o"></i> Elimina</span></button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-4">
|
||
|
|
||
|
</div>
|
||
|
<div class="clearfix"></div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="clearfix"></div>
|
||
|
|
||
|
|
||
|
<div class="panel panel-<?php echo $_SESSION['profilo_pannello'] ?>">
|
||
|
<div class="panel-heading">
|
||
|
<h3 class="panel-title">Impostazione Documento da Creare</h3>
|
||
|
</div>
|
||
|
|
||
|
<div class="panel-body">
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
{[ "type": "text", "label": "Descrizione Documento Wizard", "name": "descrizione", "required": 0, "class": "", "value": "$descrizione$", "extra": "" ]}
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-md-4">
|
||
|
{[ "type": "select", "label": "Crea Documento", "name": "iddocumento_crea", "required": 0, "class": "", "values": "query=SELECT id,descrizione FROM co_tipidocumento", "value": "$iddocumento_crea$", "extra": "" ]}
|
||
|
</div>
|
||
|
<div class="col-md-4">
|
||
|
{[ "type": "select", "label": "Stato Documento", "name": "iddocumento_stato_successivo", "required": 0, "class": "", "values": "query=SELECT id,descrizione FROM co_statidocumento", "value": "$iddocumento_stato_successivo$", "extra": "" ]}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="panel panel-<?php echo $_SESSION['profilo_pannello'] ?>">
|
||
|
<div class="panel-heading">
|
||
|
<h3 class="panel-title">Seleziona Documenti da ricercare</h3>
|
||
|
</div>
|
||
|
|
||
|
<div class="panel-body">
|
||
|
<button type="button" class="btn btn-primary" data-href="<?php echo $rootdir ?>/modules/documenti_wizard/add_tipologia.php?idtipologiawizard=<?php echo $id_record ?>&dir=<?php echo $dir ?>" data-toggle="modal" data-title="Aggiungi Tipologia" data-target="#bs-popup"><i class="fa fa-files-o"></i> Aggiungi Tipologia</a>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<div class="panel-body">
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<table class="table table-striped table-hover table-condensed">
|
||
|
<tr>
|
||
|
<th width='45%'>Documento</th>
|
||
|
<th width='20%'>Stato ricerca</th>
|
||
|
<th width='20%'>Stato sucessivo</th>
|
||
|
<th width='5%'></th>
|
||
|
</tr>
|
||
|
<?php
|
||
|
include($docroot."/modules/documenti_wizard/row-list.php");
|
||
|
?>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</form>
|
||
|
<script>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
$('.showcase.sweet button').on('click', () => {
|
||
|
swal({
|
||
|
title: 'Sei sicuro?',
|
||
|
text: "Eliminare questo elemento!",
|
||
|
type: 'warning',
|
||
|
showCancelButton: true,
|
||
|
confirmButtonColor: '#3085d6',
|
||
|
cancelButtonColor: '#d33',
|
||
|
confirmButtonText: 'Conferma!'
|
||
|
}).then((result) => {
|
||
|
if (result.value) {
|
||
|
{ $('#form-delete').submit(); }
|
||
|
}
|
||
|
})
|
||
|
})
|
||
|
|
||
|
</script>
|
||
|
<form action="" method="post" role="form" id="form-delete">
|
||
|
<input type="hidden" name="backto" value="record-list">
|
||
|
<input type="hidden" name="op" value="delete">
|
||
|
</form>
|
||
|
|