$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=['','','','','','','','','','','','','','','','','','','','']
    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

<HTML>
	<HEAD>
		<title>SimpleCD|精简版的VeryCD</title>
		<meta name="google-site-verification" content="Zn8-wcG_gEvi5TA5Dq0Gjlf0FvwlVbr3XXN6NCrfAMk" />
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<META NAME="keywords" CONTENT="VeryCD,精简版,emule,电骡,下载">
		<META NAME="description" content="SimpleCD专注于为VeryCD做简单的备份，同时也提供了基本的搜索列表功能">
		<script language="javascript" type="text/javascript" src="/static/common.js"></script> 
		<LINK href="/static/main_02.css" type="text/css" rel="stylesheet">
		<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed">
		<link rel="shorcut icon" href="/static/favicon.ico"/>
	</HEAD>

	<BODY onload=init('');>
		<table cellpadding=0 cellspacing=1 align=center width=800>
			<tr><td>
				<a href="http://www.simplecd.org/bbs/index.php">论坛</a>&nbsp;|&nbsp;
				<a href="http://www.simplecd.org/feed">订阅更新</a>&nbsp;|&nbsp;
				<a href="http://www.simplecd.org/bbs/forumdisplay.php?fid=3" >意见反馈</a>
			</td>
		</table>
		<table cellpadding=0 cellspacing=0 align=center width=800>
			<tr><td width=218><a href=/><img src=/static/simplecd.png height=68></a></td>
				<td valign=middle align=right>
	                <form id=search method=get action=/>
						<INPUT type=text name=q size=30 value="$q">
						$if cat != '':
							<INPUT type=hidden name=cat value="$cat">
						<SELECT name=cat>
							<option value="">分类</option>
							$for catname in ['电影','剧集','音乐','游戏','动漫','综艺','软件','资料']:
								$if cat==catname.decode('utf-8'):
									<option value=$catname selected>$catname</option>
								$else:
									<option value=$catname>$catname</option>
						</SELECT>
						<INPUT type=submit value="SimpleCD搜索">
					</form>
				</td></tr>
		</table>
		$if q == '':
			<table cellpadding=0 cellspacing=0 align=center width=800>
			<tr><td>
			$:hot
			</td></tr>
			</table>
		<div class=reslist align=center width=800>
		<table cellpadding=0 cellspacing=0 align=center width=800>
			<tr><td align=right style="font-size:18px">
				分类：
				$if cat=='' and status == '':<b>
				<a class=cat href="/?q=$q&page=$pages[0]">全部</a>
				$if cat=='' and status == '':</b>
				$for catname in ['电影','剧集','音乐','游戏','动漫','综艺','软件','资料']:
					$if cat==catname.decode('utf-8'):<b>
					<a class=cat href="/?q=$q&cat=$catname&page=1">$catname</a>
					$if cat==catname.decode('utf-8'):</b>
				$if status=='0':<b>
				<a class=cat href="/?status=0">未过审</a>
				$if status=='0':</b>
				$if status=='3':<b>
				<a class=cat href="/?status=3">本站原创</a>
				$if status=='3':</b>
			</td></tr>
		</table>
		<table cellpadding=0 cellspacing=0 align=center width=800>
			<tr>
				<td class=bt > &nbsp;&nbsp;&nbsp;<b>最近更新的资源</b></td>
				<td class=bt width=80>更新时间</td>
				<td class=bt width=78>作者</td>
			</tr>
			$for i in range(min(20,len(vc))):
				<tr bgcolor=#ffffff height=30>
					<td class=xt valign=middle><a href="/id/$vc[i].verycdid">$:vc[i].title</a></td>
					<td class=xt>$:vc[i].updtime</td>
					$if vc[i].verycdid>2147483647 or owners[i] != '':
						<td class=xt><a href="/user/$owners[i]">$owners[i]</a></td>
					$else:
						<td class=xt><a href="http://www.verycd.com/topics/$vc[i].verycdid/">Topic$vc[i].verycdid</a></td>
				</tr>
		</table>
		<table cellpadding=0 cellspacing=0 align=center width=800>
			<tr bgcolor=#ffffff height=30 align=right>
				<td>
				<font size=4>
					<a href="$arg=1">首页</a>
					<a href="$arg=$pages[0]">上一页</a>
					$for p in pages[3:]:
						<a href="$arg=$p">$p</a>
					<a href="$arg=$pages[1]">下一页</a>
					<a href="$arg=$pages[2]">末页</a>
				</font>
				</td>
			</tr>
		</table>
		<p>
		</div>
		<script type="text/javascript">
			  var _gaq = _gaq || [];
			  _gaq.push(['_setAccount', 'UA-10627564-5']);
			  _gaq.push(['_trackPageview']);
			  (function() {
			    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
			  })();
		</script>
<script language="javascript" type="text/javascript" src="http://js.users.51.la/3491149.js"></script>
<noscript><a href="http://www.51.la/?3491149" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/3491149.asp" style="border:none" /></a></noscript>
	</BODY>
</HTML>
