2018-02-19 10:52:42 +01:00
|
|
|
<?php
|
|
|
|
|
2018-06-23 18:35:08 +02:00
|
|
|
$result['id'] = isset($result['id']) ? $result['id'] : null;
|
|
|
|
|
2018-02-19 10:52:42 +01:00
|
|
|
/*
|
|
|
|
Form di inserimento riga documento
|
|
|
|
*/
|
|
|
|
echo '
|
|
|
|
<form action="'.ROOTDIR.'/editor.php?id_module='.$id_module.'&id_record='.$id_record.'" method="post">
|
2018-08-30 18:20:30 +02:00
|
|
|
<input type="hidden" name="id_plugin" value="'.$id_plugin.'">
|
|
|
|
<input type="hidden" name="hash" value="tab_'.$id_plugin.'">
|
2018-02-19 10:52:42 +01:00
|
|
|
<input type="hidden" name="backto" value="record-edit">
|
2018-08-30 18:20:30 +02:00
|
|
|
|
|
|
|
<input type="hidden" name="op" value="'.$options['op'].'">
|
2018-02-19 10:52:42 +01:00
|
|
|
<input type="hidden" name="idriga" value="'.$result['id'].'">
|
|
|
|
<input type="hidden" name="dir" value="'.$options['dir'].'">';
|
|
|
|
|
|
|
|
echo '
|
|
|
|
|response|';
|
|
|
|
|
2018-02-19 17:57:27 +01:00
|
|
|
$button = $options['action'] == 'add' ? tr('Aggiungi') : tr('Modifica');
|
|
|
|
$icon = $options['action'] == 'add' ? 'fa-plus' : 'fa-pencil';
|
2018-02-19 11:25:56 +01:00
|
|
|
|
2018-02-19 10:52:42 +01:00
|
|
|
echo '
|
|
|
|
|
|
|
|
<!-- PULSANTI -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 text-right">
|
2018-02-19 11:25:56 +01:00
|
|
|
<button type="submit" class="btn btn-primary pull-right"><i class="fa '.$icon.'"></i> '.$button.'</button>
|
2018-02-19 10:52:42 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>';
|
|
|
|
|
|
|
|
echo '
|
|
|
|
<script src="'.ROOTDIR.'/lib/init.js"></script>';
|