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);
?>
= TRANS('PREVIOUS_LOCATIONS'); ?>
h.hist_local AND h.hist_local = '{$department}'
{$terms}
GROUP BY etiqueta, instituicao, tipo_local, instituicao_nome, tipo,
equipamento, locais, local_cod, modelo, tipo_marca, fabricante, tipo_fab, situac_cod, DATA, DIA, MES, ANO
ORDER BY equipamento, etiqueta
";
$resultado = $conn->query($query);
$resultado2 = $conn->query($query);
$linhas = $resultado->rowCount();
if (!$linhas) {
$_SESSION['flash'] = message('info', 'Ooops!', TRANS('MSG_NOT_FOUND_REG_EQUIP'), '', '');
redirect('search_by_previous_location.php');
return;
}
$row = $resultado->fetch();
?>
= TRANS('FIELD_TYPE_EQUIP'); ?>: = (!empty($type) ? $row['equipamento'] : TRANS('OCO_SEL_ANY')); ?>
= TRANS('DEPARTMENT'); ?>: = $row['locais']; ?>
fetchall() as $row) {
$currentLocation = $row['tipo_local'];
$queryB = "SELECT l.local AS loc_atual FROM localizacao AS l WHERE l.loc_id = '{$currentLocation}'";
$resultadoB = $conn->query($queryB);
$rowB = $resultadoB->fetch();
?>
= $row['etiqueta']; ?>
= $row['instituicao_nome']; ?>
= $row['equipamento']; ?>
= $row['fabricante'] ." ". $row['modelo']; ?>
= $rowB['loc_atual']; ?>
= TRANS('MNL_CON_HIST'); ?>