1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-03-01 09:47:56 +01:00

Aggiornamento id dei form principali

This commit is contained in:
Thomas Zilio 2018-02-23 16:04:50 +01:00
parent 3c166cbafb
commit f09b0ea070
57 changed files with 77 additions and 77 deletions

View File

@ -10,7 +10,7 @@ if (get('tipoanagrafica') != '') {
}
echo '
<form action="editor.php?id_module=$id_module$" method="post">
<form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -24,7 +24,7 @@ if (!$cliente) {
}
?>
<form action="" method="post" role="form">
<form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -4,7 +4,7 @@ include_once __DIR__.'/../../core.php';
unset($_SESSION['superselect']['id_categoria']);
?><form action="editor.php?id_module=$id_module$" method="post" id="add_form">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">
@ -36,10 +36,10 @@ unset($_SESSION['superselect']['id_categoria']);
<script>
$(document).ready(function () {
var sub = $('#add_form').find('#subcategoria_add');
var sub = $('#add-form').find('#subcategoria_add');
var original = sub.parent().find(".input-group-addon button").data("href");
$('#add_form').find('#categoria').change( function(){
$('#add-form').find('#categoria').change( function(){
session_set('superselect,id_categoria', $(this).val(), 0);
sub.selectReset();

View File

@ -4,7 +4,7 @@ include_once __DIR__.'/../../core.php';
$_SESSION['superselect']['id_categoria'] = $records[0]['id_categoria'];
?><form action="" method="post" role="form" enctype="multipart/form-data">
?><form action="" method="post" id="edit-form" enctype="multipart/form-data">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -1,7 +1,7 @@
<?php
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="" method="post" role="form">
?><form action="" method="post" id="edit-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; ?>">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="" method="post" role="form">
?><form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -12,7 +12,7 @@ if (isset($id_record)) {
if (isset($id_record)) {
echo '&id_record='.$id_record;
}
?>" method="post">
?>" method="post" id="add-form">
<input type="hidden" name="backto" value="record-edit">
<?php

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="" method="post" role="form">
?><form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -1,7 +1,7 @@
<?php
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -1,7 +1,7 @@
<?php
include_once __DIR__.'/../../core.php';
?><form action="" method="post" role="form">
?><form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -7,7 +7,7 @@ $_SESSION['superselect']['idanagrafica'] = $records[0]['idanagrafica'];
?><script src="<?php echo $rootdir; ?>/modules/contratti/js/contratti_helper.js"></script>
<form action="" method="post" role="form">
<form action="" method="post" id="edit-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; ?>">

View File

@ -20,7 +20,7 @@ if ($module['name'] == 'Ddt di vendita') {
$tipo_anagrafica = tr('Fornitore');
}
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="dir" value="<?php echo $dir; ?>">

View File

@ -11,7 +11,7 @@ if ($module['name'] == 'Ddt di vendita') {
}
?>
<form action="" method="post" role="form">
<form action="" method="post" id="edit-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; ?>">

View File

@ -3,7 +3,7 @@
include_once __DIR__.'/../../core.php';
?>
<form action="editor.php?id_module=$id_module$" method="post">
<form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -6,7 +6,7 @@ echo '
<script src="'.$rootdir.'/assets/dist/js/ckeditor/ckeditor.js"></script>';
?>
<form action="" method="post" id="add-form">
<form action="" method="post" id="edit-form">
<input type="hidden" name="op" value="update">
<input type="hidden" name="backto" value="record-edit">

View File

@ -13,7 +13,7 @@ if ($module['name'] == 'Fatture di vendita') {
}
?>
<form action="editor.php?id_module=$id_module$" method="post">
<form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="dir" value="<?php echo $dir; ?>">

View File

@ -10,7 +10,7 @@ $_SESSION['superselect']['idanagrafica'] = $records[0]['idanagrafica'];
$_SESSION['superselect']['ddt'] = $dir;
?>
<form action="" method="post" role="form">
<form action="" method="post" id="edit-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; ?>">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-list">

View File

@ -25,7 +25,7 @@ if (empty($id_record)) {
</table>';
} else {
?>
<form action="" method="post" role="form" enctype="multipart/form-data">
<form action="" method="post" id="edit-form" enctype="multipart/form-data">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -3,7 +3,7 @@
include_once __DIR__.'/../../core.php';
echo '
<form action="" method="post" role="form">
<form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -100,7 +100,7 @@ if (empty($new_codice)) {
?>
<form action="editor.php?id_module=$id_module$" method="post" id="add-form" onsubmit="if($(this).parsley().validate()) { return add_intervento(); }">
<form action="" method="post" id="add-form" id="add-form" onsubmit="if($(this).parsley().validate()) { return add_intervento(); }">
<input type="hidden" name="op" value="add">
<input type="hidden" name="ref" value="<?php echo $_GET['ref']; ?>">
<input type="hidden" name="backto" value="record-edit">

View File

@ -5,7 +5,7 @@ include_once __DIR__.'/../../core.php';
unset($_SESSION['superselect']['idanagrafica']);
$_SESSION['superselect']['idanagrafica'] = $records[0]['idanagrafica'];
?><form action="" method="post">
?><form action="" method="post" id="edit-form">
<input type="hidden" name="op" value="update">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="id_record" value="<?php echo $id_record; ?>">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="" method="post" role="form">
?><form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="" method="post" role="form">
?><form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="" method="post" role="form">
?><form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="" method="post" role="form" enctype="multipart/form-data">
?><form action="" method="post" id="edit-form" enctype="multipart/form-data">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">
<input type="hidden" name="matricola" value="<?php echo $id_record; ?>">

View File

@ -16,7 +16,7 @@ if ($module['name'] == 'Ordini cliente') {
$ajax = 'fornitori';
}
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="dir" value="<?php echo $dir; ?>">

View File

@ -9,7 +9,7 @@ if ($module['name'] == 'Ordini cliente') {
$dir = 'uscita';
}
?><form action="" method="post" role="form">
?><form action="" method="post" id="edit-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; ?>">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="" method="post" role="form" id="check">
?><form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">
@ -180,7 +180,7 @@ $(document).ready(function(){
}
});
$('#check').submit(function(event) {
$('#edit-form').submit(function(event) {
var tot = 0;
$(this).find('[id*=percentuale]').each(function(){

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -1,7 +1,7 @@
<?php
include_once __DIR__.'/../../core.php';
?><form action="" method="post" role="form">
?><form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -4,7 +4,7 @@ include_once __DIR__.'/../../core.php';
unset($_SESSION['superselect']['idanagrafica']);
$_SESSION['superselect']['idanagrafica'] = $records[0]['idanagrafica'];
?><form action="" method="post" role="form">
?><form action="" method="post" id="edit-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; ?>">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="iddocumento" value="<?php echo get('iddocumento'); ?>">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="" method="post" role="form">
?><form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -1,42 +1,42 @@
<form action="editor.php?id_module=$id_module$" method="post">
<form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">
<div class="row">
<div class="col-md-6">
{[ "type": "text", "label": "Inserisci un nome per questo sezionale:", "name": "nome", "required": 1, "class": "", "value": "", "extra": "" ]}
</div>
<div class="col-md-6">
{[ "type": "text", "label": "Maschera", "name": "maschera", "required": 1, "class": "", "value": "####YYYY", "extra": "" ]}
</div>
</div>
<div class="row">
<div class="col-md-6">
{[ "type": "select", "label": "Documenti", "name": "dir", "required": 1, "class": "", "values": "list=\"entrata\": \"Documenti di vendita\", \"uscita\": \"Documenti di acquisto\"", "value": "", "extra": "" ]}
</div>
</div>
<div class="col-md-6">
{[ "type": "select", "label": "Magazzino", "name": "idautomezzo", "required": 0, "class": "", "values": "query=SELECT id, nome AS descrizione FROM dt_automezzi", "value": "", "extra": "" ]}
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
{[ "type": "textarea", "label": "Note", "name": "note", "required": 0, "class": "", "value": "", "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>

View File

@ -1,4 +1,4 @@
<form action="" method="post" role="form">
<form action="" method="post" id="edit-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; ?>">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -3,7 +3,7 @@
include_once __DIR__.'/../../core.php';
?>
<form action="" method="post" id="add-form">
<form action="" method="post" id="edit-form">
<input type="hidden" name="op" value="update">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?>
<form action="" method="post">
<form action="" method="post" id="edit-form">
<input type="hidden" name="op" value="update">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="id_record" value="<?php echo $id_record; ?>">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="" method="post">
?><form action="" method="post" id="edit-form">
<input type="hidden" name="op" value="update">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="id_record" value="<?php echo $id_record; ?>">

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php';
?><form action="editor.php?id_module=$id_module$" method="post">
?><form action="" method="post" id="add-form">
<input type="hidden" name="op" value="add">
<input type="hidden" name="backto" value="record-edit">

View File

@ -3,7 +3,7 @@
include_once __DIR__.'/../../core.php';
?>
<form action="" method="post">
<form action="" method="post" id="edit-form">
<input type="hidden" name="op" value="update">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="id_record" value="<?php echo $id_record; ?>">