'; include("../layout/topnav.php"); print '
'; ?> "); $spe = 1; } Print (""); $special.= stripslashes( $a_row['CID'] ); Print (""); if( $a_row['CTYPE'] == 'CLOSED' ) { $daytype="CLOSED"; } } } } } // end while Print ("
'; for($x = 1; $x <= 12; $x++) { $select_month_control.= ''; } $select_month_control.= ''; /* select year control */ $year_range = 7; $select_year_control = ''; $select_sitemap_control = ''; /* "special event" control */ $special_events = 'Special Events'; /* "next day" control */ $d_a = mktime(date(H),date(i),0,$month,$day,$year) + 86400; /*$next_month_link = 'Next Month >>'; get date serial + 1 day seconds convert new serial to d=m=y */ $next_month_link = 'Next Day >>'; /* "previous day" control */ $d_a_p = mktime(date(H),date(i),0,$month,$day,$year) - 86400; $previous_month_link = '<< Previous Day'; /* "full month" control */ $full_month = 'Full Month View'; /* bringing the controls together */ $controls = '
'.$special_events.' '.$previous_month_link.' '.$next_month_link.' '.$full_month.'
'; ?>


Open Monday thru Friday: 7:30 am to 4:30 pm
'; $result=mysql_query("SELECT * FROM vbecalendar WHERE CSTART='$calcstart' AND CTYPE='CLOSED' "); // Print 'x' . $Result . 'x
'; $exist_closed = mysql_fetch_array($result); if ( $exist_closed != '' ) { // Print screen message about being closed Print ('


Valley Builders Exchange is Closed Today.

We will open tomorrow with normal operating hours listed above.
'); } else { ?> "); while($a_row=mysql_fetch_array($result)){ if( $a_row['CSTART'] == $year . $monthpad . $daypad ) { if( $a_row['CACTIVE'] != '' ) { if( $a_row['CTYPE'] == 'SPECIAL' ) { if( $spe == '' ) { Print ("
Special Events
"); /* if upload exists, show it */ if( is_file( "images/main/" . $a_row['CID'] . "_1.jpg" )) { Print ( "" ); } // print '
'; Print ("
"); Print (""); Print (""); if( $a_row['CDATEDESC'] != '' ) { Print (""); } if( $a_row['CTIMEDESC'] != '' ) { Print (""); } if( $a_row['CDESC1'] != '' ) { Print (""); } if( $a_row['CDESC2'] != '' ) { Print (""); } if( $a_row['CDESC3'] != '' ) { Print (""); } if( $a_row['CCOST'] != '' ) { Print (""); } if( $a_row['CCOSTDESC'] != '' ) { Print (""); } if( $a_row['CLOCDESC'] != '' ) { Print (""); } if( $a_row['CCONPHONE'] != '' ) { Print (""); } if( $a_row['CLINK1'] != '' ) { Print (""); } /* Print ('');*/ Print ("
". $a_row['CTITLE'] ."
". date("l",mktime(0,0,0,$month,$day,$year)) . ', ' . date("F",mktime(0,0,0,$month,$day,$year)) .' ' . $day .', ' . $year ."
". $a_row['CDATEDESC'] ."
". $a_row['CTIMEDESC'] ."
". $a_row['CDESC1'] ."

". $a_row['CDESC2'] ."

". $a_row['CDESC3'] ."

Cost: ". $a_row['CCOST'] ."
Cost Details: ". $a_row['CCOSTDESC'] ."
Location: ". $a_row['CLOCDESC'] ."
Phone: ". $a_row['CCONPHONE'] ."
". $a_row['CLINK1DESC'] ."
Mark Your Calendar
"); mysql_close ($link); ?> "); while ( $a_row = mysql_fetch_array($result)) { if( $a_row['CSTART'] <= $year . $monthpad . $daypad AND $a_row['CEND'] >= $year . $monthpad . $daypad ) { if( $a_row['CACTIVE'] != '' ) { if( $a_row['CTYPE'] == 'DAILY' ) { if( $dailyhead == '' ) { Print ("Daily Activities"); $dailyhead = 1; } Print (""); /* if upload exists, show it */ if( is_file( "images/thumbs/" . $a_row['CID'] . "_1.jpg" )) { Print ( "" ); } /*Print '
';*/ print '
'; Print (""); Print (""); Print (""); if( $a_row['CDATEDESC'] != '' ) { Print (""); } if( $a_row['CTIMEDESC'] != '' ) { Print (""); } if( $a_row['CSHORT'] != '' ) { Print (""); } /* if( $a_row['CDESC1'] != '' ) { Print (""); } if( $a_row['CDESC2'] != '' ) { Print (""); } if( $a_row['CDESC3'] != '' ) { Print (""); } */ if( $a_row['CCOST'] != '' ) { Print (""); } if( $a_row['CCOSTDESC'] != '' ) { Print (""); } if( $a_row['CLOCDESC'] != '' ) { Print (""); } if( $a_row['CCONPHONE'] != '' ) { Print (""); } if( $a_row['CLINK1'] != '' ) { Print (""); } /* Print ('');*/ Print ("
". $a_row['CTITLE'] ."
". date("l",mktime(0,0,0,$month,$day,$year)) . ', ' . date("F",mktime(0,0,0,$month,$day,$year)) .' ' . $day .', ' . $year ."
". $a_row['CDATEDESC'] ."
". $a_row['CTIMEDESC'] ."
". $a_row['CSHORT'] ."

". $a_row['CDESC1'] ."

". $a_row['CDESC2'] ."

". $a_row['CDESC3'] ."

Cost: ". $a_row['CCOST'] ."
Cost Details: ". $a_row['CCOSTDESC'] ."
Location: ". $a_row['CLOCDESC'] ."
Phone: ". $a_row['CCONPHONE'] ."
". $a_row['CLINK1DESC'] ."
Mark Your Calendar
"); $special.= stripslashes( $a_row['CID'] ); Print (""); } } } // 1 } // end while Print (""); mysql_close ($link); ?>