示例#1
0
function view($data)
{
    startOfPage();
    //$title = get_Title();
    //siteTitle("$title");
    //startOfPage();
    //startContent();
    //$content = "this is the title";
    //$title = get_Title();
    //siteTitle("$title");
    echo "<div class='jumbotron'>" . PHP_EOL;
    startContent();
    users_renderLoginForm();
    echo "</div>" . PHP_EOL;
    echo '<hr>' . PHP_EOL;
    echo '<div class="container-narrow">' . PHP_EOL;
    endContent();
    p("<h2>Here is the list of your current enrollments</h2>");
    //users_renderLoginForm();
    $history = $data["Enrollment"];
    h1("Your Enrollments");
    foreach ($history as $enrollment) {
        purchases_render($enrollment);
    }
    endOfPage();
}
示例#2
0
function view($data)
{
    startOfPage("homeeeeee");
    startContent();
    siteTitle("Blackboard");
    p("Welcome to Blackboard - Please Log in !");
    users_renderLoginForm();
    echo "<p><a href= 'index.php?option=user&view=students_list' >List of students</a></p>";
    echo "<p><a href= 'index.php?option=subject&view=subjects_list''>List of subjects</a></p>";
    endContent();
    endOfPage();
}
示例#3
0
function view($data)
{
    startOfPage("homeeeeee");
    startContent();
    siteTitle("Blackboard");
    p("Welcome to Blackboard - Please Log in !");
    users_renderLoginForm();
    echo "<h3>If you want to change the title and subtitle do it now!</h3>";
    echo "<b><a href= 'editTitle.php' >Edit title</a></b>";
    endContent();
    endOfPage();
}
示例#4
0
function view($data)
{
    startOfPage();
    echo "<div class='jumbotron'>" . PHP_EOL;
    startContent();
    users_renderLoginForm();
    echo "</div>" . PHP_EOL;
    echo '<div class="container-narrow">' . PHP_EOL;
    endContent();
    $history = $data["Enrollment"];
    h1("Details of this course");
    foreach ($history as $enrollment) {
        //echo $data;
        display_render($enrollment);
    }
    //endOfPage();
}
示例#5
0
function view($data)
{
    startOfPage();
    //startContent();
    //$content = "this is the title";
    //$title = get_Title();
    //siteTitle("$title");
    echo "<div class='jumbotron'>" . PHP_EOL;
    startContent();
    users_renderLoginForm();
    echo "</div>" . PHP_EOL;
    echo '<hr>' . PHP_EOL;
    echo '<div class="container-narrow">' . PHP_EOL;
    endContent();
    //echo "<a href='index.php?option=store&view=admin'>If you are a professor, login here</a>".PHP_EOL;
    $courses = $data["Tbl_Courses"];
    if (!empty($courses)) {
        courses_render($courses);
    }
    //endContent();
    endOfPage();
}