exit;
            }
            break;
        default:
            header("location: " . WEB_ROOT . '/contact/');
            exit;
            break;
    }
}
$modelSP = new SMSService();
/*============================
 * View Loading
 *===========================*/
switch ($action) {
    case 'add':
        $view['setContact']['spOption'] = $modelSP->genServiceOptionsbyIdx();
        include "view/b_addContact.php";
        break;
    case 'addPost':
        $view['setContact']['formData'] = array('contact_name' => &$name, 'contact_email' => &$email, 'contact_mobile_area' => &$mobileArea, 'contact_mobile' => &$mobile, 'sms_service' => &$sp);
        $view['setContact']['spOption'] = $modelSP->genServiceOptionsbyIdx($view['setContact']['formData']['sms_service']);
        include "view/b_addContact.php";
        break;
    case 'modify':
        $result = $modelContact->getContact($ctno);
        if ($result['success'] === false) {
            printHTMLContent('genErrorModuleHTML', array($GLOBALS['MOD_LANG']->getMessage('contact.modify.legend'), $GLOBALS['MOD_LANG']->getMessage('gl.zone.err.title'), $result['errmsg']));
            exit;
        }
        $view['setContact']['formData'] =& $result['data'];
        $view['setContact']['ctno'] =& $ctno;