Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
close_plate.php
Package: Nsix.rar [view]
Upload User: m68239277
Upload Date: 2014-10-12
Package Size: 824k
Code Size: 2k
Category:
Web Server
Development Platform:
PHP
- <?php
- include("../inc/conn.php");
- session_start();
- include("check.php");
- $user=$_SESSION["user"];
- $sqlp=mysql_query("select * from ptime where sign='4'",$conn);
- $opstate=mysql_result($sqlp,0,"opstate");
- $hand=mysql_result($sqlp,0,"hand");
- if($hand==0)
- {
- $sqlop=mysql_query("select * from ptime where now_sign='1'",$conn);
- $open_time=mysql_result($sqlop,0,"open_time");
- $tnum_time=mysql_result($sqlop,0,"tnum_close_time");
- if($opstate==1)
- {
- $ltime=split(" ",$open_time);
- $ymd=split("-",$ltime[0]);
- $hms=split(":",$ltime[1]);
- $open_times=mktime($hms[0],$hms[1],$hms[2],$ymd[1],$ymd[2],$ymd[0]);
- $limit_time=$open_times-time();
- $ttime=split(" ",$tnum_time);
- $tymd=split("-",$ttime[0]);
- $thms=split(":",$ttime[1]);
- $topen_times=mktime($thms[0],$thms[1],$thms[2],$tymd[1],$tymd[2],$tymd[0]);
- $tlimit_time=time()-$topen_times;
- if($limit_time<=0&&$tlimit_time<=0)
- {
- //mysql_query("update num set bnum='0'",$conn); //更新倍数
- $sqls=mysql_query("update ptime set opstate='0',tnum='0',other='0' where sign='4'",$conn);
- if($sqls) echo "<meta http-equiv='refresh' content='20;URL=umain.php'>";
- }
- }
- }
- ?>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
- <style type="text/css">
- <!--
- body {
- margin-left: 10px;
- }
- -->
- </style></head>
- <body>
- <br>
- <table width="67%" height="81" border="0" cellpadding="10" cellspacing="1" bgcolor="#FF0000">
- <tr>
- <td bgcolor="#417dec" ><div align="left"><img src="../img/message.gif" width="20" height="20"> 目前非下单时段!</div></td>
- </tr>
- </table>
- </body>