?> <div id="sidebar"> <h2>Crime Database</h2> </div> <div id="content"> <h2>Search</h2> <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
$array = array('all'); $data = new visualize($db, $array, $regres, $begin, $end); $lines = 1; } } else { $begin = 2003; $end = 2015; $regres = ''; $array = array('all'); $data = new visualize($db, $array, $regres, $begin, $end); $lines = 1; } $data->set_regres($regres); $data->set_cat_names(); $data->set_sql(); $data->set_year(); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="favicon.ico"> <!-- Bootstrap core CSS -->