function training_contact() { $options = array(); $ci =& get_instance(); $t = new Training_contact(); $t->order_by('contact_name'); $types = $t->get(); $ci->load->helper('text'); foreach ($types as $type) { $options[$type->id] = $type->contact_name; } return $options; }
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"><strong>Course Title</strong></th> <th width="7%" bgcolor="#D6D6D6">Date From</th> <th width="5%" bgcolor="#D6D6D6">Date To</th> <th width="14%" bgcolor="#D6D6D6">Venue</th> <th width="13%" bgcolor="#D6D6D6">Conducted By</th> <th width="8%" bgcolor="#D6D6D6">Attendees</th> <th width="5%" bgcolor="#D6D6D6">Local Cost</th> <th width="5%" bgcolor="#D6D6D6">Other Cost</th> <th width="7%" bgcolor="#D6D6D6">Actual Duration</th> <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