查看文件: travel118.php
大小: 2.67 KB
类型: application/octet-stream
<?php require_once('../Connections/BE2.php'); ?> <? $co1=isset($_GET['menu'])?$_GET['menu']:''; $e=explode('-',$co1); $county=$e[0]; $city1=array("台北市","新北市","基隆市","桃園市","新竹市","新竹縣","宜蘭縣","臺中市","苗栗縣","彰化縣","南投縣","雲林縣"); $city2=array("高雄市","臺南市","嘉義市","嘉義縣","屏東縣","花蓮縣","臺東縣","澎湖縣","金門縣","連江縣"); $citylink=array("台北市","新北市","基隆市","桃園市","新竹市","新竹縣","宜蘭縣","臺中市","苗栗縣","彰化縣","南投縣","雲林縣", "高雄市","臺南市","嘉義市","嘉義縣","屏東縣","花蓮縣","臺東縣","澎湖縣","金門縣","連江縣"); $cityname=array("","台北市","新北市","基隆市","桃園市","新竹市","新竹縣","宜蘭縣","臺中市","苗栗縣","彰化縣","南投縣","雲林縣", "高雄市","臺南市","嘉義市","嘉義縣","屏東縣","花蓮縣","臺東縣","澎湖縣","金門縣","連江縣" ); $cityimg=array("","taipei","newtaipei","keelung","taoyuan","hsinchucity","hsinchu","yilan","taichuan","miaoli","changhua","nantou","yunlin", "kaohsiung","tainan","chiayicity","chiayi","pingtung","hualien","taitung","penghu","kinmen","lienchiang"); mysql_select_db($database_BE2, $BE2); $query_Rt3 = "SELECT * FROM travel where tbc='旅遊網' order by tbx,tb0" ; $Rt3 = mysql_query($query_Rt3, $BE2) or die(mysql_error()); $row_Rt3 = mysql_fetch_assoc($Rt3); $totalRows_Rt3 = mysql_num_rows($Rt3); $title=""; $i=0; ?> <style> #divx{ // border: 1px solid black; width: 100%; margin-bottom: 12px; overflow-x: auto; //hidden scroll visible auto } </style> <div class="container"> <div class="row no-gutters align-items-center" style="margin-top:100px"> <? for($i=1;$i<22;$i++){ ?> <div class="col g-mr-10"> <a href="<?=$citylink[$i]?>.html"> <img class="img-fluid" src="cityimg/<?= $cityimg[$i] ?>.jpg" width="100%" title="<?= $cityname[$i] ?>"/> </a> </div> <? if($i%5==0){ echo '<div class="clearfix"> </div></div> <div class="row no-gutters align-items-center" style="margin-top:10px">' ; } } ?> <div class="clearfix"> </div> <? /* for($i=19;$i<22;$i++){ ?> <div class="col g-mr-10"> <a href="<?=$citylink[$i]?>.html"> <img class="img-fluid" src="cityimg/<?= $cityimg[$i] ?>.jpg" width="100%" title="<?= $cityname[$i] ?>"/> </a> </div> <? } */ ?> </div> </div> <div class="clearfix"> </div> <?php mysql_free_result($Rt3); ?>
保存
取消
返回文件列表