date("Y") + 3 || ($month > 10 && $year == date("Y") + 3)){ $year = date("Y") + 3; $month = 10; } /*if($year < 2004){ $year = 2004; $month = 1; } if($year > date("Y") + 1 || ($month > 10 && $year == date("Y") + 1)){ $year = date("Y") + 1; $month = 10; }*/ $SelectedDayTimeStamp = strtotime("$selYear-$selMonth-$selDay"); $SelectedDateArray = getdate($SelectedDayTimeStamp); if($SelectedDateArray['wday'] == 0){ $SelectedStartTimeStamp = $SelectedDayTimeStamp; }else{ $SelectedStartTimeStamp = mktime(0,0,0,date("m",$SelectedDayTimeStamp),date("j",$SelectedDayTimeStamp)-$SelectedDateArray['wday'],date("Y",$SelectedDayTimeStamp)); } $SelectedEndTimeStamp = mktime(0,0,0,date("m",$SelectedStartTimeStamp),date("j",$SelectedStartTimeStamp)+6,date("Y",$SelectedStartTimeStamp)); $query = "SELECT performanceID, title, DATE_FORMAT(startDate,'%M') as startMonth,DATE_FORMAT(startDate,'%e') as startDay, DATE_FORMAT(startDate,'%Y') as startYear, ". "DATE_FORMAT(endDate,'%M') as endMonth,DATE_FORMAT(endDate,'%e') as endDay, DATE_FORMAT(endDate,'%Y') as endYear, theater, altImage, byLine, buyTicketsLink, ". "aboutPlayLink, offersLink, synopsisShort, p.theaterID ". "FROM performance p LEFT JOIN theater t ON p.theaterID = t.theaterID ". "WHERE p.startDate <='" . date("Y-m-d",$SelectedEndTimeStamp) ."' AND endDate >= '" . date("Y-m-d",$SelectedStartTimeStamp) . "' AND viewable='1' "; $query .= "ORDER BY displayOrder, startDate, title"; $dbResults = mysql_query($query); $numPerformances = mysql_num_rows($dbResults); if(!checkdate($month,1,$year)){ $firstMonthTimeStamp = strtotime(date("Y") . "-". date("m") ."-1"); }else{ $firstMonthTimeStamp = strtotime("$year-$month-1"); } $secondMonthTimeStamp = mktime(0,0,0,date("m",$firstMonthTimeStamp)+1,1,date("Y",$firstMonthTimeStamp)); $thirdMonthTimeStamp = mktime(0,0,0,date("m",$firstMonthTimeStamp)+2,1,date("Y",$firstMonthTimeStamp)); $prevMonthTimeStamp = mktime(0,0,0,date("m",$firstMonthTimeStamp)-1,1,date("Y",$firstMonthTimeStamp)); ?> The Rep - 10/11 Season - Calendar

The Rep Home

Search

 
Calendar
&y=&sM=&sD=&sY=">  "; } } if($counter % 7 == 0){ echo ""; } $thisTimeStamp = strtotime(date("Y",$timeStamp) ."-".date("m",$timeStamp)."-$i"); if($i == date("j") && date("m",$timeStamp) == date("m") && date("Y",$timeStamp) == date("Y")){ if($SelectedStartTimeStamp <= $thisTimeStamp && $thisTimeStamp <= $SelectedEndTimeStamp){ $class = "class='caltodayselected'"; }else{ $class = "class='caltoday'"; } }else { if($SelectedStartTimeStamp <= $thisTimeStamp && $thisTimeStamp <= $SelectedEndTimeStamp){ $class = "class='caldateselected'"; }else{ $class = "class='caldate'"; } } echo ""; } while($counter % 7 != 0){ echo ""; $counter++; } echo ""; ?>
S M T W T F S
"; echo "$i 
 "; } } if($counter % 7 == 0){ echo ""; } $thisTimeStamp = strtotime(date("Y",$timeStamp) ."-".date("m",$timeStamp)."-$i"); if($i == date("j") && date("m",$timeStamp) == date("m") && date("Y",$timeStamp) == date("Y")){ if($SelectedStartTimeStamp <= $thisTimeStamp && $thisTimeStamp <= $SelectedEndTimeStamp){ $class = "class='caltodayselected'"; }else{ $class = "class='caltoday'"; } }else { if($SelectedStartTimeStamp <= $thisTimeStamp && $thisTimeStamp <= $SelectedEndTimeStamp){ $class = "class='caldateselected'"; }else{ $class = "class='caldate'"; } } echo ""; } while($counter % 7 != 0){ echo ""; $counter++; } echo ""; ?>
S M T W T F S
"; echo "$i 
 "; } } if($counter % 7 == 0){ echo ""; } $thisTimeStamp = strtotime(date("Y",$timeStamp) ."-".date("m",$timeStamp)."-$i"); if($i == date("j") && date("m",$timeStamp) == date("m") && date("Y",$timeStamp) == date("Y")){ if($SelectedStartTimeStamp <= $thisTimeStamp && $thisTimeStamp <= $SelectedEndTimeStamp){ $class = "class='caltodayselected'"; }else{ $class = "class='caltoday'"; } }else { if($SelectedStartTimeStamp <= $thisTimeStamp && $thisTimeStamp <= $SelectedEndTimeStamp){ $class = "class='caldateselected'"; }else{ $class = "class='caldate'"; } } echo ""; } while($counter % 7 != 0){ echo ""; $counter++; } echo ""; ?>
S M T W T F S
"; echo "$i 
&y=&sM=&sD=&sY=">
 
For specific performance dates and times, please click the 'buy tickets now' button.

playing the week of
 
" width="126" height="107" galleryimg="false" alt="" border="0">
more infobuy tickets now
 more...
 
Individual Support
Individual Support
Individual Support


 

twitter facebook

 

 

 

eNews Sign Up Join iRush Contact Us Login Shopping Cart
Donate Now
Milwaukee Repertory Theater