{template 'video','header'}
<div id="main">
<div class="left w250">
<div class="tit fb f14">热点视频</div>
<div class="midcon">
<div class="blank10"></div>
<ul class="pic_txt">
{tag_视频首页热点视频}
</ul>
</div>
<!--midcon结束-->
</div>
<!--left结束-->
<div class="left focus">
 <div style="display: block;" id="flashcontent1">
  <div align="left">
  {tag_视频首页焦点幻灯片}
  </div>
</div>

</div>
<!--焦点图结束-->
<div class="w254 left left10">
<div class="search"> <form name="myform" method="get" action="video/search.php">
<input type="hidden" value="1" name="dosubmit">
<input type="text" value="" name="title" class="input_txt" /><input type="submit" value="搜索" class="button_bg f14" /></form></div>
<div class="blank10"></div>
<div class="subject">
<div class="tit fb f14 blue"><span>最新专题</span></div>
<div class="midcon">
<div class="blank10"></div>
{get sql="SELECT * FROM phpcms_video_special WHERE disabled=0 ORDER BY specialid DESC" rows="11"}
{if $n==1}<ul class="pic_txt">
<li><a href='{video_special_url("$r[specialid]")}' target="_blank" class="left"><img src="{$r[thumb]}" width="69" height="53"/></a><p class="blue"><a href='{video_special_url("$r[specialid]")}'>{$r[title]}</a></p></li>
<div class="clear"></div>
</ul><ul class="list12">
{else}
<li><a href='{video_special_url("$r[specialid]")}'>{$r[title]}</a></li>
{/if}
{/get}
</ul>
</div>
</div>
<!--最新专题结束-->
</div>
<!--右侧结束-->
<div class="clear"></div>
<!--循环开始-->

<!--{loop $subcats $catid $cat}-->
<div class="blank10"></div>
<div class="allcon_hd f14 fb"><span class="more"><a href="{$cat[url]}">>>更多</a></span>
<span class="navtit">
{php $arr_child = subcat('video',$catid,0);}
{loop $arr_child $c}<a href="{$c[url]}">{$c['catname']}</a>{/loop}
</span><h2 class="f14"><a href="{$cat[url]}" class="blue">{$cat[catname]}</a></h2></div>
<div class="midcon">
<div class="leftcon">
<div class="blank10"></div>
<!--w252-->
{php $catids = get_sql_catid($catid);}
<div class="w252 left">
{get sql="SELECT * FROM $video_table WHERE status=99 $catids ORDER BY vid DESC" rows="3"}
{if $n==1}
<div class="itimg"><a href='{video_show_url("$r[vid]","$r[url]")}' class="img_padding"><img src="{$r[thumb]}" width="214" height="144"/></a><h2><a href='{video_show_url("$r[vid]","$r[url]")}' class="f14 blue">{str_cut($r[title],26,'')}</a></h2><p>{str_cut($r['description'],30)} <a href='{video_show_url("$r[vid]","$r[url]")}' class="blue">详细>></a></p></div>
<div class="dashed"></div>
<ul class="list12">
{else}
<li><a href='{video_show_url("$r[vid]","$r[url]")}'>{str_cut($r[title],26,'')}</a></li>
{/if}
{/get}
</ul>
</div>
<!--w252结束-->
<div class="left">
<ul class="top_img">
{get sql="SELECT * FROM `phpcms_video` a,`phpcms_video_count` b WHERE a.vid=b.vid AND a.status=99 $catids ORDER BY a.vid DESC" rows="11"}
{if $n<4}
<li><a href="{video_show_url($r[vid],$r[url])}" class="img_padding"><span class="v_time">{format_time($r[timelen])}</span><img src="{$r[thumb]}" width="124" height="94" alt="{$r[title]}"/></a><h2 class="blue">{str_cut($r[title],36,'')}</h2><p>播放：<span class="blue">{$r[hits]}次</span></p><p>时长：{format_time($r[timelen])}</p></li>
	{if $n==3}</ul><div class="clear"></div><ul class="txt_list">{/if}
{else}
<li><a href='{video_show_url("$r[vid]","$r[url]")}'>{str_cut($r[title],32,'')}</a></li>
{/if}
{/get}
</ul>
</div>

</div>
<!--左侧栏目结束-->
<div class="right w254">
<div class="blank10"></div>
<div class="ph">
<div class="titleBar">
<h3>排行榜</h3>
<ul class="tagList right">
<li class="on" id="linktab{$catid}_1" onmouseover="showmenu(1, 3, 'linktab{$catid}', 'link{$catid}')">本周</li>
<li id="linktab{$catid}_2" onmouseover="showmenu(2, 3, 'linktab{$catid}', 'link{$catid}')">本月</li>
<li id="linktab{$catid}_3" onmouseover="showmenu(3, 3, 'linktab{$catid}', 'link{$catid}')">今日</li>
</ul>
</div>
<div class="blank8"></div>
<div class="clear"></div>
<ul class="rtlist" id="link{$catid}_1">
{get sql="SELECT * FROM phpcms_video a,phpcms_video_count b WHERE a.vid=b.vid AND status=99 $catids AND hits_time>$week_time ORDER BY b.hits_week DESC" rows="10"}
<li><span>{str_pad($n, 2, 0, STR_PAD_LEFT)}</span><a href='{video_show_url("$r[vid]","$r[url]")}'>{str_cut($r[title],36,'')}</a></li>
{/get}
</ul>
<div class="clear"></div>
<ul class="rtlist" id="link{$catid}_2" style="display:none">
{get sql="SELECT * FROM phpcms_video a,phpcms_video_count b WHERE a.vid=b.vid AND status=99 $catids AND hits_time>$month_time ORDER BY b.hits_month  DESC" rows="10"}
<li><span>{str_pad($n, 2, 0, STR_PAD_LEFT)}</span><a href='{video_show_url("$r[vid]","$r[url]")}'>{str_cut($r[title],36,'')}</a></li>
{/get}
</ul>
<div class="clear"></div>
<ul class="rtlist" id="link{$catid}_3" style="display:none">
{get sql="SELECT * FROM phpcms_video a,phpcms_video_count b WHERE a.vid=b.vid AND status=99 $catids AND hits_time>$day_time ORDER BY b.hits_month  DESC" rows="10"}
<li><span>{str_pad($n, 2, 0, STR_PAD_LEFT)}</span><a href='{video_show_url("$r[vid]","$r[url]")}'>{str_cut($r[title],36,'')}</a></li>
{/get}
</ul>
<div class="clear"></div>

</div>
<!--ph结束-->
</div>
<!--右侧排行结束-->
<div class="clear"></div>
</div>
{/loop}
<!--循环结束-->
</div>
<!--main结束-->
<SCRIPT LANGUAGE="JavaScript">
<!--
function showmenu(id, all, menu, tab)
{
	for (var i = 1; i<= all; i++)
	{
		$('#'+tab+'_'+i).hide();
		$('#'+menu+'_'+i).removeClass('on');
	}
	$('#'+menu+'_'+id).addClass('on');
	$('#'+tab+'_'+id).show();
}
//-->
</SCRIPT>
{template 'phpcms','footer'}