This repository was archived by the owner on Oct 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
72 lines (65 loc) · 2.97 KB
/
Copy pathindex.php
File metadata and controls
72 lines (65 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/****************************************************************************
* *
* File: index.php *
* *
* Author: Branch Vincent *
* *
* Date: Sep 9, 2016 *
* *
* Purpose: This file sets the homepage. *
* *
****************************************************************************/
// Initialize session
include('includes/session_management/init.php');
// Reset session, for testing purposes
// session_unset();
// include('includes/session_management/set_session_vars.php');
// Include page header
$page_title = 'SHOW';
require_once('includes/page_parts/header.php');
// print_r($_SESSION);
?>
<div id="homePage" class="page">
<h1 class="pageTitle">Welcome to the SHOW!</h1>
<h2>Introduction</h2>
<?php echo $_SESSION['session_dir'];?>
<p>
Welcome to the <u>S</u>imulator of <u>H</u>uman <u>O</u>perator <u>W</u>orkload (SHOW)! This tool, designed by Duke University researchers, simulates a freight rail operator's workload across the duration of a given trip. With SHOW, you can choose a trip with unique conditions and then see the operator's average workload after thousands of similar trips.
</p>
<p>
You should use this tool to answer the following questions:
<ul style="margin-top: -15px;">
<li><em>When</em> are my operators over or under-utilized at work?</li>
<li><em>Why</em> are my operators over or under-utilized at work?</li>
<li><em>How</em> might we improve operator workload, as well as overall system efficiency and safety?</li>
</ul>
</p>
<h2>Background</h2>
<p>
A core set of tasks has been defined and implemented to encompass tasks that crew members may encounter during their trip. These tasks and their descriptions are summarized below. To see more underlying assumptions, visit advanced settings.
<table align="center" width="1000" style="margin-top: 30px;">
<tr>
<th>Task Type</th>
<th>Description</th>
</tr>
<?php
$task_names = array_keys($_SESSION['default_tasks']);
foreach ($task_names as $task) {
echo '<tr>';
echo '<td>' . ucwords($task) . '</td>';
echo '<td>' . $_SESSION['default_tasks'][$task]['description'] . '</td>';
echo '</tr>';
}
?>
</table>
</p>
<h2>Getting Started</h2>
<p>
Note that this site is currently only compatible with Chrome and Firefox. If you're ready to get started, then let's <a href="basic_settings.php">go</a>! And if you encounter any issues or have questions about the simulation, please <a href="contact_us.php">contact us</a>!
</p>
</div>
<footer style='text-align: center; padding: 20px 0; font-size: 18;'>
<strong>NOTE: </strong>This decision support tool is intended to inform rather than dictate decisions.
</footer>
<?php require_once('includes/page_parts/footer.php');?>