//pop up boxes for upcomingdialog_ -----------------------------------------------------------------------
$upcoming_counter=1;
for ($i=0; $i<$counter_registered; $i++)
{
$event_pop_up="upcomingdialog_".$upcoming_counter;
?>
//time from table ----------------eastern
$var_colon_pos=(stripos($arr_event_time_ET_reg[$i],":"));
$var_hour=substr($arr_event_time_ET_reg[$i],0,$var_colon_pos); //holds the hour
$var_min_pos=($var_colon_pos + 1);
$var_minute=substr($arr_event_time_ET_reg[$i],$var_min_pos,2); //holds the minutes
$var_am_pm_pos=($var_min_pos + 3);
$var_am_pm=substr($arr_event_time_ET_reg[$i],$var_am_pm_pos,1)."m"; //holds the am or pm
$var_time_string=$var_hour.":".$var_minute." ".$var_am_pm; //holds the string to convert. str format: 5:30 pm
$military_time=convert($var_time_string); //holds the military time
//Military Time-----------------------------
$mil_var_colon_pos=(stripos($military_time,":"));
$mil_var_hour=substr($military_time,0,$mil_var_colon_pos); //holds the military hour
//get single digit day of event
$var_day_pos=(stripos($arr_event_date_reg[$i],"/")+1);
$var_day_two_digits=substr($arr_event_date_reg[$i],$var_day_pos,2); //holds the day in two digit format
if(substr($arr_event_date_reg[$i],$var_day_pos,1) == 0){
$temp_day_of_event=substr($arr_event_date_reg[$i],$var_day_pos+1,1);}
else{ $temp_day_of_event=$var_day_two_digits;}
if($arr_event_presentation_slides_url[$i] == "")
{
?>
- echo $arr_event_day_reg[$i].", ".$arr_event_month_reg[$i]." ".$temp_day_of_event." ".substr($arr_event_date_reg[$i],6,4); ?>
- echo $arr_event_time_ET_reg[$i]." ET ⁄ ".$arr_event_time_PT_reg[$i]." PT "; ?>
echo ""." (click here for your time zone)"; ?>
} //end of if($OBJ_reg->presentation_slides != "")
?>
echo $arr_event_descrip_reg[$i]; ?>
$upcoming_counter=$upcoming_counter+1;
} //end of the for loop
//pop up boxes for unregistereddialog_ -----------------------------------------------------------------------
$SQL_not_reg="Select * from hillsdale_events where event_id not in ('".$arr_event_id_reg[0] ."','".$arr_event_id_reg[1]."','".$arr_event_id_reg[2]."','".$arr_event_id_reg[3]."','".$arr_event_id_reg[4]."','".$arr_event_id_reg[5]."','".$arr_event_id_reg[6]."','".$arr_event_id_reg[7]."','".$arr_event_id_reg[8]."','".$arr_event_id_reg[9]."','".$arr_event_id_reg[10]."','".$arr_event_id_reg[11]."','".$arr_event_id_reg[13]."','".$arr_event_id_reg[14]."','".$arr_event_id_reg[15]."')";
$RES_not_reg=mysql_query($SQL_not_reg);
echo mysql_error();
if(mysql_num_rows($RES_not_reg)>0)
{
$arr_event_not_reg=array();
$unregistered_counter=1;
while($OBJ_reg=mysql_fetch_object($RES_not_reg))
{
$event_pop_up="unregistereddialog_".$unregistered_counter;
?>
//time from table ----------------eastern
$var_colon_pos=(stripos($OBJ_reg->ET_zone,":"));
$var_hour=substr($OBJ_reg->ET_zone,0,$var_colon_pos); //holds the hour
$var_min_pos=($var_colon_pos + 1);
$var_minute=substr($OBJ_reg->ET_zone,$var_min_pos,2); //holds the minutes
$var_am_pm_pos=($var_min_pos + 3);
$var_am_pm=substr($OBJ_reg->ET_zone,$var_am_pm_pos,1)."m"; //holds the am or pm
$var_time_string=$var_hour.":".$var_minute." ".$var_am_pm; //holds the string to convert. str format: 5:30 pm
$military_time=convert($var_time_string); //holds the military time
//Military Time-----------------------------
$mil_var_colon_pos=(stripos($military_time,":"));
$mil_var_hour=substr($military_time,0,$mil_var_colon_pos); //holds the military hour
//get single digit day of event
$var_day_pos=(stripos($OBJ_reg->event_date,"/")+1);
$var_day_two_digits=substr($OBJ_reg->event_date,$var_day_pos,2); //holds the day in two digit format
if(substr($OBJ_reg->event_date,$var_day_pos,1) == 0){
$temp_day_of_event=substr($OBJ_reg->event_date,$var_day_pos+1,1);}
else{ $temp_day_of_event=$var_day_two_digits;}
if($OBJ_reg->presentation_slides == "")
{
?>
} //end of if($OBJ_reg->presentation_slides != "")
?>
echo $OBJ_reg->event_description; ?>
$unregistered_counter=$unregistered_counter+1;
} //end while loop
} //end of the if statement
?>