<tr class="type-one-header"> <th width="8%" bgcolor="#D6D6D6"><strong>Employee No.</strong></th> <th width="25%" bgcolor="#D6D6D6"><strong>Employee Name</strong></th> <th width="30%" bgcolor="#D6D6D6"><strong>Department / Office</strong></th> <th width="8%" bgcolor="#D6D6D6"><strong>Status</strong></th> <th width="10%" bgcolor="#D6D6D6"><strong>Date Requested</strong></th> <th width="30%" bgcolor="#D6D6D6"><strong>Action</strong></th> </tr> <?php $add_to_cart = ''; foreach ($results as $result) { //get by employee ID $e = new Employee_m(); $rows = $e->get_by_id($result->employee_id); if ($e->count() >= '1') { foreach ($rows as $row) { if ($row->id == $result->employee_id) { $add_to_cart = "<a href='" . base_url() . "employees/remove_cart/" . $page . "/" . $row->id . "/1'>Remove to Request<a>"; } } } $office_name = $this->Office->get_office_name($row->office_id); $pics = $row->pics; if ($pics == "" || !file_exists("pics/{$pics}")) { $pics = 'not_available.jpg'; } $bg = $this->Helps->set_line_colors(); ?> <tr bgcolor="<?php echo $bg;