當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Registration::get_registrationID方法代碼示例

本文整理匯總了PHP中Registration::get_registrationID方法的典型用法代碼示例。如果您正苦於以下問題:PHP Registration::get_registrationID方法的具體用法?PHP Registration::get_registrationID怎麽用?PHP Registration::get_registrationID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Registration的用法示例。


在下文中一共展示了Registration::get_registrationID方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Registration

 */
// Page requirements
define('LOGIN_REQUIRED', true);
define('PAGE_ACCESS_LEVEL', 2);
define('PAGE_TYPE', 'ADMIN');
// Set for every page
require 'engine/common.php';
require_once 'com/tcshl/registration/Registration.php';
if (isset($_GET['id']) && $_GET['id'] > 0) {
    $registration = new Registration($_GET['id']);
    $registration->formPreLoad($smarty);
    $smarty->assign('id', $registration->get_registrationID());
} else {
    if (isset($_POST['action']) && $_POST['action'] == "Edit Registration") {
        $registration = new Registration($_POST['id']);
        $smarty->assign('id', $registration->get_registrationID());
        // 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 {
開發者ID:klangrud,項目名稱:tcshl,代碼行數:31,代碼來源:editregistration.php

示例2: Registration

$smarty->assign('OPEN_REGISTRATION', get_site_variable_value("REGISTRATION"));
if (isset($_POST['action']) && $_POST['action'] == "Register") {
    $registration = new Registration(0);
    // 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->formProcessInsert()) {
            handle_errors($registration->get_formErrors());
            $registration->formReposts($smarty);
        } else {
            $registration->emailRegistrationAdmin();
            if ($registration->get_payToday() == "1") {
                header("Location: payment.php?registrationid=" . $registration->get_registrationID());
            } else {
                header("Location: registrationok.php");
            }
        }
    }
} else {
    $smarty->assign('fw', 'CHECKED');
    // Position = Forward
    $smarty->assign('jsxl', 'CHECKED');
    // Jersey Size XL
    $smarty->assign('sl3', 'CHECKED');
    // Skill Level Intermediate
    $smarty->assign('dl1', 'CHECKED');
    // D.R.I.L. - Only TCSHL
}
開發者ID:klangrud,項目名稱:tcshl,代碼行數:31,代碼來源:registration.php


注:本文中的Registration::get_registrationID方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。