// Related activities exist
            //$_POST['action'] = '';
        }
        // Format tariff amount from database to display
        $_POST['tariffs_amount_display'] = tep_number_db_to_user($_POST['tariffs_amount'], 2);
        // Format dates (from uts to display)
        $_POST['tariffs_start_date_display'] = tep_strftime(DATE_FORMAT_SHORT, $_POST['tariffs_start_date']);
        if ($_POST['tariffs_end_date'] != 0) {
            $_POST['tariffs_end_date_display'] = tep_strftime(DATE_FORMAT_SHORT, $_POST['tariffs_end_date']);
        } else {
            $_POST['tariffs_end_date_display'] = '';
        }
        break;
    case 'delete_entry_confirmed':
        $administration_tariff = new tariff($_POST['tariffs_id']);
        $administration_tariff->delete();
        unset($_POST['tariffs_id']);
        $_POST['action'] = '';
        break;
}
// Reload the tariff object in order to
// update the tariff listing below
$_SESSION['tariff'] = new tariff(0, $_POST['employees_roles_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;