session_start();
require_once "../../../phpMyAdmin/.mypasslog";
$PHP_SELF="/ced/listliterature.php";
$db=mysql_connect($host,$user,$password);
mysql_select_db('cn_economics',$db);
$pagecol = 10;
$page = ($_GET['page']) ? $_GET['page'] : 1;
if ($page < 0) $page = 1;
$ini=($page-1)*$pagecol;
if ($_GET['orderby']!=null)
{
$order=$_GET['orderby'];
}
if ($_POST['orderby']!=null)
{
$order=$_POST['orderby'];
}
if ($_GET['keyword']!=null)
{
$nk=$_GET['keyword'];
if ($order=="category")
{
$keyword=" and ( category=".$_GET['keyword'].")";
}
else
{
$keyword=" and ( subject like '%".$_GET['keyword']."%' or author like '%".$_GET['keyword']."%' or bookname like '%".$_GET['keyword']."%')";
}
}
else if ($_POST['keyword']!=null)
{
$nk=$_POST['keyword'];
$keyword=" and ( subject like '%".$_POST['keyword']."%' or author like '%".$_POST['keyword']."%' or bookname like '%".$_POST['keyword']."%')";
}
else
{
$keyword="";
$nk="";
}
$pagesum=0;
$counter=1;
if ($order=="year")
{
$seq="";
$order="year desc,month desc";
}
else
{
$seq="asc";
}//End if ($order=="year")
$sql="select id,subject,author,bookname,vol,month,year,pagenum,number from tw_economicessay where (language='1'or'2'or'3') $keyword order by $order $seq limit $ini,$pagecol";
$sqln="select count(*)as num from tw_economicessay where (language='1'or'2'or'3') $keyword";
$result=mysql_query($sql);
$resultn=mysql_query($sqln);
$rown = mysql_fetch_array($resultn);
require_once "functions.inc";
?>
現任國立政治大學國家發展研究所副教授、預測市場研究中心主任。美國約翰霍普金斯大學高級國際研究學院國際事務碩士與博士。於2006年9月至2008年5月擔任中華民國行政院大陸委員會副主任委員,並於2008年獲行政院國家科學委員會優秀年輕學者獎。主要學術專長為中國經濟發展、國際政治經濟、及臺、美、中三邊關係等領域。著有《全球化下的兩岸經濟關係》(2003)、Cross-Strait Economic Relations in the Era of Globalization: China’s Leverage and Taiwan’s Vulnerability(2008)、與《東亞經濟整合與台灣的戰略》(2009)等專書,編著《人民幣匯率:經濟與戰略分析》(2004)。
參考他個人網站:http://www3.nccu.edu.tw/~ctung