<include file="header.html" />
<div id="commend">

<CMS action="LIST" return="List"  where="c.Photo!=''"  TableID="2" num="10" />
<loop name="List" key="key" var="var" >
<div class="box_xs">
<ul>
<li class="box_xs_t">&nbsp;</li>
<li class="box_xs_c"><a href="[$var.URL]" ><img alt="[$var.SoftName]" src="[@AutoMini($var.Photo,'100*80',$var)]" width="100" /></a></li>
<li class="box_xs_c2"><a href="[$var.URL]" title="[$var.SoftName]">[@CsubStr($var.SoftName, 0, 10)]</a></li>
<li class="box_xs_b">&nbsp;</li>
</ul>
</div>
</loop>


</div>
<span class="cls"></span>

<div id="left">

<include file="search_box.html"/>



<CMS action="COUNT" return="NewsNum" function="count(*)" TableID="1" />
<CMS action="COUNT" return="SoftNum" function="count(*)" TableID="2" />

<CMS action="COUNT" return="DownloadNum" query="select sum(Hits_Total) as TotalNum from #TABLE_HEADER#plugin_base_count where TableID=2 " />

<op exp="$time =  strtotime(date('Y-m-d'))" /> 
<CMS action="COUNT" return="TodayNum" function="count(*)" TableID="2" where="i.PublishDate > {$time}" />


<div class="box_s">
<div class="box_s_t">&nbsp;</div>
<div class="box_s_c">
<h2>本站资源信息</h2>
<ul>
<li>本站共有软件：<font color="#FF0000">[$SoftNum]</font> 个 </li>
<li>今日更新软件：<font color="#FF0000">[$TodayNum]</font> 个 </li>
<li>资讯文章篇数：<font color="#FF0000">[$NewsNum] </font> 篇 </li>
<li>总下载：<font color="#FF0000">[$DownloadNum]</font> 次 </li>
</ul>
</div>
<div class="box_s_b">&nbsp;</div>
</div>

<div class="box_s">
<div class="box_s_t">&nbsp;</div>
<div class="box_s_c">
<h4>推荐软件</h4>
<ul>
<!--推荐软件调用，调用所有分类中的精华设置软件(i.Pink DESC )-->
<CMS action="LIST" return="List"  orderby="i.Pink DESC" where="co.TableID=2" TableID="2" num="10" />
<LOOP $List var=var key=key> 
<li><a href=" [$var.URL] " target=_blank title=" [$var.SoftName] " >[@CsubStr($var.SoftName, 0, 10)] </a> </li>
</LOOP> 
</ul>
</div>
<div class="box_s_b">&nbsp;</div>
</div>

<div class="box_s">
<div class="box_s_t">&nbsp;</div>
<div class="box_s_c">
<h2>总下载排行</h2>
<ul>
<!--总下载排行调用，使用Hits_Total进行排序-->
<CMS action="LIST" return="List"  where="co.TableID=2" orderby="Hits_Total" TableID="2" num="10" />
<LOOP $List var=var key=key> 
<li><a href=" [$var.URL] " target=_blank title=" [$var.SoftName] " >[@CsubStr($var.SoftName, 0, 10)] </a>
</LOOP> 

</ul>
</div>
<div class="box_s_b">&nbsp;</div>
</div>
<div class="box_s">
<div class="box_s_t">&nbsp;</div>
<div class="box_s_c">
<h3>本周下载排行</h3>
<ul>
<!--总下载排行调用，使用Hits_Week进行排序-->
<CMS action="LIST" return="List"  where="co.TableID=2" orderby="Hits_Week" TableID="2" num="10" />
<LOOP $List var=var key=key> 
<li><a href=" [$var.URL] " target=_blank title=" [$var.SoftName] " >[@CsubStr($var.SoftName, 0, 10)] </a>
</LOOP> 

</ul>
</div>
<div class="box_s_b">&nbsp;</div>
</div>
<div class="box_s">
<div class="box_s_t">&nbsp;</div>
<div class="box_s_c">
<h4>今日下载排行</h4>
<ul>
<!--总下载排行调用，使用Hits_Today进行排序-->
<CMS action="LIST" return="List"  where="co.TableID=2" orderby="Hits_Today" TableID="2" num="10" />
<LOOP $List var=var key=key> 
<li><a href=" [$var.URL] " target=_blank title=" [$var.SoftName] " >[@CsubStr($var.SoftName, 0, 10)] </a>
</LOOP> 

</ul>
</div>
<div class="box_s_b">&nbsp;</div>
</div>

 

<include file="../copyright.html" />

</div><!--end left-->
<div id="right">


 


<!--{{{调用新闻资讯-->
<div class="box_l">
<div class="box_l_t">&nbsp;</div>
<div class="box_l_c" id="news">
<CMS action="NODE" return="NodeInfo" NodeGUID="com.cmsware.download.news" />
<h1 id="idx_news">[$NodeInfo.Name]</h1>
<ul>
<CMS action="LIST" return="List" NodeGUID="com.cmsware.download.news" Num="3"    />
<LOOP name="List" var="var" key="key"> 
<li><span>[[@date("Y-m-d", $var.PublishDate)]]</span>[$var.Content]</li>
</LOOP>
</ul>
</div>
<div class="box_l_b">&nbsp;</div>
</div>
<!--}}}-->

<!--{{{left one-->
<div class="box_m_left">
<div class="box_m_t">&nbsp;</div>
<div class="box_m_c">
<h3><a href="#" title="更多更新...">最新软件</a></h3>
<ul class="com">
<CMS action="LIST" return="List"  where="co.TableID=2" orderby="i.PublishDate DESC " TableID="2" num="10" />
<LOOP $List var=var key=key> 
<li><span class='date'>[@date("m-d", $var.PublishDate)]</span><a href="[$var.URL]" title="[$var.SoftName]">[@CsubStr($var.SoftName, 0, 15)] </a></li>
</LOOP> 
</ul>
</div>
<div class="box_m_b">&nbsp;</div>
</div>
<!--}}}-->

<!--{{{right one-->
<div class="box_m_right">
<div class="box_m_t">&nbsp;</div>
<div class="box_m_c">
<h2><a href="#" title="更多文章更新...">最新文章</a></h2>
<ul class="com">
<CMS action="LIST" return="List"  where="co.TableID=1" orderby="i.PublishDate DESC " TableID="1" num="10" />
<LOOP $List var=var key=key> 
<li><span class='date'>[@date("m-d", $var.PublishDate)]</span><a href="[$var.URL]" title="[$var.Title]">[@CsubStr($var.Title, 0, 15)] </a></li>
</LOOP> 
</ul>
</div>
<div class="box_m_b">&nbsp;</div>
</div>
<!--}}}-->

<!--{{{开始调用下载中心下的所有子结点信息-->
<CMS action="NODELIST" return="NodeList" Type="sub" NodeGUID="com.cmsware.demo.download" ignore="18,17" />
<loop name="NodeList" key="keyNodeInfo" var="varNodeInfo" start="1" >
	<if test="$keyNodeInfo%2 == 0">
 		<div class="box_m_right">
	<else>
 		<div class="box_m_left">
	</if>
	<div class="box_m_t">&nbsp;</div>
	<div class="box_m_c">
	<h3><a href="[$varNodeInfo.NodeURL]" title="更多更新...">[$varNodeInfo.Name]</a></h3>
	<ul class="com">
		<CMS action="LIST" return="List"  where="co.TableID=2" NodeID="{$varNodeInfo.NodeID}" TableID="2" num="10" />
			<LOOP name="List" var="var" key="key"> 
			<li><span class='date'>[@date("m-d", $var.PublishDate)]</span><a href="[$var.URL]" title="[$var.SoftName]">[@CsubStr($var.SoftName, 0, 14)] </a></li>
			</LOOP> 
	</ul>
	</div>
	<div class="box_m_b">&nbsp;</div>
	</div>
</loop>
<!--}}}-->


 
<div class="box_l">
	<div class="box_l_t">&nbsp;</div>
		<div class="box_l_c" id="news">
		<CMS action="NODE" return="NodeInfo" NodeGUID="com.cmsware.download.links" />
		<h1 id="idx_news">[$NodeInfo.Name]</h1>
		<ul>
		<CMS action="LIST" return="List" NodeGUID="com.cmsware.download.links" orderby="i.PublishDate ASC"    />
		<li>
		<LOOP name="List" var="var" key="key" > 
 		<a href="[$var.LinkURL]" title="[$var.LinkName]" target="_blank">[$var.LinkName]</a>&nbsp;&nbsp;
		</LOOP>
		</li>

		</ul>
		</div>
		<div class="box_l_b">&nbsp;</div>
		</div>

	</div>
<!--right end -->
<span class="cls"></span>
</div>
<include  file="../footer.html" />

</body>
</html>