<?php $i = 1; if (isset($_REQUEST['chitiet'])) { $result_dm = get_news_detail($_REQUEST['chitiet']); $row_dm = mysql_fetch_array($result_dm, MYSQL_ASSOC); $result_user = get_username($row_dm['userId']); $row_user = mysql_fetch_array($result_user, MYSQL_ASSOC); } ?> <div class="row"> <div class="col-lg-12"> <h3 class="page-header"><i class="fa fa-users"></i> Chi tiết Tin tức</h3> <ol class="breadcrumb"> <li><i class="fa fa-home"></i><a href="index.php">Trang chủ</a></li> <li><i class="fa fa-users"></i>Chi tiết Tin tức</li> </ol> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> <?php echo $row_dm['title']; ?> </div> <div class="panel-body"> <p><?php echo $row_dm['content'];
public function news() { if (session('openid') == '') { $code = $this->_get('code'); if (!empty($code)) { $open_id = get_openid($code); } elseif (!empty($_GET['openid'])) { session('openid', $_GET['openid']); } } $news_id = $this->_get('news_id'); $this->assign("res", get_news_detail($news_id, 'content')); $this->assign("seo_title", '亿超眼镜'); $this->display(); }