Login now.');exit;} get_header(); if(isset($_SESSION['can_view_agenda']) and $_SESSION['can_view_agenda']){//TODO:check by in_array echo''; } function _display_agenda_ft($DAY, $at_phone=false){ echo'
'; #if($at_phone){echo'
';} echo'

👇👇👇

Buy Tickets

'; #echo'

切換至

'; echo'
'; } function _display_during_to_time($during){ $time = $during; $time = substr($time,0,2).':'.substr($time,2); $time = substr($time,0,-2).':'.substr($time,-2); #$time = str_replace('-',' - ', $time); return$time; } require_once ABSPATH.'Mobile-Detect/Mobile_Detect.php'; $detect = new Mobile_Detect; $isR0only = isset($R0_only) ? $R0_only : false; $uri = explode('?',$_SERVER['REQUEST_URI'])[0]; $style = ' style="font-weight:bold;border-bottom:1px solid"'; ?>
下載:請用您報名時的 Email 來信,主旨為「2021 技術論壇簡報索取」,利於證明您是與會者→大會再回信給您下載連結,謝謝。
*/ ?> [ >All | >R0 only ] */ ?> get_results('SELECT * FROM '.TBL_SPEAKERS.' WHERE hide=0')as$v){ $ary_speakers[$v->id]=$v; } #if(isset($_GET['ee']))print_r($ary_speakers); $ary_room = get_agenda_room();//[["","online Track 1"],["","online Track 2"],["","online Track 3"]] $ary_caption = array('', '09/15 (Fri.) Day 1', '09/16 (Sat.) Day 2', '10/08 (Fri.) Day 3');// $ary_agenda_nav = array('', /*'人工智慧年會AI Day 1', '人工智慧年會AI Day 2'*/ '09/15 (Fri.) Day 1', /*'第2天 11.14 (六)' ,*/ '09/16 (Sat.) Day 2', '10/08 (Fri.) Day 3', ); function display_between_company_and_jobposition($company, $jobposition){ $re = '/[a-zA-Z]/'; return preg_match($re, $company)===0 && preg_match($re, $jobposition)===0 ? '' : ' '; } function get_agenda_td_html($td, $ary_speakers, $chair_id='', $confday=0){ $IS_V20210925 = true; if( $td == '3+67' || $td == '15+78+79' || $td == '8+9' ){ $twosome_same_title=true; } if(strpos($td, '+')!==false){// A speech for more than one person. $ary_speaker_id = explode('+', $td); $count = count($ary_speaker_id); $td = ''; $job_position = ''; foreach($ary_speaker_id as$speaker_id){ $the_speaker = $ary_speakers[$speaker_id]; //$td.=''.$the_speaker->name.''; $job_position .= ''.$the_speaker->name . ' ' . $the_speaker->name2.''.$the_speaker->company .($the_speaker->position!=$the_speaker->name ? (display_between_company_and_jobposition($the_speaker->company, $the_speaker->position)).$the_speaker->position : '').'
'; } $td.='
'; $IS_PENEL_SESSION = $count>3; // Panel if ($IS_PENEL_SESSION): // conf2023座談 $panel_title = $count>=5 ? '▶️🀄 Retrospect and Prospect of Taiwan AI Research Centers' : ( in_array(5,$ary_speaker_id) ? '▶️ Panel Discussion:'//【 Discussion-1 】 : '▶️ Panel Discussion:');//【 Discussion-2 】 $td .=''.$panel_title.''; if($chair_id){ $td .= '
主持人: '.$chair_id.'
'; } foreach($ary_speaker_id as $speaker_id) { $sk = $ary_speakers[$speaker_id]; //If the speaker has not been decided, then show 'TBD'. if(strpos(strtoupper($sk->name),'TBD') !== false ){ $td .= '【 TBD 】
'; }else{ $td.=''.$sk->name /*. ' ' . $sk->name2.''.$sk->company .'' .($sk->position!=$sk->name ? (display_between_company_and_jobposition($sk->company, $sk->position)).$sk->position : '').''*/.'
'; } } else: if($IS_V20210925){//was old if ($twosome_same_title){// if 2 speaker in the same talk title, change the html stracture $first_speaker = $ary_speakers[$ary_speaker_id[0]]; $second_speaker = $ary_speakers[$ary_speaker_id[1]]; $td = ''. //''.$ary_speakers[$ary_speaker_id[0]]->name.''. //''.$ary_speakers[$ary_speaker_id[1]]->name.''. ''. //''.display_talk_title($first_speaker->talk_title, $first_speaker).''. ''.$first_speaker->name ./* ' ' . $first_speaker->name2.''.''.$first_speaker->company.''. ($first_speaker->position!=$first_speaker->name ? (display_between_company_and_jobposition($first_speaker->company, $first_speaker->position)).$first_speaker->position : '').''.*/'
'. ''.$second_speaker->name . ' ' . $second_speaker->name2./*''.''.$second_speaker->company.''. ($second_speaker->position!=$second_speaker->name ? (display_between_company_and_jobposition($second_speaker->company, $second_speaker->position)).$second_speaker->position : '').*/''; } else{ $td = ''; foreach($ary_speaker_id as $idx=>$speaker_id){ $the_speaker = $ary_speakers[$speaker_id]; $td .= //img ''.$the_speaker->name.'' //title .''.display_talk_title($the_speaker->talk_title, $the_speaker).''; //If the speaker has not been decided, then show 'TBD'. if(strpos(strtoupper($the_speaker->name),'TBD') != false ){ $td .= 'TBD'; }else{ $td .= //name ''.$the_speaker->name . ' ' . $the_speaker->name2.'' //company .''.$the_speaker->company.'' //position .($the_speaker->position!=$the_speaker->name ? (display_between_company_and_jobposition($the_speaker->company, $the_speaker->position)).$the_speaker->position : '').''; } if($idxanchor.'">'.display_talk_title($first_speaker->talk_title, $first_speaker).'' ._display_talkfile_link($first_speaker->talkfile_link,$first_speaker->anchor,$confday); $second_speaker = $ary_speakers[$ary_speaker_id[1]]; $td.=''.display_talk_title($second_speaker->talk_title, $second_speaker).'' ._display_talkfile_link($second_speaker->talkfile_link,$second_speaker->anchor,$confday); } endif; if (!$IS_V20210925 && !$IS_PENEL_SESSION) { if(isset($_GET['new_layout'])){ $td.='
'.$job_position.'
'; }else{ $td.=$job_position; } } // end of !$IS_V20210925 }elseif(1===preg_match('/^[0-9]+$/', $td)){// A speech for one person. $speaker_id = $td; $the_speaker = $ary_speakers[$speaker_id]; $imgsrc = get_speaker_photo_imgsrc($speaker_id); $td = ''; $conf = strtoupper($the_speaker->conf); /*if($conf==='AIK' or $conf==='DSK'){ $td.='主題演講
(人文館國際會議廳 R0,同步轉播至所有會議室)
'; }*/ $td .= ''.$the_speaker->name.'' // title .display_talk_title($the_speaker->talk_title, $the_speaker).'' ._display_talkfile_link($the_speaker->talkfile_link, $the_speaker->anchor,$confday); //template for temporarily $td ='';//hidden img if(isset($_GET['new_layout'])){$td.='
';} //If the speaker has not been decided, then show 'TBD'. if(strpos($the_speaker->name,'TBD') !== false ){ $td .= '【 TBD 】'; }else{ $td .= //name ''.(0===preg_match('/[a-zA-Z]/', $the_speaker->name) ? $the_speaker->name /*.' '.$the_speaker->name2*/ : $the_speaker->name).'' //company /*.''.$the_speaker->company.''*/ //position /*.($the_speaker->position!=$the_speaker->name ? (display_between_company_and_jobposition($the_speaker->company, $the_speaker->position)).$the_speaker->position : '')*/.''; } //chair_id if($chair_id){ $td .= '
主持人: '.$chair_id.'
'; } if(isset($_GET['new_layout'])){$td.='
';} } if(strpos($td,'午餐時間')!==false){ $td = '🍱 '.$td; }elseif(strpos($td,'茶點')!==false){ $td = '☕ '.$td; }elseif(strpos($td,'開幕')!==false){ $td = str_replace('開幕', '🎊 開幕', $td); } return$td; } function _display_agenda_nav($ary_agenda_nav, $is_last_day=false){ echo''; } //Mobile if(1 /*isset($_GET['mob']) or $detect->isMobile() or is_bot()*/){ $pre_day = ''; $pre_during = ''; $ary_day = array('','09/15 (Fri.)','09/16 (Sat.)','10/8 (Fri.)'); echo'
'; foreach(array(1 /*,3*/)as$START_DAY){ $sqlwhere = ' WHERE `day` IN ('.$START_DAY.','.($START_DAY+1).')'; #$sqlwhere = ' WHERE `day` IN ('.$START_DAY.','.($START_DAY+1).','.($START_DAY+2).')'; echo'
'; foreach($wpdb->get_results('SELECT * FROM '.TBL_AGENDA.$sqlwhere.' ORDER BY day,during,room')as$v){ $day = $v->day; $during = $v->during; $room = $v->room; $speaker_id = $v->speaker_id; $chair_id = $v->chair_id; //Skip the process if the start time is equal to the end time if( in_array($during,array('1330-1330','1040-1040','1530-1530'))){ continue; } if($day!=$pre_day){ echo _display_agenda_nav($ary_agenda_nav, $day%2===0); echo 'day.' id=confday'.$v->day.'>'; echo ''.str_replace('2017/','',$ary_caption[$day]).''; echo 'Language: 🀄Mandarin / 🌐English
Playback: ▶️Yes / 🛑No
'; } if($during!=$pre_during){ echo $START_DAY==3 ? '

' : '

'; echo' '.$ary_day[$day] .' '. _display_during_to_time($during).'

'; } $R_or_A = $ary_room[$room][0]; $alt= $ary_room[$room][1]; echo '

'; #echo '' .$alt.''; echo$alt./*''.*/$R_or_A.'

'; echo '

' . get_agenda_td_html($speaker_id, $ary_speakers, $chair_id,$v->day) . '

'; $pre_day = $day; $pre_during = $during; } echo'
'; echo _display_agenda_ft($START_DAY+1, true); } echo'
'; } // end if(1){ ?>
isMobile()*/){ foreach(array(1, 2 /*, 3 , 4*/ )as$DAY){ ?>
id=confday> */ ?> get_results($sql); foreach($ary_agenda as$k=>$v){ $rooms = explode('`',$v->rooms); $speaker_ids = explode('`',$v->speaker_ids); $ary_td = array(); $chair_ids = explode('`',$v->chair_ids); $is_tr_free = true; $is_white_tr_free = strpos($v->speaker_ids, 'Welcome')!==false || strpos($v->speaker_ids, 'Speaker')!==false || strpos($v->speaker_ids, '5+6+7+8')!==false || strpos($v->speaker_ids, '33+34+35+36')!==false || strpos($v->speaker_ids, 'TBD')!==false; if ($is_tr_free) { foreach($rooms as$idx=>$room){ $i = $room+0; #if($idx>=$MAX_SPEAKER_TD_NUM){break;} /* if($i===1){$i=2;} if($i===2){$i=3;} if($i===3){$i=1;}*/ $ary_td[$i] = $speaker_ids[$idx]; if( 1===preg_match('/^[0-9]+$/', $ary_td[$i]) # single speaker or 1===preg_match('/^[0-9]+\+[0-9]+$/', $ary_td[$i]) # two speakers ){ $is_tr_free = false; } } } $time = _display_during_to_time($v->during); [$time_s,$time_e]=explode("-",$time); if($time_s == $time_e){//it's topiec title $is_topic = true; }else{$is_topic = false;} //check background color: $class_for_background_color=''; $class_for_background_color .= $is_tr_free?'free':''; $class_for_background_color .= $is_white_tr_free ? ' whitefree' : ''; $class_for_background_color .= $is_white_tr_free ? ' whitefree' : ''; //$class_for_background_color .= $is_topic ? ' topic_row' : ''; ?> '.$time.''; $count_ary_td = count($ary_td); $MAX_J = $count_ary_td-1; $IS_CROSS_BAR = $MAX_J===0; foreach(range(0,$MAX_J)as$j){ $td = get_agenda_td_html($ary_td[$j], $ary_speakers, $chair_ids[$j], $DAY); $IS_PENEL_TD = strpos($td, 'Panel B')!==false || strpos($td, '大型企業 Panel A')!==false; echo $j===$MAX_J&&$IS_CROSS_BAR ? '' : '')!==false ? ' class="top room_'.$j.'"':' class=room_'.$j).($IS_PENEL_TD ? ' style="padding-top:0;border-top:1px solid #fff;position:relative"' : '').'>' .($IS_PENEL_TD ? '' : '') .$td.''; } if(!$IS_CROSS_BAR && ($TALK_TRACKING_NUM - $count_ary_td)>0){ foreach(range(1,$TALK_TRACKING_NUM - $count_ary_td)as$_){ echo''; } } echo''; } ?>

Language: 🀄Mandarin / 🌐English
Playback: ▶️Yes / 🛑No

R0 R1 R2 R3
Place
room/.png alt="" />*/ ?>
*/ ?>
報到 人文社會科學館報到台
'.$td.'
isMobile() ?>