"") { $_GET['Page'] = (get_magic_quotes_gpc()) ? $_GET['Page'] : addslashes($_GET['Page']); } else { $_GET['Page']="0"; //預設去第一頁 } $query_template = sprintf("SELECT * FROM %s_SiteMap WHERE Page=%s and Display='Y' ",$Table_ID, GetSQLValueString($_GET['Page'], "text") ); $template = mysqli_query($MySQL,$query_template) or die(mysqli_error()); $row_template = mysqli_fetch_assoc($template); //判斷有無轉址設定 if($row_template['TP9']<>"") { $_GET['Page']=$row_template['TP9']; $query_template = sprintf("SELECT * FROM %s_SiteMap WHERE Page=%s ",$Table_ID, GetSQLValueString($_GET['Page'], "text") ); $template = mysqli_query($MySQL,$query_template) or die(mysqli_error()); $row_template = mysqli_fetch_assoc($template); } $totalRows_template = mysqli_num_rows($template); $Title=$row_template['Title']; // 供 WebClick 使用 $Topic=$row_template['Topic']; // 供 WebClick 使用 $ClickType="index.php"; // 供 WebClick 使用 //echo $query_template."
"; // end 撈版型的 SQL if($totalRows_template==0){ echo "找不到網頁,請確認您的網址正確"; exit; } //Google 點擊統計 //撈configure的SQL $query_Configure = "SELECT * FROM ".$Table_ID."_Configure WHERE item = 'GoogleAnalytics'"; $Configure = mysqli_query($MySQL,$query_Configure) or die(mysqli_error()); $row_Configure = mysqli_fetch_assoc($Configure); $GoogleAnalytics= $row_Configure['value']; //撈GoogleMapKey 的SQL $query_Configure = "SELECT * FROM ".$Table_ID."_Configure WHERE item = 'GoogleMapKey'"; $Configure = mysqli_query($MySQL,$query_Configure) or die(mysqli_error()); $row_Configure = mysqli_fetch_assoc($Configure); $GoogleMapKey= $row_Configure['value']; //SEO 關鍵字 //撈KeyWord的SQL $query_Configure = "SELECT * FROM ".$Table_ID."_Configure WHERE item = 'KeyWord'"; $Configure = mysqli_query($MySQL,$query_Configure) or die(mysqli_error()); $row_Configure = mysqli_fetch_assoc($Configure); $KeyWord= $row_Configure['value']; //撈客戶的SQL $query_Configure = "SELECT * FROM ".$Table_ID."_Configure WHERE item = 'CustomerName'"; $Configure = mysqli_query($MySQL,$query_Configure) or die(mysqli_error()); $row_Configure = mysqli_fetch_assoc($Configure); $CustomerName= $row_Configure['value']; //撈客戶的SQL $query_Configure = "SELECT * FROM ".$Table_ID."_Configure WHERE item = 'description'"; $Configure = mysqli_query($MySQL,$query_Configure) or die(mysqli_error()); $row_Configure = mysqli_fetch_assoc($Configure); $description= $row_Configure['value']; ?>