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

📄 warm1.php

📁 电子派单系统
💻 PHP
字号:
<?php
session_start();
include("resp.inc");
resp_db_connect_i();
$tmp=mysql_query("select sn,ctype,owner,indep,time_to_sec(timediff(now(),stime))/60 as astime from deliver where tflag='0'");
for ($i=1;$i<=mysql_num_rows($tmp);$i++){
$deliver=mysql_fetch_array($tmp);
$astime=mysql_fetch_array(mysql_query(" select time_to_sec(time)/60 as time  from dtype where ctype=(select type  from ctype where mid='$deliver[ctype]')"));
if ($deliver[astime]<$astime[0]){if (($astime[0]-$deliver[astime])<30) $asalter=$asalter+1;}else{$astnum=$astnum+1;}
$maxsn=mysql_fetch_array(mysql_query("select max(snord) from flow where sn=$deliver[sn]"));
$tflag=mysql_fetch_array(mysql_query("select flow.sn,flow.ans,flow.comed,flow.goin,time_to_sec(timediff(flow.spdtm,now()))/60 as rtime,time_to_sec(timediff(flow.spdtm,flow.arrtm))/60 as atime from flow where sn=$deliver[sn] and snord=$maxsn[0]"));
if ($deliver[comed]=$_SESSION[gdpt]){if(!$tflag[ans]){}else{$noans=noans+1;} }
if ($tflag[goin]==$_SESSION[gdpt]){
if($tflag[ans] ){$pnum=$pnum+1;}else{$dnum=$dnum+1;}
if ($tflag[rtime]>0) {if ($tflag[rtime]<$tflag[atime]/4 or $tflag[rtime]<10) $alter=$alter+1; }else{$otnum=$otnum+1;}
}
}
?>
<html>
<head>
<title>日常区</title>
<script language='javascript'> 
<!-- 
var limit="1:00"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{ 
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+"分"+cursec+"秒后重刷本页!"
else
curtime=cursec+"秒后重刷本页!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
//-->

<!-- 
function init() 
{ 
makeflash(bob);
} 
function makeflash(obj) 
{ 
obj.flashTimer=setInterval("bob.filters.glow.enabled= !bob.filters.glow.enabled",500) 
}
function stopflash(obj) 
{ clearInterval(obj.flashTimer) 
} 
</script> 
</head>
<?php
if ($dnum>0){
echo "<body BGCOLOR='lightblue' onload='init()'>";
echo "<div ><table align=left width='80' border=1px><tr><th>新到工单</tr><tr><td align=center class='glow1' style='Filter: Glow(color:##FF0000)' onmouseover='stopflash(this)' onmouseout='init(this)' id='bob'><font size=+2>$dnum</font></td></tr></table></div>";
}else{
echo "<body bgcolor='lightblue'>";
echo "<div><table align=left width='80' border=1px><tr><th>新到工单</tr><tr><td align=center><font size=+2>暂无</font></td></tr></table></div>";
}
if($pnum>0){echo "<div><table align=left width='100' border=1px><tr><th>处理中工单</tr><tr><td align=center align=center ><font size=+2>$pnum</font></td></tr></table></div>";}else{
echo "<div><table align=left width='100' border=1px><tr><th>处理中工单</tr><tr><td align=center><font size=+2>暂无</font></td></tr></table></div>";
}
if ($alter>0){
echo "<div><table align=left width='120' border=1px><tr><th>部门警戒工单</tr><tr><td align=center><font size=+2>$alter</font></td></tr></table></div>";}else{echo "<div><table align=left width='120' border=1px><tr><th>部门警戒工单</tr><tr><td align=center><font size=+2>暂无</font></td></tr></table></div>";}
if ($noans>0){echo "<div><table align=left width='110' border=1px><tr><th>无应答工单</tr><tr><td align=center ><font size=+2 align=center >$noans</font></td></tr></table></div>";}else{echo "<div><table align=left width='110' border=1px><tr><th>无应答工单</tr><tr><td align=center ><font size=+2 align=center >暂无</font></td></tr></table></div>";}
?>

</body></html>

⌨️ 快捷键说明

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