最近新闻
    {php} $lately = \Think\Db::table('sur_article')->alias('a')->join('sur_category c','a.cid=c.id') ->field('a.id,a.cid,a.title,a.create_time,c.url')->order('id','desc')->limit(3)->select(); {/php} {foreach $lately as $value}
  • {$value.title}
  • {/foreach}
归档
    {php} $month = [ '01'=>'一', '02'=>'二', '03'=>'三', '04'=>'四', '05'=>'五', '06'=>'六', '07'=>'七', '08'=>'八', '09'=>'九', '10'=>'十', '11'=>'十一', '12'=>'十二', ];{/php} {foreach $timeList as $value} {php}$yearAndMonth = explode("-",$value);{/php}
  • {$yearAndMonth[0]}年{$month[$yearAndMonth[1]]}月
  • {/foreach}
热门搜索