MAIN MENU

Data managament

MEKOPHAR
get_all_content_category_by_parent_category("00000000000001", $idlang); $ii = 1; foreach( $arr_category_level_1 as $all_arr_category_item ) { $search = false; $quyen = false; $txtSearch = search_filter( $_REQUEST['txtSearch'] ); if ( $txtSearch != '' && $_REQUEST['all'] == $all_arr_category_item->content_category_id ) $search = true; ?>
'; if ( $_GET['commentid'] == $all_arr_category_item_show->content_id ) { $all_comments = $comment->get_comment_by_content_id( $_GET['commentid'], 'id' ); echo ' '; } $i++; if ( $num == 6 ) $num = 0; $num++; } ?>
search_content( $txtSearch, $all_arr_category_item->content_category_id ); } else { $num_of_tin = $content->count_content_by_content_id( $all_arr_category_item->content_category_id, $idlang ); $p = isset ( $_GET["p"] ) ? intval ( $_GET["p"] ) : 1; if ( $all_arr_category_item->content_category_id == $_REQUEST['all'] ) { $rows_per_page = 20; } else { $rows_per_page = 5; } $p_start = ( $p - 1 ) * $rows_per_page; $p_end = $p * $rows_per_page; $number_of_page = ceil ( $num_of_tin / $rows_per_page ); if ( $number_of_page > 1 ) { $list_page = ""; $list_page .= "
STT Hình Tiêu đề tin Comments Hiển Thị Người đăng Option
"; $list_page .= " "; $list_page .= " "; for ( $i = 1; $i <= $number_of_page; $i++ ) { if ( ( $p - 4 ) < 0 ) { $begin = 1; } else { $begin = $p - 4; } $end = $begin + 9; if ( ( $i < $end ) && ( $i >= $begin ) ) { if ( $i == $p ) { $list_page .= " "; } else { $list_page .= ""; } } } $list_page .= " "; $list_page .= "
Trang[ {$i} ] {$i}
"; } if ( $all_arr_category_item->content_category_id != $_REQUEST['all'] ) $list_page = ''; $s = $p == 1 ? 0 : ($p-1)*$rows_per_page ; $s = $s != '' ? $s : '0'; $e = $rows_per_page; if ( $_GET['hit'] != '' ) $hit_sort = 'hit'; else $hit_sort = 'id'; $content_in_category = $content->get_content_by_content_category( $all_arr_category_item->content_category_id, $idlang, $hit_sort, $s, $e ); } $i = 1; $num = 1; foreach($content_in_category as $all_arr_category_item_show) { $username = 'LOFWI'; if ( $all_arr_category_item_show->show_content==1 ) $hienthi = "Tin chính"; else if ( $all_arr_category_item_show->show_content==2 ) $hienthi = "Tin chính 2"; else if ( $all_arr_category_item_show->show_content==3 ) $hienthi = "Tin chính 3"; else if ( $all_arr_category_item_show->show_content==4 ) $hienthi = "Tin chính 4"; else $hienthi = ""; $hotnews = $all_arr_category_item_show->hot==1?"( HOT )":" "; echo '
'.$i.' '.$all_arr_category_item_show->title.''.$hotnews.'
'.catchuoi( $all_arr_category_item_show->detail, 300 ).' ( '.$all_arr_category_item_show->hit.' hits )
'.$comment->count_comment_by_content_id( $all_arr_category_item_show->content_id ).' coms '.$hienthi.'
'.$username.'
'.ngayvn( $all_arr_category_item_show->dateadd ).'

sửa tin
title."'".')">
xóa tin
  '; $c = 1; foreach( $all_comments as $all_comments_item ) { $username = ''.$all_comments_item->userid.''; $status = $all_comments_item->comment_show == '1' ? 'Đang show' : 'Chờ duyệt / Đã xóa'; $action = $all_comments_item->comment_show == '0' ? ' ' : '
ẩn đi
'; $delete = '
xóa comment
'; $bgcolor = $c%2 != 0 ? '#EEFFFF' : '#FFFFFF'; echo ' '; $c++; } echo '
'.$c.' '.$all_comments_item->detail.'  '.$username.'  '.ngayvn( $all_comments_item->dateadd ).' '.$status.'
sửa comment
'.$action.' '.$delete.'

tạo mới

xem hết