|
if(isSet($_GET[m])) {
$month_num = (integer)date('n') + (integer)$_GET[m];
}
else {
$month_num = (integer)date('n');
}
$last_month = date("F",mktime(0, 0, 0, $month_num-1 , 1, date("Y")));
$this_month = date("F",mktime(0, 0, 0, $month_num , 1, date("Y")));
$next_month = date("F",mktime(0, 0, 0, $month_num+1 , 1, date("Y")));
$this_year = date("Y",mktime(0, 0, 0, $month_num , 1, date("Y")));
//$lastmonth = mktime(0, 0, 0, date("m")-1, date("d"), date("Y"));
$link_string .= "< $last_month | $this_month | $next_month >";
if(isSet($_GET[m]) && $_GET[m] != 0) {
?>
Back to this month
}
?> |
[
=$link_string?>
]
Pre-registration is required for BCBA CLE luncheons. Please call 303.440.4758 to make reservations. BCBA CLE's cost $17 per credit for members; $10 for members of the Young Lawyer Section and $20 for non-members unless otherwise noted. Materials are $5 for those not wanting CLE credit.
require('datenator/config.php');
require('datenator/includes/functions.php');
getValues();
include('datenator/includes/lang_english.php');
include('datenator/includes/mysql.php');
?>
| Events in
=date("F",mktime(0, 0, 0, $month_num , 1, date("Y")))?>
,
=$this_year?>
|
| =$text[day][0]?> |
=$text[day][1]?> |
=$text[day][2]?> |
=$text[day][3]?> |
=$text[day][4]?> |
=$text[day][5]?> |
=$text[day][6]?> |
12) { $month = $month - 12; }
$first_day = date('w', mktime(0,0,0,$month,1,$year));
//AO 12/21/07: If $first_day is 0, we need to set it to 7 instead, because PHP starts
// counting Sunday as 0 but this calendar starts counting Monday on 1 so it'll never reach 0.
if ($first_day==0) $first_day = 7;
$days_in_month = date('t', mktime(0,0,0,$month,1,$year));
if($month == date('n') && $year == date('Y')) {
$today = date('d');
}
if($month > 12) {
$month = $month - 12;
}
$j = 1;
$query = "SELECT * FROM ".$tablepre."events WHERE ('".$this_year."-".($month)."-1' <= date_col) ORDER BY date_col ";
$sql = mysql_query($query);
//print($query);
//echo "
".mysql_query("select date_col from ".$tablepre."events ")." ";
$events_found = @mysql_num_rows($sql);
$event_info = mysql_fetch_array($sql);
$event_date = preg_split("/-/", $event_info[date_col]);
$event_date[0] = round($event_date[0]);
$event_date[1] = round($event_date[1]);
$event_date[2] = round($event_date[2]);
for($i=1;$i<7;$i++) {
$start = 1;
print '';
if($i == 1) {
for($a=1; $a<$first_day; $a++) {
print '| | ';
$start = $first_day;
}
}
for($c=$start; $c<8; $c++) {
if($j > $days_in_month) {
$print = ' ';
$class = 'dayEmpty';
} elseif($j == $today) {
$print = ''.$j.' ';
$class = 'dayNow';
} else {
$print = ''.$j.' ';
$class = 'dayNormal';
}
print ''.$print.'';
//echo $event_info[date_col];
//echo " ".$year."-".$month."-".$j." ";
//echo " ".$event_date[0]."-".$event_date[1]."-".$event_date[1]." ";
while($event_date[2] == $j && $event_date[1] == $month && $event_date[0] == $year ) {
$style = 'class="sm_blue"';
print ' ';
$event_info = mysql_fetch_array($sql);
$event_date = preg_split("/-/", $event_info[date_col]);
$event_date[0] = round($event_date[0]);
$event_date[1] = round($event_date[1]);
$event_date[2] = round($event_date[2]);
}
print ' | ';
$j++;
}
print ' ';
if($j > $days_in_month) {
$i++;
}
}
?>
|

12) {
$event_time[0] = (substr($event_time[0],0,2)-12).(substr($event_time[0],2,3));
$ampm = "pm";
}
else if(substr($event_time[0],0,2) == 12) {
$ampm = "pm";
}
else {
$ampm = "am";
}
$show_time = $event_time[0].":".$event_time[1];
$trans = array("&" => "and");
$fixedTitle = strtr($event_info[title], $trans);
?>
=$day_of_week?>
=$event_date[1]<1?$text[month][11]:$text[month][$event_date[1] - 1]?>
=$event_date[2]?>
,
=$event_date[0]?>
=$event_info[title]?>
=$event_info[section]?>
=$event_info[notes]?>
Presenter:
=$event_info[presenter]?>
=$event_info[location]?>
,
=$show_time." ".$ampm?>
if($event_info[rsvp] != "") {
print " Register and Pay for this Event";
}
?>
|
|
|