Example #1
0
<?php

require 'src/indeed_query.php';
require 'src/archive_search.php';
require 'src/convert_JSON_CSV.php';
if (isset($_POST['submit'])) {
    $jobQuery = new JobQuery();
    //params - query, location, limit, start, fromage
    $jobQuery->postJobQuery($_POST['query'], $_POST['location'], 0, $_POST['fromage']);
}
if (isset($_POST['archive'])) {
    $archiveFile = new ArchiveFile();
    $archiveFile->archiveFile();
}
if (isset($_POST['convertCSV'])) {
    $conversion = new ConvertScripts();
    $conversion->convertJSONtoCSV('data/search.json');
}
?>


<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Indeed Search</title>
</head>

 <div id="container">
          <form name="form1" method="post" action="">
            <p>