예제 #1
0
function vettoreUpdate ($codice,$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'];
    tableUpdate($table, $columns, $codice, $newValue);
}
예제 #2
0
function provvigioniUpdate ($codice, $newValue)
{
    $table = 'provvigioni';
    $columns = array('id_agente','id_provvigione','cod_articolo','cod_catmer','percentuale');
    $newValue['adminid'] = $_SESSION['Login'];
    tableUpdate($table, $columns, $codice, $newValue);
}
예제 #3
0
          'descri'=>'SCONTRINI '.$ecr['descri'],
          'datreg'=>$k,
          'seziva'=>$ecr['seziva'],
          'id_doc'=>0,
          'protoc'=>$n_prot,
          'numdoc'=>$n_docu,
          'datdoc'=>$k,
          'clfoco'=>0,
          'regiva'=>4,
          'operat'=>1
          );
 tesmovInsert($newValue);
 $tes_id = gaz_dbi_last_id();
 tableUpdate('tesdoc',
             array('id_con'),
             array('id_contract', $ecr['id_cash'].'\' AND datemi = \''.substr($k,0,4).substr($k,5,2).substr($k,8,2)),
             array('id_con'=>$tes_id)
             );
 //inserisco i righi iva nel db
 foreach($cast_vat[$k] as $key=>$vv) {
     $vat = gaz_dbi_get_row($gTables['aliiva'],'codice',$key);
     //aggiungo i valori mancanti all'array
     $vv['tipiva']=$vat['tipiva'];
     $vv['codiva']=$key;
     $vv['id_tes']=$tes_id;
     rigmoiInsert($vv);
 }
 //inserisco i righi contabili nel db
 foreach($cast_acc[$k] as $acc_k=>$acc_v) {
        foreach($acc_v as $da_k=>$da_v) {
                rigmocInsert(array('id_tes'=>$tes_id,'darave'=>$da_k,'codcon'=>$acc_k,'import'=>$da_v));
예제 #4
0
   $form['description'] = $_POST['description'];
	$form['val'] = $_POST['indirizzo'];

   if (isset($_POST['ins'])) {   // Se viene inviata la richiesta di conferma totale ...
      if ($msg == "") {// nessun errore
         if ($toDo == 'update') {  // modifica
            $codice = array('id',$form['id']);
				$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'];
				}
				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;
         }
예제 #5
0
function rigmocUpdate($id, $newValue)
{
    $columns = array('id_tes','darave','codcon','import');
    tableUpdate('rigmoc', $columns, $id, $newValue);
}
예제 #6
0
function movmagUpdate($codice, $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'];
    tableUpdate($table, $columns, $codice, $newValue);
}
예제 #7
0
<?php

include "dbquery.php";
if (!empty($_POST['user']) && !empty($_POST['pass']) && !empty($_POST['fullname']) && !empty($_POST['email']) && !empty($_POST['desig'])) {
    $encpass = md5($_POST['pass']);
    tableUpdate($_POST['user'], $encpass, $_POST['fullname'], $_POST['email'], $_POST['desig']);
} else {
    echo "<script>alert('Empty Fields');</script>";
}
예제 #8
0
function bodytextUpdate ($codice, $newValue)
{
    $table = 'body_text';
    $columns = array('table_name_ref','id_ref','body_text','lang_id');
    tableUpdate($table, $columns, $codice, $newValue);
}
예제 #9
0
function company_dataUpdate ($codice, $newValue)
{
    $table = 'company_data';
    $columns = array('description','var','data','ref');
    tableUpdate($table, $columns, $codice, $newValue);
}