コード例 #1
0
 function training_event()
 {
     $options = array();
     $ci =& get_instance();
     $t = new Training_event();
     $t->order_by('event_from', 'DESC');
     $types = $t->get();
     $ci->load->helper('text');
     foreach ($types as $type) {
         $tc = new Training_course();
         $tc->get_by_id($type->course_id);
         $options[$type->id] = $type->event_from . "\t \t | " . $type->event_to . "\t \t | " . $tc->course_title;
     }
     return $options;
 }
コード例 #2
0
 function course_delete($id = '', $page = '')
 {
     $course = new Training_course();
     $course->get_by_id($id);
     $course->delete();
     Session::flash('msg', 'Training Course Deleted!');
     return Redirect::to('training_manage/course/' . $page, 'refresh');
 }
コード例 #3
0
ファイル: event.php プロジェクト: billyriantono/ihrmis
        <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 
    echo $bg;
    ?>
" onmouseover="this.bgColor = '<?php 
    echo $this->config->item('mouseover_linecolor');
    ?>
';" 
コード例 #4
0
ファイル: employees.php プロジェクト: billyriantono/ihrmis
    <th width="4%">Year</th>
    <th width="63%">Course</th>
    <th width="13%">Relevant</th>
    <th width="17%">Remarks</th>
  </tr>
  <?php 
$i = 0;
?>
  <?php 
foreach ($recommends as $recommend) {
    ?>
  	<?php 
    $t = new Training_course();
    ?>
    <?php 
    $t->get_by_id($recommend->course_id);
    ?>
  <tr>
    <td align="center"><?php 
    echo form_checkbox('remove[]', $recommend->id, FALSE);
    ?>
</td>
    <td align="right"><span style="clear: both;">
      <input name="recommend_id[]" type="hidden" id="recommend_id[]" value="<?php 
    echo $recommend->id;
    ?>
" />
    </span>      <input name="reco_year[]" type="text" id="reco_year[]" value="<?php 
    echo $recommend->reco_year;
    ?>
" size="6" /></td>
コード例 #5
0
ファイル: attendance.php プロジェクト: billyriantono/ihrmis
        <th width="15%" bgcolor="#D6D6D6">Remarks</th>
        <th width="18%" bgcolor="#D6D6D6"><strong>Actions</strong></th>
  </tr>
	  <?php 
$course = new Training_course();
$event = new Training_event();
$employee = new Training_employee();
?>
	  <?php 
foreach ($rows as $row) {
    ?>
        <?php 
    $event->get_by_id($row->event_id);
    ?>
        <?php 
    $course->get_by_id($event->course_id);
    ?>
        <?php 
    $employee->get_by_id($row->employee_id);
    ?>
        
		<?php 
    $bg = $this->Helps->set_line_colors();
    ?>
        <tr bgcolor="<?php 
    echo $bg;
    ?>
" onmouseover="this.bgColor = '<?php 
    echo $this->config->item('mouseover_linecolor');
    ?>
';"