left_tnum_close.php
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:1k
源码类别:

Web服务器

开发平台:

PHP

  1. <?php 
  2. $sqlcs=mysql_query("select * from ptime where sign='4'",$conn);
  3. $all_close=mysql_result($sqlcs,0,"opstate");
  4. $tnum_close=mysql_result($sqlcs,0,"tnum");
  5. $hand=mysql_result($sqlcs,0,"hand");
  6. if($hand==1) echo "<script language='javascript'>window.location='left_state.php'</script>";
  7. $sqlop=mysql_query("select * from ptime where now_sign='1'",$conn);
  8. $tnum_closes=mysql_result($sqlop,0,"tnum_close_time");   //tnum
  9. $ltime=split(" ",$tnum_closes);
  10. $ymd=split("-",$ltime[0]);
  11. $hms=split(":",$ltime[1]);
  12. $limit_times=mktime($hms[0],$hms[1],$hms[2],$ymd[1],$ymd[2],$ymd[0]);  //éè?¨ê±??
  13. $limit_time=$limit_times-time();
  14. if($limit_time<=0)
  15. {
  16. mysql_query("update ptime set tnum='1',,opstate='1',other='1' where sign='4'",$conn);   //tnum close
  17. }
  18. if($all_close==1) echo "<script language='javascript'>window.location='left_state.php'</script>";
  19. if($tnum_close==1) echo "<script language='javascript'>window.location='left_state.php'</script>";
  20. ?>