{dede:include filename="head.htm"/}
用户名密码
### 日记排行榜Top5 {dede:sql sql="select mtj.mid,mtj.article,tp.spacename,tp.spacename,arc.mid,arc.userid,arc.uname from dede_member_tj as mtj LEFT JOIN dede_member_space as tp ON mtj.mid=tp.mid LEFT JOIN dede_member as arc ON mtj.mid=arc.mid where 1=1 order by article desc LIMIT 0,30" pagesize='30'}
[field:global.autoindex/] [field:spacename runphp="yes"]if(@me=="")@me="未命名日记本";else @me=@me;[/field:spacename] | [field:uname/] | [field:article runphp="yes"]if(@me=="")@me="0";else @me=@me;[/field:article]篇
[field:global name=autoindex runphp="yes"]if(@me%5==0 &&@me!=30)@me=" ### Top".(@me+5)." ";else @me="";[/field:global] {/dede:sql}
{dede:sql sql="select count(mid) as c from dede_member "}日记本总数 13[field:c /]本 {/dede:sql} | {dede:sql sql="select count(*) as c from dede_archives"}日记总篇数 68[field:c /]篇{/dede:sql}
### 最新 {dede:sql sql="select * from dede_archives where typeid=2000 order by id desc LIMIT 0,20"}
[field:zzzxq runphp="yes"] if(@me=="11")@me="开心篇"; if(@me=="22")@me="甜蜜篇"; if(@me=="33")@me="深情篇"; if(@me=="44")@me="柔情篇"; if(@me=="55")@me="伤感篇"; if(@me=="66")@me="沧桑篇"; if(@me=="77")@me="苦涩篇"; if(@me=="88")@me="无奈篇"; if(@me=="99")@me="愤怒篇"; if(@me=="100")@me="分享篇"; if(@me=="")@me="开心篇"; [/field:zzzxq] | [field:title/] |  |
{/dede:sql} ### 开心 {dede:sql sql="select * from dede_archives where typeid=2000 and zzzxq='11' order by id desc LIMIT 0,20"}
开心篇 | [field:title/] |  |
{/dede:sql} ### 甜蜜 {dede:sql sql="select * from dede_archives where typeid=2000 and zzzxq='22' order by id desc LIMIT 0,20"}
甜蜜篇 | [field:title/] |  |
{/dede:sql} ### 深情 {dede:sql sql="select * from dede_archives where typeid=2000 and zzzxq='33' order by id desc LIMIT 0,20"}
深情篇 | [field:title/] |  |
{/dede:sql} ### 柔情 {dede:sql sql="select * from dede_archives where typeid=2000 and zzzxq='44' order by id desc LIMIT 0,20"}
柔情篇 | [field:title/] |  |
{/dede:sql} ### 伤感 {dede:sql sql="select * from dede_archives where typeid=2000 and zzzxq='55' order by id desc LIMIT 0,20"}
伤感篇 | [field:title/] |  |
{/dede:sql} ### 沧桑 {dede:sql sql="select * from dede_archives where typeid=2000 and zzzxq='66' order by id desc LIMIT 0,20"}
沧桑篇 | [field:title/] |  |
{/dede:sql} ### 苦涩 {dede:sql sql="select * from dede_archives where typeid=2000 and zzzxq='77' order by id desc LIMIT 0,20"}
苦涩篇 | [field:title/] |  |
{/dede:sql} ### 佳作 {dede:sql sql="select * from dede_archives where typeid=2000 and flag='c' order by id desc LIMIT 0,20"}
[field:zzzxq runphp="yes"] if(@me=="11")@me="开心篇"; if(@me=="22")@me="甜蜜篇"; if(@me=="33")@me="深情篇"; if(@me=="44")@me="柔情篇"; if(@me=="55")@me="伤感篇"; if(@me=="66")@me="沧桑篇"; if(@me=="77")@me="苦涩篇"; if(@me=="88")@me="无奈篇"; if(@me=="99")@me="愤怒篇"; if(@me=="100")@me="分享篇"; if(@me=="")@me="开心篇"; [/field:zzzxq] | [field:title/] |  |
{/dede:sql}
{dede:memberlist orderby='scores' row=6 istuirank='150' signlen=30} ### [field:spacename runphp="yes"]if(@me=="")@me="未命名日记本";else @me=@me;[/field:spacename] [field:mid runphp='yes'] global $dsql; //$dsql = new DedeSql(false); $a="Select d.title,d.id,d.mid,d.pubdate,d.mtype From #@__archives as d where d.mid = @me and channel=1 order by id desc limit 10 "; $dsql->SetQuery($a); $dsql->Execute(); $tags=""; $row = $dsql->GetOne($a); while($row = $dsql->GetArray()){ $url=GetOneArchive($row['id']); $auno=$auno+1; //echo $url['arcurl']; $tags .="
".$auno."".$row['title']." | ".GetrijiTypename($row['mtype'])." |
"; } @me =$tags; [/field:mid] {/dede:memberlist}
| {dede:include filename="right_index.htm"/}
{dede:include filename="footer.htm"/}