diff options
Diffstat (limited to 'dockets.php')
| -rw-r--r-- | dockets.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dockets.php b/dockets.php new file mode 100644 index 0000000..6cba902 --- /dev/null +++ b/dockets.php @@ -0,0 +1,51 @@ +<?php + +echo <<<HTML +<!DOCTYPE html> + +<html> +<head> + <title>Miami-Dade Clerk of Courts: Dockets</title> + <link rel='stylesheet' media='all' type='text/css' href='style.css' /> +</head> + +<body> +HTML; + +$dbh = new PDO('mysql:host=localhost;dbname=mdcc', 'mdcc', 'Mdcc.'); + +echo <<<HTML +<table class="results_table"> + <tr class="tablehead"> + <th>ID</th> + <th>Seq. No.</th> + <th>Date</th> + <th>Docket</th> + <th>Case ID</th> + </tr> +HTML; + + +echo "<h3>Dockets for case <a href='./search.php?case_id={$_REQUEST['case_id']}'><em>{$_GET['case_no']}</em></a></h3>"; + +$st = $dbh->prepare("SELECT * FROM dockets WHERE case_id = '{$_GET['case_id']}'"); +if ( $st->execute() ) { + $alt = 'alt'; + while ( $row = $st->fetch(PDO::FETCH_ASSOC) ) { + $alt = $alt ? '' : 'alt'; + echo " <tr class='$alt'>\n"; + foreach ( $row as $field ) { + echo " <td>$field</td>\n"; + } + echo " </tr>\n"; + } +} + +echo <<<HTML +</table> + +</body> +</html> +HTML; + +?> |
