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'], 1); $_SESSION['s_page_admin'] = $_SERVER['PHP_SELF']; $fields = [ 'asset_type' => TRANS('ASSET_TYPE'), 'manufacturer' => TRANS('COL_MANUFACTURER'), 'model' => TRANS('COL_MODEL'), 'serial_number' => TRANS('SERIAL_NUMBER'), 'part_number' => TRANS('COL_PARTNUMBER'), 'department' => TRANS('DEPARTMENT'), 'situation' => TRANS('STATE'), 'net_name' => TRANS('NET_NAME'), 'asset_unit' => TRANS('COL_UNIT'), 'asset_tag' => TRANS('ASSET_TAG'), 'invoice_number' => TRANS('INVOICE_NUMBER'), 'cost_center' => TRANS('COST_CENTER'), 'price' => TRANS('FIELD_PRICE'), 'buy_date' => TRANS('PURCHASE_DATE'), 'supplier' => TRANS('COL_VENDOR'), 'assistance_type' => TRANS('ASSISTENCE'), 'warranty_type' => TRANS('FIELD_TYPE_WARRANTY'), 'warranty_time' => TRANS('WARRANTY_TIME'), 'extra_info' => TRANS('ENTRY_TYPE_ADDITIONAL_INFO') ]; ?> <?= APP_NAME; ?> <?= VERSAO; ?>

 



' . $typeName . ''; // } $typesInProfile = getAssetsTypes($conn, null, null, null, $row['id']); foreach ($typesInProfile as $rowAppliedTo) { $typeName = $rowAppliedTo['tipo_nome']; $appliedTo .= '
  • ' . $typeName . '
  • '; } /* Campos básicos habilitados */ $fieldsInProfile = []; $specsFieldsInProfile = []; $customFieldsInProfile = []; foreach ($fields as $tableField => $label) { if ($row[$tableField]) { $fieldsInProfile[] = $label; } } /* Campos de especificação */ if ($row['field_specs_ids']) { $fields_specs_id = explode(',', $row['field_specs_ids']); $specs_fields = getAssetsTypes($conn, null, 2); foreach ($specs_fields as $specs_field) { if (in_array($specs_field['tipo_cod'], $fields_specs_id)) { $specsFieldsInProfile[] = $specs_field['tipo_nome']; } } } /* Campos personalizados */ if ($row['field_custom_ids']) { $fields_id = explode(',', $row['field_custom_ids']); $custom_fields = getCustomFields($conn, null, 'equipamentos'); foreach ($custom_fields as $cfield) { if (in_array($cfield['id'], $fields_id)) { $customFieldsInProfile[] = $cfield['field_label']; } } } ?>

    " name="" value="yes" /> _no" name="" value="no" checked />

    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >

    " name="" value="yes" /> _no" name="" value="no" />