{include file="header.html"}
首页 > 文章中心

#### 推荐

Fashion Women

{assign var=top value=$model->execute(" select n.*,c.name from tc_news n,tc_category c where c.id = n.classid and top=0 and levels=1 and special=0 and flashpic=0 and isphoto=0 order by addtime asc limit 3",86400)} {foreach from=$top item=val key=key}

- {$val.name}频道 {$val.title} {$val.addtime|date_format:"%Y-%m-%e"} {$val.vhits} {$val.reply_num} {$val.smallmemo}

{/foreach}

猜你喜欢

{foreach from=$categoryAry item=cAry key=kk}
- {$cAry.name}
{/foreach}

{foreach from=$categoryAry item=categoryAry key=kk} {assign var=categoryId value=$categoryAry.id}

#### {$categoryObj->getCategoryNameById($categoryId)}

Font end development

{assign var=value value=$model->execute("select id,title,smallmemo,photo from tc_news where photo != '' AND isphoto=1 and classid in (SELECT id FROM tc_category WHERE classid = $categoryId or pid =$categoryId) order by id desc limit 3",86400)} {foreach from=$value item=val key=key}
- {$val.title|truncate:30} 2018-11-11 推荐: 李子木 {$val.title}
{/foreach}

{/foreach}

#### 推荐文章

Recommend-articals

{assign var=top value=$model->getDatas("table=news,num=15,orderby=addtime,orderway=desc,authen=0,cache=86400,pageSize=10,classid=get,top=0,levels=1,special=0,flashpic=0,isphoto=0")}
- 1 {$top[0].title}
- 2 {$top[1].title}
- 3 {$top[2].title}
{foreach from=$top item=val key=key} {if $key gt 2}
- {$key+1} {$val.title}
{/if} {/foreach}

#### 最新发布

Return rankings

{assign var=levels value=$model->getDatas("table=news,num=10,orderby=addtime,orderway=desc,authen=0,cache=86400,pageSize=10,classid=get,top=0,levels=0,special=0,flashpic=0,isphoto=0")} {foreach from=$levels item=val}
- {$val.hits}{$val.title}
{/foreach}

{include file="footer.html"}
{literal}
{/literal}