0 ) $redirect = "registrati.php?op=2"; if( $retype != $password ) $redirect = "registrati.php?op=3"; //start Trigger_Custom trigger function Trigger_Custom(&$tNG) { } //end Trigger_Custom trigger if( !isset($_SESSION['idLanguage']) ) $_SESSION['idLanguage'] = 1; $colname_rsNews = "1"; if (isset($_SESSION['idLanguage'])) { $colname_rsNews = $_SESSION['idLanguage']; } mysql_select_db($database_database, $database); $query_rsNews = sprintf("SELECT news.*, news_details.* FROM news JOIN news_details ON news.id_news = news_details.idnews_newsdetails WHERE language_newsdetails = %s ORDER BY news.data_news DESC LIMIT 3", GetSQLValueString($colname_rsNews, "int")); $rsNews = mysql_query($query_rsNews, $database) or die(mysql_error()); $row_rsNews = mysql_fetch_assoc($rsNews); $totalRows_rsNews = mysql_num_rows($rsNews);$colname_rsNews = "-1"; if (isset($_SESSION['idLanguage'])) { $colname_rsNews = $_SESSION['idLanguage']; } mysql_select_db($database_database, $database); $query_rsNews = sprintf("SELECT news.*, news_details.* FROM news JOIN news_details ON news.id_news = news_details.idnews_newsdetails WHERE language_newsdetails = %s ORDER BY news.data_news DESC LIMIT 3", GetSQLValueString($colname_rsNews, "int")); $rsNews = mysql_query($query_rsNews, $database) or die(mysql_error()); $row_rsNews = mysql_fetch_assoc($rsNews); $totalRows_rsNews = mysql_num_rows($rsNews); // Make a logout transaction instance $logoutTransaction = new tNG_logoutTransaction($conn_database); $tNGs->addTransaction($logoutTransaction); // Register triggers $logoutTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "GET", "KT_logout_now"); $logoutTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "index.php"); // Add columns // End of logout transaction instance // Make an insert transaction instance $ins_utenti = new tNG_insert($conn_database); $tNGs->addTransaction($ins_utenti); // Register triggers $ins_utenti->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_REGISTRA"); $ins_utenti->registerTrigger("END", "Trigger_Default_Redirect", 99, $redirect); $ins_utenti->registerTrigger("STARTER", "Trigger_Custom", 50); // Add columns $ins_utenti->setTable("utenti"); $ins_utenti->addColumn("denominazione_utente", "STRING_TYPE", "POST", "denominazione_utente"); $ins_utenti->addColumn("nome_utente", "STRING_TYPE", "POST", "nome_utente"); $ins_utenti->addColumn("cognome_utente", "STRING_TYPE", "POST", "cognome_utente"); $ins_utenti->addColumn("email_utente", "STRING_TYPE", "POST", "email_utente"); $ins_utenti->addColumn("sitoweb_utente", "STRING_TYPE", "POST", "sitoweb_utente"); $ins_utenti->addColumn("indirizzo_utente", "STRING_TYPE", "POST", "indirizzo_utente"); $ins_utenti->addColumn("citta_utente", "STRING_TYPE", "POST", "citta_utente"); $ins_utenti->addColumn("cap_utente", "STRING_TYPE", "POST", "cap_utente"); $ins_utenti->addColumn("telefono_utente", "STRING_TYPE", "POST", "telefono_utente"); $ins_utenti->addColumn("cellulare_utente", "STRING_TYPE", "POST", "cellulare_utente"); $ins_utenti->addColumn("codicefiscale_utente", "STRING_TYPE", "POST", "codicefiscale_utente"); $ins_utenti->addColumn("partitaiva_utente", "STRING_TYPE", "POST", "piva_utente"); $ins_utenti->addColumn("nomelogin_utente", "STRING_TYPE", "POST", "nomeutente_utente"); $ins_utenti->addColumn("password_utente", "STRING_TYPE", "POST", "password_utente"); $ins_utenti->addColumn("datainserimento_utente", "DATE_TYPE", "VALUE", "{NOW}"); $ins_utenti->addColumn("attivo_utente", "NUMERIC_TYPE", "VALUE", "1"); $ins_utenti->addColumn("livello_utente", "NUMERIC_TYPE", "VALUE", "3"); $ins_utenti->addColumn("target_utente", "NUMERIC_TYPE", "POST", "target_utente"); $ins_utenti->addColumn("image_utente", "STRING_TYPE", "POST", "image_utente"); $ins_utenti->addColumn("scontocliente_utente", "DOUBLE_TYPE", "POST", "scontocliente_utente"); $ins_utenti->addColumn("language_utente", "NUMERIC_TYPE", "SESSION", "idLanguage", "1"); $ins_utenti->addColumn("paese_utente", "STRING_TYPE", "POST", "paese_utente"); $ins_utenti->addColumn("indirizzo2_utente", "STRING_TYPE", "POST", "indirizzo2_utente"); $ins_utenti->addColumn("italiano_utente", "NUMERIC_TYPE", "POST", "italiano_utente"); $ins_utenti->addColumn("provincia_utente", "STRING_TYPE", "POST", "provincia_utente"); $ins_utenti->setPrimaryKey("id", "NUMERIC_TYPE"); // Make a login transaction instance $loginTransaction = new tNG_login($conn_database); $tNGs->addTransaction($loginTransaction); // Register triggers $loginTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "kt_login1"); $loginTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "{kt_login_redirect}"); // Add columns $loginTransaction->addColumn("kt_login_user", "STRING_TYPE", "POST", "kt_login_user"); $loginTransaction->addColumn("kt_login_password", "STRING_TYPE", "POST", "kt_login_password"); // End of login transaction instance // Execute all the registered transactions $tNGs->executeTransactions(); // Get the transaction recordset $rscustom = $tNGs->getRecordset("custom"); $row_rscustom = mysql_fetch_assoc($rscustom); $totalRows_rscustom = mysql_num_rows($rscustom); // Get the transaction recordset $rsutenti = $tNGs->getRecordset("utenti"); $row_rsutenti = mysql_fetch_assoc($rsutenti); $totalRows_rsutenti = mysql_num_rows($rsutenti); // Show Dynamic Thumbnail $objDynamicThumb1 = new tNG_DynamicThumbnail("", "KT_thumbnail1"); $objDynamicThumb1->setFolder("gallery/news/"); $objDynamicThumb1->setRenameRule("{rsNews.image_news}"); $objDynamicThumb1->setResize(90, 0, true); $objDynamicThumb1->setWatermark(false); $colname_rsLingua = "1"; if (isset($_SESSION['idLanguage'])) { $colname_rsLingua = $_SESSION['idLanguage']; } mysql_select_db($database_database, $database); $query_rsLingua = sprintf("SELECT sitelabels_static.*, sitelabels.* FROM sitelabels_static JOIN sitelabels on sitelabels_static.key_label = sitelabels.id WHERE sitelabels_static.language_label = %s", GetSQLValueString($colname_rsLingua, "int")); $rsLingua = mysql_query($query_rsLingua, $database) or die(mysql_error()); $row_rsLingua = mysql_fetch_assoc($rsLingua); $totalRows_rsLingua = mysql_num_rows($rsLingua); // Trasformare resultSet in Array $labels = array(); for( $i = 0; $i < $totalRows_rsLingua; $i++ ) { // Array $labels[$row_rsLingua['labelname']] = $row_rsLingua['value_label']; // Go on $row_rsLingua = mysql_fetch_assoc($rsLingua); } ?> ::..FNM-MARINE....::::: Marine Diesel Engine :::::::::::.................................................
Registrazione avvenuta con successo.
     
Nomeutente e/o e-mail gią censitą.
     
I campi password e retype non coincidono.
     
:  
(*):  
(*):  
e-mail (*):  
Sito web:  
:  
2:  
:  
:  
:  
:  
:  
:  
C.F:  
P.IVA:  
(*):  
(*):  
(*):  
 
Invia registrazione
getErrorMsg(); ?>
 
 
spacer Ci hanno scelto
   
 

 

 

Visualizza il carrello
ok