= 3) { $school = $uriparts[2]; } if (strlen($school) > 0) { $getc = $db->query("SELECT * from lawschools WHERE statefolder='".$state."' AND folder='".$school."'"); if ($db->rowcount($getc) > 0) { $ispracticesearch = true; $foldernames = statefoldertonamearray(); $statename = $foldernames[$state]; $c = $db->fetchrow($getc); $practicetitle = xmlentities($c['shortname']); $pagecx = $c['coopid']; $getc2 = $db->query("SELECT * FROM mastercooplist WHERE coopid='".$c['coopid']."'"); $s = $db->fetchrow($getc2); if ($s['referurl'] != "law-schools/".$state."/".$school || $s['shortname'] != $c['shortname'] || $s['name'] != $c['name']) { $s['name'] = $c['name']; $s['shortname'] = $c['shortname']; $s['referurl'] = "law-schools/".$state."/".$school; $db->perform("mastercooplist",$s,"update","coopid='".$c['coopid']."'"); } } } elseif (strlen($state) > 0) { $foldernames = statefoldertonamearray(); $statename = $foldernames[$state]; $getc = $db->query("SELECT * FROM mastercooplist WHERE name ='".$statename." Law Schools'"); if ($db->rowcount($getc) > 0) { $ispracticesearch = true; $c = $db->fetchrow($getc); $practicetitle = xmlentities($c['name']); $pagecx = $c['coopid']; if ($c['referurl'] == "") { $c['referurl'] = "law-schools/".$state; $db->perform("mastercooplist",$c,"update","coopid='".$c['coopid']."'"); } } } elseif (count($uriparts) == 1) { $pagecx = "sgcsydbojse"; $ispracticesearch = true; $practicetitle = xmlentities("Law Schools"); } } elseif ($uriparts[0] == "us-states") { if (strlen($uriparts[1]) > 0) { $foldernames = statefoldertonamearray(); $state = $uriparts[1]; $statename = $foldernames[$state]; $getc = $db->query("SELECT * FROM mastercooplist WHERE name='".$statename." Government'"); if ($db->rowcount($getc) > 0) { $ispracticesearch = true; $c = $db->fetchrow($getc); if (strlen($c['shortname']) > 0) { $practicetitle = xmlentities($c['shortname']); } else { $practicetitle = xmlentities($c['name']); } $pagecx = $c['coopid']; if ($c['referurl'] == "") { $c['referurl'] = "us-states/".$state; $db->perform("mastercooplist",$c,"update","coopid='".$c['coopid']."'"); } } } } function slinks($sel = "justia") { global $practicetitle; global $ispracticesearch; if ($ispracticesearch) { if ($sel == "practicesearch") { echo "" . $practicetitle . ""; } else { echo ''.$practicetitle.''; } } if ($sel == "justia") { echo "Justia.com"; } else { echo 'Justia.com'; } if ($sel == "lawyers") { echo "Lawyers"; } else { echo 'Lawyers'; } if ($sel == "legalweb") { echo "Legal Web"; } else { echo 'Legal Web'; } if ($sel == "blawgsearch") { echo "Law Blogs"; } else { echo 'Law Blogs'; } if ($sel == "blawgsfm") { echo "Legal Podcasts"; } else { echo 'Legal Podcasts'; } } $refno = ''; if ($ispracticesearch) { ?>
" style="margin-right:5px;" title="City, State or Zip Code" />

Oregon Law Blogs