Get Adobe Reader now

'.$name.'
'; } function addMenuItem($menuName, $url){ $currpage = substr($_SERVER["PHP_SELF"], strrpos($_SERVER["PHP_SELF"], '/')+1); $linkpage = substr($url, strrpos($url, '/')); $classname = 'navlink'; if ($currpage == $linkpage){ $classname = 'navcurr'; } echo ''; echo ''.$menuName.''; echo ''; } function showHeader() { ?> ..:: DDS Legal Services ::..
 

 

For any questions, contact one of our friendly customer service representatives:

Los Angeles 213-482-5555
Orange 714-662-5555
San Diego 619-263-5555
Statewide 888-512-9990
customerservice@ddslegal.com
-1 && $occurenceOf < 6 && $after < 32) { // $cd is the current day. it's set to whatever is passed in // the $after variable plus one. the default is the first day // of the month $cd = $after + 1; // if we're looking from the front of the month, backwards if($occurenceOf != 0) { while(!$done) { // date("w") will return me a 0 for sunday, 1 for monday // and the second parameter is an optional timestamp. // so i make a timestamp out of the month and year that was passed in // and get back what day of the week it is, and compair it to the day // we're looking for. if(date("w",mktime(0,0,0,$fmonth,$cd,$fyear)) == $day_to_find) { // the date to return is the current day plus an offset of the occurence // of this day. so if you wanted the third friday, it would take the first // friday, and add 2 * 7 to it...which would be 14, or two weeks later $dtr = $cd + (($occurenceOf - 1) * 7); // exit out of the loop $done = true; } // this is for if someone asks for a day that never happens...like the 5th // friday of february, which might occur sometimes, but not others. // this isn't as graceful as i'd like, more like a necessary evil elseif($cd == 32) { // return false, cause you asked for a date that don't exist $done = true; } // increment the current day $cd++; }// while(!$done) }// if($occurenceOf != 0) // else find the last occurence of this day else { // here i'm getting the last day of the month you asked for // by taking advandate of the mktime() method. i asked for // the next months zero (0) day, which php interprets as the // last day of the previous month $t = getdate(mktime(0,0,0,$fmonth+1,0,$fyear)); // the previous line returned an array of date information // but i only need the number of the date, so we'll pull that // out and use that $daysinmonth = $t["mday"]; // loop from the last day to the first day of the month // unless we found what we're looking for for($cd=$daysinmonth;$cd>0 && !$done;$cd--) { // if the currend day is the day of the week we're looking for if(date("w",mktime(0,0,0,$fmonth,$cd,$fyear)) == $day_to_find) { // return the current day and exit gracefully $dtr = $cd; $done = true; } }// for($cd=$daysinmonth;$cd>0 && !$done;$cd--) } }// if(checkDate($fxmonth,1,$fxyear) && ... // return "date to return" return $dtr; } ?>