device_edit.php

来自「电脑设备管理系统 适合于小型企业单位网络管理电脑设备使用」· PHP 代码 · 共 76 行

PHP
76
字号
<?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>鏂扮數鑴戣

⌨️ 快捷键说明

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