function vettoreInsert ($newValue) { $table = 'vettor'; $columns=array('codice','ragione_sociale','indirizzo','cap','citta','provincia','partita_iva','codice_fiscale','n_albo','descri','telefo','annota', 'adminid'); $newValue['adminid'] = $_SESSION['Login']; tableInsert($table, $columns, $newValue); }
function fae_fluxInsert($newValue) { $table = 'fae_flux'; $columns = array('filename_ori','id_tes_ref','exec_date','received_date','delivery_date','filename_son','id_SDI','filename_ret','mail_id','data','flux_status','progr_ret','flux_descri'); tableInsert($table, $columns, $newValue); }
if ( substr($newValue['val'],0,4)!="http" ) { $newValue['val'] = "http://".$newValue['val']; } tableUpdate($table, $columns, $codice, $newValue); header("Location: ".$form['ritorno']); exit; } else { // inserimento $table = 'company_config'; $columns = array( 'description','var','val' ); $newValue['description'] = $_POST['description']; $newValue['var'] = "ruburl"; $newValue['val'] = $_POST['val']; if ( substr($newValue['val'],0,4)!="http" ) { $newValue['val'] = "http://".$newValue['val']; } tableInsert($table, $columns, $newValue); header("Location: report_ruburl.php"); exit; } } } } elseif ((!isset($_POST['Update'])) and (isset($_GET['Update']))) { //se e' il primo accesso per UPDATE $form['ritorno'] = $_SERVER['HTTP_REFERER']; $form['hidden_req']=''; $rub = gaz_dbi_get_row($gTables['company_config'],'id',intval($_GET['id'])); $form['id'] = $rub['id']; $form['description'] = $rub['description']; $form['val'] = $rub['val']; } elseif (!isset($_POST['Insert'])) { //se e' il primo accesso per INSERT $form['ritorno'] = $_SERVER['HTTP_REFERER']; $form['hidden_req']='';
function movmagInsert($newValue) { $table = 'movmag'; $columns = array('caumag', 'operat', 'datreg', 'tipdoc', 'desdoc', 'datdoc', 'clfoco', 'scochi', 'id_rif', 'artico', 'quanti', 'prezzo', 'scorig', 'status', 'adminid'); $newValue['adminid'] = $_SESSION['Login']; tableInsert($table, $columns, $newValue); }
function bodytextInsert ($newValue) { $table = 'body_text'; $columns = array('table_name_ref','id_ref','body_text','lang_id'); tableInsert($table, $columns, $newValue); }
function company_dataInsert ($newValue) { $table = 'company_data'; $columns = array('description','var','data','ref'); tableInsert($table, $columns, $newValue); }