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 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); // 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); $maxRows_rsAccessori = 3; $pageNum_rsAccessori = 0; if (isset($_GET['pageNum_rsAccessori'])) { $pageNum_rsAccessori = $_GET['pageNum_rsAccessori']; } $startRow_rsAccessori = $pageNum_rsAccessori * $maxRows_rsAccessori; $colname_rsAccessori = "1"; if (isset($_SESSION['idLanguage'])) { $colname_rsAccessori = $_SESSION['idLanguage']; } mysql_select_db($database_database, $database); $query_rsAccessori = sprintf("SELECT accessori.*, accessori_details.* FROM accessori JOIN accessori_details ON accessori_details.idaccessori_details = accessori.id_accessori WHERE language_details = %s ORDER BY order_accessori ASC", GetSQLValueString($colname_rsAccessori, "int")); $query_limit_rsAccessori = sprintf("%s LIMIT %d, %d", $query_rsAccessori, $startRow_rsAccessori, $maxRows_rsAccessori); $rsAccessori = mysql_query($query_limit_rsAccessori, $database) or die(mysql_error()); $row_rsAccessori = mysql_fetch_assoc($rsAccessori); if (isset($_GET['totalRows_rsAccessori'])) { $totalRows_rsAccessori = $_GET['totalRows_rsAccessori']; } else { $all_rsAccessori = mysql_query($query_rsAccessori); $totalRows_rsAccessori = mysql_num_rows($all_rsAccessori); } $totalPages_rsAccessori = ceil($totalRows_rsAccessori/$maxRows_rsAccessori)-1; $queryString_rsAccessori = ""; if (!empty($_SERVER['QUERY_STRING'])) { $params = explode("&", $_SERVER['QUERY_STRING']); $newParams = array(); foreach ($params as $param) { if (stristr($param, "pageNum_rsAccessori") == false && stristr($param, "totalRows_rsAccessori") == false) { array_push($newParams, $param); } } if (count($newParams) != 0) { $queryString_rsAccessori = "&" . htmlentities(implode("&", $newParams)); } } $queryString_rsAccessori = sprintf("&totalRows_rsAccessori=%d%s", $totalRows_rsAccessori, $queryString_rsAccessori); // 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 :::::::::::.................................................
0 ) { ?>
:: ::

...

MORE

 
0) { // Show if not first page ?> "> 0) { // Show if not first page ?> "> "> ">
spacer Ci hanno scelto
   
 
ok

 

Visualizza il carrello