indextemplate.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. ?>
  5. <html>
  6. <head>
  7. <meta http-equiv="x-ua-compatible" content="ie=7" />
  8. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  9. <title>新闻资讯 - <?=webname?></title>
  10. <? include("../tem/cssjs.html");?>
  11. <link rel="stylesheet" href="../css/owl.carousel.css" />
  12. <script type="text/javascript" src="../js/owl.carousel.js"></script>
  13. <script language="javascript">
  14. $(function(){
  15. $('#owl-demo').owlCarousel({
  16. items: 1,
  17. navigation: true,
  18. navigationText: ["上一个","下一个"],
  19. autoPlay: true,
  20. stopOnHover: true
  21. }).hover(function(){
  22. $('.owl-buttons').show();
  23. }, function(){
  24. $('.owl-buttons').hide();
  25. });
  26. });
  27. </script>
  28. </head>
  29. <body>
  30. <? include("../tem/top.html");?>
  31. <? include("../tem/top1.html");?>
  32. <div class="yjcode">
  33. <? adwhile("ADNV05");?>
  34. <!--左B-->
  35. <div class="nmleft">
  36. <!--图片B-->
  37. <div class="iqh">
  38. <div id="owl-demo" class="owl-carousel">
  39. <? while1("*","yjcode_ad where adbh='ADN00' and zt=0 order by xh asc");while($row1=mysql_fetch_array($res1)){?>
  40. <a class="item" href="<?=$row1[aurl]?>" title="<?=$row1[tit]?>" target="_blank"><img src="../<?=returnjgdw($rowcontrol[addir],"","gg")?>/<?=$row1[bh]?>.<?=$row1[jpggif]?>" alt=""><b></b></a>
  41. <? }?>
  42. </div>
  43. </div>
  44. <!--图片E-->
  45. <!--推荐B-->
  46. <ul class="cap">
  47. <li class="l1">关注度最高</li>
  48. </ul>
  49. <div class="tj">
  50. <?
  51. while1("*","yjcode_news where zt=0 order by djl desc limit 6");while($row1=mysql_fetch_array($res1)){
  52. $tp=returntp("bh='".$row1[bh]."' order by xh asc","-1");
  53. ?>
  54. <a href="txtlist_i<?=$row1[id]?>v.html" title="<?=$row1[tit]?>" target="_blank">
  55. <ul class="u1">
  56. <li class="l1"><img src="<?=$tp?>" onerror="this.src='../img/none200x160.gif'" width="200" height="160" /></li>
  57. <li class="l2"><?=returntitcss(returntitdian($row1[tit],36),$row1[ifjc],$row1[titys])?></li>
  58. <li class="l3"><?=returntitdian($row1[wdes],70)?></li>
  59. <li class="l4"><?=$row1[lastsj]?></li>
  60. </ul>
  61. </a>
  62. <? }?>
  63. </div>
  64. <!--推荐E-->
  65. <!--分类展示B-->
  66. <?
  67. $sqlty="select * from yjcode_newstype where admin=1 order by xh asc limit 6";mysql_query("SET NAMES 'gbk'");
  68. $resty=mysql_query($sqlty);for($tyi=1;$tyi<=3;$tyi++){
  69. if($rowty=mysql_fetch_array($resty)){
  70. ?>
  71. <div class="cap"><?=$rowty[name1]?></div>
  72. <div class="fllist">
  73. <div class="d1">
  74. <?
  75. while1("*","yjcode_news where type1id=".$rowty[id]." and zt=0 order by lastsj desc limit 6");for($i=1;$i<=2;$i++){
  76. if($row1=mysql_fetch_array($res1)){
  77. $tp=returntp("bh='".$row1[bh]."' order by xh asc","-1");
  78. ?>
  79. <a href="txtlist_i<?=$row1[id]?>v.html" target="_blank">
  80. <ul class="u1">
  81. <li class="l1"><img src="<?=$tp?>" onerror="this.src='../img/none200x160.gif'" width="200" height="161" /></li>
  82. <li class="l2"><?=returntitcss(returntitdian($row1[tit],40),$row1[ifjc],$row1[titys])?></li>
  83. <li class="l3"><?=returntitdian($row1[wdes],70)?></li>
  84. <li class="l4"><?=$row1[lastsj]?></li>
  85. </ul>
  86. </a>
  87. <? }}?>
  88. </div>
  89. <? while($row1=mysql_fetch_array($res1)){?>
  90. <ul class="u2"><li class="l1"><a href="txtlist_i<?=$row1[id]?>v.html" target="_blank"><?=returntitcss($row1[tit],$row1[ifjc],$row1[titys])?></a></li><li class="l2"><?=$row1[lastsj]?></li></ul>
  91. <? }?>
  92. </div>
  93. <? }}?>
  94. <!--分类展示E-->
  95. </div>
  96. <!--左E-->
  97. <!--右B-->
  98. <div class="nmright">
  99. <!--焦点B-->
  100. <div class="jiao">
  101. <ul class="u1"><li class="l0"></li><li class="l1">24小时</li><li class="l2"><a href="newslist.html">More>></a></li></ul>
  102. <? while1("*","yjcode_news where zt=0 order by lastsj desc limit 4");while($row1=mysql_fetch_array($res1)){?>
  103. <ul class="u2"><li class="l1"><a href="txtlist_i<?=$row1[id]?>v.html" target="_blank"><?=returntitcss($row1[tit],$row1[ifjc],$row1[titys])?></a></li><li class="l2"><?=$row1[lastsj]?></li></ul>
  104. <? }?>
  105. </div>
  106. <!--焦点E-->
  107. <!--分类B-->
  108. <div class="fenlei">
  109. <ul class="u1"><li class="l0"></li><li class="l1">分类</li><li class="l2"></li></ul>
  110. <div class="d1">
  111. <? while1("*","yjcode_newstype where admin=1 order by xh asc");while($row1=mysql_fetch_array($res1)){?>
  112. <a href="newslist_j<?=$row1[id]?>v.html"><?=$row1[name1]?></a>
  113. <? }?>
  114. </div>
  115. </div>
  116. <!--分类E-->
  117. <? if($rowty=mysql_fetch_array($resty)){?>
  118. <div class="huodong">
  119. <ul class="u1"><li class="l0"></li><li class="l1"><?=$rowty[name1]?></li><li class="l2"><a href="newslist_j<?=$rowty[id]?>v.html" target="_blank">More>></a></li></ul>
  120. <?
  121. while1("*","yjcode_news where type1id=".$rowty[id]." and zt=0 order by lastsj desc limit 2");while($row1=mysql_fetch_array($res1)){
  122. $tp=returntp("bh='".$row1[bh]."' order by xh asc","-1");
  123. ?>
  124. <a href="txtlist_i<?=$row1[id]?>v.html" target="_blank">
  125. <ul class="u2">
  126. <li class="l1"><img src="<?=$tp?>" onerror="this.src='../img/none200x160.gif'" /></li>
  127. <li class="l2"><?=returntitcss(returntitdian($row1[tit],40),$row1[ifjc],$row1[titys])?></li>
  128. <li class="l3"><?=returntitdian($row1[wdes],116)?></li>
  129. </ul>
  130. </a>
  131. <? }?>
  132. </div>
  133. <? }?>
  134. <? if($rowty=mysql_fetch_array($resty)){?>
  135. <div class="zazhi">
  136. <ul class="u1"><li class="l0"></li><li class="l1"><?=$rowty[name1]?></li><li class="l2"><a href="newslist-j<?=$rowty[id]?>v.html" target="_blank">More>></a></li></ul>
  137. <?
  138. while1("*","yjcode_news where type1id=".$rowty[id]." and zt=0 order by lastsj desc limit 3");while($row1=mysql_fetch_array($res1)){
  139. $tp=returntp("bh='".$row1[bh]."' order by xh asc","-1");
  140. ?>
  141. <ul class="u2">
  142. <li class="l1"><a href="txtlist_i<?=$row1[id]?>v.html" target="_blank"><img src="<?=$tp?>" onerror="this.src='../img/none200x160.gif'" /></a></li>
  143. <li class="l2"><a href="txtlist_i<?=$row1[id]?>v.html" target="_blank"><?=returntitcss(returntitdian($row1[tit],36),$row1[ifjc],$row1[titys])?></a></li>
  144. <li class="l3"><a href="txtlist_i<?=$row1[id]?>v.html" target="_blank">查看详情</a></li>
  145. </ul>
  146. <? }?>
  147. </div>
  148. <? }?>
  149. <? if($rowty=mysql_fetch_array($resty)){?>
  150. <!--数据B-->
  151. <div class="shuju">
  152. <ul class="u1"><li class="l0"></li><li class="l1"><?=$rowty[name1]?></li><li class="l2"><a href="newslist_j<?=$rowty[id]?>v.html" target="_blank">More>></a></li></ul>
  153. <?
  154. while1("*","yjcode_news where type1id=".$rowty[id]." and zt=0 order by lastsj desc limit 6");while($row1=mysql_fetch_array($res1)){
  155. ?>
  156. <ul class="u2">
  157. <li class="l1"><a href="txtlist_i<?=$row1[id]?>v.html" target="_blank"><?=returntitcss(returntitdian($row1[tit],50),$row1[ifjc],$row1[titys])?></a></li>
  158. <li class="l2"><?=$row1[sj]?></li>
  159. </ul>
  160. <? }?>
  161. </div>
  162. <!--数据E-->
  163. <? }?>
  164. </div>
  165. <!--右E-->
  166. </div>
  167. <? include("../tem/bottom.html");?>
  168. </body>
  169. </html>