분류별 게시판 링크 #1 적용하기

분류별 게시판 링크 #1 적용하기

QA

분류별 게시판 링크 #1 적용하기

본문

안녕하세요. 질문드립니다.
파트너 로고 갤러리로 분류별  list_a, list_b, list_c, list_d  리스트에 모두 출력하였습니다. 
첨부파일로 로고이미지를 뿌려주었습니다.

로고 클릭시 등록된 #링크1의 url 새창을 띄우고 싶습니다.

<a href="<?php echo set_http($list[$i]['wr_link1']) ?>

 

을 적용하였으나 list_a, list_b, list_c, list_d에 모두 적용되는 오류가 발생합니다.

 

 


<div class="row">
    <div class="col">
        <div class="owl-carousel owl-carousel_p_01 owl-theme nav-bottom nav-bottom-align-left nav-style-1 nav-dark nav-font-size-lg mb-0" data-plugin-options="{'responsive': {'0': {'items': 2}, '768': {'items': 3}, '992': {'items': 4}, '1200': {'items': 5}}, 'autoWhith':true, 'loop': false, 'nav': false, 'dots': true, 'autoplay': true, 'autoplayTimeout': 4000, 'margin': 40}">
            <?php
            for ($i = 0; $i < $cnt_a; $i++) {
                $file = get_file($bo_table, $list_a[$i]['wr_id']);
                $file_src = $file[0]['path'].'/'.$file[0]['file'];
            ?>
            <div>
                <div><a href="<?php echo set_http($list[$i]['wr_link1']) ?>" target="_blank"><img style="height:70px" src="<?php echo $file_src ?>" class="img-fluid" alt="" /></a></div>
                <?php if ($is_admin) { ?>
                <div style="text-align:right"><input class="form-check-input2" type="checkbox" name="chk_wr_id[]" value="<?php echo $list_a[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $list_a[$i]['wr_id'] ?>"> <i class="fa fa-edit" onclick="location.href='<?php echo $list_a[$i]['href'] ?>'"></i></div>
                <?php } ?>
            </div>
            <?php } ?>                            
        </div>            
        <div class="my-owl-nav">
            <button type="button" role="presentation" class="owl-prev"></button>
            <button type="button" role="presentation" class="owl-pause"><i class="fa fa-pause"></i></button>
            <button type="button" role="presentation" class="owl-next"></button>
        </div>            
    </div>
</div>
<div class="row">
    <div class="col">
        
        <div class="owl-carousel owl-carousel_p_01 owl-theme nav-bottom nav-bottom-align-left nav-style-1 nav-dark nav-font-size-lg mb-0" data-plugin-options="{'responsive': {'0': {'items': 2}, '768': {'items': 3}, '992': {'items': 4}, '1200': {'items': 5}}, 'autoWhith':true, 'loop': false, 'nav': false, 'dots': true, 'autoplay': true, 'autoplayTimeout': 4000, 'margin': 40}">
            <?php
            for ($i = 0; $i < $cnt_b; $i++) {
                $file = get_file($bo_table, $list_b[$i]['wr_id']);
                $file_src = $file[0]['path'].'/'.$file[0]['file'];
            ?>
            <div>
                <div> <a href="<?php echo set_http($list[$i]['wr_link1']) ?>" target="_blank"> <img style="height:70px" src="<?php echo $file_src ?>" class="img-fluid" alt="" /></a></div> 
                <?php if ($is_admin) { ?>
                <div style="text-align:right"><input class="form-check-input2" type="checkbox" name="chk_wr_id[]" value="<?php echo $list_b[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $list_b[$i]['wr_id'] ?>"> <i class="fa fa-edit" onclick="location.href='<?php echo $list_b[$i]['href'] ?>'"></i></div>
                <?php } ?>
            </div>
            <?php } ?>
        </div>
        <div class="my-owl-nav">
            <button type="button" role="presentation" class="owl-prev"></button>
            <button type="button" role="presentation" class="owl-pause"><i class="fa fa-pause"></i></button>
            <button type="button" role="presentation" class="owl-next"></button>
        </div>
        
    </div>
</div>


for문에 추가하여야 할듯 싶은데 그누보드 초보라 어떻게 적용해야 할지 난감하네요. ㅜㅜ

고수님의 답변 기다려봅니다. 꿉벅!!

 

이 질문에 댓글 쓰기 :

답변 2

<a href="<?php echo set_http($list[$i]['wr_link1']) ?>" target ...

<a href="<?php echo set_http($list_a[$i]['wr_link1']) ?>" target ...

<a href="<?php echo set_http($list_b[$i]['wr_link1']) ?>" target ...

질문이 이상하지 않나요?

로고 클릭시 링크1 을 팝업으로 띄워야 한다면서

모든 분류에 들어간다는 말이요..

 

어떤 특정 분류에만 팝업을 띄워야 하는건가요?

답변을 작성하시기 전에 로그인 해주세요.
전체 332
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT