dt_temptext1.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?><?php
  7. $livetime=strtotime($navinfor[livetime]);
  8. $time=time();
  9. ?>
  10. <!DOCTYPE html>
  11. <html lang="zh-CN">
  12. <head>
  13. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  14. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  15. <meta name="referrer" content="no-referrer" />
  16. <meta name="viewport" content="width=device-width, initial-scale=1 user-scalable=no">
  17. <meta name="apple-mobile-web-app-capable" content="yes">
  18. <meta content="telephone=yes" name="format-detection"/>
  19. <meta name="apple-mobile-web-app-status-bar-style" content="white">
  20. <meta name="x5-fullscreen" content="true"/>
  21. <meta name="apple-touch-fullscreen" content="yes"/>
  22. <title>[!--pagetitle--]-<?=$public_r['add_www_jianzhan_com_name']?></title>
  23. <meta content="[!--pagekey--]" name="keywords">
  24. <meta content="[!--smalltext--]" name="description">
  25. <script type="text/javascript" src="/staticm/js/flexible.min.js"></script>
  26. <script type="text/javascript" src="/staticm/js/jquery-1.9.1.min.js"></script>
  27. <link href="/staticm/css/font.css" type="text/css" rel="stylesheet">
  28. <link href="/staticm/css/public.min.css" type="text/css" rel="stylesheet">
  29. <link href="/staticm/css/zhibo.min.css" type="text/css" rel="stylesheet">
  30. <link href="/staticm/css/swiper.4.0.5.css" type="text/css" rel="stylesheet">
  31. </head>
  32. <body data-domainwww="/" data-domainstatic="/staticm/" data-domainres="" data-scoredisplay="1">
  33. <div class="bodyboxtow">
  34. <div class="lq_tl_gg" id="tonglan">
  35. <div class="oneall"></div>
  36. <div class="twoall"></div>
  37. <div class="threeall"></div>
  38. </div>
  39. <div class="head_zhibo clearfix">
  40. <ul class="headtwo">
  41. <?php
  42. $bqno=0;
  43. $ecms_bq_sql=sys_ReturnEcmsLoopBq('select classid,classname,classpath from [!db.pre!]enewsclass where bclassid in(1) order by classid',0,24,0);
  44. if($ecms_bq_sql){
  45. while($bqr=$empire->fetch($ecms_bq_sql)){
  46. $bqsr=sys_ReturnEcmsLoopStext($bqr);
  47. $bqno++;
  48. ?>
  49. <li <? if($bqr['classid']==$GLOBALS['navclassid']){?> class="zbhover"<? } ?>><a href="/<?=$bqr[classpath]?>/"><?=$bqr[classname]?></a></li>
  50. <?php
  51. }
  52. }
  53. ?>
  54. </ul>
  55. </div>
  56. <div class="zbtwonav">
  57. <ul class="swiper-wrapper">
  58. <li class="swiper-slide"><a href="<?=sys_ReturnBqClassname($class_r[$GLOBALS[navclassid]],9)?>">全部</a></li>
  59. <?php
  60. $bqno=0;
  61. $ecms_bq_sql=sys_ReturnEcmsLoopBq('news',10,18,0,'firsttitle=9');
  62. if($ecms_bq_sql){
  63. while($bqr=$empire->fetch($ecms_bq_sql)){
  64. $bqsr=sys_ReturnEcmsLoopStext($bqr);
  65. $bqno++;
  66. ?>
  67. <li class="swiper-slide"><a <? if($bqr['id']==$GLOBALS['id']){?>class="zbtwohover"<? } ?> href="<?=$bqsr['titleurl']?>"><?=$bqr['title']?></a></li>
  68. <?php
  69. }
  70. }
  71. ?>
  72. </ul>
  73. </div>
  74. <!--最近直播-->
  75. <ul class="index_zhibo_wrap clearfix zhibolist">
  76. <?php
  77. $classid=$GLOBALS[navclassid];
  78. $week= array('星期日','星期一','星期二','星期三','星期四','星期五','星期六');
  79. $weekb= array('周日','周一','周二','周三','周四','周五','周六');
  80. $listr0="<span id='searchhtml'></span>";
  81. $listr1="<span id='searchhtml'></span>";;
  82. for($m=-1;$m<3;$m++) {
  83. $curdateline = strtotime('+' . $m . ' days');
  84. $curdate = date('Y-m-d H:i:s', $curdateline);
  85. $date=date('m月d日', $curdateline);
  86. $dated=date('Y年m月d日', $curdateline);
  87. $wk=$week[date('w', $curdateline)];
  88. if($m<0){
  89. $sql3 = "select * from {$dbtbpre}ecms_movie where typename like '%$navinfor[title]%' and to_days('" . $curdate . "')=to_days(newstime) and unix_timestamp(newstime)+9600>= " . time() . " order by newstime";
  90. $tr1=$empire->fetch1($sql3);
  91. if(!$tr1){
  92. continue;
  93. }else{
  94. $listr1='';
  95. }
  96. }
  97. if($m)
  98. $listr='';
  99. ?><? if ($m<1)
  100. $sql2 = "select * from {$dbtbpre}ecms_movie where typename like '%$navinfor[title]%' and to_days('" . $curdate . "')=to_days(livetime) and unix_timestamp(livetime)+9600>= " . time() . " order by livetime";
  101. else
  102. $sql2 = "select * from {$dbtbpre}ecms_movie where typename like '%$navinfor[title]%' and to_days('" . $curdate . "')=to_days(livetime) order by livetime";
  103. $key_sql = $empire->query($sql2);
  104. $j = 0;
  105. while ($tr = $empire->fetch($key_sql)) {
  106. $livetime = strtotime($tr[liveime]);
  107. if($tr[$classid]==1){
  108. $clurl='zuqiu';
  109. }else{
  110. $clurl='lanqiu';
  111. }
  112. if($time<$livetime){
  113. $liver="即将开始";
  114. $sq='none';
  115. $tq='';
  116. }elseif ($time>$livetime && $time<$newstime+9600){
  117. $liver="直播中";
  118. $sq='class="ztks"';
  119. $tq='start';
  120. }else{
  121. $liver="已结束";
  122. $sq='none';
  123. $tq='';
  124. }
  125. if ($tr[isgood]==0){
  126. $clss="";
  127. $ls="";
  128. }else{
  129. $clss='font-weight: bold';
  130. $ls='<img src="/picture/popular.png" style="margin-left: 6px;margin-bottom: 10px;">';
  131. }
  132. ?>
  133. <li data-matchtime="<?=date("Y-m-d H:i",$tr[newstime])?>" class="zb_time_new_span_wrap" data_timen="" tcid="1" data-ls="">
  134. <div class="zhibo_con_zuo">
  135. <p><?=date("H:i",$tr[newstime])?></p>
  136. <span><?=$tr[typename]?></span> </div><?php $fr=$empire->fetch1("select title,titleurl,titlepic from {$dbtbpre}ecms_qd where title like '$tr[zd]'"); ?>
  137. <div class="zhibo_con_zhong"> <a href="<?=$fr[titleurl]?>"><img src="<?=$public_r['add_www_jianzhanzj_com_url']?><?=$fr[titlepic]?$fr[titlepic]:'/style/pic/home.png' ?>" alt="<?=$tr[zd]?>">
  138. <p><?=$tr[zd]?></p><?php $fr=$empire->fetch1("select title,titleurl,titlepic from {$dbtbpre}ecms_qd where title like '$tr[kd]'"); ?>
  139. <span></span></a> <a href="<?=$fr[titleurl]?>"><img class="tu1" src="<?=$public_r['add_www_jianzhanzj_com_url']?><?=$fr[titlepic]?$fr[titlepic]:'/style/pic/guest.png' ?>" alt="<?=$tr[kd]?>">
  140. <p><?=$tr[kd]?></p>
  141. <span></span></a> </div>
  142. <div class="zhibo_con_right"> <a href="<?=$tr['titleurl']?>" <?=$sq?>> <img src="/staticm/img/gxz.png"> <span>高清直播</span> </a>
  143. <p class="z_cc"></p>
  144. </div>
  145. </li>
  146. <?php }?><?php
  147. }?>
  148. </ul>
  149. </div>
  150. <footer>
  151. <ul class="footernav">
  152. <li > <a href="/"> <cite class="dbdhimg_sy"></cite> <span>首页</span> </a> </li>
  153. <?php
  154. $bqno=0;
  155. $ecms_bq_sql=sys_ReturnEcmsLoopBq('select classid,classname,classpath from [!db.pre!]enewsclass where classid in(2,13,43,59) order by classid',0,24,0);
  156. if($ecms_bq_sql){
  157. while($bqr=$empire->fetch($ecms_bq_sql)){
  158. $bqsr=sys_ReturnEcmsLoopStext($bqr);
  159. $bqno++;
  160. ?>
  161. <li <? if($bqr['classid']==$GLOBALS['navclassid']){?>class="dbnavhover"<? } ?>> <a href="/<?=$bqr[classpath]?>/"> <cite class="dbdhimg_<?php if ($bqno==1){ echo 'zb';}if ($bqno==2){echo 'sp';}if ($bqno==3){echo 'zx';}if ($bqno==4){echo 'wd';}?>"></cite> <span><?=$bqr[classname]?></span> </a> </li>
  162. <?php
  163. }
  164. }
  165. ?>
  166. </ul>
  167. </footer>
  168. <div class="fandign"><i class="iconfont">&#xe69d;</i></div>
  169. <script type="text/javascript" src="/staticm/js/common.min.js" data-cfasync="false"></script>
  170. <script type="text/javascript" src="/staticm/js/iscroll.js" data-cfasync="false"></script>
  171. <script type="text/javascript" src="/staticm/js/swiper.4.0.5.min.js" data-cfasync="false"></script>
  172. <script type="text/javascript" src="/staticm/js/zhibo.min.js" data-cfasync="false"></script>
  173. </body>
  174. </html>