if ($administration_employee_role->has_dependencies()) {
            $error_level = 12;
            // Related tariff(s) exist
            $_POST['action'] = '';
        }
        // Format dates (from uts to display)
        $_POST['employees_roles_start_date_display'] = tep_strftime(DATE_FORMAT_SHORT, $_POST['employees_roles_start_date']);
        if ($_POST['employees_roles_end_date'] != 0) {
            $_POST['employees_roles_end_date_display'] = tep_strftime(DATE_FORMAT_SHORT, $_POST['employees_roles_end_date']);
        } else {
            $_POST['employees_roles_end_date_display'] = '';
        }
        break;
    case 'delete_entry_confirmed':
        $administration_employee_role = new employee_role($_POST['employees_roles_id']);
        $administration_employee_role->delete();
        unset($_POST['employees_roles_id']);
        $_POST['action'] = '';
        break;
}
// Create a new employee_role object with id == 0 (default)
$_SESSION['employee_role'] = new employee_role(0, $_POST['projects_id']);
// header //
require DIR_WS_INCLUDES . 'header.php';
?>
<!-- body //-->
  <table style="border-width:0px;width:100%;border-spacing:3">
    <tr>
      <td style="width:<?php 
echo BOX_WIDTH;
?>