index.bak.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?php
  2. include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
  3. $arr_browser = array ("iPhone","iPod","IEMobile","Mobile","lgtelecom","PPC");
  4. if ($_GET['mode'] != 'pc') {
  5. for($indexi = 0 ; $indexi < count($arr_browser) ; $indexi++) {
  6. if(strpos($_SERVER['HTTP_USER_AGENT'],$arr_browser[$indexi]) == true){
  7. // 모바일 브라우저라면 모바일 URL로 이동
  8. header("Location: /m/index_m.php");
  9. exit;
  10. }
  11. }
  12. }
  13. ?>
  14. <!DOCTYPE html>
  15. <HTML lang="ko">
  16. <head>
  17. <meta charset="UTF-8" />
  18. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  19. <title>UPRO</title>
  20. <meta name="format-detection" content="telephone=no">
  21. <meta name="description" content="내 차를 팔때 최고의 가격으로 판매하세요.">
  22. <meta property="og:title" content="UPRO">
  23. <meta property="og:description" content="유프로 홈페이지를 방문해 주셔서 진심으로 감사 드립니다.">
  24. <meta property="og:url" content="http://upro.interscope.co.kr">
  25. <link rel="canonical" href="http://upro.interscope.co.kr">
  26. <link rel="stylesheet" type="text/css" href="/css/swiper.min.css">
  27. <link rel="stylesheet" type="text/css" href="/css/common.css">
  28. <link rel="stylesheet" type="text/css" href="/css/main.css">
  29. <script type="text/javascript" charset="utf-8" src="/js/jquery-1.11.2.min.js"></script>
  30. <script type="text/javascript" charset="utf-8" src="/js/swiper.min.js"></script>
  31. <script type="text/javascript" charset="utf-8" src="/js/ui.js"></script>
  32. </head>
  33. <body>
  34. <? include("./include/inc_header.php") ?>
  35. <section id="wrap">
  36. <section id="visual" class="swiper-container">
  37. <ul class="swiper-wrapper">
  38. <li class="swiper-slide"><a href="/sell/sell.php"><img src="/img/@main_visual.jpg"></a></li>
  39. <li class="swiper-slide"><a href="/sell/sell.php"><img src="/img/@main_visual02.jpg"></a></li>
  40. <!--<li class="swiper-slide"><img src="/img/@main_visual.jpg"></li>
  41. <li class="swiper-slide"><img src="/img/@main_visual.jpg"></li>-->
  42. </ul>
  43. <div class="swiper-button-next"></div>
  44. <div class="swiper-button-prev"></div>
  45. <div class="swiper-pagination"></div>
  46. <div class="scroll"><span></span><span></span><span></span></div>
  47. </section>
  48. <section class="main_con1">
  49. <div class="bg"></div>
  50. <ul>
  51. <li onclick="location.href='/sell/sell.php'" style="cursor:pointer;"><span></span>1분<br>간편신청</li>
  52. <li onclick="location.href='/sell/sell.php'" style="cursor:pointer;"><span></span>최고가<br>경쟁입찰</li>
  53. <li onclick="location.href='/sell/sell.php'" style="cursor:pointer;"><span></span>최고가로<br>판매완료</li>
  54. </ul>
  55. </section>
  56. <section class="main_con2">
  57. <dl class="mobile">
  58. <dt>스마트폰으로<br>쉽<em>/</em>고<em>/</em>빠<em>/</em>르<em>/</em>게</dt>
  59. <dd class="txt">중고차 딜러들의 경쟁 입찰로<br>타시던 차를 최고 매입가에 판매하세요</dd>
  60. <dd class="btn"><a href="#">Google Play</a><a href="#">App Store</a></dd>
  61. </dl>
  62. </section>
  63. <section class="main_con3">
  64. <h2>자주 묻는 질문</h2>
  65. <p class="more"><a href="/customer/faq.php">+ 더 많은 질문보기</a></p>
  66. <ul class="faq">
  67. <?
  68. $r = mysqli_query($connect, "SELECT * FROM board_master where cd_board='03' and ds_delind='N' ORDER BY ds_top desc, no_famally ASC, no_order ASC LIMIT 0,7");
  69. $count = mysqli_num_rows($r);
  70. $i=1;
  71. if($count>0) {
  72. while($col = mysql_fetch_array($r)) {
  73. $date = strtotime ($col['dt_insert']);
  74. $view_date = strtotime ("-1 day",time());
  75. $tmpNum =$totalrows-($PageSize*($PageNo-1));
  76. $no = ($tmpNum - $i)+1;
  77. ?>
  78. <li>
  79. <p><?=$col['nm_title']?></p>
  80. <div<?= ($i=1)? " class='a'" : "" ?>><?=$col['nm_content']?></div>
  81. </li>
  82. <?
  83. $i++;
  84. }
  85. }else{
  86. ?>
  87. <li>
  88. <p>등록된 정보가 없습니다.</p>
  89. </li>
  90. <?
  91. }
  92. ?>
  93. </ul>
  94. </section>
  95. <!-- <section class="main_con4">
  96. <div class="inner">
  97. <h2>실시간 접수 현황</h2>
  98. <p class="date">2018.10.17</p>
  99. <ul class="num_estimate">
  100. <li><em>5,658</em> 오늘의 견적 조회수</li>
  101. <li><em>23,431,845</em> 누적 견적 조회수</li>
  102. <li><em>80,659</em> 총 접수량</li>
  103. </ul>
  104. </div>
  105. </section>-->
  106. </section>
  107. <!-- s : footer -->
  108. <? include("include/inc_footer.php"); ?>
  109. <!-- // e : footer -->
  110. <script>
  111. var swiper = new Swiper('.swiper-container', {
  112. speed : 1000,
  113. autoplay: {
  114. delay: 4500,
  115. disableOnInteraction: false,
  116. },
  117. loop : true,
  118. navigation: {
  119. nextEl: '.swiper-button-next',
  120. prevEl: '.swiper-button-prev',
  121. },
  122. pagination: {
  123. el: '.swiper-pagination',
  124. clickable: true,
  125. },
  126. });
  127. function loopArr(){
  128. $(".scroll span:nth-child(1)").animate({ 'opacity' : '1'}, 200)
  129. .animate({ 'opacity' : '0.3'}, 200)
  130. .animate({ 'opacity' : '0.5'}, 200, loopArr);
  131. }
  132. function loopArr2(){
  133. $(".scroll span:nth-child(2)").animate({ 'opacity' : '0.5'}, 200)
  134. .animate({ 'opacity' : '1'}, 200)
  135. .animate({ 'opacity' : '0.3'}, 200, loopArr2);
  136. }
  137. function loopArr3(){
  138. $(".scroll span:nth-child(3)").animate({ 'opacity' : '0.3'}, 200)
  139. .animate({ 'opacity' : '0.5'}, 200)
  140. .animate({ 'opacity' : '1'}, 200, loopArr3);
  141. }
  142. loopArr();loopArr2();loopArr3();
  143. </script>
  144. <? include("include/inc_bottom.php"); ?>
  145. <?
  146. mysql_close($connect);
  147. ?>