gest366/modules/ms_cespiti/add.php

35 lines
1.1 KiB
PHP
Raw Normal View History

2021-02-24 20:40:04 +00:00
<?php
include_once __DIR__.'/../../core.php';
?>
<form action="editor.php?id_module=$id_module$" method="post">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="dir" value="<?php echo $dir ?>">
<div class="row">
<div class="col-md-4">
{[ "type": "text", "label": "Numero", "name": "numero", "required": 1, "class": "text-center", "value": "", "extra": "" ]}
</div>
<div class="col-md-6">
{[ "type": "text", "label": "Descrizione", "name": "descrizione", "required": 1, "class": "text-center", "value": "", "extra": "" ]}
</div>
<div class="col-md-6">
{[ "type": "text", "label": "Data", "name": "data", "required": 1, "class": "datepicker text-center", "value": "<?php echo date('d/m/Y') ?>", "extra": "" ]}
</div>
</div>
<button type="submit" class="btn btn-primary pull-right"><i class="fa fa-plus"></i> Inserisci</button>
<div class="clearfix"></div>
</form>
<script>
$(document).ready( function(){
$('.datepicker').datepicker();
});
</script>