教師事務
助理事務
學生事務
招生資訊
其他
其他
其他
首頁 > 系所公告 > 活動剪影
活動剪影
= $max_number_of_lines) break; $sort_array[1000 + $normal_count] = $row['ID']; // $row['date']; $item_count++; } $normal_count++; } // sorting arsort($sort_array); // output foreach ($sort_array as $key => $val) { // normal if (intval($key / 1000) == 1) { mysqli_data_seek($normal_result, $key % 1000); $row = mysqli_fetch_array($normal_result); } // with period else { mysqli_data_seek($period_result, $key % 1000); $row = mysqli_fetch_array($period_result); } $printEven = ($even) ? 'even' : 'odd'; print(''); $item_count++; $even = !$even; } /*$item_count = 0; while( ($row = mysql_fetch_array($data_array)) && $item_count < 5 ) { if( $row['title'] != '' ) { print( '' ); $item_count++; } }*/ mysqli_free_result($period_result); mysqli_free_result($normal_result); ?>
'); if (($current_time - $row['date']) < 604800) print('' . date('%d/%m/%Y', $row['date']) . ''); else print(date('%d/%m/%Y', $row['date'])); print('
' ); if( ($current_time - $row['date']) < 604800 ) print('' . strftime('%d/%m/%Y', $row['date']) . '' ); else if ($row['ChangeColor'] == 1) print('' . strftime('%d/%m/%Y', $row['date']) . '' ); else print( strftime('%d/%m/%Y', $row['date']) ); print( '' ); if( $row['link'] == '' ) print( "" . $row['title'] . "  " ); else { if($row['newwin'] == 1) print("" . $row['title'] . "  "); else print("" . $row['title'] . "  "); } print( '