You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1.4 KiB

8 years ago
8 years ago
8 years ago
  1. <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  2. <meta name="viewport" content="width=device-width, initial-scale=1">
  3. <title><?php if(empty($post["seotitle"])){echo $post["name"];}else{echo $post["seotitle"];} ?></title>
  4. <link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/style.css"><script src="/js/jquery.min.js"></script><script src="/js/bootstrap.min.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/ad.js"></script></head><body>
  5. @include('home.common.header')
  6. <div class="container"><div class="row">
  7. <div class="bread"><a href="<?php echo sysconfig('CMS_BASEHOST'); ?>"><?php echo sysconfig('CMS_INDEXNAME'); ?></a> > <?php echo $post["name"]; ?></div>
  8. <?php if($posts){foreach($posts as $row){ ?>
  9. <div class="col-xs-6 col-sm-3" style="margin-top:20px;margin-bottom:10px;">
  10. <a href="<?php echo get_front_url(array("id"=>$row['id'],"type"=>'productdetail')); ?>" target="_blank">
  11. <img src="<?php echo $row['litpic']; ?>" alt="<?php echo $row['title']; ?>" class="imgzsy">
  12. <p style="padding-top:10px;"><?php echo $row['title']; ?></p>
  13. </a></div><?php }} ?>
  14. <br class="cl">
  15. <div class="pages"><ul><?php echo $pagenav; ?></ul><div class="cl"></div></div>
  16. </div></div><!-- /.container -->
  17. <script>
  18. $(function(){
  19. $(".imgzsy").height(function(){return $(this).width()*2/3;});
  20. });
  21. </script>
  22. @include('home.common.footer')</body></html>