当前位置 > 添加内容
  • 关键字:
$v){ if($id==$v['id']){ $table=DB_PRE.$v['channel_table']; $channel=$v['channel_name']; $content_php=empty($v['content_php'])?'show_content.php':$v['content_php']; } } if(empty($table)||empty($channel)){ msg('参数发生错误,不存在相关频道'); } $maintb=DB_PRE."maintb"; $page=empty($page)?1:$page; $pagesize=30; $pagenum=($page-1)*$pagesize; $filt="m.channel={$id} and m.lang='{$lang}'"; $query='&id='.$id.'&lang='.$lang.'&action=content_list&order='.$order.'&keywords='.$keywords.'&cate2='.$cate2.'&verify='.$verify; $cate=empty($cate2)?$cate:$cate2; $child=get_child_id($cate); $a_category=empty($child)?$cate:$cate.$child; if(!empty($cate)){ $filt.=" and m.category in ({$a_category})"; $query.='&cate='.$cate; unset($cate); } $filt.=empty($verify)?'':' and m.verify='.$verify; $filt.=empty($key_words)?'':" and m.title like '%".$key_words."%'"; $order=empty($order)?'order by m.c_order desc':'order by m.'.$order.' desc'; $total_num=$GLOBALS['mysql']->fetch_rows("select m.id from {$maintb} as m where {$filt}"); $total_page=ceil($total_num/$pagesize); $sql="select e.*,m.* from {$table} as e left join {$maintb} as m on e.id=m.id where {$filt} {$order} limit {$pagenum},{$pagesize}"; $rel=$GLOBALS['mysql']->fetch_asc($sql); if(!empty($rel)){ foreach($rel as $key=>$value){ //标题样式 if($value['title_color']||$value['title_style']){ $font_style=''; $font_style.=$value['title']; $font_style.=""; $value['style_title']=$font_style;//样式标题 }else{ $value['style_title']=$value['title']; } //开启生成检查是否生成 $is_has_html=''; if($_confing['web_html']){ $is_has_html = @file_exists(CMS_PATH.$value['url'])?'已生成':'未生成'; } //内容状态 $fl_arr=empty($value['filter'])?'':explode(',',$value['filter']); $fl_str=''; if($value['top']=='1'){$fl_str.='置顶';} if(!empty($fl_arr)){ foreach($fl_arr as $f_k=>$f_v){ if($f_v=='a'){ $fl_str.='[头条]'; }elseif($f_v=='b'){ $fl_str.='[推荐]'; }elseif($f_v=='c'){ $fl_str.='[图片]'; } } } ?>
选择排序 文章标题添加时间所属栏目浏览权限点击状态发布人操作
{$value['style_title']}";?>未审核";}else{echo "已审核";}?>删除|修改
Powered by 63WL