Welcome
Bienvenidos
Home
About Us
Membership
Calendar
Newsletters
News
Project Gallery
Member Gallery
New Projects
Legislation
Retiree Corner
Resources
Community
Organizing
Contact Us
Join us
Contractors


. See http://diveintomark.org/archives/2002/07/03 @list($p, $pl) = each($pn); @list($n, $nl) = each($pn); #previous and next links, if applicable if($p) $p = '

'.($pl ? ''.$p.'' : $p).' '; if($n) $n = ' '.($nl ? ''.$n.'' : $n).'

'; $calendar = ''."\n". '\n"; if($day_name_length){ #if the day names should be shown ($day_name_length > 0) #if day_name_length is >3, the full name of the day will be printed foreach($day_names as $d) $calendar .= ''; $calendar .= "\n"; } $theCount = count($days2); if($weekday > 0) $calendar .= ''; #initial 'empty' days for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++){ if($weekday == 7){ $weekday = 0; #start a new week $calendar .= "\n"; } if(isset($days[$day]) and is_array($days[$day])){ @list($link, $classes, $content, $desc) = $days[$day]; $templink = $link; $calendar .= ''; } else $calendar .= ""; } if($weekday != 7) $calendar .= ''; #remaining "empty" days return $calendar."\n
'.$p.($month_href ? '

'.$title.'

' : $title).$n."
'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'
 
'.($link ? $day : $day).'
'; for ($i = 0; $i < $theCount; $i++) { if ($days2[$i][0] == $day) { if ($days2[$i][4]) //if there is a description set. $calendar .= '
'.$days2[$i][5].' - '.$days2[$i][3].''.$days2[$i][4].''; else $calendar .= '
'.$days2[$i][5].' - '.$days2[$i][3].''; } } $calendar .= '
$day 
\n"; } $theNewYear = $theYear + ($theMonth / 12); $theNewMonth = $theMonth % 12; if ($theNewMonth == 0) { $theNewMonth = 12; $theNewYear = $theNewYear - 1; } $newNewYear = explode(".",$theNewYear); $getEvents = odbc_exec($odbc, "SELECT * FROM local270 WHERE eventMonth = $theNewMonth AND eventYear = $newNewYear[0] ORDER BY eventTime") or die (odbc_errormsg()); $days = array(); $days2 = array(); $counter = 0; while($row = odbc_fetch_array($getEvents)){ $eventID = $row['eventID']; $eventTitle = $row['eventTitle']; $eventDay = $row['eventDay']; $eventTime = $row['eventTime']; $department = $row['department']; $description= $row['eventDescription']; if (strlen($description) > 160) { $description = substr( $description, 0, 157 ); $description = $description." ..."; } $days[$eventDay] = array($eventID,$department,$eventTitle,$description); $days2[$counter] = array($eventDay,$eventID,$department,$eventTitle,$description,$eventTime); $counter++; } $theMonth = (isset($_GET['month']))? $_GET['month'] : ''; $time = time(); if ($theMonth) { $previous = $theMonth - 1; $next = $theMonth + 1; } else { $previous = date('n', $time) - 1; $next = date('n', $time) + 1; } $pn = array('«'=>'index.htm?month='.$previous, '»'=>'index.htm?month='.$next); if ($theMonth) echo generate_calendar($theYear, $theMonth, $days, $days2, 3, NULL, 0, $pn); else echo generate_calendar($theYear, date('n', $time), $days, $days2, 3, NULL, 0, $pn); $theCount = count($days2); $year = date('Y', $time); if(!$theMonth) $theMonth = date('n', $time); $first_of_month = gmmktime(0,0,0,$theMonth,1,$year); //for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++){ // if(isset($days[$day]) and is_array($days[$day])){ // for ($i = 0; $i < $theCount; $i++) { // if ($days2[$i][0] == $day) { // if ($days2[$i][4]) //if there is a description set. // echo '

'.$theMonth.' / '.$days2[$i][0].' - '.$days2[$i][5].' - '.$days2[$i][3].''.$days2[$i][4].'
'; // else // echo '

'.$theMonth.' / '.$days2[$i][0].' - '.$days2[$i][5].' - '.$days2[$i][3].'
'; // } // } // } //} odbc_close($odbc); ?>

Main Office
509 Emory Street, San Jose, CA 95110
(408) 297-2620

Branch Office
640 Eaton Street, Santa Cruz, Ca 95062
Ph. (831) 475-7058 Fax (831) 475-1767