$val) { if($val['depth'] == '1') { $arr_category_add1[] = array('category_code'=>$val['category_code'], 'category_name'=>$val['category_name'], 'p_category_code'=> $val['p_category_code']); } else if($val['depth'] == '2') { $arr_category_add2[] = array('category_code'=>$val['category_code'], 'category_name'=>$val['category_name'], 'p_category_code'=> $val['p_category_code']); } else if($val['depth'] == '3') { $arr_category_add3[] = array('category_code'=>$val['category_code'], 'category_name'=>$val['category_name'], 'p_category_code'=> $val['p_category_code']); } } $menu_code = '22'; require_once (APPPATH.'views/skin/admin/_content_comm.php'); ?>
차:
Total: 전체글수: 오늘글수:
load->model('admin/news/m_news'); $dataNumber = ($total_count + $limit)-($page*$limit); foreach($list as $val) { $idx = $val['idx']; $category_code = $val['category_code']; $category_name = $val['category_name']; $p_category_code= $val['p_category_code']; $display_sort = $val['display_sort']; $total_count = $val['total_count']; $today_count = $val['today_count']; $depth = $val['depth']; $reg_date = $val['reg_date']; $reg_date = substr($reg_date, 0, 10); $category_code1 = substr($category_code, 0, 2); $category_code2 = substr($category_code, 0, 4); $category_code3 = substr($category_code, 0, 6); $del_key = $category_code; $reply_icon = ''; if($depth != 1) { for($i=1;$i<=$depth;$i++) { $reply_icon.= '    '; } $reply_icon.=' '; } # 전체 글수 $req_data = array(); $req_data['category_code'] = ${"category_code".$depth}; $total_count = $ci->m_news->news_section_code_count($req_data); # 오늘글 $req_data = array(); $req_data['category_code'] = ${"category_code".$depth}; $req_data['display_date'] = date("Y-m-d").' 00:00:00'; $today_count = $ci->m_news->news_section_code_count($req_data); ?>
번호 뉴스섹션 전체글수 오늘의글수 출력순위 생성일자 관리
등록된 내용이 없습니다.
수정 삭제