?? device_edit.php
字號(hào):
<?php
include('../admin_global.php');
$id=$_GET['id'];
$query=$db->query("SELECT * FROM device,device_brand,device_type,units,sector where device.device_brand=device_brand.brand_id and device.device_type=device_type.type_id and device.device_units=units.units_id and device.device_sector=sector.sector_id and device_id=$id");
$rs=$db->fetch_array($query);
?>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>緗戠珯綆$悊</title>
<link rel="stylesheet" type="text/css" href="../css/form.css">
<script language="javascript" type="text/javascript">
var onecount;
onecount = 0;
sectorArray = new Array();
<?php
$query2=$db->query("SELECT * FROM sector");
$total2=$db->num_rows($query2);
if ($total2>0)
{
$count=0;
while($rs2=$db->fetch_array($query2))
{
?>
sectorArray[<?=$count?>] = new Array('<?=$rs2['sector_id']?>','<?=$rs2['sector_name']?>','<?=$rs2['units']?>');
<?php
$count++;
}}
?>
onecount=<?=$count?>;
function getSector(locationid)
{
document.myform.txtsector.length = 0;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (sectorArray[i][2] == locationid)
{
document.myform.txtsector.options[document.myform.txtsector.length] = new Option(sectorArray[i][1], sectorArray[i][0]);
}
}
}
</script>
<script src="../js/admin.js"></script>
</head>
<body bgcolor="#D4D4D4">
<table width="300" height="22" border="0" cellpadding="0" cellspacing="0" align="center"
style="margin-top:25px; color:#000000; font-size:12px" bgcolor="#ffffff">
<!--DWLayoutTable-->
<tr>
<td align="center" valign="middle" ><strong>鏂扮數(shù)鑴戣
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -