$def with (vcp) $code vc=vcp[0] pages=vcp[1] arg=vcp[2] if vcp[3] == None: q='' else: q=vcp[3] num=vcp[4] if vcp[5]: cat=vcp[5] else: cat='' hot = vcp[6] if vcp[7]: status=vcp[7] else: status='' if vcp[8]: top=vcp[8] else: top=False if vcp[9]: owners=vcp[9] else: owners=['','','','','','','','','','','','','','','','','','','',''] if vcp[10]: hits=vcp[10] else: hits=['','','','','','','','','','','','','','','','','','','',''] if vcp[11]: time=vcp[11] else: time=0 if vcp[12]: cat2 = vcp[12] else: cat2 = '' if vcp[13]: catdict = vcp[13] else: catdict = {} if vcp[14]: order = vcp[14] else: order = '' if vcp[15]: filtertime = vcp[15] else: filtertime = '' if vcp[16]: filterhits = vcp[16] else: filterhits = '' if vcp[17]: hots = vcp[17] else: hots = [] if vcp[18]: rss = vcp[18] else: rss = '/feed' def ttl(s): ss = s[s.find('《'.decode('utf-8')):s.find('》'.decode('utf-8'))+1] if len(ss)>12: ss = ss[0]+ss[1:11]+ss[-1] return ss names = ['热门游戏','热门电影','热门剧集','热门音乐','热门动漫','五分钟热点','一小时热点','一天热点'] $:render_template("templates/header.html",arg=['SimpleCD | 精简版的VeryCD','SimpleCD,eMule,资源,搜索','SimpleCD专注于为VeryCD做简单的备份,同时也提供了基本的搜索和列表功能。SimpleCD是开源网站,基于web.py框架,并且有桌面版供Windows个人用户使用。',rss]) $:render_template("templates/nav.html",arg=[q,cat,'']) $if q == '' and cat == '':
$for i in range(len(names)):
$for id,title,hvalue in hots[i]:

热度:$hvalue
分类: $if cat=='' and status == '': 全部 $if cat=='' and status == '': $for catname in ['电影','剧集','音乐','游戏','动漫','综艺','软件','资料','图书','教育']: $if cat==catname.decode('utf-8'): $if q: $catname $else: $catname $if cat==catname.decode('utf-8'): $if cat=='未过审': 未过审 $if cat=='未过审': $if cat=='本站原创': 本站原创 $if cat=='本站原创':  随机
$if cat:
子类: $if cat2=='': 全部 $if cat2=='': $for catname in catdict[cat.encode('utf-8')]: $if cat2==catname.decode('utf-8'): $catname $if cat2==catname.decode('utf-8'):
$if q:
按日期过滤: $if filtertime=="": 全部  $if filtertime=="": $if filtertime=="86400": 最近一天  $if filtertime=="86400": $if filtertime=="604800": 最近一周  $if filtertime=="604800": $if filtertime=="2592000": 最近一月  $if filtertime=="2592000": $if filtertime=="7776000": 最近三月  $if filtertime=="7776000": $if filtertime=="31104000": 最近一年  $if filtertime=="31104000":
按人气过滤: $if filterhits=="": 全部  $if filterhits=="": $if filterhits=="100": 声名不显  $if filterhits=="100": $if filterhits=="1000": 小有名气  $if filterhits=="1000": $if filterhits=="10000": 万众瞩目  $if filterhits=="10000": $if filterhits=="100000": 风头正劲  $if filterhits=="100000": $if filterhits=="1000000": 家喻户晓  $if filterhits=="1000000":
排序: $if order=="": 按相关度排序  $if order=="": $if order=="updtime": 按更新日期排序  $if order=="updtime": $if order=="hits": 按点击量排序  $if order=="hits":
$for i in range(min(20,len(vc))): $if vc[i].verycdid>2147483647 or owners[i] != '': $else:
   最近更新 摘要 作者
$vc[i].title
$:vc[i].brief
更新时间:$:vc[i].updtime 点击:$hits[i]
$owners[i]Topic$vc[i].verycdid
        首页 $if pages[0] != '1': 上一页 $for p in pages[4:]: $if p == pages[0]: $p $else: $p $if pages[2] != pages[3]: 下一页 末页

$if q != '' and num<0:
对搜索结果不满意?VeryCD上有更多结果?试试
本类资源SimpleCD共收录 $num 条,本页面生成时间: $time 秒
$if cat != '': 查看本类资源列表:资源所在页面数固定

$:render_template("templates/footer.html")