Exemplo n.º 1
0
        $this->BoxedText($vWidth, $vHeight, iconv("utf8", "windows-1251", $vBranchInfo['OGRN']));
        $this->Ln($vHeightLN);
        $this->SetFont('arial_rus', '', 10);
        $vHeight = $this->FontSize;
        $vHeightLN = $this->FontSize * 1.5;
        $this->Cell($vWidth, $vHeight, 'НАПРАВЛЕНИЕ НА ЛФК', '', 0, 'C');
        $this->Ln($vHeightLN);
        //        $this->Notes('Карта стационарного (амб.) больного №', 0, $vWidth, 1, @$AInfo['case_id']);
        $this->Notes('Фамилия, имя, отчество', 0, $vWidth, 1, FormatShortNameEx($AInfo));
        $vX = $this->GetX();
        $vY = $this->GetY();
        $this->Notes('Возраст   ', 0, $vWidth / 2, 1, CalcAge(@$AInfo['born_date']));
        $this->SetXY($vX + $vWidth / 2, $vY);
        $this->Notes('Пол', 0, $vWidth / 2, 1, iconv("utf8", "windows-1251", FormatSex($AInfo['is_male'])));
        $vBlock = array();
        $vBlock[] = array('title' => 'Адрес', 'text' => iconv("utf8", "windows-1251", FormatAddress(@$AInfo['addr_reg_street'], @$AInfo['addr_reg_num'], @$AInfo['addr_reg_subnum'], @$AInfo['addr_reg_apartment'])));
        $vBlock[] = array('title' => 'Документ', 'text' => iconv("utf8", "windows-1251", FormatDocument(@$AInfo['doc_type_id'], @$AInfo['doc_series'], @$AInfo['doc_number'])));
        $vBlock[] = array('title' => 'Полис', 'text' => iconv("utf8", "windows-1251", FormatPolisEx(@$AInfo['insurance_company_id'], @$AInfo['polis_series'], @$AInfo['polis_number'])));
        $vBlock[] = array('title' => 'Диагноз', 'text' => iconv("utf8", "windows-1251", @$AInfo['diagnosis']), 'rows' => 3);
        $vBlock[] = array('title' => 'Дата', 'text' => iconv("utf8", "windows-1251", Date2ReadableLong(date('Y-m-d', time()))));
        $vBlock[] = array('title' => 'Врач', 'text' => iconv("utf8", "windows-1251", FormatUserName(@$AInfo['doctor_id'])));
        $this->BlockNotes($vBlock, $vWidth);
    }
}
// Trace($_GET);
$vDoc = new TPDF_Physiotherapy();
$vDoc->Render($_GET);
//while (ob_get_level())
//    ob_end_clean();
header('Accept-Ranges: bytes');
$vDoc->Output('RemedialGymnastics.pdf', 'I');
Exemplo n.º 2
0
            $this->Cell(30, $vHeightLN, '', 'LTRB', 0, 'C');
            $this->Cell(10, $vHeightLN, '', 'LTRB', 0, 'C');
            $this->Cell(20, $vHeightLN, '', 'LTRB', 0, 'C');
            $this->Cell(15, $vHeightLN, '', 'LTRB', 0, 'C');
        }
        $this->Ln($vHeightLN);
        $vX = $this->GetX();
        $vY = $this->GetY();
        $this->Line($vX, $vY + $vHeight / 2, $vX + $vWidth, $vY + $vHeight / 2);
        $this->Ln($vHeight);
        $this->Cell($vWidth * 0.6, $vHeight, 'Место проведения процедуры: кабинет,');
        $this->Ln($vHeight);
        $this->Cell($vWidth * 0.6, $vHeight, 'перевязочная, на дому (подчеркнуть)');
        $this->Ln($vHeight);
        $this->Cell($vWidth * 0.6, $vHeight, 'Виды лечения, назначенные помимо');
        $this->Ln($vHeight);
        $this->Cell($vWidth * 0.6, $vHeight, 'физиотерапии (в том числе и медикаментозные)');
        $this->Ln($vHeight);
        $this->Notes('', 0, $vWidth * 0.6, 3, '', false);
        $this->Notes('Эпикриз', 0, $vWidth * 0.6, 2, '', false);
        $this->Notes('Врач-физиотерапевт', 0, $vWidth * 0.6, 1, '');
        $this->Image('images/angels.jpeg', $vX + $vWidth * 0.65, $vY + $vHeight, $vWidth * 0.35);
    }
}
// Trace($_GET);
$vDoc = new TPDF_Physiotherapy();
$vDoc->Render($_GET);
//while (ob_get_level())
//    ob_end_clean();
header('Accept-Ranges: bytes');
$vDoc->Output('Physiotherapy.pdf', 'I');