⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.php

📁 程序脚本为PHP+MYSQL
💻 PHP
📖 第 1 页 / 共 2 页
字号:
for (i=0; i<startDay; i++) {
document.writeln("\n<TD><FONT STYLE='font-size:9pt'> </FONT></TD>");
column++;
}

for (i=1; i<=nDays; i++) {
if (i == thisDay) {
document.writeln("</TD><TD ALIGN='CENTER' BGCOLOR='#FF8040'><FONT STYLE='font-size:9pt;Color:#ffffff'><B>")
}
else {
document.writeln("</TD><TD BGCOLOR='#FFFFFF' ALIGN='CENTER'><FONT STYLE='font-size:9pt;font-family:Arial;font-weight:bold;Color:#330066'>");
}
document.writeln(i);
if (i == thisDay) document.writeln("</FONT></TD>")
column++;
if (column == 7) {
document.writeln("<TR>"); 
column = 0;
}
}
document.writeln("<TR><TD COLSPAN='7' ALIGN='CENTER' VALIGN='TOP' BGCOLOR='#0080FF'>")
document.writeln("<FORM NAME='clock' onSubmit='0'><FONT STYLE='font-size:9pt;Color:#ffffff'>")
document.writeln("服务器时间:<INPUT TYPE='Text' NAME='face' ALIGN='TOP'size='18' ></FONT></FORM></TD></TR></TABLE>")
document.writeln("</TD></TR></TABLE></div>");
}
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
var timerID = null;
var timerRunning = false;

function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;}

//显示当前时间
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var timeValue =time(dd);
//timeValue += ((minutes < 10) ? ":0" : ":") + minutes
//timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " 下午 " : " 上午 "
//document.clock.face.value = timeValue;
//setInterval("dd.setSeconds(dd.getSeconds()+1);document.clock.face.value=time(dd)",1000)
//timerID = setTimeout("showtime()",1000);//设置超时,使时间动态显示
timerRunning = true;}

function startclock () {
stopclock();
showtime();}
</SCRIPT>
<SCRIPT language="javascript">
function Isnum(){
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</SCRIPT>
<script language=javascript>
function time(liveclock){
var s='';
var d=liveclock!=null?new Date(liveclock):new Date();
with(d){
s=show5(getHours())+':'+show5(getMinutes())+':'+show5(getSeconds())
}
return(s);
}
<?php $nowdate = date("Y")."/".date("m")."/".date("d")." ".date("H:i:s")?>
function show5(num){
return num<10?'0'+num:num;
}
var dd=new Date("<?=$nowdate?>");
var ss=setInterval("dd.setSeconds(dd.getSeconds()+1);document.clock.face.value=time(dd)",1000)
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/css.CSS" rel="stylesheet" type="text/css">
<title></title>
<style type="text/css">
<!--
body {
	margin-left:0px;
}
.STYLE1 {color: #FFFFFF}
-->
</style></head>

<body onLoad="startclock();show5(); timerONE=window.setTimeout" topmargin="0" leftmargin="0">
<table width="100%"  border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td><span class="fbback">当前状态:</span>
	<?php if($all_close==0)
	{ ?><span class="fbred">开盘</span>
	 <?
	  if($other_close==0) 
	  { ?><input name="Submit2" type="button" class="buttonrmin" onClick="javascript:window.location.href='config.php?op=other_close';" value=" 正码封盘 " >
	  <? }else
	  { ?>
	  <input name="Submit2" type="button" class="buttongmin" onClick="javascript:window.location.href='config.php?op=other_open'" value=" 正码开盘 ">
	  <? }?>
    <input name="Submit22" type="button" class="buttonrmin" onClick="javascript:window.location.href='config.php?op=all'" value=" 全部封盘 ">
    <? }else
	{ ?><span class="fblue12"><strong>已封盘</strong></span>  
    <input name="Submit222" type="button" class="buttongmin" onClick="javascript:window.location.href='config.php?op=open'" value="  点击开盘  ">
	<? }?></td>
    <td><?php include("times_close.inc.php"); ?></td>
    <td><span class="fbred">自动开盘状态:</span>	<? if($handf==1) {?>
	  <a href="config.php?ap=open" class="ared" title="点击开启自动开盘状态">关闭</a>	<? }else{?>
	  <a href="config.php?ap=close" title="点击关闭自动开盘状态">开启</a>	<? }?></td>
  </tr>
</table>
<table width="100%" height="58" border="0" cellpadding="3" cellspacing="1" class="t12">
  <tr class="t11">
    <td align="center" class="tblue STYLE1">期数</td>
    <td align="center" class="tblue STYLE1">星期</td>
    <td height="22" class="tblue"><div align="center" class="fw12">开盘时间</div></td>
    <td class="tblue"><div align="center" class="fw12">正码封盘时间</div></td>
    <td class="tblue"><div align="center" class="fw12">特码封盘时间</div></td>
    <td class="tblue"><div align="center" class="fw12">功能</div></td>
    <td class="tblue STYLE1">即时注单</td>
  </tr>
  <?php while($rs=mysql_fetch_array($sql))
	  { 
	  if($rs["now_sign"]==1):
	  $cs="bgcolor=#EAEA00";
	  else:
	  $cs="class='t17'";
	  endif;
	  ?>
  <form name="form2" method="post" action="config.php?act=yes" onSubmit="return check(this)">
    <tr  <?=$cs?>>
      <td align="center">
        <input name="pdate" type="text" class="input" id="pdate" value="<?=$rs["dates"]?>" size="3" maxlength="20">期</td>
      <td align="center" class="fred12"><?=week(substr($rs["open_time"],0,10))?></td>
	  <? $optime=$rs["open_time"]?>
      <td height="33"><div align="center">
          <input name="open_year" type="text" class="input" id="open_year" value="<?=substr($optime,0,4)?>" size="4" maxlength="4" ONKEYPRESS="event.returnValue=Isnum();">年
          <input name="open_month" type="text" class="input" id="open_month" value="<?=substr($optime,5,2)?>" size="2" maxlength="2" ONKEYPRESS="event.returnValue=Isnum();">月
      <input name="open_date" type="text" class="input" id="open_date" value="<?=substr($optime,8,2)?>" size="2" maxlength="2" ONKEYPRESS="event.returnValue=Isnum();">日
      <input name="open_hour" type="text" class="input" id="open_hour" value="<?=substr($optime,11,2)?>" size="2" maxlength="2" ONKEYPRESS="event.returnValue=Isnum();">
      <span class="fred12">时</span>      
      <input name="open_minute" type="text" class="input" id="open_minute" value="<?=substr($optime,14,2)?>" size="2" maxlength="2" ONKEYPRESS="event.returnValue=Isnum();">分
      <input name="open_second" type="text" class="input" id="open_second" value="<?=substr($optime,17,2)?>" size="2" maxlength="2" ONKEYPRESS="event.returnValue=Isnum();">
      秒</div></td><?php $ottime=$rs["other_close_time"]?>
      <td><div align="center">
        <input name="other_year" type="text" class="input" id="other_year" value="<?=substr($ottime,0,4)?>" size="4" maxlength="4" onKeyPress="event.returnValue=Isnum();">年
        <input name="other_month" type="text" class="input" id="other_month" value="<?=substr($ottime,5,2)?>" size="2" maxlength="2" onKeyPress="event.returnValue=Isnum();">月
        <input name="other_date" type="text" class="input" id="other_date" value="<?=substr($ottime,8,2)?>" size="2" maxlength="2" onKeyPress="event.returnValue=Isnum();">日
        <input name="other_hour" type="text" class="input" id="other_hour" value="<?=substr($ottime,11,2)?>" size="2" maxlength="2" onKeyPress="event.returnValue=Isnum();">
        <span class="fred12">时</span>
        <input name="other_minute" type="text" class="input" id="other_minute" value="<?=substr($ottime,14,2)?>" size="2" maxlength="2" onKeyPress="event.returnValue=Isnum();">分
        <input name="other_second" type="text" class="input" id="other_second" value="<?=substr($ottime,17,2)?>" size="2" maxlength="2" onKeyPress="event.returnValue=Isnum();">秒 
        </div></td>
		<?php $ctime=$rs["tnum_close_time"]?>
      <td><div align="center">
        <input name="tnum_year" type="text" class="input" id="tnum_year" value="<?=substr($ctime,0,4)?>" size="4" maxlength="4" ONKEYPRESS="event.returnValue=Isnum();">年
<input name="tnum_month" type="text" class="input" id="tnum_month" value="<?=substr($ctime,5,2)?>" size="2" maxlength="2" ONKEYPRESS="event.returnValue=Isnum();">月
<input name="tnum_date" type="text" class="input" id="tnum_date" value="<?=substr($ctime,8,2)?>" size="2" maxlength="2" ONKEYPRESS="event.returnValue=Isnum();">日
<input name="tnum_hour" type="text" class="input" id="tnum_hour" value="<?=substr($ctime,11,2)?>" size="2" maxlength="2" ONKEYPRESS="event.returnValue=Isnum();">
<span class="fred12">时</span>
<input name="tnum_minute" type="text" class="input" id="tnum_minute" value="<?=substr($ctime,14,2)?>" size="2" maxlength="2" ONKEYPRESS="event.returnValue=Isnum();">分
<input name="tnum_second" type="text" class="input" id="tnum_second" value="<?=substr($ctime,17,2)?>" size="2" maxlength="2" ONKEYPRESS="event.returnValue=Isnum();">秒
        </div></td>
      <td align="center"><input name="Submit" type="submit" class="buttongmin" value="设定"><input name="id" type="hidden" id="id" value="<?=$rs["ID"]?>"><input name="signs" type="hidden" id="signs" value="<?=$rs["now_sign"]?>">&nbsp;      </td>
      <td><div align="center">
	  <?	 
	   if($rs["now_sign"]==1)
	  {?>
	  <? if($now_billf=="0")
	  { ?>
	  <a href="config.php?nows=close" title="点击开启当期即时注单状态"><strong>当期</strong></a>
	  <? }else
	  {?>
	  <a href="config.php?nows=open" class="fbred" title="点击关闭当期即时注单状态">上期</a>
	  <? }?>
	  <? }?></div></td>
    </tr>
  </form>
  <? 
   }?>
  <form name="form3" method="post" action="config.php?act=add&menu=4">
  </form>
</table>
<br>
<span class="fred12">备注:当出现用户前台没有自动开盘时,请点击右上角的自动开盘状态处于开启状态!当在被迫人工封盘时,请手动点击自动开盘状态为开启状态,否则用户前台不会自动开盘!<br>
</span> <span class="fred12">关于即时注单:当即时注单状态为开启时,则显示当期的下注状况,若即时注单为关闭状态则显示上一期的下注状况!
</span>
<script language="JavaScript" type="text/javascript">
calendar();
</script>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -