테스트 사이트 - 개발 중인 베타 버전입니다

list.php 함수

썽쓰 4년 전 조회 3,409

$i=0;

foreach((array) $list as $row){

 

    if( empty($row) ) continue;

    $i++;

 

    $item_link_href = shop_item_url($row['it_id']);

    $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';

 

    if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상

        if ($i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막

        else if ($i%$this->list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째

        else $sct_last = '';

    } else { // 1줄 이미지 : 1개

        $sct_last = ' sct_clear';

    }

 

    if ($i == 1) {

        if ($this->css) {

            echo "css}\">\n";

        } else {

            echo "\n";

        }

    }

 

    echo "img_width}px\">\n";

 

    if ($this->href) {

        echo "\n";

    }

 

    if ($this->view_it_img) {

        echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name']))."\n";

    }

 

    if ($this->href) {

        echo "

\n";

    }

 

    if ($this->view_it_icon) {

        echo "".item_icon($row)."

\n";

    }

 

    if ($this->view_it_id) {

        echo "<".stripslashes($row['it_id']).">

\n";

    }

 

    if ($this->href) {

        echo "\n";

    }

 

    if ($this->view_it_name) {

        echo stripslashes($row['it_name'])."\n";

    }

 

    if ($this->href) {

        echo "

\n";

    }

 

    if ($this->view_it_basic && $row['it_basic']) {

        echo "".stripslashes($row['it_basic'])."

\n";

    }

 

    if ($this->view_it_cust_price || $this->view_it_price) {

 

        echo "\n";

 

        if ($this->view_it_cust_price && $row['it_cust_price']) {

            echo "".display_price($row['it_cust_price'])."\n";

        }

 

        if ($this->view_it_price) {

            echo display_price(get_price($row), $row['it_tel_inq'])."\n";

        }

 

 

if ($this->href) {

        echo "\n";

    }

ㄴ 이함수에서 이미지클릭시 링크를 item 링크랑 연결된거같은데 이미지클릭시 이동이 안되는데 어떻게해야할까요..

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

플래토
4년 전

html의 기본은 연결고고

일때 링크의 값에 따라 이동합니다.

 

html보기로 해당페이지에서 "링크"의 값이 존재하는지 정상적인지 체크해보시고

비정상적이면

어느부분이 비정상적인지를 판단후 조치하셔야 할겁니다.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 2개

썽쓰
4년 전
그 링크가 저기보이는것처럼 함수가 걸려있는데 그 함수가 작동을 안하는거 같아서요..
플래토
4년 전
개발자 도구 열어서 스크립트 오류가 있는지 체크해보세요

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인