<!-- Page Content --> <div id="page-wrapper"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">View Message</h1> </div> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <?php echo form_open(current_url(), array('id' => 'frmmessage', 'role' => 'form')); ?> <div class="form-group"> <label>Recipients :</label> <?php echo callback_message_from($txtreci); ?> </div> <div class="form-group"> <label>Subject :</label> <?php echo $txtsub; ?> </div> <div class="form-group"> <label>Message :</label> <?php echo $txtmsg; ?> </div>
public function get_message($msgid) { $this->db->select("DATE_FORMAT(msg_date,'%d/%m/%Y') as msg_date, msg_from, msg_desc,msg_title"); $this->db->where('msg_id', $msgid); $query = $this->db->get('message'); $message = $query->row_array(); $message['msg_from'] = callback_message_from($message['msg_from']); $txtmessage = '<br/><br/>=============================<br/>'; $txtmessage .= 'On ' . $message['msg_date'] . ', ' . $message['msg_from'] . ' wrote:<br/>' . $message['msg_desc']; return $txtmessage; }