1, 'a.archives_type' => array( 'eq', 'blog' ) ); import( 'ORG.Util.Page' ); $total = $model ->table($dbfix.'archives_blog b') ->join($dbfix.'archives a ON a.archives_id = b.archives_id') ->where($where) ->count(); $p = new Page($total,C('LIST_VIEW_NUMBER')); $list = $model ->table($dbfix.'archives_blog b') ->join($dbfix.'archives a ON a.archives_id = b.archives_id') ->where($where) ->order('a.create_time DESC') ->limit($p->firstRow . ',' . $p->listRows) ->select(); return array( 'list' => $list, 'page' => $p->show() ); } $index = getBlogIndex(); $list = $index['list']; $page = $index['page']; ?>
  • {$vo.name}

    {$vo.create_time|date=C('DEFAULT_DATE_FORMAT'),###} / {$vo.author|getAuthorName} / {$vo.click} / {$vo.count} / {$vo.cid|getCategoryName}

    {$vo.summary}
    TAG: {$vo.tags|getGeneralTags}
{$page}