| Server IP : 162.214.74.102 / Your IP : 216.73.216.59 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_apps/school/application/views/backend/parent/ |
Upload File : |
<?php
$edit_data = $this->db->get_where('noticeboard', array('notice_id' => $param2))->result_array();
foreach ($edit_data as $row):
?>
<center>
<a onClick="PrintElem('#notice_print')" class="btn btn-default btn-icon icon-left hidden-print pull-right">
Print Notice
<i class="entypo-print"></i>
</a>
</center>
<br><br>
<div class="row" id="notice_print">
<div class="col-md-12">
<div class="panel panel-primary" data-collapsed="0">
<div class="panel-body">
<b>Title</b>
<p><?php echo $row['notice_title']; ?></p>
<b>Notice</b>
<p><?php echo $row['notice'] ?></p>
<b>Date</b>
<p><?php echo date('d M Y',$row['create_timestamp']) ?></p>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<script type="text/javascript">
// print invoice function
function PrintElem(elem)
{
Popup($(elem).html());
}
function Popup(data)
{
var mywindow = window.open('', 'notice', 'height=400,width=600');
mywindow.document.write('<html><head><title>Notice</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>