Get_Data( $_GET['Sn'] ); $submenu->SetTitle( "
$showt[ActName]
" ) ; //h2 }else{ $submenu->SetTitle( $handler->Get_App_Name() ); //h2 } if ( $_GET['action'] != 'signok' ){ $classes = $handler->Get_Class1(); foreach ( $classes as $k => $v ) $submenu->Add( $v , "?class=$k" ); if ( $_GET['action'] == 'view' ){ $submenu->Add( "
".T_('回上一頁')."
" ); } } */ //此頁 template 參數 $_PAGE = array( 'ID' => Get_PageID(), 'App' => $handler->App_ID, 'Module' => $handler->Module_ID, // 'Submenu' => $submenu->toHTML(), 'PageNum' => 10 ); $signup = $handler->Get_Signup( $_GET['Sn'] ) ; $workshop = $handler->Get_Workshop( $_GET['Sn'] ) ; $wkoption = $workshop->Get_Option() ; $result = $handler->Get_Result( $sn ) ; ?>

get_var("select YEAR(ActStartTime) from actnews order by ActStartTime limit 1"); //結束 $ye = $_DB->get_var("select YEAR(ActStartTime) from actnews order by ActStartTime desc limit 1"); if ( !$ys ) $ys = date("Y"); else $ys = $ys; if ( !$ye ) $ye = date("Y"); else $ye = $ye; ?> ~
Get_Search( $_GET['key'], $_GET['sy'], $_GET['sm'], $_GET['ey'], $_GET['em'], $_GET['classes'] ); }elseif ( $_GET['class'] ){ $arrs = $handler->Get_Datas( 'ActStartTime desc', "'$_GET[class]' and YEAR(ActStartTime)>='".date("Y")."'" ); }else $arrs = $handler->Get_Datas2( 'ActStartTime desc', "YEAR(ActStartTime)>='".date("Y")."'" ); $table = new RSS_Table('rowsonly'); $table->SetCaption( T_('活動列表') ); $table->AddRowHead( array ( T_('分類'), T_('名稱'), T_('(開始/結束)時間'), T_('地點'), T_('動作') ) ); foreach( $arrs as $arr ) { $showtype = $handler->Get_ClassName1( $arr['actnews_class1'] ); if ( $arr['Opt_Signup'] == 'Y' and ( $arr['SignStartDate'] <= date("Y-m-d") and $arr['SignEndDate'] >= date("Y-m-d") ) ) $Opt_Signup = "".T_('線上報名')."
"; else $Opt_Signup = ''; if ( $arr['ContStartDate'] != '0000-00-00' ) { if ( $arr['ContStartDate'] <= date("Y-m-d") and $arr['ContEndDate'] >= date("Y-m-d") ) { if ( $_SESSION['actnews'] and $_SESSION['actnewsSn'] == $arr['Sn'] ) { $an = T_('投稿者管理'); } else { $an = T_('投稿者登入'); } } else $an = ''; } else $an = ''; $table->AddRow( array ( $showtype, "$arr[ActName]" , substr($arr['ActStartTime'],0,10).'/'.substr($arr['ActEndTime'],0,10), $arr['ActPlace'], $Opt_Signup . "$an" ) ) ; } $table->SetRowHeadWidth( 1 , '15%' ); $table->SetRowHeadWidth( 3 , '16%' ); if ( !empty($Opt_Signup) ) $table->SetRowHeadWidth( 5 , '10%' ); $table->SetRowHeadWidth( 5 , '6%' ); echo $table->toHTML(); if ( $_GET['class'] ) $handler->the_paging( $handler->Count_Datas2( "$_GET[class]' and YEAR(ActStartTime) = '".date("Y") ) ) ; elseif ( $_GET['key'] or $_GET['sy'] or $_GET['sm'] or $_GET['ey'] or $_GET['em'] or $_GET['classes'] ) $handler->the_paging( $handler->Count_Datas3( $_GET['key'], $_GET['sy'], $_GET['sm'], $_GET['ey'], $_GET['em'], $_GET['classes'] ) ) ; else $handler->the_paging( $handler->Count_Datas("YEAR(ActStartTime)>='".date("Y")."'") ) ; } ?> Get_Data( $_GET['Sn'] ); if ( $arr['Opt_Signup'] == 'Y' ) $Opt_Signup = "".T_('線上報名').""; $table = new RSS_Table('vstyled'); $table->SetCaption( $handler->Get_ClassName1( $arr['actnews_class1'] ) ); $table->SetColTH( 1 ); $table->SetRowHeadClass( 1 ); $table->AddRow( array ( T_('活動開始時間') , $arr['ActStartTime'] ) ); $table->AddRow( array ( T_('活動結束時間') , $arr['ActEndTime'] ) ); $table->AddRow( array ( T_('活動名稱') , $arr['ActName'] ) ); $table->AddRow( array ( T_('主講者') , $arr['Lecturing'] ) ); $table->AddRow( array ( T_('活動地點') , $arr['ActPlace'] ) ); $actarr = $handler->Get_Data( $_GET['Sn'] ); $option = $handler->Get_Option( $arr['actnews_class1'] ) ; $arrs = $option->Get_Datas( '', "AClass = '$actarr[actnews_class1]' and ASn = '$actarr[Sn]'" ); if ( $arrs) $table->AddRow( array ( T_('活動內容') , "".T_('點選觀看')."") ); $table->AddRow( array ( T_('附件檔案') , Make_Filelink( $arr['Filename1'] , $handler->Upload_Dir ,$arr['File_Title1'] ) . ' ' . Make_Filelink( $arr['Filename2'] , $handler->Upload_Dir ,$arr['File_Title2'] ) . ' ' . Make_Filelink( $arr['Filename3'] , $handler->Upload_Dir ,$arr['File_Title3'] ) ) ); if ( $arr['SignStartDate'] != '0000-00-00' ){ $table->AddRow( array ( T_('報名開始日期') , $arr['SignStartDate'] ) ); $table->AddRow( array ( T_('報名結束日期') , $arr['SignEndDate'] ) ); } if ( $arr['Opt_Signup'] == 'Y' and ( $arr['SignStartDate'] <= date("Y-m-d") and $arr['SignEndDate'] >= date("Y-m-d") ) ) $table->AddRow( array ( T_('線上報名') , $Opt_Signup ) ); if ( $arr['ContStartDate'] != '0000-00-00' ) { if ( $arr['ContStartDate'] <= date("Y-m-d") and $arr['ContEndDate'] >= date("Y-m-d") ) $table->AddRow( array ( T_('投稿者登入') , ''.T_('投稿者登入').'' ) ); } $table->AddRow( array ( T_('參考連結') , Wrap_Text_URL( $arr['URL'] , $arr['URL'] , '' , TRUE ) ) ); /* if ( $arr['ContStartDate'] != '0000-00-00' ){ $table->AddRow( array ( T_('投稿日期') , $arr['ContStartDate'] ) ); $table->AddRow( array ( T_('截稿日期') , $arr['ContEndDate'] ) ); } */ $table->AddRow( array ( T_('備註') , nl2br( $arr['Note'] ) ) ); $table->AddRow( array ( T_('最後更新日期') , nl2br( $arr['CTime'] ) ) ); echo $table->toHTML(); the_goback(); if ( $handler->Has_AdminPriv() ) echo "

Default_Admin?editSn=$_GET[Sn]\">".GetIcon( 'module/actnews',T_('編輯活動訊息')).T_('編輯活動訊息')."

"; } ?> Get_Data( $_GET['Sn'] ); $option = $handler->Get_Option( $arr['actnews_class1'] ) ; /* $table = new RSS_Table('vstyled'); $table->SetCaption( '活動內容' ); $table->SetColTH( 1 ); $table->SetRowHeadClass( 1 ); $arrs = $option->Get_Datas( '', "AClass = '$actarr[actnews_class1]'" ); foreach( $arrs as $arr ) { $table->AddRow( array ( $option->Get_ClassName( $arr[actnews_option_class] ) , $arr['Content'] ) ); } $table->AddRow( array ( T_('訪問學者') , Display_People( $actarr['Scholar_EID'] ,' / ','Name').$actarr['Scholar'] ) ); $table->AddRow( array ( T_('參與人') , Display_People( $actarr['Participant_EID'] ,' / ','Name').$actarr['Participant'] ) ); if ( $actarr['Opt_Signup'] == 'Y' and ( $actarr['SignStartDate'] <= date("Y-m-d") and $actarr['SignEndDate'] >= date("Y-m-d") ) ) $table->AddRow( array ( T_('線上報名') , "線上報名" ) ); echo $table->toHTML(); the_goback(); */ echo ''; echo '
'; echo ''; echo '
'; ?>
get_results("select * from actnews_option_class where Lang = '". GetLang() ."'", ARRAY_A); foreach( $optionarrs as $optionarr ) { $arrs = $option->Get_Datas( 'actnews_option_class', "AClass = '$actarr[actnews_class1]' and actnews_option_class = '$optionarr[actnews_option_class]' and ASn = '$_GET[Sn]'" ); if ( $arrs and $aa == 0 ) $display = ''; else $display = 'style="display:none"'; ?>
>

Get_ClassName( $arr['actnews_option_class'] )?>

Get_Data( $_GET['Sn'] ); if ( $data['SignStartDate'] > date("Y-m-d") or $data['SignStartDate'] == '0000-00-00' or $data['SignEndDate'] == '0000-00-00' ) { echo "

".T_('報名未開始')."

"; echo "
"; the_goback(); } elseif ( $data['SignEndDate'] < date("Y-m-d") ) { echo "

".T_('報名已結束')."

"; echo "
"; the_goback(); } else { ?>

the_input_text ('Name' , '*'.T_('姓名') , 40 , $signup->Get_Column_Value('Name',$_GET['editSn']),'','','class="required"' ); ?>

the_input_text ('Unit' , '*'.T_('單位') , 40 , $signup->Get_Column_Value('Unit',$_GET['editSn']),'','','class="required"' ); ?>

the_input_radio ('actnews_signup_class' , '*'.T_('職稱') , $signup->Get_Column_Value('actnews_signup_class',$_GET['editSn']),'','',true,'class="required"' ); $signup->the_input_text ('Other' , '' , 15 , $signup->Get_Column_Value('Other',$_GET['editSn']) ); ?>

the_input_text ('TEL' , '*'.T_('聯絡電話') , 20 , $signup->Get_Column_Value('TEL',$_GET['editSn']),'','','class="required"' ); ?> ex:03-5555555 or 886-08-8888888

the_input_text ('Mobile' , ' '.T_('行動電話') , 20 , $signup->Get_Column_Value('Mobile',$_GET['editSn']) ); ?>

the_input_text ('FAX' , ' '.T_('傳真') , 20 , $signup->Get_Column_Value('FAX',$_GET['editSn']) ); ?>

the_input_text ('Address' , ' '.T_('地址') , 40 , $signup->Get_Column_Value('Address',$_GET['editSn']) ); ?>

the_input_text ('Email' , '*'.T_('e-mail信箱') , 40 , $signup->Get_Column_Value('Email',$_GET['editSn']),'','','class="required validate-email"' ); ?>

the_input_textarea ('Note' , ' '.T_('備註') , 60 , 5 , $signup->Get_Column_Value('Note',$_GET['editSn']) , '' ) ?>

the_input_text ('Password' , '*'.T_('密碼') , 40 , $signup->Get_Column_Value('Email',$_GET['editSn']),'','','class="required"' ); the_help('QPassword',T_('此密碼為下次投稿上傳檔案時必須輸入的密碼。')); ?>

    Get_Datas( 'ListOrder', "AID='$_GET[Sn]'"); foreach( $wkarrs as $wkarr ) { echo "
  1. ".$wkarr['Question']."
    "; $wkparrs = $wkoption->Get_Datas( 'ListOrder', "MID = '$wkarr[Sn]'" ); foreach( $wkparrs as $wkparr ) { if ($wkarr['workshop_main_class'] == 'S') $type = 'radio'; else $type = 'checkbox'; $is_default = ( count($wkparrs)==1 ) ? ' checked="checked"' : NULL; if ($wkparr['workshop_option_class'] == 'Y') $other = ''; else $other = ''; echo ''.$wkparr['OptionName']; echo $other."
    "; } echo "
  2. "; } ?>

onclick="CheckFunction()?>">

Get_Data( $_GET['USn'] ); ?>

SetCaption( T_('報名填寫資料') ); $table->SetColTH( 1 ); $table->SetRowHeadClass( 1 ); $type = array( 'N' => T_('一般'), 'C' => T_('投稿者') ); $table->AddRow( array ( T_('身份屬性') , $type[$arr['Identity']] ) ); $table->AddRow( array ( T_('姓名') , $arr['Name'] ) ); $table->AddRow( array ( T_('單位') , $arr['Unit'] ) ); if ( $arr['Other'] ) $sother = ":$arr[Other]"; else $sother = ''; $table->AddRow( array ( T_('職稱') , $signup->Get_ClassName( $arr['actnews_signup_class'] ).$sother ) ); $table->AddRow( array ( T_('聯絡電話') , $arr['TEL'] ) ); $table->AddRow( array ( T_('行動電話') , $arr['Mobile'] ) ); $table->AddRow( array ( T_('傳真') , $arr['FAX'] ) ); $table->AddRow( array ( T_('聯絡住址') , $arr['Address'] ) ); $table->AddRow( array ( T_('Email信箱') , $arr['Email'] ) ); $table->AddRow( array ( T_('備註') , nl2br($arr['Note']) ) ); echo $table->toHTML(); ?>
    Get_Datas( 'ListOrder', "AID='$_GET[Sn]'"); foreach( $wkarrs as $wkarr ) { echo "
  1. ".$wkarr['Question']."
    "; $resarrs = $result->Get_Datas( '', "UID = '$arr[Sn]' and ASn = '$arr[ASn]' and QSn = '$wkarr[Sn]'" ); echo '
      '; foreach( $resarrs as $resarr ) { $wkparrs = $wkoption->Get_Data( $resarr['OSn'] ); if ($resarr['Other']) $other = T_('填寫框').':'.$resarr['Other']; else $other = ''; echo '
    • '.$wkparrs['OptionName'].' '.$other.'
    • '; } echo '
    '; echo "
  2. "; } ?>