별점 위치

별점 위치

QA

별점 위치

본문

463972260411cdce1761f77ae9553394_1478844916_333.JPG
위에 보시면 별점이 사람이미지 밑에 있는데 사람이미지 옆으로 가게 할려면 어떻게 해야하나요?

하닌까 php문이 안먹어서 계속 에러가 뜨더라고요

 

<section id="bo_vc">
 <div class="bo_vc_top">
  <h2> <em><?php echo number_format($view['wr_comment']) ?></em></h2>
 </div>
    <?php
    $cmt_amt = count($list);
    for ($i=0; $i<$cmt_amt; $i++) {
        $comment_id = $list[$i]['wr_id'];

  $list[$i][reply_cnt] = strlen($list[$i][wr_comment_reply]);
  if($list[$i][reply_cnt]) $list[$i][indent] = "ico_ind".$list[$i][reply_cnt];
        $comment = $list[$i]['content'];

        /*
        if (strstr($list[$i]['wr_option'], "secret")) {
            $str = $str;
        }
        */
        $comment = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $comment);

        $cmt_sv = $cmt_amt - $i + 1; // 댓글 헤더 z-index 재설정 ie8 이하 사이드뷰 겹침 문제 해결
 ?>
<?php
    $is_duple = false;
 $total_value = 0;
 $max_point = $board['bo_1'];
    $review_count = count($list);
 $use_count = 0;
 $review_array = array(
  'wr_3' => 0,
  'wr_4' => 0,
  'wr_5' => 0,
  'wr_6' => 0,
  'wr_7' => 0,
  'wr_8' => 0,
  'wr_9' => 0,
  'wr_10' => 0,
 );

    for ($i=0; $i<$review_count; $i++) {
  for ($j=3; $j<11; $j++) {
   $review_array['wr_'.$j] += $list[$i]['wr_'.$j];
   $total_value += $list[$i]['wr_'.$j];
   if(!$is_duple && $list[$i]['is_edit']){
    $is_duple = true;
   }
  }
    }
?>

<section id="bo_vc">
<table width="100%">
 <tbody>
  <tr>
   <td width="80%" style="border:0px;">
    <!-- 평가요약 시작 { -->
    
     <table>
      <tbody>
      <?php for ($i=3; $i<11; $i++) {
        if($board['bo_'.$i.'_subj']==''){
         continue;
        }
        $use_count++;
       ?>
       <tr>
       
        <td>
         <div class="star">
         <?php
          if($review_count==0) {
           $calc_point = 0;
          } else {
           $calc_point = $review_array['wr_'.$i]/$review_count/$max_point*100;
          }
          for ($si=0; $si < floor($calc_point*0.05); $si++){ ?>
          <img src="<?php echo $board_skin_url; ?>/img/icon_star.png" width="16" height="16">
         <?php } ?>
         <?php for ($si=0; $si < $max_point-floor($calc_point*0.05); $si++){ ?>
          <img src="<?php echo $board_skin_url; ?>/img/icon_gray_star.png" width="16" height="16">
         <?php } ?>
         </div>
        </td>
      
       </tr>
      <?php } ?>
      </tbody>
     </table>
    <!-- } 평가요약 끝 -->
   </td>
  
  </tr>
 </tbody>
</table>
</section> 

이 질문에 댓글 쓰기 :

답변 1


<tr>
       
        <td>
         <div class="star">
         <?php 
          if($review_count==0) {
           $calc_point = 0;
          } else {
           $calc_point = $review_array['wr_'.$i]/$review_count/$max_point*100;
          }
          for ($si=0; $si < floor($calc_point*0.05); $si++){ ?>
          <img src="<?php echo $board_skin_url; ?>/img/icon_star.png" width="16" height="16">
         <?php } ?>
         <?php for ($si=0; $si < $max_point-floor($calc_point*0.05); $si++){ ?>
          <img src="<?php echo $board_skin_url; ?>/img/icon_gray_star.png" width="16" height="16">
         <?php } ?>
         </div>
        </td>
      
       </tr> 

위에 있는<tr> 삭제 및 아래 있는 </tr>만 제거 하면 들어갈거 같습니다.

tr이 줄 띄우는 개념이라고 보시면 됩니다. 

코드를 봐야 확실히 알 수 있습니다.

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

회원로그인

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