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

list page 와 view page 에서의 목록보기 문제 채택완료

메너 4년 전 조회 1,903

안녕하세요..고수님들

 

아래 두 개의 그림은 각각 list page에서 보여지는 목록과 view page에서 보여지는 목록인데 서로 다릅니다. 포인트 출력이 list page에서는 안 됩니다..

어디가 잘 못 된 것일까요?? 도움 좀 부탁드립니다.

================================================================

 

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0);

// 헤드스킨 $head_class = ''; if(isset($boset['hskin']) && $boset['hskin']) {     add_stylesheet('', 0); } else {     $head_class = (isset($boset['hcolor']) && $boset['hcolor']) ? ' border-'.$boset['hcolor'] : ' border-black'; }

// 숨김설정 $is_num = (isset($boset['lnum']) && $boset['lnum']) ? false : true; $is_name = (isset($boset['lpoint']) && $boset['lpoint']) ? false : true; $is_name = (isset($boset['lname']) && $boset['lname']) ? false : true; $is_date = (isset($boset['ldate']) && $boset['ldate']) ? false : true; $is_hit = (isset($boset['lhit']) && $boset['lhit']) ? false : true; $is_vicon = (isset($boset['vicon']) && $boset['vicon']) ? false : true;

// 보임설정 $is_category = (isset($boset['lcate']) && $boset['lcate']) ? true : false; $is_thumb = (isset($boset['lthumb']) && $boset['lthumb']) ? true : false; $is_down = (isset($boset['ldown']) && $boset['ldown']) ? true : false; $is_visit = (isset($boset['lvisit']) && $boset['lvisit']) ? true : false; $is_good = (isset($boset['lgood']) && $boset['lgood']) ? true : false; $is_nogood = (isset($boset['lnogood']) && $boset['lnogood']) ? true : false;

// 포토 $fa_photo = (isset($boset['ficon']) && $boset['ficon']) ? apms_fa($boset['ficon']) : '';

// 날짜 $is_dtype = (isset($boset['dtype']) && $boset['dtype']) ? $boset['dtype'] : 'Y.m.d'; $is_dtxt = (isset($boset['dtxt']) && $boset['dtxt']) ? true : false;

// 출력설정 $num_notice = ($is_thumb) ? '*' : '';

?>     

    
                                                                                   포토                           제목                                                                                                                                                                                                                              
    
        

            //아이콘 체크         $wr_icon = '';         $is_lock = false;         if ($list[$i]['icon_secret'] || $list[$i]['is_lock']) {             $wr_icon = '';             $is_lock = true;         } else if ($list[$i]['icon_hot']) {             $wr_icon = '';         } else if ($list[$i]['icon_new']) {             $wr_icon = '';         } else if ($list[$i]['icon_video']) {             $wr_icon = '';         } else if ($list[$i]['icon_image']) {             $wr_icon = '';         } else if ($list[$i]['icon_file']) {             $wr_icon = '';         }

            // 공지, 현재글 스타일 체크         $li_css = '';         if ($list[$i]['is_notice']) { // 공지사항             $li_css = ' bg-light';             $list[$i]['num'] = $num_notice;             $list[$i]['ca_name'] = '';             $list[$i]['subject'] = ''.$list[$i]['subject'].'';             $wr_icon = ($is_thumb) ? '' : '[알림]';         } else {             if($is_category && $list[$i]['ca_name']) {                 $list[$i]['subject'] = '['.$list[$i]['ca_name'].'] '.$list[$i]['subject'];             }             if ($wr_id == $list[$i]['wr_id']) {                 $li_css = ' bg-light';                 $list[$i]['num'] = '열람중';                 $list[$i]['subject'] = ''.$list[$i]['subject'].'';             }         }

            // 링크이동         $list[$i]['target'] = '';         if($is_link_target && !$list[$i]['is_notice'] && $list[$i]['wr_link1']) {             $list[$i]['target'] = $is_link_target;             $list[$i]['href'] = $list[$i]['link_href'][1];         }

        ?>         

  •                              
                                         
                                                                                         
                                                                      ' : ''; // 비디오 아이콘                         $img = apms_wr_thumbnail($bo_table, $list[$i], 50, 50, false, true); // 썸네일                         if($img['src']) {                     ?>                             
                                    
                                                                         
                                
                                                                                                                        
                                          
                    >                                                                                                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                 
                                                                                                                                                                                                                                                                                                                         
  •          
    
             
게시물이 없습니다.
    

 

 

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

답변 2개

채택된 답변
+20 포인트
4년 전

$point = empty($list[$i]['wr_1'])? $board['bo_download_point'] : $list[$i]['as_dow'];

->

$point = empty($list[$i]['wr_1'])? $board['bo_download_point'] : $list[$i]['as_down'];

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

답변에 대한 댓글 1개

메너
4년 전
감사합니다.
$point = empty($list[$i]['as_down'])? $board['bo_download_point'] : $list[$i]['as_down'];
이렇게 두 군데를 수정했습니다..덕분입니다.

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

ifelse
4년 전

이것저것 봐야 답이 나올꺼같긴한데

혹 echo abs($point) * -1;

를 그냥 echo $point * -1; 해봐도 0이 뜨나요? 

 

echo abs($point) * -1;  ?>

 

 

 

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

답변에 대한 댓글 1개

메너
4년 전
관심 주셔서 감사합니다..
알려주신 방법으로 하면 화면이 완전 깨집니다...뷰페이지에서의 목록에서는 보여지는게 왜 리스트에서는 안 보일까요??

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

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

로그인