コード例 #1
0
<?php

include 'session.php';
include 'barLine.html';
include 'loadNoty.js';
include 'controller/dbController.php';
//get details about the user
$record = getStudentInfo($login_session);
$name = $record["name"];
$intake = $record["intake"];
$image = $record["image"];
//get students of the same intake year
//$batchStudents = getAllStudentsNameIdFromIntake($intake);
$batchStudents = getStudentInfoCommonCourseFollowed($login_session);
?>

<!DOCTYPE html>
<html>
<head>
    <link href="styles/compareSomeoneStyle.css" rel="stylesheet" type="text/css">
    <title>Compare <?php 
echo $login_session;
?>
</title>
</head>
<body>
    <script>showinfo("Select someone to compare!");</script>
    <!--Div to display user details -->
    <div class ="mybox">
        <div class="propic">
        <?php 
コード例 #2
0
<?php

include 'session.php';
include 'controller/dbController.php';
$studentOne = $_GET["q"];
$year = $_GET["y"];
//details of the first student
$record = getStudentInfo($studentOne);
$studentOneName = $record["name"];
$studentOneImage = $record["image"];
$secondOptionStudents = getStudentInfoCommonCourseFollowed($studentOne);
?>

<html>
<body>
    <div class= "studentOnebox">
        <div class="propic">
            <?php 
echo '<center><img src="data:image/jpeg;base64,' . base64_encode(file_get_contents($studentOneImage)) . '"/></center>';
?>
        </div> 
        <h1><span class="data"><center><?php 
echo "" . $studentOneName;
?>
</center></span><br>   </h1>
    </div>

    <div  class="selectStudent2" id="val">    
        <form>
        <select id=selectCourse2 name="users" onchange="compare(this.value)">
        <option value="">Select Student</option>