Example #1
0
 function type_delete($id = '', $page = '')
 {
     $type = new Training_type();
     $type->get_by_id($id);
     $type->delete();
     Session::flash('msg', 'Training Type Deleted!');
     return Redirect::to('training_manage/type/' . $page, 'refresh');
 }
Example #2
0
        <th width="23%" bgcolor="#D6D6D6">Title </th>
        <th width="26%" bgcolor="#D6D6D6">Description</th>
        <th width="10%" bgcolor="#D6D6D6">Estimated Duration</th>
        <th width="7%" bgcolor="#D6D6D6">Estimated Cost</th>
        <th width="7%" bgcolor="#D6D6D6">Ave. Evaluation</th>
        <th width="12%" bgcolor="#D6D6D6"><strong>Training Type</strong></th>
        <th width="10%" bgcolor="#D6D6D6"><strong>Actions</strong></th>
  </tr>
	  <?php 
$t = new Training_type();
?>
	  <?php 
foreach ($rows as $row) {
    ?>
	 	<?php 
    $t->get_by_id($row->training_type_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;
    ?>
';" style="border-bottom: 1px solid #999999;">