Example #1
0
	 <form method="GET" action="search.php" onsubmit="return find" onchange="hidebutton()">
  Search for: <input type="text" name="find" /> in
  <Select NAME="table">
  <Option VALUE="cases">Cases</option>
  <Option VALUE="crime_category">Categories</option>
  <Option VALUE="technique">Techniques</option>
  </Select>
   <?php 
$dates = new visualize($db = $db);
$dates->set_year();
?>
  <div class = 'hidebutton'>
  <br>
  Between
  <input type='date' name='start' value='<?php 
$dates->get_fy();
echo "-01-01";
?>
'>
  And
  <input type='date' name= 'finish' value='<?php 
echo date('Y-m-d');
?>
'>
  <?php 
if (!isset($_GET['noscript']) && isset($_COOKIE['username'])) {
    $cat = new cats($db);
    echo "\r\n\r\n  <button type='button' onclick='toggleCase(" . '"classifys", "bigwindow")' . "' class='styled-button-srch'>Filter By Classification</button>\r\n  <div class='classifys bigwindow hide'>\r\n  <button type='button' onclick='toggleCase(" . '"classifys", "bigwindow")' . "' class='styled-button-DV'>Hide</button>";
    $cat->cat();
    $cat = null;
    echo "\r\n  </div>\r\n";