chiro-canto/public/explore/search/index.php

49 lines
1.9 KiB
PHP
Executable File

<?php
session_start();
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
$lang = isset($_COOKIE['lang']) ? $_COOKIE['lang'] : 'en';
require("$root/lang/gettext.php");
?>
<!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.0">
<title><?=_('Explore')?> | Chiro - Canto</title>
<link rel="stylesheet" type="text/css" href="/styles/style.css">
</head>
<?php
include("$root/analytics/matomo.php");
include("$root/analytics/owa.php");
?>
<body>
<?php include("$root/menu.php");?>
<?php include("$root/header.php");?>
<section>
<h3><?=_('Explore')?></h3>
<h4><?=_('Multicriteria recordings Search')?></h4>
<form action="searchrecord.php" method="post">
<label for="species"><?=_('Species name')?></label>
<input type="text" name="species" id="species">
<label for="subspecies"><?=_('Subspecies name')?></label>
<input type="text" name="subspecies" id="subspecies">
<label for="recordist"><?=_('Recordist name')?></label>
<input type="text" name="recordist" id="recordist">
<label for="date-after"><?=_('After date')?></label>
<input type="text" name="date-after" id="date-after" placeholder="YYYY-MM-DD">
<label for="date-before"><?=_('Befora date')?></label>
<input type="text" name="date-before" id="date-before" placeholder="YYYY-MM-DD">
<label for="in-remarks"><?=_('Keyword(s) in remarks (comma separated)')?></label>
<input type="text" name="keywords" id="in-remarks">
<input type="submit" name="submit" value="Search"><input type="reset">
</form>
</section>
<?php include("$root/footer.php");?>
</body>
<script src="/scripts/script.js"></script>
</html>