<?php if (!class_exists('template')) die('Access Denied');$template->getInstance()->check('list.html', 'e3a3aa372e857bb676c075972f25cb75', 1607242303);?>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo $list_title?>_<?php echo $site_name?></title>
    <meta name="keywords" content="<?php echo $list_keywords?>">
    <meta name="description" content="<?php echo $list_desc?>">
    <link href="css/style.css" rel="stylesheet">
    <link href="css/fonts.css" rel="stylesheet">
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="js/superslide.js" type="text/javascript"></script>
	<script src="js/code.js" type="text/javascript"></script>
	<script src="js/tn_code.js" type="text/javascript"></script>
    <script src="js/sucai.js" type="text/javascript"></script>
    <script src="js/masonry.js" type="text/javascript"></script>

    <link type="image/png" href="favicon.ico" rel="shortcut icon">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>

  <body>
    <?php 
	include_once('search_nav.php');
	?>
    <div class="fa-pins container clear">
	  <?php if(is_array($ad['listad'])) { foreach($ad['listad'] as $v8) { ?>	  <div class="ad"><a href="<?php echo $v8['adurl']?>" target="_blank"><img src="<?php echo $v8['ad_pic']?>" width="<?php echo $v8['ad_w']?>" height="<?php echo $v8['ad_h']?>"></a></div>
	  <?php } } ?>      <div class="fa-crumbs">
        <i class="ftsucai-227"></i>当前位置 :
        <?php if($html_flag==1) { ?>
        <a href="index">首页</a>
        <?php } else { ?>
        <a href="index.php">首页</a>
        <?php } ?>
		<span>></span>
        <?php echo $map_nav?>
	  </div>
      <div class="overlay"></div>
    </div>
    <div class="fa-pins-more container">

	  <!--热门标签begin-->
      <p class="keyword-con clear">
      <a href="javascript:void(0)" style="height:32px;text-align:center;font-weight:300px;font-size:18px;color:#222;line-height:32px;margin-right:10px;float:left;cursor:default;">热门标签
      <span style="color:#888;font-weight: 300;">&gt;</span></a>
	  <?php if(is_array($taglist)) { foreach($taglist as $v) { ?>	     <?php if($html_flag==1) { ?>
      <a class="keyword-text" href="search-<?php echo $category_id?>-<?php echo $v?>-0.html"><?php echo $v?></a>
	     <?php } else { ?>
      <a class="keyword-text" href="search.php?category_id=<?php echo $category_id?>&amp;kw=<?php echo $v?>"><?php echo $v?></a>
         <?php } ?>
      <?php } } ?>      </p>
      <!--热门标签end-->

	  <div class="cate"></div>
      <!--<div class="title"><h2>相关代码</h2></div>-->
      <ul class="list clear">
        <?php if(is_array($ListArray)) { foreach($ListArray as $v3) { ?>        <li class="left">
          <div class="pic">
		  
		  <?php if($v3['msg_tuijian']==1) { ?>
		      <div class="divbox-flag"><p>推荐</p></div>
		  <?php } ?>
		  <?php if($v3['msg_isad']==1) { ?>
		      <div class="divbox-ad"><p>广告</p></div>
		  <?php } ?>
		  
		  <?php if($v3['msg_isad']==1) { ?>
		      <a href="<?php echo $v3['msg_demourl']?>" target="_blank">
		  <?php } else { ?>
		      <?php if($html_flag==1) { ?>
              <a href="view-<?php echo $v3['category_id']?>-<?php echo $v3['msg_id']?>.html">
              <?php } else { ?>
              <a href="view.php?cid=<?php echo $v3['category_id']?>&amp;msg_id=<?php echo $v3['msg_id']?>">
              <?php } ?>
		  <?php } ?>
              <img class="pic-link" src="<?php echo $v3['thumbnail_path']?>" alt="<?php echo $v3['msg_title']?>" data-url="<?php echo $v3['thumbnail_path']?>"></a>
            <div class="hover-content">
			  <!--登录前-->
			  
			  <?php if($_SESSION["uid"]=='') { ?>
			  <span class="collect login-layer">收藏<i class="ftsucai-219"></i></span>
			  <?php } else { ?>
			        <?php if(in_array($v3['msg_id'],$userfav)) { ?>
              <span class="collect">已收藏<i class="ftsucai-219"></i></span>
					<?php } else { ?>
			  <span class="collect fav-add" data-id="<?php echo $v3['msg_id']?>" id="sc-<?php echo $v3['category_id']?>-<?php echo $v3['msg_id']?>">收藏<i class="ftsucai-219"></i></span>
			        <?php } ?>
			  <?php } ?>
			  
			  <?php if($v3['msg_integral']==0) { ?>
			      <?php if($downoff==0) { ?>
					  <?php if($html_flag==1) { ?>
					  <a href="down-<?php echo $v3['category_id']?>-<?php echo $v3['msg_id']?>.html"><span class="down-btn">下载<i class="ftsucai-HTSCIT_6"></i></span></a>
					  <?php } else { ?>
					  <a href="down.php?cid=<?php echo $v3['category_id']?>&amp;msg_id=<?php echo $v3['msg_id']?>"><span class="down-btn">下载<i class="ftsucai-HTSCIT_6"></i></span></a>
					  <?php } ?>
				  <?php } else { ?>
				      <?php if($html_flag==1) { ?>
					  <span class="down-btn login-layer" id="down-<?php echo $v3['category_id']?>-<?php echo $v3['msg_id']?>.html">下载<i class="ftsucai-HTSCIT_6"></i></span>
					  <?php } else { ?>
					  <span class="down-btn login-layer" id="down.php?cid=<?php echo $v3['category_id']?>&amp;msg_id=<?php echo $v3['msg_id']?>">下载<i class="ftsucai-HTSCIT_6"></i></span>
					  <?php } ?>
				  <?php } ?>	  
			  <?php } elseif($_SESSION["uid"]=='') { ?>
			      <?php if($html_flag==1) { ?>
                  <span class="down-btn login-layer" id="down-<?php echo $v3['category_id']?>-<?php echo $v3['msg_id']?>.html">下载<i class="ftsucai-HTSCIT_6"></i></span>
                  <?php } else { ?>
                  <span class="down-btn login-layer" id="down.php?cid=<?php echo $v3['category_id']?>&amp;msg_id=<?php echo $v3['msg_id']?>">下载<i class="ftsucai-HTSCIT_6"></i></span>
                  <?php } ?>
			  <?php } else { ?>
			      <?php if($html_flag==1) { ?>
			      <a href="down-<?php echo $v3['category_id']?>-<?php echo $v3['msg_id']?>.html"><span class="down-btn">下载<i class="ftsucai-HTSCIT_6"></i></span></a>
			      <?php } else { ?>
                  <a href="down.php?cid=<?php echo $v3['category_id']?>&amp;msg_id=<?php echo $v3['msg_id']?>"><span class="down-btn">下载<i class="ftsucai-HTSCIT_6"></i></span></a>
                  <?php } ?> 
			  <?php } ?>
            </div>
          </div>
		  <?php if($v3['msg_titlecolor']!='') { ?>
		     <?php if($v3['msg_isad']==1) { ?>
			       <div class="text"><a href="<?php echo $v3['msg_demourl']?>" target="_blank"><font color="<?php echo $v3['msg_titlecolor']?>"><?php echo $v3['msg_title']?></font></a></div> 
			 <?php } else { ?>
				   <?php if($html_flag==1) { ?>
					<div class="text"><a href="view-<?php echo $v3['category_id']?>-<?php echo $v3['msg_id']?>.html"><font color="<?php echo $v3['msg_titlecolor']?>"><?php echo $v3['msg_title']?></font></a></div>
				   <?php } else { ?>
					<div class="text"><a href="view.php?cid=<?php echo $v3['category_id']?>&amp;msg_id=<?php echo $v3['msg_id']?>"><font color="<?php echo $v3['msg_titlecolor']?>"><?php echo $v3['msg_title']?></font></a></div>
				   <?php } ?>
			 <?php } ?>
          <?php } else { ?>
		     <?php if($v3['msg_isad']==1) { ?>
			       <div class="text"><a href="<?php echo $v3['msg_demourl']?>" target="_blank"><?php echo $v3['msg_title']?></a></div> 
			 <?php } else { ?>
				   <?php if($html_flag==1) { ?>
				   <div class="text"><a href="view-<?php echo $v3['category_id']?>-<?php echo $v3['msg_id']?>.html"><?php echo $v3['msg_title']?></a></div>
				   <?php } else { ?>
				   <div class="text"><a href="view.php?cid=<?php echo $v3['category_id']?>&amp;msg_id=<?php echo $v3['msg_id']?>"><?php echo $v3['msg_title']?></a></div>
				   <?php } ?>
			 <?php } ?>
          <?php } ?>
          <div class="other">
            <span class="left m-right"><i class="ftsucai-eye-7"></i><?php echo $v3['hits_num']?></span>
            <span class="left like-count" id="scs-<?php echo $v3['category_id']?>-<?php echo $v3['msg_id']?>"><i class="ftsucai-219"></i><?php echo $v3['fav_num']?></span>
			<span class="left "> <i class="ftsucai-212"></i><?php echo $v3['msg_integral']?>积分</span>
			<?php if($v3['msg_demourl']!='') { ?>
			   <?php if($v3['category_parentid']==6) { ?>
				   <?php if($html_flag==1) { ?>
				   <a class="right yh-link" href="demo-<?php echo $v3['msg_id']?>.html" title="预览" rel="nofollow" target="_blank">
                   <i class="ftsucai-19"></i>预览
                   </a>
				   <?php } else { ?>
				   <a class="right yh-link" href="demo.php?msg_id=<?php echo $v3['msg_id']?>" title="预览" rel="nofollow" target="_blank">
                   <i class="ftsucai-19"></i>预览
                   </a>
				   <?php } ?>
			   <?php } else { ?>
                 <a class="right yh-link" href="<?php echo $v3['msg_demourl']?>" title="预览" rel="nofollow" target="_blank">
                   <i class="ftsucai-19"></i>预览
                 </a>
			   <?php } ?>
			<?php } ?>
          </div>
        </li>
		<?php } } ?>      </ul>
	  
    </div>
	<!--分页-->
	
	<div class="pager clear">
      <ul class="page">
	  <?php if($numrows!=0) { ?>
	    <?php echo $pager?>
	  <?php } else { ?>
	    <li class="h4">对不起,没有找到您要的素材,请您换个关键字重新查找看看!<li>
	  <?php } ?>
	  </ul>
    </div>
	<?php if($numrows==0) { ?>
	<div class="fa-pins-more container" style="margin-top: 40px;">
      <div class="title" style="height: 30px;">
        <h2>给你推存</h2></div>
      <ul class="list clear">
        <?php if(is_array($tj_arr)) { foreach($tj_arr as $val) { ?>        <li class="left">
          <div class="pic">
		  <?php if($v3['msg_isad']==1) { ?>
		      <a href="<?php echo $val['msg_demourl']?>" target="_blank">
		  <?php } else { ?>
		      <?php if($html_flag==1) { ?>
              <a href="view-<?php echo $val['category_id']?>-<?php echo $val['msg_id']?>.html">
              <?php } else { ?>
              <a href="view.php?cid=<?php echo $val['category_id']?>&amp;msg_id=<?php echo $val['msg_id']?>">
              <?php } ?>
		  <?php } ?>
              <img class="pic-link" src="<?php echo $val['thumbnail_path']?>" alt="<?php echo $val['msg_title']?>" data-url="<?php echo $val['thumbnail_path']?>"></a>
            <div class="hover-content">
			  <!--登录前-->
			  
			  <?php if($_SESSION["uid"]=='') { ?>
			  <span class="collect login-layer">收藏<i class="ftsucai-219"></i></span>
			  <?php } else { ?>
			  <span class="collect fav-add" data-id="<?php echo $val['msg_id']?>" id="sc-<?php echo $val['category_id']?>-<?php echo $val['msg_id']?>">收藏<i class="ftsucai-219"></i></span>
			  <?php } ?>
			  
			  <?php if($v3['msg_integral']==0) { ?>
			       <?php if($downoff==0) { ?>
					  <?php if($html_flag==1) { ?>
					  <a href="down-<?php echo $val['category_id']?>-<?php echo $val['msg_id']?>.html"><span class="down-btn">下载<i class="ftsucai-HTSCIT_6"></i></span></a>
					  <?php } else { ?>
					  <a href="down.php?cid=<?php echo $val['category_id']?>&amp;msg_id=<?php echo $val['msg_id']?>"><span class="down-btn">下载<i class="ftsucai-HTSCIT_6"></i></span></a>
					  <?php } ?>
				   <?php } else { ?>
				      <?php if($html_flag==1) { ?>
					  <span class="down-btn login-layer" id="down-<?php echo $val['category_id']?>-<?php echo $val['msg_id']?>.html">下载<i class="ftsucai-HTSCIT_6"></i></span>
					  <?php } else { ?>
					  <span class="down-btn login-layer" id="down.php?cid=<?php echo $val['category_id']?>&amp;msg_id=<?php echo $val['msg_id']?>">下载<i class="ftsucai-HTSCIT_6"></i></span>
					  <?php } ?>
				   <?php } ?>
			  <?php } elseif($_SESSION["uid"]=='') { ?>
			      <?php if($html_flag==1) { ?>
                  <span class="down-btn login-layer" id="down-<?php echo $val['category_id']?>-<?php echo $val['msg_id']?>.html">下载<i class="ftsucai-HTSCIT_6"></i></span>
                  <?php } else { ?>
                  <span class="down-btn login-layer" id="down.php?cid=<?php echo $val['category_id']?>&amp;msg_id=<?php echo $val['msg_id']?>">下载<i class="ftsucai-HTSCIT_6"></i></span>
                  <?php } ?>
			  <?php } else { ?>
			      <?php if($html_flag==1) { ?>
			      <a href="down-<?php echo $val['category_id']?>-<?php echo $val['msg_id']?>.html"><span class="down-btn">下载<i class="ftsucai-HTSCIT_6"></i></span></a>
			      <?php } else { ?>
                  <a href="down.php?cid=<?php echo $val['category_id']?>&amp;msg_id=<?php echo $val['msg_id']?>"><span class="down-btn">下载<i class="ftsucai-HTSCIT_6"></i></span></a>
                  <?php } ?>
			  <?php } ?>
            </div>
          </div>
		  <?php if($v3['msg_titlecolor']!='') { ?>
		  
		     <?php if($v3['msg_isad']==1) { ?>
			       <div class="text"><a href="<?php echo $val['msg_demourl']?>" target="_blank"><font color="<?php echo $val['msg_titlecolor']?>"><?php echo $val['msg_title']?></font></a></div> 
			 <?php } else { ?>
				   <?php if($html_flag==1) { ?>
				   <div class="text"><a href="view-<?php echo $val['category_id']?>-<?php echo $val['msg_id']?>.html"><font color="<?php echo $val['msg_titlecolor']?>"><?php echo $val['msg_title']?></font></a></div>
				   <?php } else { ?>
				   <div class="text"><a href="view.php?cid=<?php echo $val['category_id']?>&amp;msg_id=<?php echo $val['msg_id']?>"><font color="<?php echo $val['msg_titlecolor']?>"><?php echo $val['msg_title']?></font></a></div>
				   <?php } ?>
			 <?php } ?>
		       
          <?php } else { ?>
		  
		     <?php if($v3['msg_isad']==1) { ?>
			       <div class="text"><a href="<?php echo $val['msg_demourl']?>" target="_blank"><?php echo $val['msg_title']?></a></div> 
			 <?php } else { ?>
				   <?php if($html_flag==1) { ?>
				   <div class="text"><a href="view-<?php echo $val['category_id']?>-<?php echo $val['msg_id']?>.html"><?php echo $val['msg_title']?></a></div>
				   <?php } else { ?>
				   <div class="text"><a href="view.php?cid=<?php echo $val['category_id']?>&amp;msg_id=<?php echo $val['msg_id']?>"><?php echo $val['msg_title']?></a></div>
				   <?php } ?>
			 <?php } ?>
		       
          <?php } ?>
          <div class="other">
            <span class="left m-right"><i class="ftsucai-eye-7"></i><?php echo $val['hits_num']?></span>
            <span class="left like-count" id="scs-<?php echo $val['category_id']?>-<?php echo $val['msg_id']?>"><i class="ftsucai-219"></i><?php echo $val['fav_num']?></span>
			<span class="left "> <i class="ftsucai-212"></i><?php echo $val['msg_integral']?>积分</span>
			<?php if($v3['msg_demourl']!='') { ?>
			   <?php if($v3['category_parentid']==6) { ?>
				   <?php if($html_flag==1) { ?>
				   <a class="right yh-link" href="demo-<?php echo $val['msg_id']?>.html" title="预览" rel="nofollow" target="_blank">
                   <i class="ftsucai-19"></i>预览
                   </a>
				   <?php } else { ?>
				   <a class="right yh-link" href="demo.php?msg_id=<?php echo $val['msg_id']?>" title="预览" rel="nofollow" target="_blank">
                   <i class="ftsucai-19"></i>预览
                   </a>
				   <?php } ?>
			   <?php } else { ?>
                 <a class="right yh-link" href="<?php echo $val['msg_demourl']?>" title="预览" rel="nofollow" target="_blank">
                   <i class="ftsucai-19"></i>预览
                 </a>
			   <?php } ?>
			<?php } ?>
          </div>
        </li>
		<?php } } ?>      </ul>
    </div>
	<?php } ?>
	<?php 
	include_once('bottom.php');
	?>
  </body>
</html>