-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
47 lines (36 loc) · 1.13 KB
/
index.php
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
<?php
// Includes
include 'inc/job_post.php';
include 'inc/job_list.php';
// Initialize list
$job_list = new Job_List( array(
'request_type' => 'posts',
'request_params' => array(
'category_name' => 'jobs',
'per_page' => '30',
),
) );
// Display header
include 'inc/header.php';
?>
<p>This is current listing of job announcements related to Statistics. If you have any questions or comments regarding this
listing, please contact <a href="mailto:[email protected]">[email protected]</a>. To submit a job for posting please use the <a href="http://forms.stat.ufl.edu/forms/job-announce/">Statistics Job Submission Form</a>.</p>
<?php
// Make a request for the list of posts
$data = $job_list->request_data();
// Get information from the request response
$status = $job_list->request_status();
if( $status == '200' ){
if( !empty($data) ){
// Create the list of posts from data
$job_list->set_posts( $data );
// Display the table of job posts
$job_list->display();
}
}
else {
// Request to API failed
$job_list->display_error();
}
// Display header
include 'inc/footer.php';