diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index 67370cf..abb5a57 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -60,17 +60,7 @@ class Index extends Base { $this->assign('iskefu', 0); } - //平台公告信息 TOP1 - -// $topnews=M('news')->where('is_open=1 and publish_time<='.time().' and publish_etime>='.time())->order('add_time desc')->field('article_id,title,description')->find(); -// if ($topnews) { -// $readnews=M('news_readlist')->where(array('store_id'=>getAdmStoId(),'admin_id'=>getAdminId(),'news_id'=>$topnews['article_id']))->find(); -// if (empty($readnews)) { -// $gettopnew_des = str_replace("\r\n", "
", $topnews['description']); -// $this->assign('topnews', $topnews); -// $this->assign('gettopnew_des', $gettopnew_des); -// } -// } + $admin_id=getAdminId(); $this->assign('admin_id',$admin_id);