查看文件: index.php
大小: 24.25 KB
类型: application/octet-stream
<?php if (!isset($_SESSION)){ session_start(); if(!isset($_SESSION['login_memid'])){ $_SESSION['login_memid']=''; $_SESSION['login_mobile']=''; $_SESSION['login_memname']=''; $_SESSION['login_coid']=''; } } require_once('./Connections/BE2.php'); ?> <?php if(isset($_GET['recom'])){ $recomt=3; setcookie("scode", $_GET['recom'], time()+3600, "/"); } $GLOBALS["GLOB"]=0; //取得全域變數 $homebaneer=true; $iconpic=array("","","hot.gif","new.png"); $menu1=isset($_GET['menu'])?$_GET['menu']:'index'; $menu1=str_replace('.html','',$menu1); $exmenu=explode("-",htmlspecialchars($menu1)); $menu=$exmenu[0]; $sqlmenu=$menu; $webimagepath = "/products/"; $extitle= '天空商城-skybni'; $extset_logo= 0; if(count($exmenu)>1){ $sqlmenu=$exmenu[0] ;//."-".$exmenu[1] ; if($exmenu[0]=='categoryDetail'){ mysql_select_db($database_BE2, $BE2); $qr_Rtp1 =sprintf("SELECT p_title,p_num,b.company_title FROM `product_data` as a left join company as b on b.coid=198 where a.mem_auto='%s'",$exmenu[1]); $Rtp1 = mysql_query($qr_Rtp1, $BE2) or die(mysql_error()); $row_Rtp1 = mysql_fetch_assoc($Rtp1); $pos = strpos( $row_Rtp1['p_title'],'大嬸婆'); //if ( $_SERVER['REMOTE_ADDR']=='220.130.43.118'){ echo ' '.$row_Rtp1['p_title']. $qr_Rtp1 ; } if($pos!==false){ //大嬸婆年度企業會員專案 大嬸婆國際美食 $extset_logo= 1; //大嬸婆 $extitle=$row_Rtp1['company_title']; // echo '大嬸婆年度企業會員專案 大嬸婆國際美食'; } else if( strpos( $row_Rtp1['p_num'],'大嬸婆')!==false){ $extset_logo= 1; //大嬸婆 $extitle=$row_Rtp1['company_title']; } } // https://www.skybni.com/categoryDetail-4210.html // if($exmenu[1]=='skybni'){ $extitle= $exmenu[0].'skybni';} } $basic_data=0; mysql_select_db($database_BE2, $BE2); $query_Rtp =sprintf("SELECT a.*,b.*,c.* FROM adpage as a left join ap2 as b on a.pid=b.webid AND b.raflag='Y' left join adpic as c on b.adid=c.xid and c.flag ='Y' and c.edate > '%s' WHERE a.plink='%s' order by raindex,xid,ind",date('Y-m-d'),$menu.".html"); $Rtp = mysql_query($query_Rtp, $BE2) or die(mysql_error()); $row_Rtp = mysql_fetch_assoc($Rtp); $totalRows_Rtp = mysql_num_rows($Rtp); $html=''; $runprogram=''; $title=$row_Rtp['pdoc']; if($totalRows_Rtp==0){ $html=' '; } else if($row_Rtp['pdata']=='N'){ $html=$row_Rtp['ptxt'];} else if($row_Rtp['pdata']=='P'){ $runprogram="index_". $menu.".php";} else if($row_Rtp['pdata']=='Y') { $i=0; $c=0; $x=0; $webpage=array(); do { if($x <> $row_Rtp['xid']) { $xidcount[$c]=$i ; $xidmark[$c]=$row_Rtp['ramark'] ; $xidtitle[$c]=$row_Rtp['radoc'] ; $xidshowtitle[$c]=$row_Rtp['ratshow'] ; $webxid[$c]=$row_Rtp['xid'] ; $webpage[$c] = $row_Rtp['raid']; $raicon[$c] = $row_Rtp['raicon']; $x=$row_Rtp['xid']; $c++;} // if($x <> $row_Rtp['raid']) { $webpage[$c] = $row_Rtp['raid']; $x=$row_Rtp['raid'];$c++;} $raid[$i]=$row_Rtp['raid']; $id[$i]=$row_Rtp['id']; $xid[$i]=$row_Rtp['xid']; // $web[$i]=$row_Rtp['raid']; $link[$i]=$row_Rtp['link']; $linktag[$i]=$row_Rtp['linktag']; $doc[$i]=$row_Rtp['doc']; $radoc[$i]=$row_Rtp['radoc']; $img[$i]=$row_Rtp['img']; $imgext[$i]=$row_Rtp['imgext']; $imgtxt[$i]=$row_Rtp['imgtxt']; $ratxt[$i]=$row_Rtp['ratxt']; $i++; } while ($row_Rtp = mysql_fetch_assoc($Rtp)); } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <link rel="shortcut icon" href="/favicon.ico"> <!-- Google Fonts --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto%3A700%2C300"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bowlby+One:400"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:600%2C400"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway%3A400%2C800%2C500"> <!-- CSS Global Compulsory --> <link rel="stylesheet" href="/assets/vendor/bootstrap/bootstrap.min.css"> <!-- CSS Global Icons --> <link rel="stylesheet" href="/assets/vendor/icon-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="/assets/vendor/icon-line/css/simple-line-icons.css"> <link rel="stylesheet" href="/assets/vendor/icon-etlinefont/style.css"> <link rel="stylesheet" href="/assets/vendor/icon-line-pro/style.css"> <link rel="stylesheet" href="/assets/vendor/icon-hs/style.css"> <link rel="stylesheet" href="/assets/vendor/animate.css"> <link rel="stylesheet" href="/assets/vendor/dzsparallaxer/dzsparallaxer.css"> <link rel="stylesheet" href="/assets/vendor/dzsparallaxer/dzsscroller/scroller.css"> <link rel="stylesheet" href="/assets/vendor/dzsparallaxer/advancedscroller/plugin.css"> <link rel="stylesheet" href="/assets/vendor/fancybox/jquery.fancybox.css"> <link rel="stylesheet" href="/assets/vendor/slick-carousel/slick/slick.css"> <link rel="stylesheet" href="/assets/vendor/cubeportfolio-full/cubeportfolio/css/cubeportfolio.min.css"> <link rel="stylesheet" href="/assets/vendor/hamburgers/hamburgers.min.css"> <link rel="stylesheet" href="/assets/vendor/bootstrap/offcanvas.css"> <link rel="stylesheet" href="/assets/vendor/malihu-scrollbar/jquery.mCustomScrollbar.min.css"> <link rel="stylesheet" href="/assets/vendor/custombox/custombox.min.css"> <link rel="stylesheet" href="/assets/vendor/hs-megamenu/src/hs.megamenu.css"> <!-- Master Slider --> <link rel="stylesheet" href="/assets/vendor/master-slider/source/assets/css/masterslider.main.css"> <!-- Revolution Slider --> <link rel="stylesheet" href="/assets/vendor/revolution-slider/revolution-addons/particles/css/revolution.addon.particles.css"> <link rel="stylesheet" href="/assets/vendor/revolution-slider/revolution-addons/beforeafter/css/revolution.addon.beforeafter.css"> <link rel="stylesheet" href="/assets/vendor/revolution-slider/revolution/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css"> <link rel="stylesheet" href="/assets/vendor/revolution-slider/revolution/css/settings.css"> <link rel="stylesheet" href="/assets/vendor/revolution-slider/revolution/css/layers.css"> <link rel="stylesheet" href="/assets/vendor/revolution-slider/revolution-addons/particles/css/revolution.addon.particles.css"> <link rel="stylesheet" href="/assets/vendor/revolution-slider/revolution/css/navigation.css"> <!-- CSS Unify --> <link rel="stylesheet" href="/assets/css/unify.css"> <!-- CSS Customization --> <link rel="stylesheet" href="/assets/css/custom.css"> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-69297469-7'); </script> <? include "line_html.php" ;?> <? if($sqlmenu=='index'){ $sqlmenu="-SKYBNI" ;} ?> <title><?= ($extitle<>'')?$extitle:'天空商城'-$sqlmenu ;?></title> <? /* <base href="https://www.skybni.com"> */ ?> <!-- JSON-LD Tags --> <script type="application/ld+json"> { "@context":"http://schema.org", "@type":"Organization", "url":"https://www.skybni.com", "name":"天空商城", "logo":"https://www.skybni.com/logo.png", "contactPoint":{ "@type":"ContactPoint", "telephone":"+886-2-2753-1889", "contactType":"customer service" } } </script> <script type="application/ld+json"> { "@context":"http://schema.org", "@type":"WebSite", "url":"https://www.skybni.com", "name":"天空商城", "alternateName":"天空商城有限公司", "potentialAction":{ "@type":"SearchAction", "target":"https://www.skybni.com/search?search={search_term_string}&utm_source=microdata-search&utm_medium=seach-engine", "query-input":"required name=search_term_string" } } </script> <link href="/css/bootstrap.min.css" rel='stylesheet' type='text/css' /> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <!-- Custom Theme files --> <link href="/css/style.css" rel='stylesheet' type='text/css' /> <link rel="stylesheet" href="css/jquery.countdown.css" /> <link href='http://font.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900' rel='stylesheet' type='text/css'> <? /* <link href="/css/megamenu.css" rel="stylesheet" type="text/css" media="all" /> */ ?> <!-- Custom Theme files --> <!--webfont--> <script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script> <!-- dropdown --> <script src="/js/jquery.easydropdown.js"></script> <!-- start menu --> <script type="text/javascript" src="js/jquery.flexisel.js"></script> <script src="/js/bootstrap.min.js"></script> <script src="/js/responsiveslides.min.js"></script> <script src="/js/jquery.countdown.js"></script> <script src="/js/script.js"></script> <script src="/js/myjs.js"></script> <script> $(function () { <? if(isset($webxid)){ for($i=0;$i<count($webxid);$i++){?> <? if($webpage[$i]==0){ ?> $("#slider<?= $webxid[$i]; ?>").responsiveSlides({ auto: true, nav: true, speed: 500, namespace: "callbacks", pager: true, }); <? } ?> <? if($webpage[$i]==4){ ?> $("#flexiselDemo<?= $webxid[$i]; ?>").flexisel({ visibleItems: 6, animationSpeed: 1000, autoPlay:true, autoPlaySpeed: 3000, pauseOnHover: true, enableResponsiveBreakpoints: true, responsiveBreakpoints: { portrait: { changePoint:480, visibleItems: 1 }, landscape: { changePoint:640, visibleItems: 2 }, tablet: { changePoint:768, visibleItems: 3 } } }); <? } } } ?> $('#rent_locate_select').on('change', function () { var url = $(this).val(); // get selected value if (url) { // require a URL window.location = url; // redirect } return false; }); $('#signupform').submit( function(){ return valid_signupform(); }); var addreg = $('.register-form'); regform.submit(function () { $this = $(this); alert('s1'); var params = $('.register-form').serialize(); // http request parameters. params = decodeURIComponent(params, true ); var url="registerform.php"; // alert('s2'); $.post(url,params, function(data) { // $this.prev().text(data.message).fadeIn().delay(3000).fadeOut(); alert('s2'); alert("註冊已完成....") ; } ); return false; }); }); </script> <style> .mt1 { margin:0 0 0 0 !important; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { width: 100%; margin: auto; } .pager li.active > a, .pager li.active > span{ background-color: #9FF ; pointer-events:none; } .post-content { text-align:center; color:#FFF; font:bold; background: none repeat #333; opacity: 0.7; line-height:35px; height: 35px; width:100%; left: 0; bottom:0; position: absolute; } .post-content a { color: #FFF ; font-weight:bold; text-decoration:none; } .post-content a:hover { color: #00F ; } .thumbnail{ top:20px; position:relative; bottom: 0; } .start2{ position:relative; width:54px; top:-2px; margin-left: -2px; float:left; } p.big { line-height: 1.5; } /*額外做顏色,沒有什麼意義*/ tr.tr-only-hide {color: #0000FF;} @media (max-width: 736px) { .table-rwd{min-width: 100%;} /*針對tr去做隱藏*/ tr.tr-only-hide {display: none !important;} /*讓tr變成區塊主要讓他有個區塊*/ .table-rwd tr{ display: block; border: 1px solid #ddd; margin-top: 5px; } .table-rwd td { text-align: left; font-size: 15px; overflow: hidden; width: 100%; display: block; } .table-rwd td:before { /*最重要的就是這串*/ content: attr(data-th) " : "; /*最重要的就是這串*/ display: inline-block; text-transform: uppercase; font-weight: bold; margin-right: 10px; color: #0000FF; } /*當RWD縮小的時候.table-bordered 會有兩條線,所以針對.table-bordered去做修正*/ .table-rwd.table-bordered td,.table-rwd.table-bordered th,.table-rwd.table-bordered{border:0;} } .fixed { position: fixed; bottom: 0%; right: 0; width: 100%; z-index: 1; } @media (min-width:768px){ .bigv-margin1{ margin-top:-5%; } .bigv-margin2{ margin-top:-10%; } .bigv-youtube1{ height: 500px; } } @media (max-width:767px){ .bigv-margin1{ margin-top:-20%; } .bigv-margin2{ margin-top:-38%; } .bigv-youtube1{ height: 150px; } } div.settings { display:grid; grid-template-columns: max-content max-content; grid-gap:15px; } div.settings label { text-align:right; bottom: 0%; } //div.settings label:after { content: ":"; } </style> </head> <body> <main> <div class="fixed d-block d-md-none"> <? $ck_street=(isset($_GET['search2'])&&($_GET['search2']=="街道網店商城"))?true:false; $cck=true; ?> <? if($ck_street){ /* ?> <div style="background-color:#666;display:flex;flex-direction:row;"> <? $keyword=isset($_GET['keyword'])?$_GET['keyword']:'台北市南京東路3段單號網店商城'; //台北市 松山區 南京東路3段 ?> <div class="container-fluid g-py-5 g-bg-white" style="text-align:center;margin-top:5px;margin-left:10px;margin-bottom:5px;margin-right:40px"><?= $keyword;?> </div> <div style="margin-top:20px;"> <a href="/netmall/"><i class="fa fa-search" style="margin-bottom:25px;margin-right:20px;color:#FFF" ></i></a> </div> </div> <? */ /* <div class="container-fluid g-py-10 g-bg-gray no-gutters" style="background-color:#666"> <div class="container-fluid g-py-5 g-bg-white" style="text-align:center;margin-top:5px;margin-left:5px;margin-bottom:5px;width:80%"> 搜尋街景路段</div> <div class="container-fluid g-py-5 g-bg-white" style="margin-top:5px;margin-right:1px; margin-bottom:5px;width:10%"> <label class="fa fa-search" style="margin-right:1px"></label> </div> </div> <? */ } else{ // $show_reg_arr=array("categoryDetail","shoppingcar","招商簡報2","天空商城互聯網事業書"); mysql_select_db($database_BE2, $BE2); $query_Rn =sprintf("SELECT * FROM noheader WHERE nname='%s' AND nckreg='Y'",$menu); $Rn = mysql_query($query_Rn, $BE2) or die(mysql_error()); $row_Rn = mysql_fetch_assoc($Rn); $totalRows_Rn = mysql_num_rows($Rn); mysql_free_result($Rn); if($totalRows_Rn>0){$cck=false;}else{ $cck=true;} // if(in_array($menu,$show_reg_arr)){ $cck=false;} if($cck==true){ ?> <? $REQUEST_URI=$_SERVER['REQUEST_URI']; $pos = strpos($REQUEST_URI, '/',1); ?> <? if(($pos=='')&&($menu=="index")){ ?> <div class="container-fluid g-py-10 g-bg-red"> <div class="row no-gutters align-items-center"> <div class="col text-center"> <a href="/<?= $_SESSION['login_memid']==''?'login':'logout'; ?>.html" class="g-font-size-13 g-color-white"> <i class="fa fa-user-circle-o g-font-size-20 g-color-white"></i><br><?= $_SESSION['login_memid']==''?'登入':'登出'; ?></a> </div> <div class="col text-center"> <a href="/<?= $_SESSION['login_memid']==''?'registerform.html':'guest/'; ?>" class="g-font-size-13 g-color-white"> <i class="fa fa-vcard g-font-size-20 g-color-white"></i><br><?= $_SESSION['login_memid']==''?"註冊":'管理'; ?> </a> </div> </div> </div> <? } // end if $_SERVER['REQUEST_URI'] ?> <? } } // not 實景街圖 ?> </div> <? $_GET['mylogo']=0; // set ext logo if($extset_logo>0){ $_GET['mylogo']=198; } if(!$ck_street){ include "header_menu.php"; } ?> <? $showbig5=true; $hide_big5 = array("showproduct","categoryDetail","shopcar"); if(in_array($menu,$hide_big5)){ $showbig5=false; } if($showbig5){ ?> <div class="row"> <div class="container"> <section class="container g-pb-20 d-sm-block"> <div class="row no-gutters align-items-center"> <? $showupbig5=array("index","公司簡介","registerform"); //,"開網店" if(in_array($menu1,$showupbig5)){ include "big5link_up.php"; } ?> </div> </section> </div> </div> <? }?> <div class="clearfix"></div> <? /* <div class="row"> <div class="container"> <section class="container g-pb-20 d-sm-block"> <div class="row no-gutters align-items-center"> <? include "big5link_up.php"; ?> </div> </section> </div> </div> */ ?> <!-- Promo Block --> <!-- End Promo Block --> <!-- Blog Grid Blocks --> <div class="g-bg-gray-light-v5 bigv-margin1"> <div class="masonry-grid row g-mb-50"> <div class="masonry-grid-sizer col-sm-1"></div> </div> </div> <div class="clearfix"></div> <section class="container"> <div class="row"> <? // register new user if ((isset($_POST["registerform"])) && ($_POST["registerform"] == "registerform")){ // include "registerform.php" ; } //廣告模塊 if($runprogram<>""){ include $runprogram ;} else if($html==''){ $runscript= count($webpage); $rcount=0; $rstop=1; $rstop2=0; //if ( $_SERVER['REMOTE_ADDR']=='220.130.43.118'){ // echo "<div style='height:10px;margin-top:5px;'> <div class='clearfix'> </div>";//margin-top: 1em; margin-top: 0; // } while ($runscript>0 ){ if($rstop==1){ $rstop=0; $this_xid= $webxid[$rcount]; // if($menu=='天空商城互聯網事業書'){$web ="banner_img.php"; } $web ="banner_".$webpage[$rcount].".php"; //echo "==>".$this_xid."<==<br><br><br><br>"; include $web; $rcount ++; $runscript --; } $rstop2++; if($rstop2>100000){$runscript=-1;} } } else{ echo $html ;} //END 廣告模塊 // include "content_bottom.php";?> </div> </section> <div class="clearfix"> </div> <br> <? if($menu=="index"){?> <div class="row"> <div class="container"> <section class="container g-pb-20 d-sm-block"> <div class="row no-gutters align-items-center"> <? include "big5link_down.php"; ?> </div> </section> </div> </div> <? } ?> <div class="clearfix"> </div> <div class="row"> <div style="position: relative;left: 35%; text-align:left"> <? include "footer.html" ;?> </div> </div> </div> <p> <div id="google_translate_element"></div><script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'zh-TW', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); } </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> </p> <!-- End Footer --> <!-- Copyright Footer --> <? if($cck==true){ ?> <footer class="g-bg-gray-dark-v1 g-color-white-opacity-0_8 g-py-20"> <div class="container"> <div class="row"> <div class="col-md-8 text-center text-md-left g-mb-15 g-mb-0--md"> <div class="d-lg-flex"> <small class="d-block g-font-size-default g-mr-10 g-mb-10 g-mb-0-md" style="height:125px">Copyright © 2018-2025 天空商城有限公司 All Rights Reserved. <br> 天空商城的 <a href="/會員條款.html">會員條款</a> & <a href="/SKYBNI個人資料保護法.html">隱私權政策</a> </small> </div> </div> </div> </div> </footer> <? }?> <!-- End Copyright Footer --> </main> <!-- JS Global Compulsory --> <script src="/assets/vendor/jquery/jquery.min.js"></script> <script src="/assets/vendor/jquery-migrate/jquery-migrate.min.js"></script> <script src="/assets/vendor/jquery.easing/js/jquery.easing.js"></script> <script src="/assets/vendor/popper.min.js"></script> <script src="/assets/vendor/bootstrap/bootstrap.min.js"></script> <!-- JS Implementing Plugins --> <script src="/assets/vendor/hs-megamenu/src/hs.megamenu.js"></script> <script src="/assets/vendor/masonry/dist/masonry.pkgd.min.js"></script> <script src="/assets/vendor/imagesloaded/imagesloaded.pkgd.min.js"></script> <script src="/assets/vendor/cubeportfolio-full/cubeportfolio/js/jquery.cubeportfolio.min.js"></script> <script src="/assets/vendor/fancybox/jquery.fancybox.min.js"></script> <!-- JS Unify --> <script src="/assets/js/hs.core.js"></script> <script src="/assets/js/components/hs.header.js"></script> <script src="/assets/js/helpers/hs.hamburgers.js"></script> <script src="/assets/js/components/hs.tabs.js"></script> <script src="/assets/js/components/hs.sticky-block.js"></script> <script src="/assets/js/components/hs.go-to.js"></script> <script src="/assets/js/components/hs.dropdown.js"></script> <script src="/assets/vendor/malihu-scrollbar/jquery.mCustomScrollbar.concat.min.js"></script> <script src="/assets/js/components/hs.scrollbar.js"></script> <script src="/assets/js/components/hs.cubeportfolio.js"></script> <script src="/assets/js/components/hs.popup.js"></script> <!-- JS Customization --> <script src="/assets/js/custom.js"></script> <!-- JS Customization --> <script> $(document).on('ready', function () { // initialization of tabs $.HSCore.components.HSTabs.init('[role="tablist"]'); // initialization of go to $.HSCore.components.HSGoTo.init('.js-go-to'); // initialization of HSDropdown component $.HSCore.components.HSDropdown.init( $('[data-dropdown-target]'), { afterOpen: function(){ $(this).find('input[type="search"]').focus(); } }); // initialization of HSScrollBar component $.HSCore.components.HSScrollBar.init($('.js-scrollbar')); // initialization of cubeportfolio $.HSCore.components.HSCubeportfolio.init('.cbp'); // initialization of popups $.HSCore.components.HSPopup.init('.js-fancybox', { transitionEffect: false }); }); $(window).on('load', function () { // initialization of header $.HSCore.components.HSHeader.init($('#js-header')); $.HSCore.helpers.HSHamburgers.init('.hamburger'); // initialization of HSMegaMenu component $('.js-mega-menu').HSMegaMenu({ event: 'hover', pageContainer: $('.container'), breakpoint: 1400 }); // initialization of masonry $('.masonry-grid').imagesLoaded().then(function () { $('.masonry-grid').masonry({ columnWidth: '.masonry-grid-sizer', itemSelector: '.masonry-grid-item', percentPosition: true }); }); // initialization of sticky blocks setTimeout(function() { $.HSCore.components.HSStickyBlock.init('.js-sticky-block'); }, 1); }); $(window).on('resize', function () { setTimeout(function () { $.HSCore.components.HSTabs.init('[role="tablist"]'); }, 200); }); </script> </body> </html> <?php mysql_free_result($Rtp); ?>
保存
取消
返回文件列表