Пример #1
0
        <?php 
echo gettext('Employee Name');
?>
</label><?php 
$f->text_field_d('employee_name');
?>
       <?php 
echo $f->hidden_field_withId('employee_id', ${$class}->employee_id);
?>
      </li>
      <li><?php 
$f->l_text_field_dr('identification_id');
?>
  </li>
      <li><?php 
$f->l_select_field_from_object('period_name_id', hr_payroll_schedule::find_by_parent_id($payroll_id, 'scheduled_date', 'ASC'), 'hr_payroll_schedule_id', 'period_name', ${$class}->period_name_id, 'period_name_id', '', 1);
?>
 
       <a name="show" href="form.php?class_name=hr_payslip_header&<?php 
echo "mode={$mode}";
?>
" class="document_id payslipBy_periodName">
        <i class="fa fa-refresh"></i></a> 
      </li>
      <li><?php 
$f->l_text_field_dr('hr_payroll_process_id');
?>
  </li>
      <li><?php 
$f->l_text_field_dr('pay_date');
?>
Пример #2
0
<?php

include_once "../../../includes/basics/basics.inc";
if (!empty($_GET['hr_payroll_id'])) {
    $data = hr_payroll_schedule::find_open_schedules_by_headerId($_GET['hr_payroll_id']);
    if (count($data) == 0) {
        return false;
    } else {
        echo header('Content-Type: application/json');
        echo json_encode($data);
    }
}