public function list()
{
$type = $this->request->param('type',0,'intval');
$this->assign('type', $type);
$NavMenuModel = new NavMenuModel();
$pro_nav_list = $NavMenuModel->order('list_order','asc')->where(['nav_id'=>1,'parent_id'=>5,'status'=>1])->field('name,href,highlight,target')->select()->toArray();
$this->assign('pro_nav_list', $pro_nav_list);
$NavMenuModel = new NavMenuModel();
$pro_nav_one = $NavMenuModel->where(['nav_id'=>1,'status'=>1,'parent_id'=>5,'highlight'=>$type])->field('name,des,href,name_en,target,highlight')->find()->toArray();
$this->assign('pro_nav_one', $pro_nav_one);
if($type==3){
$check_list = PortalArticleModel::where(['is_published'=>1,'article_type'=>3])->order(['is_top'=>'DESC','list_order'=>'ASC','create_time'=>'DESC'])->field('id,article_type,title,desc,create_time,thumbnail')->paginate(6);
foreach($check_list as $k=>$v){
$check_list[$k]['year'] = date('Y',$v['create_time']);
$check_list[$k]['md'] = date('m-d',$v['create_time']);
}
depart_id | 1 |
PHPSESSID | feaf31898eeb5558751ded507542b7b7 |
last_time | 1695458526 |
USER | nobody |
HOME | / |
HTTP_COOKIE | PHPSESSID=feaf31898eeb5558751ded507542b7b7 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.fengyuanhuaxue.com |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html) |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.fengyuanhuaxue.com |
SERVER_PORT | 443 |
SERVER_ADDR | 10.19.242.31 |
REMOTE_PORT | 53332 |
REMOTE_ADDR | 107.158.145.214 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/user/htdocs/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /portal/news/list.html?depart_id=1 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//portal/news/list.html&depart_id=1 |
PATH_INFO | |
SCRIPT_FILENAME | /data/user/htdocs/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1695458526.5513 |
REQUEST_TIME | 1695458526 |