Exemplo n.º 1
0
function view($data)
{
    startOfPage();
    echo "<div class='jumbotron'>" . PHP_EOL;
    startContent();
    //$title = get_Title();
    //siteTitle("$title");
    admins_renderLoginForm();
    echo "</div>" . PHP_EOL;
    echo '<hr>' . PHP_EOL;
    echo '<div class="container-narrow">' . PHP_EOL;
    //echo "<a href='index.php?option=store&view=admin'>If you are a professor, login here</a>".PHP_EOL;
    $courses = $data["Tbl_Courses"];
    if (users_loggedIn()) {
        echo "<h2><a href='index.php?option=courses&view=edit'>Edit title and subtitle</a></h2>";
    }
    // if (!empty($courses))
    // {
    // 	foreach ($courses as $course)
    // 	{
    // 		courses_render($course);
    // 	}
    // }
    endContent();
    endOfPage();
}
Exemplo n.º 2
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();
}
Exemplo n.º 3
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();
}
Exemplo n.º 4
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();
}
Exemplo n.º 5
0
function view($data)
{
    startOfPage("subjectsss en view subdetail");
    startContent();
    siteTitle("Blackboard");
    p("Welcome to Blackboard - Please Log in and select your subjects!");
    $subject = $data["subjects"];
    if (!empty($subject)) {
        subjects_render($subject);
    }
    endContent();
    endOfPage();
}
Exemplo n.º 6
0
function view($data)
{
    startOfPage();
    startContent();
    siteTitle("Blackboard");
    p("Welcome to Blackboard");
    $subjects = $data["subjects"];
    if (!empty($subjects)) {
        foreach ($subjects as $subject) {
            subjects_render($subject);
        }
    }
    endContent();
    endOfPage();
}
Exemplo n.º 7
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();
}
Exemplo n.º 8
0
function view($data)
{
    startOfPage("students list vieww");
    startContent();
    siteTitle("Blackboard");
    p("Welcome to Blackboard - Please Log in !");
    $students = $data["users"];
    if (!empty($students)) {
        h2("List of students:");
        foreach ($students as $student) {
            students_render($student);
        }
        h2("List of professors:");
        foreach ($students as $student) {
            professors_render($student);
        }
    }
    endContent();
    endOfPage();
}
Exemplo n.º 9
0
function view($data)
{
    startOfPage();
    startContent();
    //echo '<hr>'.PHP_EOL;
    echo '<div class="container-narrow">' . PHP_EOL;
    //$content = "this is the title";
    //$title = get_Title();
    //siteTitle("$title");
    //p("<h2>Welcome to IIT Web Site. Please login and enroll to a course</h2>");
    //users_renderLoginForm();
    //echo "<a href='index.php?option=store&view=admin'>If you are a professor, login here</a>".PHP_EOL;
    $users = $data["Tbl_Users"];
    if (!empty($users)) {
        foreach ($users as $user) {
            users_render($user);
        }
    }
    endContent();
    endOfPage();
}
Exemplo n.º 10
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();
}