function contact_info_delete($id = '', $page = '') { $contact = new Training_contact(); $contact->get_by_id($id); $contact->delete(); Session::flash('msg', 'Training Contact Information Deleted!'); return Redirect::to('training_manage/contact_info/' . $page, 'refresh'); }
<th width="8%" bgcolor="#D6D6D6">Evaluation</th> <th width="7%" bgcolor="#D6D6D6">Remarks</th> <th width="11%" bgcolor="#D6D6D6"><strong>Actions</strong></th> </tr> <?php $course = new Training_course(); $contact = new Training_contact(); ?> <?php foreach ($rows as $row) { ?> <?php $course->get_by_id($row->course_id); ?> <?php $contact->get_by_id($row->contact_id); ?> <?php $bg = $this->Helps->set_line_colors(); ?> <tr bgcolor="<?php echo $bg; ?> " onmouseover="this.bgColor = '<?php echo $this->config->item('mouseover_linecolor'); ?> ';" onmouseout ="this.bgColor = '<?php echo $bg; ?>