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


PHP Appointment::getMax方法代码示例

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


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

示例1: mail

            $eml = $student->getEmail();
            $message = "The following group appointment has been deleted by the adminstration of your advisor: " . "\r\n" . "Time: " . $appt->getTime() . "\r\n" . "To schedule for a new appointment, please log back into the UMBC COEIT Engineering and Computer Science Advising webpage." . "\r\n" . "http://coeadvising.umbc.edu  -> COEIT Advising Scheduling \r\n Reminder, this is only accessible on campus.";
            mail($eml, "Your COE Advising Appointment Has Been Deleted", $message);
        }
    }
    $sql = "DELETE FROM `Proj2Appointments` WHERE `id`='{$appID}'";
    $rs = $COMMON->executeQuery($sql, "Advising Appointments");
    echo "Time: " . date('l, F d, Y g:i A', strtotime($appt->getTime())) . "<br>";
    echo "Majors included: ";
    if ($appt->getMajor()) {
        echo $appt->convertMajor(', ') . "<br>";
    } else {
        echo "Available to all majors<br>";
    }
    echo "Number of students enrolled: " . $appt->getEnrolledNum() . "<br>";
    echo "Student limit: " . $appt->getMax();
    echo "<br><br>";
    echo "<form method=\"link\" action=\"AdminUI.php\">";
    echo "<input type=\"submit\" name=\"next\" class=\"button large go\" value=\"Return to Home\">";
    echo "</form>";
    echo "</div>";
    echo "<div class=\"bottom\">";
    if ($stds[0]) {
        echo "<p style='color:red'>Students have been notified of the cancellation.</p>";
    }
} else {
    echo "<h1>Changed Appointment</h1><br>";
    echo "<h2>Previous Appointment:</h2>";
    echo "Time: " . date('l, F d, Y g:i A', strtotime($appt->getTime())) . "<br>";
    echo "Majors included: ";
    if ($appt->getMajor()) {
开发者ID:jb-aero,项目名称:Project2,代码行数:31,代码来源:AdminConfirmEditGroup.php

示例2: date

echo "<input type=\"hidden\" name=\"edit\" value=\"edit\">";
// Hidden field for appointment ID
echo "<input type=\"hidden\" name=\"GroupApp\" value=\"" . $appt->getID() . "\">";
echo "Time: " . date('l, F d, Y g:i A', strtotime($appt->getTime())) . "<br>";
echo "Majors included: ";
if ($appt->getMajor()) {
    echo $appt->convertMajor(', ') . "<br>";
} else {
    echo "Available to all majors<br>";
}
echo "Number of students enrolled: " . $appt->getEnrolledNum() . " <br>";
echo "Location: ";
echo $appt->getMeeting();
echo "<br>";
echo "Student limit: ";
echo "<input type=\"number\" id=\"stepper\" name=\"stepper\" min=\"" . $appt->getEnrolledNum() . "\" max=\"" . $appt->getMax() . "\" value=\"" . $appt->getMax() . "\" />";
echo "<br><br>";
echo "<div class=\"nextButton\">";
echo "<input type=\"submit\" name=\"next\" class=\"button large go\" value=\"Submit\">";
echo "</div>";
echo "</div>";
echo "<div class=\"bottom\">";
if ($appt->getEnrolledNum() > 0) {
    echo "<p style='color:red'>Note: There are currently " . $appt->getNumEnrolled() . " students enrolled in this appointment. <br>\n                    The student limit cannot be changed to be under this amount.</p>";
}
echo "</div>";
?>
		</form>
		</div>
		<?php 
include '../Footer.html';
开发者ID:jb-aero,项目名称:Project2,代码行数:31,代码来源:AdminProceedEditGroup.php


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