feat: Add Print Cont. Paper template selection to Doctor Master
This commit is contained in:
parent
910f46b06c
commit
385183fbe2
|
|
@ -2114,7 +2114,7 @@ class Opd extends BaseController
|
|||
|
||||
public function opd_cont_print(int $opdId)
|
||||
{
|
||||
$printConfig = $this->resolveDoctorPrintConfigByField($opdId, 'opd_print_format', 'content_only');
|
||||
$printConfig = $this->resolveDoctorPrintConfigByField($opdId, 'opd_cont_paper_print', 'content_only');
|
||||
$url = base_url('Opd/opd_lettre_pdf/' . (int) $opdId);
|
||||
if ($printConfig['template'] !== '') {
|
||||
$url .= '?template=' . urlencode($printConfig['template']);
|
||||
|
|
|
|||
|
|
@ -116,6 +116,18 @@
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($templateFieldSet['opd_cont_paper_print'])) : ?>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">OPD Continuation Paper Template</label>
|
||||
<select class="form-select" name="tmpl_opd_cont_paper_print">
|
||||
<option value="">-- Select Template --</option>
|
||||
<?php foreach ($templateOptions as $tmpl) : ?>
|
||||
<option value="<?= esc($tmpl) ?>" <?= combo_checked($tmpl, strtolower(trim((string) ($formData['tmpl_opd_cont_paper_print'] ?? '')))) ?>><?= esc($tmpl) ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($templateFieldSet['rx_pre_print_letter_head_format'])) : ?>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Rx Pre-Print Letterhead</label>
|
||||
|
|
|
|||
|
|
@ -149,6 +149,18 @@ if (!empty($data) && !empty($data[0]) && !empty($data[0]->dob)) {
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($templateFieldSet['opd_cont_paper_print'])) : ?>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">OPD Continuation Paper Template</label>
|
||||
<select class="form-select" name="tmpl_opd_cont_paper_print">
|
||||
<option value="">-- Select Template --</option>
|
||||
<?php foreach ($templateOptions as $tmpl) : ?>
|
||||
<option value="<?= esc($tmpl) ?>" <?= combo_checked($tmpl, strtolower(trim((string) ($data[0]->opd_cont_paper_print ?? '')))) ?>><?= esc($tmpl) ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($templateFieldSet['rx_pre_print_letter_head_format'])) : ?>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Rx Pre-Print Letterhead</label>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user