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); $_SESSION['s_page_invmon'] = $_SERVER['PHP_SELF']; $config = getConfig($conn); $hasFiles = 0; ?> <?= APP_NAME; ?> <?= VERSAO; ?>

 

query($sqlFiles); $hasFiles = $resultFiles->rowCount(); $model_id = (int)$_GET['cod']; } $asset_type = (isset($_GET['asset_type']) ? noHtml($_GET['asset_type']) : ""); $manufacturer_id = (isset($_GET['manufacturer']) ? noHtml($_GET['manufacturer']) : ""); $field_to_update = (isset($_GET['this']) ? noHtml($_GET['this']) : ""); $models = (isset($_GET['cod']) ? getAssetsModels($conn, (int)$_GET['cod']) : getAssetsModels($conn)); $registros = count($models); if ((!isset($_GET['action'])) && !isset($_POST['submit'])) { ?>

fetchall() as $row) { foreach ($models as $row) { $renderAttrs = ""; $attributes = getModelSpecs($conn, $row['codigo']); foreach ($attributes as $attr) { $renderAttrs .= "
  • " . $attr['mt_name'].": " . $attr['spec_value'] . $attr['unit_abbrev'] . "
  • "; } ?>
    " id="asset_type" /> " id="field_to_update" />
     
    fetchAll() as $rowFiles) { $cont++; $size = round($rowFiles['img_size'] / 1024, 1); $rowFiles['img_tipo'] . "](" . $size . "k)"; if (isImage($rowFiles["img_tipo"])) { $viewImage = " "; } else { $viewImage = ""; } ?>
    #
     
    " id="asset_type" /> " id="field_to_update" />