I need to leave some information in the page footer.
How do I do this?
Below is the complete code I'm using, but that's not working!
css:
.container {
height: auto; min-height: 100%;
}
html:
<div id="container">
<nav>
<?php
$edit_data = $this->db->get_where('prescription', array('prescription_id' => $param2))->result_array();
foreach ($edit_data as $row):
$patient_info = $this->db->get_where('patient' , array('patient_id' => $row['patient_id'] ))->result_array();
?>
<div id="prescription_print">
<div>
<?php
$data = $this->db->get_where('doctor' , array('doctor_id' => $row['doctor_id'] ))->row();
?>
<b><?php echo 'Drº ', $data->name;?> | <?php echo ' ', $data->profile;?></b>
<br>
<br>
<br>
<?php foreach ($patient_info as $row2){ ?>
<?php echo 'Nome do Paciente: '.$row2['name']; ?><br>
<br>
<br>
<b><?php echo get_phrase('medication'); ?> :</b>
<p><?php echo $row['medication']; ?></p>
<br>
<br>
<?php } ?>
<?php echo 'Data: '.date("d M, Y", $row['timestamp']); ?>
<br></nav></div>
</section><footer>
<?php
$data = $this->db->get_where('doctor' , array('doctor_id' => $row['doctor_id'] ))->row();
?>
<b><?php echo ' ', $data->address;?><?php echo ' ', $data->email;?><b><?php echo ' ', $data->phone;?></b><br></footer>
</div>
</div>
</div>
<br>
<a onClick="PrintElem('#prescription_print')" class="btn btn-primary btn-icon icon-left hidden-print">
Imprimir Prescrição
<i class="entypo-doc-text"></i>
</a>
<?php endforeach; ?>
<script type="text/javascript">
function PrintElem(elem)
{
Popup($(elem).html());
}
function Popup(data)
{
var mywindow = window.open('', 'prescription', 'height=400,width=600');
mywindow.document.write('<html><head><title>Prescription</title>');
mywindow.document.write('<link rel="stylesheet" href="assets/css/neon-theme.css" type="text/css" />');
mywindow.document.write('<link rel="stylesheet" href="assets/js/datatables/responsive/css/datatables.responsive.css" type="text/css" />');
mywindow.document.write('</head><body >');
mywindow.document.write(data);
mywindow.document.write('</body></html>');
mywindow.print();
mywindow.close();
return true;
}
</script>