Esempio n. 1
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/MasterPages/required.php';
$teacher_info = getTeacher($pdo, GET('id'));
if (empty($teacher_info)) {
    header('Location: index.php');
}
$teacher_rating = getTeacherRating($pdo, GET('id'));
$rating_comments = getComments($pdo, GET('id'), "teacher");
$teachers_course = getTeachersCourse($pdo, GET('id'));
//print_r($teachers_course);
?>
<!DOCTYPE html>
<html>
   <head>
      <title>Project Ocena</title>
      <?php 
ev_include('/MasterPages/head.php');
?>
      <link rel="stylesheet" href="/includes/css/progress.css" type="text/css" >
   </head>
   <body>
      
      <header>
         <div class="h-container" id="top">
         <?php 
ev_include('/MasterPages/header.php');
?>
         
          <div class="h-content container-fluid">
                       <div class="toggles">
Esempio n. 2
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/MasterPages/required.php';
$teacher_info = getRatingInfo(GET('id'), "teacher");
$teacher_rating = getTeacherRating(GET('id'));
?>
<!DOCTYPE html>
<html>
   <head>
      <title>Project Ocena</title>
      <?php 
ev_include('/MasterPages/head.php');
?>
   </head>
   <body>
      
      <header>
         <?php 
ev_include('/MasterPages/header.php');
?>
      </header>
      
      <div class="container wrapper">
         <h1>
            <?php 
echo $teacher_info['teacher_fname'] . ' ' . $teacher_info['teacher_lname'];
?>
         </h1>
         <h3><?php 
echo $teacher_rating;
?>