>1); if($center < 0) $center=0; for($i=1;$i<=$count;$i++){ if($i<=($displayPages>>1) && $i>=$start-($displayPages>>1) ){ if($i==$start){ $tempStr .= "  $i "; }else{ $tempStr .= "  $i "; } $flag++; }elseif($flag<=$displayPages && ($i>=$start-($displayPages>>1) && $i<=$start+($displayPages>>1))){ if($i==$start){ //$tempStr .= "  $i"; $tempStr .= "  $i "; }else{ $tempStr .= "  $i "; } $flag++; }elseif($flag<=$displayPages && $i>=$start-($displayPages>>1)){ if($i==$start){ //$tempStr .= "  $i"; $tempStr .= " $i "; }else{ $tempStr .= " $i "; } $flag++; }elseif($i==1){ if($i==$start){ //$tempStr.="  $i"; $tempStr .= "  [$i ..]  "; }else{ $tempStr .= "  [$i ..]  "; } } elseif($i==$count){ if($i==$start){ $tempStr.="$i"; }else{ $tempStr .= "  [$i ..] "; } } } //calculate previous next if($start < $count){ $tempStr .= "  Next "; } if($start > 1){ $tempStr= "Prev". $tempStr; } return $tempStr; } //if ($lastReview != "0") { //$nextPage .= " |"; //} function calendar($date="") { //If no parameter is passed use the current date. if($date == ""){ $date = getDate(); }else{ $explodeArray=explode("/",$date); if(count($explodeArray)!=3){ $date = getDate(); }else{ if(checkdate($explodeArray[0],$explodeArray[1],$explodeArray[1])){ $date=getDate(mktime(0,0,0,$explodeArray[0],$explodeArray[1],$explodeArray[2])); }else{ $date = getDate(); } } } $day = $date["mday"]; $month = $date["mon"]; $month_name = $date["month"]; $year = $date["year"]; $this_month = getDate(mktime(0, 0, 0, $month, 1, $year)); $next_month = getDate(mktime(0, 0, 0, $month + 1, 1, $year)); $next_d=$next_month["mday"]; $next_mn=$next_month["mon"]; $next_yr=$next_month["year"]; $prev_month=getDate(mktime(0, 0, 0, $month - 1, 1, $year)); $prev_d=$prev_month["mday"]; $prev_mn=$prev_month["mon"]; $prev_yr=$prev_month["year"]; //Find out when this month starts and ends. $first_week_day = $this_month["wday"]; $days_in_this_month = round(($next_month[0] - $this_month[0]) / (60 * 60 * 24)); $calendar_html = ""; $calendar_html .= ""; $calendar_html.=""; $calendar_html .= ""; //Fill the first week of the month with the appropriate number of blanks. for($week_day = 0; $week_day < $first_week_day; $week_day++) { $calendar_html .= ""; } $week_day = $first_week_day; for($day_counter = 1; $day_counter <= $days_in_this_month; $day_counter++) { $week_day %= 7; if($week_day == 0) $calendar_html .= ""; //Do something different for the current day. if($day == $day_counter) if($_REQUEST["monsearch"]==1 && $day==1){ $calendar_html .= ""; }else{ $calendar_html .= ""; } else $calendar_html .= ""; $week_day++; } $calendar_html .= ""; $calendar_html .= "
<<" . "" . $month_name . " " . $year . ">>
SunMonTueWedThuFriSat
" . "" . $day_counter . " " . "" . "" . $day_counter . " " . " " . "" . $day_counter . "
"; return($calendar_html); } ?> Everyhomepro.com provides the most comprehensive online directory of home improvement professionals
EVERYHOMEPRO.com site sponsor
 
Find Events

Welcome to our Events Calendar. Please search for upcoming events by using the form and calendar below.
Click here to post an event.


Type:
Name of Event:
City:
State: