<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=4f1bec168df90a36fb403a16e74d8671&action=lists&catid=56&num=1&order=listorder+DESC&moreinfo=1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'56','order'=>'listorder DESC','moreinfo'=>'1','limit'=>'1',));}?>
<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
<div class="fengge_tit" style="background:url(<?php echo $r['jidi_tit'];?>) no-repeat bottom center;"><h3>独家基地</h3></div>
<?php $n++;}unset($n); ?>
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
<div class="neiye fengge">
    <div id="fengge_list">
    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=4ca2642873f823143ff525e1a4a775c6&action=lists&catid=%24catid&num=6&order=listorder+DESC&moreinfo=1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>$catid,'order'=>'listorder DESC','moreinfo'=>'1','limit'=>'6',));}?>
    <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
        <div class="jidi_list">
            <a href="<?php echo $r['url'];?>">
                <img src="<?php echo $r['img'];?>" alt="" />
                <div class="fengge_list_nr">
                    <h3 class="f1">+<?php echo $r['title'];?></h3>
                    <span class="post f2">VIEW：<?php echo $r['view'];?></span><span class="post f2">POST：<?php echo date('Y/n/j',$r[inputtime]);?></span>
                    <div class="clear"></div>
                    <p><?php echo $r['jianjie'];?></p>
                </div>
            </a>
        </div>
        <div class="sanjiaoxing"></div>
    <?php $n++;}unset($n); ?>
    <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    </div>
    
    <div class="last">已经是最后一页了</div>
    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=779814b9f2dec8315a7d4993ac5c0f1d&sql=select+items+from+sj_category+where+catid%3D%24catid&return=data2\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select items from sj_category where catid=$catid LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data2 = $a;unset($a);?>
    <?php $n=1;if(is_array($data2)) foreach($data2 AS $t) { ?>
        <div class="items_show" style="display:none;">
        <?php echo $t['items'];?>
        </div>
    <?php $n++;}unset($n); ?>
    <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    <div class="lanmu_id" style="display:none;">
        <?php echo $catid;?>
    </div>

    <div class="fg_tj_more">
        <a href="javascript:void(0)" target="_self">
            <div class="fg_tj_more_bg">
                <span>点击展开更多</span>
            </div>
        </a>
    </div>
</div>


<script>    
$(document).ready(function($) {
	catid = 0;
	ci=1;//默认第一页
	sum=6;//显示行数 
	items=$(".items_show").text();
	catid=$(".lanmu_id").text();
	$(".last").hide()

    $(".fg_tj_more_bg").click(function(event) {
		if((items/6)<=1){
			$(".last").show();
			}
		else {
		  var time=new Date().getTime();
		  $.ajax({
			url: '<?php echo APP_PATH ?>index.php?m=content&c=index&a=listJidi',
			type: 'POST',
			dataType: 'json',
			data: {ci:ci,catid:catid},
			success:function(json){
				$.each(json, function(index, val) {
					
					
				var shijian= new Date(parseInt(val.inputtime) * 1000).toLocaleString().substr(0,9)
				
				
					$("#fengge_list").append('<div class="fengge_list"><a href="'+val.url+'"><img src="'+val.img+'"/><div class="fengge_list_nr"><h3 class="f1">+'+val.title+'</h3><span class="post f2">VIEW：'+val.view+'</span><span class="post f2">POST：'+shijian+'</span><div class="clear"></div><p>'+val.jianjie+'</p></div><div class="sanjiaoxing"></div>')
				})
			},
		  })
		  items=items-6;
		  ci=ci +1;
		  return;
		}	
    });
  });
</script>  


<div class="cainixihuan">
    <div class="cainixihuan_tit">
        <a href="javascript:;"></a>
    </div>
    <div class="cainixihuan_show">
        <div class="block_home_slider">
            <div id="home_slider3" class="flexslider">
                <ul class="slides">
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=6b3f1c60d89ea4df251b650347ced007&action=lists&catid=57&num=4&siteid=%24siteid&order=listorder+DESC&moreinfo=1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'57','siteid'=>$siteid,'order'=>'listorder DESC','moreinfo'=>'1','limit'=>'4',));}?>
                <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                    <li>
                        <a href="<?php echo $r['url'];?>">
                            <div class="slide">
                                <img src="<?php echo $r['img'];?>" alt="" />
                            </div>
                        </a>
                    </li>
                <?php $n++;}unset($n); ?>
                <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                </ul>
            </div>
        </div>
    </div>
</div>

<!--<div class="tj_ad">
    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=f74fe9d28d977158b46de926f764337b&action=lists&catid=45&num=3&siteid=%24siteid&order=listorder+DESC&moreinfo=1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'45','siteid'=>$siteid,'order'=>'listorder DESC','moreinfo'=>'1','limit'=>'3',));}?>
    <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
        <div class="tj_ad_list">
            <div class="tj_ad_body">
                <div class="tj_ad_border">
                    <a href="<?php echo $r['url'];?>">
                        <div class="tj_ad_bfloat_l f1">
                            <h3><?php echo $r['title'];?></h3>
                            <span class="time">POST：<?php echo date('Y-m-d',$r[inputtime]);?></span>
                            <span class="view">VIEW：<?php echo $r['view'];?></span>
                           
                        </div>
                        <div class="tj_ad_bfloat_r f2">
                            <img src="<?php echo $r['img'];?>" alt="" />
                        </div>
                    </a>
                </div>
            </div>
        </div>
    <?php $n++;}unset($n); ?>
    <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
</div>
-->
<?php include template("content","footer"); ?>