{template "content","header"}
<!----bax bat ottora kismi------>
<div id="ottorakismi">
<div id="ottoraleft">
<div class="ditalturliri">
			<h2>软件分类</h2>
			<div class="turlar">
			{pc:content action="category" catid="0" siteid="$this->siteid" order="listorder ASC" num="6" }
			{loop $data $r}<div id="turlarmidu">
				<div class="qongtur">{$r[catname]}</div>
				<ul class="kiqiktur" style="display:block">{pc:content action="category" catid="0"  num="6" }
					{loop subcat($r[catid],0,0,$this->siteid) $v}
					<li><a href="{$r[url]}">{$v[catname]}</a></li>{/pc}
					{/loop}
				</ul></div><br>
			{/loop}	
			{/pc}<br>	
			<div id="tihimukoptur"><li><a href="?m=content&c=rss&catid={$v[catid]}&siteid={SITEID}">更多软件分类<i class="icon"></i></a></li></div>
			</div>
		</div>
</div>
<div id="ottoracenter">
<!------ottora yigi yollangan ditallar---------------->
<div id="newsoft">
<h2>站长推荐</h2>
        	<div class="newsoft">
        	{pc:content  action="position" posid="2" order="listorder DESC" num="5"}
        	 {loop $data $r}
               
                <p><img src="{thumb($r[thumb])}"/><span><hat><a class="timisi" href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],36,'')}</a></hat><br><txt>{str_cut($r[description],512)}<a href="{$r[url]}">【详细内容】</a><txt></span></p>
                <div class="bk20 hr"><hr /></div>
               {/loop}  
             {/pc}   
            </div>
</div>
<!------ottora yigi yollangan ditallar---------------->
<!------ottora yigi yollangan ditallar---------------->
<div id="newsofts">
<h2>最新更新</h2>
<div id="yigiyollangan">
{pc:get sql="select * from phpcms_download where status = 99" num="12"}
 <ul>
 {loop $data $n $r}
 <li> <a href="{$r[url]}">{$r[title]}</a></li>
 {/loop}
 </ul>
 {/pc}
</div>


</div>
<!------ottora yigi yollangan ditallar---------------->
</div>
<div id="ottoraright">
<div id="rightmazmun">
<h2>热门排行</h2>
			{pc:get sql="select * from phpcms_download where status = 99" action="hits" num="9" order="views DESC"}
				
<ul>{loop $data $r}
<li>
<div id="rasimi"><a href="{$r[url]}" target="_blank"><img src="{thumb($r[thumb],110,0)}" title="{$r[title]}"/></a></div>
<div id="hiti"><a href="{$r[url]}" target="_blank">{$r[title]}</a></div>
<div id="quxurux"><a href="{$r[url]}" target="_blank">下载</a></div>
</li>
				{/loop}
			</ul>{/pc}
</div></div>

<div style="clear:both;"></div><div class="bk10"></div>
<!----tawsiyalik dital---rasimlik------>

<div id="rasimliktawsiya">
 <h1>推荐的软件</h1>
  <div id="Marquee_x">{pc:content  action="position" posid="12" thumb="1" order="listorder DESC" }
    <ul>{loop $data $r}
      <li>
<div id="rasimi"><a href="{$r[url]}" target="_blank"><img src="{thumb($r[thumb],110,0)}" title="{$r[title]}"/></a><div><div id="hiti"><a href="{$r[url]}" target="_blank">{$r[title]}</a></div></li>{/loop}	
    </ul>{/pc}
  </div>
</div>
  <div style="clear:both;"></div>
<!----tawsiyalik dital---rasimlik------>
<!----bax bat ottora kismi------></div>
<!------ditallar------>
<div id="ditallar">
<div id="ditallarr">
{loop subcat(0,0,0,$siteid) $r}
        {php $num++}
        <div class="ditallar" {if $num%3!=0}style=" margin-right:30px"{/if}>
        		<h5 class="title-1">{$r[catname]}<a href="{$r[url]}" class="more">更多>></a></h5>
             <div class="content">
             {pc:content  action="lists" catid="$r[catid]" order="updatetime DESC" thumb="1" num="1" return="info"}
             {loop $info $v}
             	
             		<div class="ditalrasimi"><img src="{thumb($v[thumb])}"/></div>
                    <div class="ditalisimi"><strong><a href="{$v['url']}" target="_blank" title="{$v['title']}"{title_style($v[style])}>{str_cut($v['title'],28)}</a></strong><br />{str_cut($v['description'],100)}</div>
                
              {/loop}
              {/pc}                
                <div class="bk15 hr"></div>
                {pc:content action="lists" catid="$r[catid]" num="9" order="id DESC" return="info"}

                <ul class="list lh24 f14">
                {loop $info $v}
                	<li>·<a href="{$v['url']}" target="_blank" title="{$v['title']}"{title_style($v[style])}>{str_cut($v['title'],40)}</a></li>
                {/loop}
                </ul>
                {/pc}
            </div>
        </div>
        {if $num%3==0}<div class="bk10"></div>{/if}
		{/loop} </div></div>
<!------ditallar------>
<div style="clear:both;"></div>
<!-----------dostana ulinixlar------------->
<div id="ulinixlar">
    	<h5><a href="{APP_PATH}index.php?m=link&siteid={$siteid}" hidefocus="true" class="rt">更多>></a>友情链接<a href="{APP_PATH}index.php?m=link&c=index&a=register&siteid={$siteid}" class="red">申请链接</a></h5>

	<ul class="colli imgul">
        {pc:link  action="type_list" siteid="$siteid" linktype="1" order="listorder DESC" num="8" return="pic_link"}
        {loop $pic_link $v}
        <li><a href="{$v['url']}" title="{$v['name']}" target="_blank"><img src="{$v[logo]}" width="88" height="31" /></a></li>
        {/loop}
        {/pc}
    </ul>
</div>

<!-----------dostana ulinixlar------------->
<div style="clear:both;"></div>
        <div class="bk10"></div>

{template "content","footer"}