ESH/common_list.php
2024-10-23 18:28:06 +05:30

65 lines
1.9 KiB
PHP

<form id="pdfform" target="_blank">
<input type="hidden" id="appointment_idpdf" name="appointment_idpdf">
</form>
<script>
function exporttopdf_common(appointment_type, appointment_id) {
$("#appointment_idpdf").val(appointment_id);
if (appointment_type == 'I') {
document.forms['pdfform'].action = "injury_form_pdf.php";
document.forms['pdfform'].method = "post";
document.forms['pdfform'].submit();
} else {
document.forms['pdfform'].action = "opd_form_pdf.php";
document.forms['pdfform'].method = "post";
document.forms['pdfform'].submit();
}
}
function exporttopdf_common_followup(appointment_type, appointment_id) {
$("#appointment_idpdf").val(appointment_id);
if (appointment_type == 'I') {
document.forms['pdfform'].action = "injury_followup_form_pdf.php";
document.forms['pdfform'].method = "post";
document.forms['pdfform'].submit();
} else {
document.forms['pdfform'].action = "opd_followup_form_pdf.php";
document.forms['pdfform'].method = "post";
document.forms['pdfform'].submit();
}
}
function exporttoSortpdf_common(appointment_type, appointment_id) {
$("#appointment_idpdf").val(appointment_id);
document.forms['pdfform'].action = "opd_form_short_pdf.php";
document.forms['pdfform'].method = "post";
document.forms['pdfform'].submit();
}
function exporttopdf_common_ipd(appointment_type, appointment_id, appointment_status) {
$("#appointment_idpdf").val(appointment_id);
// if(appointment_status=='DET'){
document.forms['pdfform'].action = "ipd_form_pdf.php";
document.forms['pdfform'].method = "post";
document.forms['pdfform'].submit();
//}
}
function exporttopdf_common_form24(appointment_id) {
$("#appointment_idpdf").val(appointment_id);
document.forms['pdfform'].action = "injury_intimation_form.php";
document.forms['pdfform'].method = "post";
document.forms['pdfform'].submit();
}
</script>