backup
This commit is contained in:
30
ajax_workshop_2/Views/index.phtml
Normal file
30
ajax_workshop_2/Views/index.phtml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php require('template/header.phtml') ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-5">
|
||||
<p><?php echo $view->dbMessage; ?></p>
|
||||
</div>
|
||||
<div class="col-7">
|
||||
<p>Current script <?php echo $_SERVER["PHP_SELF"]; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<table class="table table-bordered">
|
||||
<thead> <tr> <th>Student ID</th> <th>First name</th> <th>Last name</th> <th>International</th> <th>CourseID</th> </tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php foreach ($view->studentsDataSet as $studentData) {
|
||||
echo '<tr> <td>' . $studentData->getStudentID() .
|
||||
'</td> <td>' . $studentData->getFirstName() .
|
||||
'</td> <td>' . $studentData->getLastName() .
|
||||
'</td> <td>' . $studentData->getInternational() .
|
||||
'</td> <td>' . $studentData->getCourseID() .
|
||||
'</td> </td> </tr>';
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?php require('template/footer.phtml') ?>
|
15
ajax_workshop_2/Views/template/footer.phtml
Executable file
15
ajax_workshop_2/Views/template/footer.phtml
Executable file
@@ -0,0 +1,15 @@
|
||||
</main>
|
||||
|
||||
|
||||
<footer class="row">
|
||||
<div id="footer" class="col-xs-12">
|
||||
<p>Web-site development using the MVC design pattern and the Bootstrap CSS framework</p>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
42
ajax_workshop_2/Views/template/header.phtml
Executable file
42
ajax_workshop_2/Views/template/header.phtml
Executable file
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
|
||||
|
||||
<link href="css/my-style.css" rel="stylesheet">
|
||||
|
||||
<title>Server-Side Programming - <?php echo $view->pageTitle; ?></title>
|
||||
</head>
|
||||
|
||||
<body role="document">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div id="title" class="col-xs-12">
|
||||
<img src="images/new_uos_logo.jpg" alt="Salford University" />
|
||||
<div class="pull-right"> <h1><?php echo $view->pageTitle ?> </h1></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<nav id="menu" class="col-xs-6 col-sm-3 col-md-2">
|
||||
<h2>Menu</h2>
|
||||
<ul class="nav flex-column">
|
||||
<li><a href="index.php">Students</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<main id="content" class="col-xs-6 col-sm-9 col-md-10">
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user