<?php include_once "../class/AssetGroup.php"; $updateGroup = new AssetGroup(); $assetGroupId = $_GET["assetGroupId"]; $groupName = $_GET["editGname"]; $updateGroup->setAssetGroupId($assetGroupId); $updateGroup->setAssetGroupName($groupName); $updateGroup->editAssetGroup();
<?php include_once "../class/AssetGroup.php"; $delGroup = new AssetGroup(); $delId = $_GET["assetGroupid"]; $delGroup->setAssetGroupId($delId); $delGroup->delAssetGroup();
//** Version : 1.0 //** CoddingDate : 13/08/2556 //** Credit : นัฐวุฒิ เผือกทอง //****************************************************************// //****************************************************************// //*************** Check Session **************** session_start(); include_once "../class/User.php"; $user = new User(); if (!$user->getSession()) { header("location: ../page/main.php"); } //********************************************** include_once "../class/Config.php"; include_once "../class/AssetGroup.php"; $editGroup = new AssetGroup(); $dbGroup = new config(); $editId = $_GET["assetGroupId"]; $editGroup->setAssetGroupId($editId); $arr = $editGroup->getEditAssetGroup(); $data_array = array(); $no = 1; $stat = 0; while ($res = $dbGroup->fetch_object($arr)) { $data_array[$no]['assetGroupId'] = $res->assetGroupId; $data_array[$no]['assetGroupCode'] = $res->assetGroupCode; $data_array[$no]['assetGroupName'] = $res->assetGroupName; $data_array[$no]['assetTypeCode'] = $res->assetTypeCode; $no++; } echo json_encode($data_array);