링크걸기

링크걸기

QA

링크걸기

본문

안녕하세요?

궁금한점이 있어서 글올립니다

아래 소스에 제목에만 링크가 걸려 있는데요

행전체에 링크를 걸려면 어떻게 해야 하는지 궁금합니다

조언 부탁드립니다

 

<div class="pic_li_lt">

    <h2 class="lat_title"><a href="<?php echo get_pretty_url($bo_table); ?>"><?php echo $bo_subject ?></a></h2>
    <a href="<?php echo get_pretty_url($bo_table); ?>" class="lt_more"><span class="sound_only"><?php echo $bo_subject ?></span>+</a>

    <table id="t" cellpadding="0" cellspacing="0">
    <tr>
    <?php
    for ($i=0; $i<$list_count; $i++) {
        
        $img_link_html = '';
        
        if( $i === 0 ) {
            $thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
        }
    ?>
    
    <td width="70%"  cellpadding="0">

            <?php echo $img_link_html; ?>
            <?php
            if ($list[$i]['icon_secret']) echo "<i class=\"fa fa-lock\" aria-hidden=\"true\"></i><span class=\"sound_only\">비밀글</span> ";
 
            echo "<a href=\"".$list[$i]['href']."\" class=\"pic_li_tit\"> ";
            if ($list[$i]['is_notice'])
                echo "<strong>".$list[$i]['subject']."</strong>";
            else
                echo $list[$i]['subject'];        
            ?>
        </td>
             <td><?php echo $list[$i]['name'] ?></td>
              <td width="15%"><?php echo $list[$i]['datetime2'] ?></td>
           </tr>
    <?php }  ?>
    </table>

</div>

이 질문에 댓글 쓰기 :

답변 2


<div class="pic_li_lt">
  <h2 class="lat_title"><a href="<?php echo get_pretty_url($bo_table); ?>"><?php echo $bo_subject ?></a></h2>
  <a href="<?php echo get_pretty_url($bo_table); ?>" class="lt_more"><span class="sound_only"><?php echo $bo_subject ?></span>+</a>
 
  <table id="t" cellpadding="0" cellspacing="0">
    <?php
    for ($i = 0; $i < $list_count; $i++) {
      $img_link_html = '';
      if ($i === 0) {
        $thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
      }
    ?>
      <tr style="cursor: pointer;" onclick="location.href='<?=$list[$i]['href']?>'">
        <td width="70%" cellpadding="0">
          <?php echo $img_link_html; ?>
          <?php
          if ($list[$i]['icon_secret']) echo "<i class=\"fa fa-lock\" aria-hidden=\"true\"></i><span class=\"sound_only\">비밀글</span> ";
 
          if ($list[$i]['is_notice'])
            echo "<strong>" . $list[$i]['subject'] . "</strong>";
          else
            echo $list[$i]['subject'];
          ?>
        </td>
        <td><?php echo $list[$i]['name'] ?></td>
        <td width="15%"><?php echo $list[$i]['datetime2'] ?></td>
      </tr>
    <?php }  ?>
  </table>
</div>

      echo "<a href=\"".$list[$i]['href']."\" class=\"pic_li_tit\"> "; 이놈을 위로 보내세요 

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

회원로그인

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