$uridata = $_SERVER['REQUEST_URI'];
include_once getenv('SITE_BASE_PATH')."/app/_conf.php";
include_once getenv('SITE_BASE_PATH')."/app/_db.php";
$n = isset($_GET['n']) ? $_GET['n'] : "";
$s = isset($_GET['s']) ? $_GET['s'] : "";
$d = isset($_GET['d']) ? $_GET['d'] : "";
$uriarray = explode("/", $uridata);
// ################################################################################################################################
// ##### CASES SHOW RECENT - MORELAW.COM/CASES/
//
if (($uriarray[1] == "cases") && (strlen($uriarray[2]) < 1)) {
$morelaw_title = "Recent Cases";
include getenv('SITE_BASE_PATH')."/app/layout/template_top.php";
?>
| A Legal Wiki of State and Federal Law |
| |
$sql5 = "SELECT * FROM verdicts1 ORDER by Case_id DESC LIMIT 0,60";
$result5 = mysql_query($sql5,$db);
if ($row5 = mysql_fetch_array($result5)) {
do {
?>
|
echo strip_tags($row5["case_style"]) ?>
|
|
echo substr(str_replace(array(''), '', $row5["description"]),0,400) ?>
&s= echo urlencode($row5["state"]) ?>&d= echo urlencode($row5["Case_id"]) ?>">More... $ echo $row5["verdict_amount"] ?> ( echo date('m-d-Y', strtotime($row5["case_date"])) ?> - echo $row5["state"] ?>)
|
} while ($row5 = mysql_fetch_array($result5));
}
?>
More Cases by Subject
|
include getenv('SITE_BASE_PATH')."/app/layout/template_bottom.php";
} elseif ((($uriarray[1] == "cases") && (strlen(isset($uriarray[3]) ? $uriarray[3] : "") < 1)) && (strstr($uriarray[2], '.asp')) && (strstr($uriarray[2], 'subjects'))) {
// ################################################################################################################################
// ##### CASES SHOW LIST OF SUBJECTS - MORELAW.COM/CASES/SUBJECTS.ASP
$morelaw_title = "MoreLaw's Lexapedia Legal Wiki of State and Federal Law";
include getenv('SITE_BASE_PATH')."/app/layout/template_top.php";
?>
MoreLaw's Lexapedia Legal Wiki |
|---|
$sql1 = "SELECT * FROM casesubjects ORDER by name1 asc LIMIT 0,400";
$result1 = mysql_query($sql1,$db);
if ($row1 = mysql_fetch_array($result1)) {
echo "";
$number1 = -1;
do {
$number1 = $number1 + 1;
if ($number1 == 3) {
$number1 = 0;
echo "|
";
}
$namelink = strtolower(str_replace(" ","_",$row1["name1"]));
?>
| echo $row1["name1"] ?> |
} while ($row1 = mysql_fetch_array($result1));
echo "
";
} else {
echo "error!";
}
include getenv('SITE_BASE_PATH')."/app/layout/template_bottom.php";
} elseif ((($uriarray[1] == "cases") && (strlen(isset($uriarray[3]) ? $uriarray[3] : "") < 1)) && (strstr($uriarray[2], '.asp'))) {
// ################################################################################################################################
// ##### CASES SHOW VERDICTS FOR A PARTICULAR SUBJECT AREA - MORELAW.COM/CASES/[WHATEVER].ASP
##$name1 = str_replace(".asp", "", str_replace("_"," ",$uriarray[2]));
$name1 = str_replace("_"," ",substr($uriarray[2],0,strpos($uriarray[2],".asp")));
$link1 = substr($uriarray[2],0,strpos($uriarray[2],".asp"));
$rsslink = str_replace(".asp", "", $uriarray[2]);
$sql2 = sprintf("SELECT * FROM casesubjects WHERE name1='%s' LIMIT 0,1", mysql_real_escape_string($name1, $db));
$result2 = mysql_query($sql2,$db);
$row2 = mysql_fetch_array($result2);
$subject1 = isset($row2["name1"]) ? $row2["name1"] : "";
$morelaw_title = $subject1." Law";
include getenv('SITE_BASE_PATH')."/app/layout/template_top.php";
?>
| echo $subject1 ?> Law |
| |
$page = isset($_GET['page']) ? $_GET['page'] : "";
if (!$page) $page = 1;
$nextpage = $page + 1;
$startnumber = (($page * 25) - 1);
if ($startnumber == 24) $startnumber = 0;
$sql5 = "SELECT * FROM verdicts1 WHERE privacy_restricted = 0 AND MATCH (description) AGAINST ('$subject1') ORDER BY case_id DESC LIMIT $startnumber,25";
//$sql5 = "SELECT * FROM verdicts1 WHERE privacy_restricted = 0 AND MATCH (description) AGAINST ('$subject1') ORDER by case_date DESC, Case_id desc LIMIT $startnumber,25";
$result5 = mysql_query($sql5,$db);
$resultCount = 0;
if ($row5 = mysql_fetch_array($result5))
{
do {
$resultCount++;
?>
|
echo strip_tags($row5["case_style"]) ?>
|
|
echo substr(str_replace(array(''), '', $row5["description"]),0,400) ?>
&s= echo urlencode($row5["state"]) ?>&d= echo urlencode($row5["Case_id"]) ?>">More... $ echo $row5["verdict_amount"] ?> ( echo date('m-d-Y', strtotime($row5["case_date"])) ?> - echo $row5["state"] ?>)
|
} while ($row5 = mysql_fetch_array($result5));
}
// Only show the next button when there are more results.
if ($resultCount == 25)
{
?>
Next Page
|
}
?>
include getenv('SITE_BASE_PATH')."/app/layout/template_bottom.php";
}
?>