list.php 7.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template('search', 'header'); ?>
  2. <!-- <div class="clr sr_body sr_list">
  3. <div class="sr_main">
  4. <div class="brd1s"></div>
  5. <div class="wrap sr_lists">
  6. <div class="c wrap">
  7. <ul class="wrap">
  8. <?php $n=1; if(is_array($data)) foreach($data AS $i => $r) { ?>
  9. <li class="tw">
  10. <?php if($r['thumb']) { ?> <a href="<?php echo $r['url'];?>"><img src="<?php echo thumb($r['thumb'],197,136);?>" alt=""></a><?php } ?>
  11. <div class="tw_right">
  12. <p class="tw_title h3"><a href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a></p>
  13. <p class="tw_content h5">
  14. <?php echo $r['description'];?>
  15. </p>
  16. <p class="tw_time ">
  17. <?php echo format::date($r[inputtime], 1);?>
  18. </p>
  19. </div>
  20. </li>
  21. <?php $n++;}unset($n); ?>
  22. <?php if(empty($data)) { ?>未找到结果<?php } ?>
  23. </ul>
  24. <div id="pages" class="text-c mg_t20"><?php echo $pages;?></div>
  25. <?php if($setting['relationenble']) { ?>
  26. <div class="wrap sgch"><strong>相关搜索:</strong>
  27. <?php $n=1; if(is_array($relation)) foreach($relation AS $k => $v) { ?>
  28. <a href="?m=search&c=index&a=init&typeid=<?php echo $typeid;?>&siteid=<?php echo $siteid;?>&q=<?php echo $v['keyword'];?>"><?php echo $v['keyword'];?></a>
  29. <?php $n++;}unset($n); ?>
  30. </div>
  31. <?php } ?>
  32. </div>
  33. </div>
  34. </div>
  35. </div> -->
  36. <div class="ui_div1">
  37. <div class="i_con">
  38. <div class="n_box3">
  39. <dl class="fl n_box2_con">
  40. <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=36a4ea7ed030ba03bbb9ff1b0d78f942&sql=select++title%2Curl%2Cthumb%2Cdescription%2Cinputtime++from+v9_news++where+title+like+++%27%25%24q%25%27++++%0D%0A++++++++++++UNION+ALL++select++title%2Curl%2Cthumb%2Cdescription%2Cinputtime++from+v9_picture+where+title+like+%27%25%24q%25%27+++%0D%0A++++++++++++UNION+ALL++select++title%2Curl%2Cthumb%2Cdescription%2Cinputtime++from+v9_banner+where+title+like+%27%25%24q%25%27+++%0D%0A++++++++++++UNION+ALL++select++title%2Curl%2Cthumb%2Cdescription%2Cinputtime++from+v9_product+where+title+like+%27%25%24q%25%27+++%0D%0A++++++++++++UNION+ALL++select++title%2Curl%2Cthumb%2Cdescription%2Cinputtime++from+v9_gsgs+where+title+like+%27%25%24q%25%27+++%0D%0A++++++++++++UNION+ALL++select++title%2Curl%2Cthumb%2Cdescription%2Cinputtime++from+v9_dp+where+title+like+%27%25%24q%25%27+++%0D%0A++++++++++++UNION+ALL++select++title%2Curl%2Cthumb%2Cdescription%2Cinputtime++from+v9_service+where+title+like+%27%25%24q%25%27+++%0D%0A++++++++++++UNION+ALL++select++title%2Curl%2Cthumb%2Cdescription%2Cinputtime++from+v9_recruit+where+title+like+%27%25%24q%25%27+++%0D%0A++++++++++++UNION+ALL++select++title%2Curl%2Cthumb%2Cdescription%2Cinputtime++from+v9_about+where+title+like+%27%25%24q%25%27&num=2000&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$pagesize = 2000;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$r = $get_db->sql_query("SELECT COUNT(*) as count FROM (select title,url,thumb,description,inputtime from v9_news where title like '%$q%'
  41. UNION ALL select title,url,thumb,description,inputtime from v9_picture where title like '%$q%'
  42. UNION ALL select title,url,thumb,description,inputtime from v9_banner where title like '%$q%'
  43. UNION ALL select title,url,thumb,description,inputtime from v9_product where title like '%$q%'
  44. UNION ALL select title,url,thumb,description,inputtime from v9_gsgs where title like '%$q%'
  45. UNION ALL select title,url,thumb,description,inputtime from v9_dp where title like '%$q%'
  46. UNION ALL select title,url,thumb,description,inputtime from v9_service where title like '%$q%'
  47. UNION ALL select title,url,thumb,description,inputtime from v9_recruit where title like '%$q%'
  48. UNION ALL select title,url,thumb,description,inputtime from v9_about where title like '%$q%') T");$s = $get_db->fetch_next();$pages=pages($s['count'], $page, $pagesize, $urlrule);$r = $get_db->sql_query("select title,url,thumb,description,inputtime from v9_news where title like '%$q%'
  49. UNION ALL select title,url,thumb,description,inputtime from v9_picture where title like '%$q%'
  50. UNION ALL select title,url,thumb,description,inputtime from v9_banner where title like '%$q%'
  51. UNION ALL select title,url,thumb,description,inputtime from v9_product where title like '%$q%'
  52. UNION ALL select title,url,thumb,description,inputtime from v9_gsgs where title like '%$q%'
  53. UNION ALL select title,url,thumb,description,inputtime from v9_dp where title like '%$q%'
  54. UNION ALL select title,url,thumb,description,inputtime from v9_service where title like '%$q%'
  55. UNION ALL select title,url,thumb,description,inputtime from v9_recruit where title like '%$q%'
  56. UNION ALL select title,url,thumb,description,inputtime from v9_about where title like '%$q%' LIMIT $offset,$pagesize");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?>
  57. <?php if($data == "") { ?>
  58. 未搜索到结果!
  59. <?php } else { ?>
  60. <?php $n=1;if(is_array($data)) foreach($data AS $v) { ?>
  61. <dd>
  62. <a href="<?php echo $v['url'];?>" class="div Amplification">
  63. <div class="fl a_img"><img src="<?php echo $v['thumb'];?>"></div>
  64. <div class="fr a_img_r">
  65. <div class="s1 fl"><?php echo $v['title'];?></div>
  66. <div class="fl s2">
  67. <?php echo $v['description'];?>
  68. </div>
  69. <div class="fl s3"><span><?php echo date('Y-m-d',time($v[inputtime]));?></span></div>
  70. <div class="clearboth"></div>
  71. </div>
  72. <div class="clearboth"></div>
  73. </a>
  74. </dd>
  75. <?php $n++;}unset($n); ?>
  76. <?php } ?>
  77. <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
  78. <?php $n=1; if(is_array($data)) foreach($data AS $i => $r) { ?>
  79. <?php $n++;}unset($n); ?>
  80. <?php if(empty($data)) { ?>未找到结果<?php } ?>
  81. </dl>
  82. <div class="clearboth"></div>
  83. <div class="n_box1_pages">
  84. <?php echo $pc_pages;?>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. <script type="text/javascript" src="<?php echo JS_PATH;?>search_history.js"></script>
  90. <?php if($setting['suggestenable']) { ?>
  91. <script type="text/javascript" src="<?php echo JS_PATH;?>jquery.suggest.js"></script>
  92. <script type="text/javascript" src="<?php echo JS_PATH;?>search_suggest.js"></script>
  93. <?php } ?>
  94. <?php include template('search', 'footer'); ?>