📄 squery.php
字号:
<?php
session_start();
include("resp.inc");
resp_db_connect_i();
$dtype=mysql_query("select * from dtype where dtype='$_GET[dtype]' and ctype='$_GET[ctype]'");
$type=mysql_fetch_array($dtype);
echo "<form name='$_GET[dtype]$_GET[ctype]' method='post' action='dtypemod.php'>";
echo "<table align=center BGCOLOR='lightblue' width=320 cellpadding=3>";
echo "<tr><td align=right>故障类型:</td><td>$type[dtype]</td></tr>";
echo "<tr><td align=right>客户类型:</td><td>$type[ctype]</td></tr>";
echo "<tr><td align=right>总时限:<input type='checkbox' name='batime' onclick='document.$_GET[dtype]$_GET[ctype].atime.disabled=this.checked?false:true'></td><td><input type='text' name='atime' value='$type[time]' disabled></td></tr>";
echo "<tr><th align=right>参与部门<th align=left>部门时限</tr>";
$allsub=mysql_query("select depart,time from stream where dtype='$_GET[dtype]' and ctype='$_GET[ctype]'");
while($typesub=mysql_fetch_array($allsub)) {
echo "<tr><td align=right>$typesub[depart]<input type='checkbox' name='$typesub[depart]' onclick='document.$_GET[dtype]$_GET[ctype].b$typesub[depart].disabled=this.checked?false:true'></td><td align=left><input type='text' name='b$typesub[depart]' value='$typesub[time]' disabled></td></tr>";
}
echo "<input type='hidden' name='dtype' value='$_GET[dtype]'>";
echo "<input type='hidden' name='ctype' value='$_GET[ctype]'>";
echo "<tr><td colspan=2 align=center><input type='submit' value='提交修改'></td></tr>";
echo "</form>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -