여분필드 리스트 출력관련...ㅠ 채택완료
write.skin에서 여분필드 wr_1을 날짜값 '마감일'로 출력한 후
글쓰기 창에서 정상출력되는것 확인한 다음
리스트에다 이 여분필드 날짜값을 불러오려고 하는데
어디다 입력해야할지 도저히 모르겠네요..
현재 list.skin파일은 다시원상복구시켰으나
리스트에 게시글은 아무것도 표시되지 않는 상태입니다
1시간가량 헤딩하다 여쭙니다..
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('', 0);
// 헤드스킨
if(isset($boset['hskin']) && $boset['hskin']) {
add_stylesheet('', 0);
$head_class = 'list-head';
} 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['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']) : '';
// 출력설정
$num_notice = ($is_thumb) ? '*' : '';
?>
.list-board .list-body .thumb-icon a {
;
}
포토
제목
$wr_vicon = ($is_vicon && ($list[$i]['as_list'] == "2" || $list[$i]['as_list'] == "3")) ? '' : ''; // 비디오 아이콘
$img = apms_wr_thumbnail($bo_table, $list[$i], 50, 50, false, true); // 썸네일
if($img['src']) {
?>
for ($i=0; $i < $list_cnt; $i++) {
//아이콘 체크
$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];
}
?>
답변 6개
데이터가 쌓인다면 리스트가 일단 나와야 하는데 전혀 안나오네요
먼저 리스트가 출력이 되겠금 하신담에 wr_1을 출력을 하셔야 할 것 같아요.
댓글을 작성하려면 로그인이 필요합니다.
쪽지를 드리려고 하는데, 정보공개를 안하셔서
쪽지, 메일 다 보낼 수가 없네요.
저의 메일주소는 pcbad3535@gmail.com 입니다.
부탁 드리겠습니다^^
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 3개
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
입니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인