当前位置: 首页>>代码示例>>PHP>>正文


PHP Registration::get_lName方法代码示例

本文整理汇总了PHP中Registration::get_lName方法的典型用法代码示例。如果您正苦于以下问题:PHP Registration::get_lName方法的具体用法?PHP Registration::get_lName怎么用?PHP Registration::get_lName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Registration的用法示例。


在下文中一共展示了Registration::get_lName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: header

        // If form does not validate, we need to return with errors.
        if ($registration->formValidation()) {
            handle_errors($registration->get_formErrors());
            $registration->formReposts($smarty);
        } else {
            // If errors occur while trying to create user, we need to return with errors.
            if ($registration->formProcessUpdate()) {
                handle_errors($registration->get_formErrors());
                $registration->formReposts($smarty);
            } else {
                $registration->formPreLoad($smarty);
                handle_success($registration->get_formSuccess());
            }
        }
    } else {
        header("Location: manageregistrations.php");
    }
}
$smarty->assign('page_name', 'Edit ' . $registration->get_fName() . ' ' . $registration->get_lName() . '\'s Season Registration');
$smarty->assign('type', 'EDIT');
// Build the page
require 'global_begin.php';
$smarty->display('admin/editregistration.tpl');
require 'global_end.php';
/*
* ********************************************************************************
* ********************************************************************************
* **************************L O C A L  F U N C T I O N S**************************
* ********************************************************************************
* ********************************************************************************
*/
开发者ID:klangrud,项目名称:tcshl,代码行数:31,代码来源:editregistration.php

示例2: Registration

/*
 * Created on Aug 3, 2011
 *
*/
// Page requirements
define('LOGIN_REQUIRED', false);
define('PAGE_ACCESS_LEVEL', 0);
define('PAGE_TYPE', 'PUBLIC');
// Set for every page
require 'engine/common.php';
require_once 'com/tcshl/registration/Registration.php';
$seasonName = get_season_name($SEASON);
$smarty->assign('page_name', 'League Payment: ' . $seasonName . ' Season');
if (isset($_GET) && $_GET['registrationid'] > 0) {
    $registration = new Registration($_GET['registrationid']);
    $smarty->assign('name', $registration->get_fName() . ' ' . $registration->get_lName());
    $smarty->assign('regid', $registration->get_registrationID());
    // Determine which Payment Cart Button to add
    if ($registration->get_drilLeague() == 1 || $registration->get_drilLeague() == 3) {
        // Determine if special goalie pricing applies
        if ($registration->get_position() == 'Goalie') {
            if ($registration->get_paymentPlan() == 1) {
                $smarty->assign('paymentOptionSpecialOne', 1);
            } else {
                if ($registration->get_paymentPlan() == 2) {
                    $smarty->assign('paymentOptionSpecialTwo', 1);
                } else {
                    if ($registration->get_paymentPlan() == 3) {
                        $smarty->assign('paymentOptionSpecialThree', 1);
                    } else {
                        if ($registration->get_paymentPlan() == 4) {
开发者ID:klangrud,项目名称:tcshl,代码行数:31,代码来源:payment.php


注:本文中的Registration::get_lName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。