묻고답하기

<link href="./phpApplications/contentTouchSlider/css/font-awesome.min.css" rel="stylesheet" />
<link href="./phpApplications/contentTouchSlider/css/swiper.min.css" rel="stylesheet" />
<link href="./phpApplications/contentTouchSlider/css/style.css" rel="stylesheet" />

<?php
    /* connection    */
    require './files/config/db.config.php';
    $hostName = $db_info->master_db[db_hostname];
    $userId =  $db_info->master_db[db_userid];
    $userPw =  $db_info->master_db[db_password];
    $dataBase = $db_info->master_db[db_database];
    mysql_connect($hostName, $userId, $userPw) or die('something wrong');
    mysql_select_db($dataBase);
    mysql_query('SET NAMES utf8');
    
    /* ����� ���� */
    $module_srl = 12473;
?>

<div class="contentImageSlider swiper-container">
  <div class="contentSlideWrapper swiper-wrapper">
    <?php
        $query = "SELECT F.* FROM `xe_files` F INNER JOIN xe_document_extra_vars E ON (E.document_srl = F.upload_target_srl) WHERE F.module_srl = $module_srl AND E.value = 'ON'
                   ORDER BY F.upload_target_srl DESC";
        $result = mysql_query($query);    
        $imageNumber = 0;        
        while($row = mysql_fetch_array($result)){
            $document_srl = $row['upload_target_srl'];                
            
            $link = mysql_query("SELECT value FROM xe_document_extra_vars WHERE document_srl = $document_srl AND eid = 'link'");
            $link_result = mysql_fetch_row($link);
            
            
            $imageUrl = $row['uploaded_filename'];
           
            if($link_result)
                echo '<div class="image'.$imageNumber.' contentSlide swiper-slide"><a href="'.$link_result[0].'" target="_blank"><img src="'.$imageUrl.'" style="width:100%; "/></a></div>';
            else    
                echo '<div class="image'.$imageNumber.' contentSlide swiper-slide"><img src="'.$imageUrl.'" style="width:100%;"/></div>';
             
            $imageNumber++;
        }
    ?>
    <!--
   <div class="image1 contentSlide swiper-slide"><img src="/m.layouts/firstglory_m/images/20170517m.png" style="width:100%;"/></div>
    <div class="image1 contentSlide swiper-slide"><img src="/m.layouts/firstglory_m/images/20170510m.jpg" style="width:100%;"/></div>
    <div class="image1 contentSlide swiper-slide"><img src="/m.layouts/firstglory_m/images/20170510_2m.jpg" style="width:100%;"/></div>
    <div class="image1 contentSlide swiper-slide"><img src="/m.layouts/firstglory_m/images/fm_170207_2.jpg" style="width:100%;"/></div>
    <div class="image1 contentSlide swiper-slide"><img src="/m.layouts/firstglory_m/images/fm_161229_1.jpg" style="width:100%;"/></div>
    <div class="image9 contentSlide swiper-slide"><img src="/m.layouts/firstglory_m/images/mm2.png" style="width:100%;"/></div
    -->
  </div>
    <span class="swiper-button-prev leftIndicator indicator">
    </span>
    <span class="swiper-button-next rightIndicator indicator">
    </span>
    <div class="swiper-pagination" style="display:none; position: relative; bottom: 0px; background: #fff; height: 50px; padding-top: 20px;"></div>
</div>

<script src="./phpApplications/contentTouchSlider/js/swiper.js"></script>
<script src="./phpApplications/contentTouchSlider/js/script.js"></script>
<script>

function getInternetExplorerVersion() {    
   var rv = -1; // Return value assumes failure.    
   if (navigator.appName == 'Microsoft Internet Explorer') {        
        var ua = navigator.userAgent;        
        var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");        
        if (re.exec(ua) != null)            
            rv = parseFloat(RegExp.$1);    
       }    
   return rv; 

if(getInternetExplorerVersion() >= 6 && getInternetExplorerVersion() <= 9){        
    var swiper = new Swiper('.swiper-container', {
            pagination: '.swiper-pagination',
            nextButton: '.swiper-button-next',
            prevButton: '.swiper-button-prev',
            paginationClickable: true,
            loop: true,
            spaceBetween: 30,
            centeredSlides: true,
            autoplay: 4200,
            autoplayDisableOnInteraction: false
    });
    jQuery('.swiper-pagination').hide();
}
else{
    var swiper = new Swiper('.swiper-container', {
            pagination: '.swiper-pagination',
            nextButton: '.swiper-button-next',
            prevButton: '.swiper-button-prev',
            paginationClickable: true,
            loop: false,
            spaceBetween: 30,
            centeredSlides: true,
            autoplay: 4200,
            autoplayDisableOnInteraction: false
    });
}

</script>

태그 연관 글
  1. [2020/12/16] 묻고답하기 footer 하단에 고정하려면 어딜 수정해야 할까요? by 가입명
  2. [2020/01/31] 묻고답하기 2단메뉴 by ppumweb *2
  3. [2019/10/10] 묻고답하기 cafe24 XE3 STEP 3 단계에서 에러가 발생합니다. by nothing *3
  4. [2019/03/27] 묻고답하기 모바일에서만 '권한이 없습니다'가 나오는 이유가 궁금합니다. by Spooky *1
  5. [2019/03/15] 포럼 웹 에이전시 디스케이션에서 레이아웃 템플릿 판매 개시했습니다. by 디스케이션 *2
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
WindBoy 도메인 수정방법 문의드립니다 [1] 2017.06.01 by 마야
Thunder28 게시글 자동 정리나 첨부화일 정리 문의  
쩡님아야 게시판과 슬라이드와의 연결고리  
얄리뽀 글작성시 특정날짜를 설정하면 자동 삭제가 되도록 할수있나요? [1] 2017.06.01 by HowtoXE
모두아네 홈페이지를 외장하드디스크로 이전하여 볼수있는 방법을 문의 드립니다. [1] 2017.06.01 by HowtoXE
장년 xe1836~1838 업데이트 후, 레이아웃에 메뉴가 안나오고 캐시파일 재생성이... [2] file 2017.06.01 by 장년
thdwjdtjr 배경음악을 설치하였는데 ?????  
실존인물 관리자 포인트점수 수동으로 올리는 방법 문의  
율블리 (초보)  
원공플러스 이페이지를 표시 할수 없습니다.  
comma; 아이프레임 주소고정후 로그인이 안됩니다  
mediaq**** 스케치북 스킨에 SNS공유버튼 [2] 2017.05.31 by 줄루425c0
줄루425c0 고급 메일 사용시 커넥션 타임아웃 에러가 납니다. [2] 2017.05.31 by 줄루425c0
줄루425c0 스케치북 스킨에 카카오톡 공유하기 에러 도움 부탁드려요  
박수준707 코어 업데이트 하면 오류가 나요 [3] 2017.05.31 by 기진곰
thdwjdtjr 포인트를 수동으로 부여할려고 하는데.... [1] 2017.05.31 by sejin7940
up5d7c6 위젯 추가후 위젯 크기, 마진 등 수정시 오류  
pb**** 모듈설치후 경로 애러  
뺘뺘 안녕하세요 제가 문서페이지에 html 로 그림 삽입할려고하는대요 ㅠㅠ [3] 2017.05.30 by 기진곰
Kevinatvn core.xxx [1] file 2017.05.30 by 기진곰
나뭐하고있냐 [초보] 갑자기 홈페이지 접속이 안되네요.. [1] 2017.05.30 by 기진곰
sejong**** 로그인 관련 문의드립니다. [3] 2017.05.29 by 제이와이엔소프트
Ezzikr 다국어 사용시, 캐쉬때문인지.. 재접시 마지막 언어페이지 노출. [1] 2017.05.29 by DoorWeb
카르 마이그레이션(데이터보내기)질문이 있습니다! 도와주세요~ [6] file 2017.05.29 by 박수준707
Narrmiss /files/attach 직접 다운로드 방지 방법이 있나요? [2] 2017.05.29 by Narrmiss
방화동노인 [스케치북 게시판] 파일 첨부 관련해서 [1] file 2017.05.29 by 기진곰
J__ 글쓰기 / 페이지수정 오류 php버전과 상관있을까요? [1] 2017.05.29 by 제이와이엔소프트
벼리507 xe 공홈 모바일 레이아웃은 어디서 얻나요? [1] 2017.05.29 by DoorWeb
트리픽 특정 사이트에서만 위젯이 먹히지 않아요ㅠ [1] 2017.05.29 by DoorWeb
xe이용자 위젯 관련 (초보 질문 도와주세요 ㅠ) [1] file 2017.05.29 by DoorWeb