?? device_jod.php
字號(hào):
<?php
require_once('../admin_global.php');
header("Content-Type: text/html; charset=utf-8");
if(isset($_GET['action'])) {
$action=$_GET['action'];
switch($action) {
//鍒犻櫎
case 'del':
$id=$_GET['id'];
$query=$db->query("DELETE FROM device WHERE device_id=$id");
POB("鍒犻櫎鎴愬姛","device.php");
break;
case 'scrapped': //鎶ュ簾
$id=$_GET['id'];
$query=$db->query("UPDATE device SET device_state='鎶ュ簾',device_isscrapped=1 WHERE device_id=$id");
POB("鎶ュ簾鎴愬姛","devicescrapped.php");
break;
case 'edit': //緙栬緫
$id=$_POST['id'];
$name=trim($_POST['name']);
$txtbrand=trim($_POST['txtbrand']);
$txttype=trim($_POST['txttype']);
$txtSpecification=trim($_POST['txtSpecification']);
$txtcode=trim($_POST['txtcode']);
$txtorigin=trim($_POST['txtorigin']);
$txtvalue=trim($_POST['txtvalue']);
$txtorderunits=trim($_POST['txtorderunits']);
$dateorderdate=trim($_POST['dateorderdate']);
$dateusedate=trim($_POST['dateusedate']);
$datewarrantydate=trim($_POST['datewarrantydate']);
$txtsource=trim($_POST['txtsource']);
$txtsector=trim($_POST['txtsector']);
$txtduty=trim($_POST['txtduty']);
$txtunits=trim($_POST['txtunits']);
$txtstate=trim($_POST['txtstate']);
$isscrapped=trim($_POST['txtisscrapped']); //鏄
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -