<?php

include_once "../../login/check.php";
include_once "../pdfs.php";
$titulo = $idioma['DatosPaciente'];
function dec($num)
{
    return number_format($num, 2);
}
$Cod = $_GET['Cod'];
include_once "../../class/optica.php";
$optica = new optica();
$opt = $optica->mostrarRegistro($Cod);
$opt = array_shift($opt);
include_once "../../class/medico.php";
$medico = new medico();
include_once "../../class/paciente.php";
$paciente = new paciente();
$pac = $paciente->mostrarPaciente($opt['CodPaciente']);
$pac = array_shift($pac);
include_once "../../class/productotipo.php";
$productotipo = new productotipo();
include_once "../../class/producto.php";
$producto = new producto();
$prodtip1 = $productotipo->mostrarTodoRegistro("CodProductoTipo=" . $opt['CodProductoTipo1']);
$prodtip1 = array_shift($prodtip1);
$prodtip2 = $productotipo->mostrarTodoRegistro("CodProductoTipo=" . $opt['CodProductoTipo2']);
$prodtip2 = array_shift($prodtip2);
$prodtip3 = $productotipo->mostrarTodoRegistro("CodProductoTipo=" . $opt['CodProductoTipo3']);
$prodtip3 = array_shift($prodtip3);
$prodtip4 = $productotipo->mostrarTodoRegistro("CodProductoTipo=" . $opt['CodProductoTipo4']);