Esempio n. 1
0
                    <td>
                        <div id="dashboard_footer_demographics">
                            Name: <span class="dashboard_info"><?php 
print return_demographic($pid, 0);
?>
</span><br />
                            Patient ID: <span class="dashboard_info"><?php 
print return_demographic($pid, 1);
?>
</span><br />
                            GP address: <span class="dashboard_info"><?php 
print return_demographic($pid, 3);
?>
</span><br />
                            Date of birth: <span class="dashboard_info"><?php 
print return_demographic($pid, 2);
?>
</span>
                        </div>
                    </td>
                    
                    <td>
                        <form method="link" action="report.php">
                            <button type="submit">Create letter</button><br />
                        </form>
                        <form method="link" action="search.php">
                            <button type="submit">Change patient</button><br />
                        </form>
                    </td>
                    <td>
                        <form method="link" action="filename.php">
Esempio n. 2
0
    }
    return $db;
}
// New Word Document
$phpWord = new \PhpOffice\PhpWord\PhpWord();
$phpWord->addFontStyle('rStyle', array('bold' => true, 'italic' => true, 'size' => 16, 'allCaps' => true, 'doubleStrikethrough' => true));
$phpWord->addParagraphStyle('pStyle', array('align' => 'center', 'spaceAfter' => 100));
$phpWord->addTitleStyle(1, array('bold' => true), array('align' => 'center'));
// New portrait section
$section = $phpWord->addSection();
// Simple text
$section->addTitle(htmlspecialchars(date('d F Y H:i:s')), 1);
$section->addTitle(htmlspecialchars(return_demographic($_SESSION['pid'], 0)), 1);
$section->addTitle(htmlspecialchars(return_demographic($_SESSION['pid'], 1)), 1);
$section->addTitle(htmlspecialchars(return_demographic($_SESSION['pid'], 3)), 1);
$section->addTitle(htmlspecialchars(return_demographic($_SESSION['pid'], 2)), 1);
// Two text break
$section->addTextBreak(2);
$data = array();
for ($i = 1; isset($_POST['select' . $i]); $i++) {
    if (!isset($data[$_POST['box' . $i]])) {
        $data[$_POST['box' . $i]] = array();
    }
    array_push($data[$_POST['box' . $i]], $_POST['select' . $i]);
}
foreach ($data as $box => $array) {
    $section->addTextBreak();
    $section->addText(htmlspecialchars(return_box_name($box)), array("bold" => true, "size" => 14));
    foreach ($array as $line) {
        return_content($line, $section);
    }