Exemple #1
0
 * You should have received a copy of the GNU General Public License along with this program;
 * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301, USA
 */
while (true) {
    require_once ROOT_PATH . '/lib/extractor/benefits/EXTRACTOR_HspPayPeriod.php';
    require_once ROOT_PATH . '/lib/extractor/benefits/EXTRACTOR_Hsp.php';
    require_once ROOT_PATH . '/lib/extractor/benefits/EXTRACTOR_HspPaymentRequest.php';
    require_once ROOT_PATH . '/lib/extractor/benefits/EXTRACTOR_DefineHsp.php';
    require_once ROOT_PATH . '/lib/extractor/benefits/EXTRACTOR_HspSummary.php';
    switch ($_GET['action']) {
        case 'Benefits_Schedule_Select_Year':
            BenefitsController::selectYear('Schedule');
            break;
        case 'List_Benefits_Schedule':
            BenefitsController::listPayPeriods($_GET['year']);
            break;
        case 'View_Add_Pay_Period':
            if (isset($_GET['year'])) {
                BenefitsController::viewAddPayPeriod($_GET['year']);
            } else {
                BenefitsController::viewAddPayPeriod();
            }
            break;
        case 'View_Edit_Pay_Period':
            BenefitsController::viewEditPayPeriod($_GET['year'], $_GET['id']);
            break;
        case 'Delete_Pay_Period':
            $payPeriods = EXTRACTOR_HspPayPeriod::parseDeleteData($_POST);
            BenefitsController::deletePayPeriods($payPeriods, $_GET['year']);
            break;