Get_PageID(), 'App' => $handler->App_ID, 'Module' => $handler->Module_ID, 'PageNum' => 5 ); isset($_GET['class']) ? '' : $_GET['class'] = null; isset($_GET['key']) ? '' : $_GET['key'] = null; isset($_GET['Sn']) ? '' : $_GET['Sn'] = null; function Display_Table( $h3 , $arrs ) { global $handler; $table = new RSS_Table(); $table->SetCaption( $h3 ); $table->AddRowHead( array( $handler->Config['student_paper_class'], $handler->Config['Title'], $handler->Config['Name'], $handler->Config['Teacher'], $handler->Config['Filename'], $handler->Config['URL'] )); //$table->SetRowHeadWidth( 1 , '120px' ); $table->SetRowHeadWidth( 1, '15%' ); $table->SetRowHeadWidth( 2, '30%' ); $table->SetRowHeadWidth( 3, '10%' ); $table->SetRowHeadWidth( 4, '10%' ); $table->SetRowHeadWidth( 5, '10%' ); $table->SetRowHeadWidth( 6, '10%' ); foreach ( $arrs as $arr ) { if ( $arr['URL'] ) $url = "".GetIcon('url',$handler->Config['URL'],24).""; else $url = ''; $table->AddRow( array( $handler->Get_ClassName($arr['student_paper_class']), "".$arr['Title']."", $arr['Name'], $arr['Teacher'], Make_Filelink( $arr['Filename'] , $handler->App_ID ,$arr['File_Title'], GetIcon('folder',$arr['File_Title'],24) ), $url ) ); } echo $table->toHTML(); } ?>
Get_Data( $_GET['Sn'] ); //Part1 $table = new RSS_Table('vstyled'); $table->SetCaption( T_('論文內容') ); $table->SetColTH( 1 ); $table->SetRowHeadClass( 1 ); $table->AddRow( array ( $handler->Config['student_paper_class'] , $handler->Get_ClassName($arr['student_paper_class']) ) ); $table->AddRow( array ( $handler->Config['SID'] , $arr['SID'] ) ); $table->AddRow( array ( $handler->Config['Name'] , $arr['Name'] ) ); $table->AddRow( array ( $handler->Config['Title'] , $arr['Title'] ) ); $table->AddRow( array ( $handler->Config['Teacher'] , $arr['Teacher'] ) ); $table->AddRow( array ( $handler->Config['GDate'] , substr($arr['GDate'],0,7) ) ); $table->AddRow( array ( T_('附件檔案') , Make_Filelink( $arr['Filename'] , $handler->Upload_Dir ,$arr['File_Title'] ))); $table->AddRow( array ( T_('參考連結') , Wrap_Text_URL( $arr['URL'] , $arr['URL'] , '' , TRUE ) ) ); $table->AddRow( array ( $handler->Config['Summary'] , $arr['Summary'] ) ); $table->AddRow( array ( $handler->Config['Reference'] , nl2br($arr['Reference']) ) ); echo $table->toHTML(); the_goback(); } elseif ( !empty( $_GET['class'] ) and !$_GET['Sn'] ) { $cat = explode( ',' , $_GET['class'] ); if ( count( $cat ) == 1 ) { ////指定 1個 class $_PAGE['PageNum'] = 10 ; //取消分頁 $arrs = $handler->Get_Datas($_GET['class'], $_GET['key']); $h3 = $handler->Get_ClassName($_GET['class']); Display_Table( $h3 , $arrs ); $handler->the_paging( $handler->Count_Datas( $_GET['key'] ) ) ; if ( $handler->Has_AdminPriv() ) echo "Default_Admin?class=$_GET[class]\">".GetIcon( 'module/student_paper',T_('進入管理後台')).T_('進入管理後台')."
"; } else { //多個 $classes = $handler->Get_Class(); foreach( $classes as $k => $v ) { if ( !in_array( $k , $cat ) ) continue; //不顯示 $arrs =$handler->Get_Posts( $k ); Display_Table( $v ,$arrs ); echo ""; } if ( $handler->Has_AdminPriv() ) echo "Default_Admin\">".GetIcon( 'module/student_paper',T_('進入管理後台')).T_('進入管理後台')."
"; } } else { //全部展開 $classes = $handler->Get_Class(); foreach( $classes as $k => $v ) { $arrs =$handler->Get_Datas( $k ); Display_Table( $v ,$arrs ); echo ""; } if ( $handler->Has_AdminPriv() ) echo "Default_Admin\">".GetIcon( 'module/student_paper',T_('進入管理後台')).T_('進入管理後台')."
"; } ?>