top.window.location = '../../index.php'";
exit;
}
require_once __DIR__ . "/" . "../../includes/include_geral_new.inc.php";
require_once __DIR__ . "/" . "../../includes/classes/ConnectPDO.php";
use includes\classes\ConnectPDO;
$conn = ConnectPDO::getInstance();
$auth = new AuthNew($_SESSION['s_logado'], $_SESSION['s_nivel'], 2, 2);
?>
= APP_NAME; ?> = VERSAO; ?>
= TRANS('ASSET_ALLOCATION_HISTORY'); ?>
query($sql_asset_info);
if (!$res->rowCount()) {
echo message('danger', 'Ooops!', TRANS('MSG_SOMETHING_GOT_WRONG'), '', '', 1);
return;
}
$row = $res->fetch();
$changes = getUsersFromAssetChanges($conn, $asset_id);
$hasChanges = count($changes);
$concatAssetTypeInfo[] = $row['equipamento'];
$concatAssetTypeInfo[] = $row['fab_nome'];
$concatAssetTypeInfo[] = $row['modelo'];
$assetTypeInfoText = implode(' - ', array_filter($concatAssetTypeInfo));
?>
= TRANS('COL_TYPE'); ?>: = $assetTypeInfoText; ?>
= TRANS('CLIENT'); ?>: = $row['nickname']; ?>
= TRANS('COL_UNIT'); ?>: = $row['instituicao']; ?>
= TRANS('DEPARTMENT'); ?>: = $row['local']; ?>
= TRANS('ASSET_TAG_TAG'); ?>: = $row['etiqueta']; ?>
'. TRANS('CURRENT_USER') .'';
}
$concatUserAndClient = [];
$concatUserAndClient[] = $change['usuario'];
$concatUserAndClient[] = $change['cliente'];
$userAndClientText = implode(' - ', array_filter($concatUserAndClient));
?>
| = $userAndClientText . " " . $currentUser ?> |
= dateScreen($change['created_at']); ?> |
= dateScreen($change['updated_at']); ?> |
= $change['autor']; ?> |