Studioclassroom > Editor's Summary"; ?> alert('今天無課程');window.location='default.php';"; } if($_GET[fbclass]=="view"){ $sql_str="INSERT INTO analysis set parm='fbclass', mag='sc', add_date='".date("Y-m-d")."' "; mysql_query($sql_str); } if($_GET[googleclass]=="view"){ $sql_str="INSERT INTO analysis set parm='googleclass', mag='sc', add_date='".date("Y-m-d")."' "; mysql_query($sql_str2); } if($_GET['testdate'] == "") { if($_GET['current_month'] == "") { $current_month = date('Y-m-01'); } else { $current_month = $_GET['current_month']; } } else { $current_month = $_GET['testdate']; } if (!isset($_GET['article_id'])) { header("location:/sc"); } else { $article_id = trim($_GET['article_id']); }; if (substr($article_id,3,1)=='d') { $a_no=substr($article_id,4,2); } else { $a_no=substr($article_id,3,2); } $file_prefix = "http://203.69.69.81/studio/SC" . substr($current_month,2,2) . substr($current_month,5,2) . "_" . $a_no; $tt_row = mysql_fetch_array($tt_result,MYSQL_ASSOC); if ($current_month != "") { $monthname = MonthChange($current_month); } // Obtain all information for article listing $article_query = "select article_id,date_range,title_eng from article where magazine='S' and is_published='Y' and volume='$current_month' order by article_id"; $article_result = mysql_query($article_query); //echo $article_query; while ($article_row = mysql_fetch_array($article_result,MYSQL_ASSOC)) { $article[$article_row['article_id']]['date_range'] = $article_row['date_range']; $article[$article_row['article_id']]['title_eng'] = $article_row['title_eng']; }; ?>