<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if(defined('SEO_TITLE') && SEO_TITLE != ''){ echo SEO_TITLE;}else{echo SITE_NAME.' - 安卓手机游戏下载|安卓应用市场';}?></title>
<meta name="keywords" content="<?php if(defined('SEO_KEYWORDS')){ echo SEO_KEYWORDS;}?>">
<meta name="description" content="<?php if(defined('SEO_DESCRIPTION')){echo SEO_DESCRIPTION;}?>">
<script language="javascript" type="text/javascript" src="<?php echo SITE_PATH;?>templates/lib/jquery-1.7.1.min.js" ></script>
<link rel="stylesheet"  href="<?php echo SITE_PATH;?>templates/<?php echo TEMPLATE;?>/css/style.css"  type="text/css" />
<script type="text/javascript" src="<?php echo SITE_PATH;?>templates/<?php echo TEMPLATE;?>/css/js/comm.js"></script>
<script type="text/javascript" src="<?php echo SITE_PATH;?>templates/lib/nbspslider-1.1/jquery.nbspSlider.1.1.js"></script>
<link href="<?php echo SITE_PATH;?>templates/lib/nbspslider-1.1/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    $(document).ready(function(){
        $("#index_top_left").nbspSlider({widths:'720px',heights:'200px',numBtnSty:"num",numBtnShow:1,speeds:500,delays:4000,preNexBtnShow:0});
    });
</script>
<?php require_once ('inc_head.php')?>
<p class="line-t-10"></p>
<div class="warp-content"> <!-- 主体内容 开始 -->
        <div class="l body-left"> <!-- 左侧主体内容 -->
            <div class="body-top-poster" id="index_top_left">
                <ul style=""><?php $c->get_ad(16); ?></ul>
            </div>
            <p class="line-t-10"></p>
            <!--精彩推荐-->
            <?php $a = $c->get_recommend(array('area_id'=>2,'pagesize'=>15,'count'=>0,'rewrite'=>SITE_REWRITEURL,'where'=>'(area_type=3  )'));//print_r($a['list'][0]);?>
            <div class="body-cent-boutique bor-sty bg-fff">
                <p class="line-t-10"></p>
                <span class="title"><em><?php echo $a['title']; ?></em></span>
                <ul class="bout-content">
                <?php if(!empty($a['list'])){ foreach($a['list'] as $k => $v){?>
                    <li>
                        <dl>
                            <dt class="play-img"><a href="<?php echo $v['surl']?>"><img src="<?php echo $v['app_logo']; ?>" width="72" height="72" border="0" alt="<?php echo $v['app_title']; ?>"></a></dt>
                            <dd class="play-name"><a href="<?php echo $v['surl']?>"><?php echo $v['app_title']; ?></a></dd>
                            <dd class="play-type"><?php echo $v['cate']['cname']; ?></dd>
                            <dd class="play-download" style="display:none;"><a href="<?php echo $v['surl']?>">下载</a></dd>
                        </dl>
                    </li>
                <?php } }?>
                </ul>
            </div>

            <p class="line-t-10"></p>
            <!--游戏排行-->
            <?php $a = $c->get_recommend(array('area_id'=>3,'pagesize'=>10,'count'=>0,'rewrite'=>SITE_REWRITEURL,'where'=>'(area_type=3 )'));//print_r($a);?>
            <div class="bor-sty ranking">
                <div class="l game-ranking">
                    <span class="rank-title"><?php echo $a['title']; ?></span>
                    <ul>
                    <?php if(!empty($a['list'])){foreach($a['list'] as $k => $v ){?>
                        <li>
                            <p class="open" <?php if($k!=0) echo "style='display:none;'" ?> >
                                <em class="l">
                                <span class="sort-num sort <?php if($k>2){echo "sort-num-grey";}?>"><?php echo ($k+1);?></span>
                                <a href="<?php echo $v['surl'];?>" class="rank-img"><img src="<?php echo $v['app_logo'];?>" border="0" alt="<?php echo $v['app_title'];?>"></a>
                                </em>
                                <span class="r info-and-download">
                                    <a href="<?php echo $v['surl'];?>" class="txt-overflw description"><?php echo $v['app_title'];?></a>
                                    <a href="<?php echo $v['surl']?>" class="dwd">下载</a>
                                </span>
                            </p>
                            <p class="close" <?php if($k==0) echo "style='display:none;'" ?>>
                                <span class="sort-num sort <?php if($k>2){echo "sort-num-grey";}?>"><?php echo ($k+1);?></span>
                                <a href="<?php echo $v['surl'];?>" class="col-6b txt-overflw description"><?php echo $v['app_title'];?></a>
                                <span class="col-94 download-num"><?php echo $v['app_down'];?>次</span>
                            </p>
                        </li>
                    <?php } } ?>
                    </ul>
                </div>
                <!--应用排行-->
                <?php $a = $c->get_recommend(array('area_id'=>4,'pagesize'=>10,'count'=>0,'rewrite'=>SITE_REWRITEURL,'where'=>'(area_type=3 )'));//print_r($a);?>
                <div class="l apps-ranking">
                    <span class="rank-title"><?php echo $a['title']; ?></span>
                        <ul>
                        <?php if(!empty($a['list'])){foreach($a['list'] as $k => $v ){?>
                        <li>
                            <p class="open" <?php if($k!=0) echo "style='display:none;'" ?> >
                                <em class="l">
                                <span class="sort-num sort <?php if($k>2){echo "sort-num-grey";}?>"><?php echo ($k+1);?></span>
                                <a href="<?php echo $v['surl'];?>" class="rank-img"><img src="<?php echo $v['app_logo'];?>" border="0" alt="<?php echo $v['app_title']; ?>"></a>
                                </em>
                                <span class="r info-and-download">
                                    <a href="<?php echo $v['surl'];?>" class="txt-overflw description"><?php echo $v['app_title']; ?></a>
                                    <a href="<?php echo $v['surl']?>" class="dwd">下载</a>
                                </span>
                            </p>
                            <p class="close" <?php if($k==0) echo "style='display:none;'" ?>>
                                <span class="sort-num sort <?php if($k>2){echo "sort-num-grey";}?>"><?php echo ($k+1);?></span>
                                <a href="<?php echo $v['surl'];?>" class="col-6b txt-overflw description"><?php echo $v['app_title']; ?></a>
                                <span class="col-94 download-num"><?php echo $v['app_down'];?>次</span>
                            </p>
                        </li>
                        <?php } } ?>
                    </ul>
                </div>
                <!--最新排行-->
                <?php  $a = $c->get_recommend(array('area_id'=>5,'pagesize'=>10,'count'=>0,'rewrite'=>SITE_REWRITEURL,'where'=>'(area_type=3 )'));//print_r($a);?>
                <div class="l new-ranking">
                    <span class="rank-title"><?php echo $a['title']; ?></span>
                        <ul>
                        <?php if(!empty($a['list'])){foreach($a['list'] as $k => $v ){?>
                        <li>
                            <p class="open" <?php if($k!=0) echo "style='display:none;'" ?> >
                                <em class="l">
                                <span class="sort-num sort <?php if($k>2){echo "sort-num-grey";}?>"><?php echo ($k+1);?></span>
                                <a href="<?php echo $v['surl'];?>" class="rank-img"><img src="<?php echo $v['app_logo'];?>" border="0" alt="<?php echo $v['app_title'];?>"></a>
                                </em>
                                <span class="r info-and-download">
                                    <a href="<?php echo $v['surl'];?>" class="txt-overflw description"><?php echo $v['app_title'];?></a>
                                    <a href="<?php echo $v['surl']?>" class="dwd">下载</a>
                                </span>
                            </p>
                            <p class="close" <?php if($k==0) echo "style='display:none;'" ?>>
                                <span class="sort-num sort <?php if($k>2){echo "sort-num-grey";}?>"><?php echo ($k+1);?></span>
                                <a href="<?php echo $v['surl'];?>" class="col-6b txt-overflw description"><?php echo $v['app_title'];?></a>
                                <span class="col-94 download-num"><?php echo $v['app_down'];?>次</span>
                            </p>
                        </li>
                        <?php } } ?>
                        </ul>
                </div>
            </div>
        </div><!-- 左侧主体内容  结束 -->
        <div class="r body-right"><!-- 右侧主体内容 -->
            <!--每日推荐-->
            <div class="center-warp">

                <div class="the-one">
                    <div class="bor-sty cont">
                    <p class="line-t-6"></p>
                    <?php
                        $a = $c->get_recommend(array('area_id'=>1,'count'=>0,'pagesize'=>1,'rewrite'=>SITE_REWRITEURL,'where'=>'(area_type=3 )'));
						foreach($a['list'] as $k=>$v){
                    ?>
                    <span class="title">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $a['title']; ?></span>
                    <p class=" open" >
                        <em class="l">
                        <a href="<?php echo $v['surl']; ?>" class="rank-img"><img src="<?php echo $v['app_logo']; ?>" border="0" alt="<?php echo $v['app_title']; ?>"></a>
                        </em>
                        <span class="r info-and-download">
                            <a href="<?php echo $v['surl']; ?>" class="txt-overflw description"><?php echo $v['app_title'];?> </a>
                            类型：<?php echo $c->categories[$v['last_cate_id']]['cname'];?><br />
                            <a href="<?php echo $v['surl']?>" class="dwd">下载</a>
                        </span>
                    </p>
                    <p class="col-94 details"><a href="<?php $v['surl']; ?>"><?php echo helper::utf8_substr($a['list'][0]['app_desc'],0,40); ?></a></p>
                    <?php }?>
                    </div>
                </div>

                <p class="line-t-10"></p>
                <div><?php $c->get_ad(17); ?></div>
                <p class="line-t-10"></p>
                <?php $a = $c->get_list(array('count'=>0,'cate_id'=>19,'pagesize'=>8,'type'=>1,'rewrite'=>SITE_REWRITEURL));
                //print_r($a);?>
                <div class="bor-sty the-list">
                    <span class="a-o">酷玩评测</span>
                    <ul class="list-o">
                    <?php foreach($a['list'] as $k => $v ){?>
                        <li><a href="<?php echo $v['surl'];?>"><?php echo $v['info_title'];?></a></li>
                    <?php } ?>
                    </ul>
                </div>

                <p class="line-t-10"></p>
                <!--上升最快-->
                <?php $a = $c->get_recommend(array('area_id'=>6,'pagesize'=>10,'count'=>0,'rewrite'=>SITE_REWRITEURL,'where'=>'(area_type=3 )'));//print_r($a);?>
                <div class="bor-sty asce-order">
                    <span class="rank-title"><?php echo $a['title']; ?></span>
                    <div class="l ranking">
                        <ul>
                        <?php if(!empty($a['list'])){foreach($a['list'] as $k => $v ){?>
                            <li>
                                <p class="open" <?php if($k!=0) echo "style='display:none;'" ?>>
                                    <em class="l">
                                    <span class="sort-num sort <?php if($k>2){echo "sort-num-grey";}?>"><?php echo ($k+1);?></span>
                                    <a href="<?php echo $v['surl'];?>" class="rank-img"><img src="<?php echo $v['app_logo'];?>" border="0" alt="<?php echo $v['app_title'];?>"></a>
                                    </em>
                                    <span class="r info-and-download">
                                        <a href="<?php echo $v['surl'];?>" class="txt-overflw description"><?php echo $v['app_title'];?></a>
                                        <a href="<?php echo $v['surl']?>" class="dwd">下载</a>
                                    </span>
                                </p>
                                <p class="close" <?php if($k==0) echo "style='display:none;'" ?>>
                                    <span class="sort-num sort <?php if($k>2){echo "sort-num-grey";}?>"><?php echo ($k+1);?></span>
                                    <a href="<?php echo $v['surl'];?>" class="col-6b txt-overflw description"><?php echo $v['app_title'];?></a>
                                    <span class="col-94 download-num"><?php echo $v['app_down'];?>次</span>
                                </p>
                            </li>
                            <?php } } ?>
                            </ul>
                    </div>
                </div>
            </div>


        </div><!-- 右侧主体内容  结束 -->
        <p class="line-t-10"></p>

        <?php $a = $c->get_recommend(array('pagesize'=>9,'rewrite'=>SITE_REWRITEURL,'where'=>'(area_type=4 or area_type=3)'));//print_r($a);?>
        <div class="bor-sty choiceness">
        <?php foreach($a['list'] as $k => $v){ if($k==0){
                if(empty($v['area_logo'])){$v['area_logo']=SITE_PATH."templates/".TEMPLATE."/css/img/default.jpg";}
        ?>
            <div class="l choice-left">
                <span class="title">专题精选</span>
                <div class="p-img"><a href="<?php echo $v['surl'];?>"><img src ="<?php echo $v['area_logo'];?>" class="p-img"/></a></div>
                <a class="c-name" href="<?php echo $v['surl'];?>"><?php echo $v['title'];?></a><br />
                <span class="c-info"><?php echo $v['area_html'];?></span>
            </div>
            <div class="r choice-right">
                <a class="more" href="<?php echo $c->url->encode('special_list', array('host' => '/','p' => 1));?>">更多>></a>
                <ul>
            <?php }else{?>
            <!--专题精选--><li><a href="<?php echo $v['surl'];?>" class="r-img"><img src="<?php echo $v['area_logo'];?>" border="0" alt="<?php echo $v['title'];?>"></a>
                    <a class="p-name" href="<?php echo $v['surl'];?>"><?php echo $v['title'];?></a></li>
                <?php } }?>

                </ul>
            </div>
        </div>
        <?php $a = $c->get_list(array('fields'=>'app_title,app_logo,app_id,last_cate_id','pagesize'=>100,'rewrite'=>SITE_REWRITEURL,'count'=>0));?>
        <div class="newlist">
            <div class="title">最近更新</div>
            <ul>
            <?php
                foreach($a['list'] as $b){
                echo('<li><a href="'.$b['surl'].'"><img src="'.$b['app_logo'].'"><span>'.$b['app_title'].'</span></a></li>');
                }
            ?>
            </ul>
            <div style="clear:both;"></div>
        </div>
    </div> <!-- 主体内容 结束 -->
    <p class="line-t-10"></p>

    <?php require_once ('inc_foot.php');?>