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


PHP Appointment::getAdvisorID方法代碼示例

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


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

示例1: Common

    <div id="login">
      <div id="form">
        <div class="top">
          <h1>Removed Appointment</h1><br>
		  <div class="field">
          <?php 
$debug = false;
include '../CommonMethods.php';
include '../Appointment.php';
include '../Student.php';
include '../Advisor.php';
$COMMON = new Common($debug);
$indID = $_POST["IndApp"];
// Get appointment info from the database
$appt = new Appointment($COMMON, $indID);
$adv = $appt->getAdvisorID();
$advisor = new Advisor($COMMON, $adv);
if ($appt->getEnrolledID()) {
    $student = new Student($COMMON, trim($appt->getEnrolledID()));
    $std = $student->getFirstName() . " " . $student->getLastName();
    $eml = $student->getEmail();
}
$sql = "DELETE FROM `Proj2Appointments` WHERE `id`='{$indID}'";
$rs = $COMMON->executeQuery($sql, "Advising Appointments");
echo "Time: " . date('l, F d, Y g:i A', strtotime($appt->getTime())) . "<br>";
echo "Advisor: " . $advisor->convertFullName() . "<br>";
echo "Majors included: ";
if ($appt->getMajor()) {
    echo $appt->convertMajor() . "<br>";
} else {
    echo "Available to all majors<br>";
開發者ID:jb-aero,項目名稱:Project2,代碼行數:31,代碼來源:AdminConfirmEditInd.php

示例2: Common

include '../Appointment.php';
include '../Student.php';
include '../Advisor.php';
$COMMON = new Common($debug);
if ($_POST["finish"] == 'Cancel') {
    // Set status to none
    $stat = 'n';
} else {
    // Get student info from database
    $studid = $_SESSION["studID"];
    $student = new Student($COMMON, $studid);
    // Get new appointment info from database
    $newApptID = $_POST['appID'];
    $newAppt = new Appointment($COMMON, $newApptID);
    // Get new advisor ID
    $advisorID = $newAppt->getAdvisorID();
    if ($debug) {
        echo "Advisor -> {$advisorID}<br>\n";
    }
    // ************************ Lupoli 9-1-2015
    // we have to check to make sure someone did not steal that spot just before them!! (deadlock)
    // if the spot was taken, need to stop and reset
    if (isStillAvailable($_POST['appID'])) {
    } else {
        if ($debug == false) {
            header('Location: 13StudDenied.php');
            return;
        }
    }
    if ($_POST["finish"] == 'Reschedule') {
        // Get info from database about old appointment
開發者ID:jb-aero,項目名稱:Project2,代碼行數:31,代碼來源:StudProcessSch.php


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