{include="style"}
{if($data['type']=='news')}

media_id | title | thumb_media_id | show_cover_pic | author | digest | content | url | content_source_url
--- | --- | --- | --- | --- | --- | --- | --- | ---
{foreach $lists as $k=>$v}
{$v['media_id']} | {$v['news_item'][0]['title']} | {$v['news_item'][0]['thumb_media_id']} | {$v['news_item'][0]['show_cover_pic']} | {$v['news_item'][0]['author']} | {$v['news_item'][0]['digest']} | {fun newstr($v['news_item'][0]['content'],30)} | {$v['news_item'][0]['url']} | {$v['news_item'][0]['content_source_url']}
{foreach $v['news_item'] as $kk=>$vv} {if($kk>0)}
{$vv['title']} | {$vv['thumb_media_id']} | {$vv['show_cover_pic']} | {$vv['author']} | {$vv['digest']} | {fun newstr($vv['content'],30)} | {$vv['url']} | {$vv['content_source_url']}
{/if} {/foreach} {/foreach}
总共{$total_count}条 {if($data['offset']>0)} {/if} {if($item_count<$total_count)} {/if}

{else}

media_id | name | update_time | url
--- | --- | --- | ---
{foreach $lists['item'] as $v} {if($v['media_id'])}
{$v['media_id']} | {$v['name']} | {fun date('Y-m-d H:i:s',$v['update_time'])} | {if($data['type']=='image')}{else}{$v['url']}{/if}
{/if} {/foreach}
总共{$total_count}条 {if($data['offset']>0)} {/if} {if($item_count<$total_count)} {/if}

{/if}