コード例 #1
0
ファイル: index.php プロジェクト: LucasBullen/engLinks
<?php

include '../../sampleData.php';
$courseCodes = getStudentsByCourse($studentData);
?>


<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>TutorManager Back End (Student Display)</title>
	<!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">

	<!-- Optional theme -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">

	<link rel="stylesheet" href="../../../resources/style.css">


</head>
<body>
	<div class="container">
		<h1>All Students</h1>
		<?php 
foreach ($courseCodes as $course) {
    ?>

			<div class="col-md-4">
				<h2>
コード例 #2
0
function getResults()
{



$result="<table><thead><tr>

<th>RollNo</th>
<th>FirstName</th>
<th>Rank</th>
<th>Dept</th>
<th>Section</th>
<th>ActivityName</th>
<th>ActivityGrade</th>
<th>Course Name</th>
<th>Course Grade</th></thead><tbody>";













$completed_courses=getCompletedCourses();
//$students=getStudentsByCourse("3");
//$grades=getGrades($students,"3");
//$data= render($grades);
//var_dump($data);
//$result.=$data;
//$result.="</tbody></table>";
//sendCustomMail($teacher_email ,$result);

foreach($completed_courses as $course)
{
$course_id= $course->course;

$teacher_email= getTeachersByCourse($course_id);
$students=getStudentsByCourse($course_id);
$grades=getGrades($students,$courseId);
$data= render($grades);
//var_dump($data);
$result.=$data;
$result.="</tbody></table>";
sendCustomMail($teacher_email ,$result);

}
}
コード例 #3
0
ファイル: index.php プロジェクト: LucasBullen/engLinks
		Columns must wrap around. -->

	<!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
	<!-- Optional theme -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
	<!-- Include Style Directory -->
	<link rel = "stylesheet" type = "text/CSS" href = "../../../resources/style.css">

</head>
<body>

	<!-- Makes a list of students, format [["courseTitle1", [stud1, stud2, stud3]],["courseTitle1", [stud1, stud2, stud3]]] -->
	
	<?php 
$studInEachCourse = getStudentsByCourse($studentData);
?>

	<!-- Printing the table -->

	<?php 
$counter = 0;
// for knowing when to wrap rows (3 col per row)
?>
	<div class = "container">
		<h1>Students In Need Of A Tutor</h1>
		<?php 
foreach ($studInEachCourse as $course) {
    ?>

			<!-- starting a row -->