|
@include("../include/menu-main.php"); ?>
|
|
| |
|
$System_TableName_Facuty = "kasetsart_system_facuty";
$System_TableName_Department = "kasetsart_system_department";
$System_TableName_Major = "kasetsart_system_major";
$SystemModuleKey = "teacher";
include("../../webengine/mod_member/config.php");
if(count($inputType)==0){
$inputType[0]="1";
}
?>
| ผลการค้นหา : ผลงานของคณาจารย์ |
for($i=0;$i<=6;$i++){
if($inputType[$i]!=""){
$searchfor=$inputType[$i];
?>
if($searchfor=="research" || $searchfor=="all"){
$inputTable="kasetsart_mod_teacher_research";
if($inputSearchKey=="" && $inputTable==""){
$inputTable=$myModule_Table_Member_Research;
$sql="SELECT * FROM ".$inputTable ." ORDER BY ".$inputTable ."_ID ";
}else if($inputTable!=""){
$sql="SELECT * FROM ".$inputTable." inner join kasetsart_mod_teacher on (".$inputTable.".".$inputTable."_TeacherID = kasetsart_mod_teacher.kasetsart_mod_teacher_ID)";
if($inputSearchKey!=""){
$sql.=" WHERE (".$inputTable."_NameTh LIKE '%".$inputSearchKey."%' OR ".$inputTable."_NameEng LIKE '%".$inputSearchKey."%' ";
$sql.=" OR ".$inputTable."_Owner LIKE '%".$inputSearchKey."%' OR kasetsart_mod_teacher_NameEn LIKE '%".$inputSearchKey."%') AND kasetsart_mod_teacher_ID=".$inputTable."_TeacherID";
}
$sql.=" ORDER BY ".$inputTable ."_ID DESC";
}
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("
ไม่สามารถใช้งานระบบได้1 หากคุณเข้าใช้งานเป็นครั้งแรก กรุณาคลิ๊กที่นี่ เพื่อทำการสร้างฐานข้อมูลใหม่\n");
?>
if(mysql_num_rows($Query)>0){
$Count=0;
$index=0;
?>
| |
งานวิจัย
|
| |
ปีที่วิจัย |
|
ชื่องานวิจัย |
|
สถานะ |
|
ผู้วิจัย |
|
while($row=MYSQL_FETCH_ARRAY($Query)){
$Count=$Count+1;
?>
| |
echo $row[$inputTable."_Year"]+543; ?>
|
|
|
|
อยู่ระหว่างวิจัย
|
|
if($row[$inputTable."_Owner"]==''){echo $row[$inputTable."_OwnerEng"];}else {echo $row[$inputTable."_Owner"];}?>
|
|
$index++;
} //-- end while
?>
|
} //-- end numRows > 0
}
if($searchfor=="proceeding" || $searchfor=="all"){
$inputTable="kasetsart_mod_proceeding";
if($inputSearchKey=="" && $inputTable==""){
$inputTable=$myModule_Table_Member_Research;
$sql="SELECT * FROM ".$inputTable ." ORDER BY ".$inputTable ."_ID DESC";
}else if($inputTable!=""){
$sql="SELECT * FROM ".$inputTable." inner join kasetsart_mod_teacher on (".$inputTable.".".$inputTable."_TeacherID = kasetsart_mod_teacher.kasetsart_mod_teacher_ID)";
if($inputSearchKey!=""){
$sql.=" WHERE ( LOWER(".$inputTable."_NameTh) LIKE '%".strtolower($inputSearchKey)."%' OR LOWER(".$inputTable."_NameTh) LIKE '%".strtolower($inputSearchKey)."%' ";
$sql.=" OR LOWER(".$inputTable."_Owner) LIKE '%".$inputSearchKey."%' OR LOWER(".$inputTable."_TopicTh) LIKE '%".$inputSearchKey."%' ";
$sql.=" OR LOWER(".$inputTable."_TopicEng) LIKE '%".$inputSearchKey."%' OR LOWER(kasetsart_mod_teacher_NameEn) LIKE '%".$inputSearchKey."%') AND kasetsart_mod_teacher_ID=".$inputTable."_TeacherID";
}
$sql.=" ORDER BY ".$inputTable ."_ID DESC";
}
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("
ไม่สามารถใช้งานระบบได2้ หากคุณเข้าใช้งานเป็นครั้งแรก กรุณาคลิ๊กที่นี่ เพื่อทำการสร้างฐานข้อมูลใหม่\n");
?>
if(mysql_num_rows($Query)>0){
$Count=0;
$index=0;
?>
| |
ผลงานตีพิมพ์:
ผลงานตีพิมพ์ในการประชุมวิชาการ |
| |
ปีที่พิมพ์ |
|
ชื่อผลงาน |
|
สถานที่จัด |
|
ชื่อผู้เขียน |
|
while($row=MYSQL_FETCH_ARRAY($Query)){
$Count=$Count+1;
if($row[$inputTable."_DateFrom"]!=""){ $Years=explode("-",$row[$inputTable."_DateFrom"]);}
?>
| |
-
|
|
|
|
|
|
if($row[$inputTable."_Owner"]==''){echo $row[$inputTable."_OwnerEng"];}else {echo $row[$inputTable."_Owner"];}?>
|
|
$index++;
} //-- end while
?>
|
} //-- end numRows > 0
}
if($searchfor=="presentation" || $searchfor=="all"){
$inputTable="kasetsart_mod_presentation";
if($inputSearchKey=="" && $inputTable==""){
$inputTable=$myModule_Table_Member_Research;
$sql="SELECT * FROM ".$inputTable ." ORDER BY ".$inputTable ."_ID DESC";
}else if($inputTable!=""){
$sql="SELECT * FROM ".$inputTable." inner join kasetsart_mod_teacher on (".$inputTable.".".$inputTable."_TeacherID = kasetsart_mod_teacher.kasetsart_mod_teacher_ID)";
if($inputSearchKey!=""){
$sql.=" WHERE (LOWER(".$inputTable."_NameTh) LIKE '%".$inputSearchKey."%' OR LOWER(".$inputTable."_NameEng) LIKE '%".$inputSearchKey."%' ";
$sql.=" OR LOWER(".$inputTable."_Owner) LIKE '%".$inputSearchKey."%' OR LOWER(".$inputTable."_TopicTh) LIKE '%".$inputSearchKey."%' OR LOWER(".$inputTable."_TopicEn) LIKE '%".$inputSearchKey."%' OR LOWER(kasetsart_mod_teacher_NameEn) LIKE '%".$inputSearchKey."%') AND kasetsart_mod_teacher_ID=".$inputTable."_TeacherID";
}
$sql.=" ORDER BY ".$inputTable ."_ID DESC";
}
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("
ไม่สามารถใช้งานระบบได้3 หากคุณเข้าใช้งานเป็นครั้งแรก กรุณาคลิ๊กที่นี่ เพื่อทำการสร้างฐานข้อมูลใหม่\n");
?>
if(mysql_num_rows($Query)>0){
$Count=0;
$index=0;
?>
| |
ผลงานวิชาการ: การนำเสนอผลงานวิชาการ |
| |
ปีที่นำเสนอ |
|
ชื่อผลงาน |
|
ชื่อการประชุม |
|
ชื่อผู้นำเสนอ |
|
while($row=MYSQL_FETCH_ARRAY($Query)){
$Count=$Count+1;
if($row[$inputTable."_DateFrom"]!=""){ $Years=explode("-",$row[$inputTable."_DateFrom"]);}
?>
| |
-
|
|
|
|
|
|
if($row[$inputTable."_Owner"]==''){echo $row[$inputTable."_OwnerEng"];}else {echo $row[$inputTable."_Owner"];}?>
|
|
$index++;
} //-- end while
?>
|
} //-- end numRows > 0
}
if($searchfor=="journal" || $searchfor=="all"){
$inputTable="kasetsart_mod_journal";
if($inputSearchKey=="" && $inputTable==""){
$inputTable=$myModule_Table_Member_Research;
$sql="SELECT * FROM ".$inputTable ." ORDER BY ".$inputTable ."_ID DESC";
}else if($inputTable!=""){
$sql="SELECT * FROM ".$inputTable." inner join kasetsart_mod_teacher on (".$inputTable.".".$inputTable."_TeacherID = kasetsart_mod_teacher.kasetsart_mod_teacher_ID)";
if($inputSearchKey!=""){
$sql.=" WHERE (LOWER(".$inputTable."_NameTh) LIKE '%".$inputSearchKey."%' OR LOWER(".$inputTable."_NameEng) LIKE '%".$inputSearchKey."%' ";
$sql.=" OR LOWER(".$inputTable."_Owner) LIKE '%".$inputSearchKey."%' OR LOWER(".$inputTable."_Press) LIKE '%".$inputSearchKey."%' OR LOWER(kasetsart_mod_teacher_NameEn) LIKE '%".$inputSearchKey."%') AND kasetsart_mod_teacher_ID=".$inputTable."_TeacherID";
}
$sql.=" ORDER BY ".$inputTable ."_ID DESC";
}
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("
ไม่สามารถใช้งานระบบได้4 ".$sql);
if(mysql_num_rows($Query)>0){
$Count=0;
$index=0;
?>
| |
ผลงานตีพิมพ์:
บทความวิชาการ |
| |
ปีที่ตีพิมพ์ |
|
ชื่อบทความวิชาการ |
|
ชื่อวารสาร |
|
ชื่อผู้เขียน |
|
while($row=MYSQL_FETCH_ARRAY($Query)){
$Count=$Count+1;
?>
| |
echo $row[$inputTable."_Year"]+543; ?>
|
|
|
|
|
|
if($row[$inputTable."_Owner"]==''){echo $row[$inputTable."_OwnerEng"];}else {echo $row[$inputTable."_Owner"];}?>
|
|
$index++;
} //-- end while
?>
|
} //-- end numRows > 0
}
if($searchfor=="book" || $searchfor=="all"){
$inputTable="kasetsart_mod_book";
if($inputSearchKey=="" && $inputTable==""){
$inputTable=$myModule_Table_Member_Research;
$sql="SELECT * FROM ".$inputTable ." ORDER BY ".$inputTable ."_ID DESC";
}else if($inputTable!=""){
$sql="SELECT * FROM ".$inputTable." inner join kasetsart_mod_teacher on (".$inputTable.".".$inputTable."_TeacherID = kasetsart_mod_teacher.kasetsart_mod_teacher_ID)";
if($inputSearchKey!=""){
$sql.=" WHERE (LOWER(".$inputTable."_NameTh) LIKE '%".strtolower($inputSearchKey)."%' OR LOWER(".$inputTable."_NameEng) LIKE '%".strtolower($inputSearchKey)."%' ";
$sql.=" OR LOWER(".$inputTable."_Owner) LIKE '%".strtolower($inputSearchKey)."%' OR LOWER(".$inputTable."_Type) LIKE '%".strtolower($inputSearchKey)."%' OR LOWER(kasetsart_mod_teacher_NameEn) LIKE '%".strtolower($inputSearchKey)."%') AND kasetsart_mod_teacher_ID=".$inputTable."_TeacherID";
}
$sql.=" ORDER BY ".$inputTable ."_ID DESC";
}
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("
ไม่สามารถใช้งานระบบได้5 หากคุณเข้าใช้งานเป็นครั้งแรก กรุณาคลิ๊กที่นี่ เพื่อทำการสร้างฐานข้อมูลใหม่\n");
?>
if(mysql_num_rows($Query)>0){
$Count=0;
$index=0;
?>
| |
ผลงานวิชาการ: หนังสือ |
| |
ปีที่เขียน |
|
ชื่อหนังสือ |
|
ประเภท |
|
ชื่อผู้เขียน |
|
while($row=MYSQL_FETCH_ARRAY($Query)){
$Count=$Count+1;
?>
| |
echo $row[$inputTable."_Year"]+543; ?>
|
|
|
|
-
|
|
if($row[$inputTable."_Owner"]==''){echo $row[$inputTable."_OwnerEng"];}else {echo $row[$inputTable."_Owner"];}?>
|
|
$index++;
} //-- end while
?>
|
} //-- end numRows > 0
}
if($searchfor=="working" || $searchfor=="all"){
$inputTable="kasetsart_mod_working";
if($inputSearchKey=="" && $inputTable==""){
$inputTable=$myModule_Table_Member_Research;
$sql="SELECT * FROM ".$inputTable ." ORDER BY ".$inputTable ."_ID DESC";
}else if($inputTable!=""){
$sql="SELECT * FROM ".$inputTable." inner join kasetsart_mod_teacher on (".$inputTable.".".$inputTable."_TeacherID = kasetsart_mod_teacher.kasetsart_mod_teacher_ID)";
if($inputSearchKey!=""){
$sql.=" WHERE (LOWER(".$inputTable."_NameTh) LIKE '%".$inputSearchKey."%' OR LOWER(".$inputTable."_NameEng) LIKE '%".$inputSearchKey."%' ";
$sql.=" OR LOWER(".$inputTable."_Owner) LIKE '%".$inputSearchKey."%' OR LOWER(".$inputTable."_Abstact) LIKE '%".$inputSearchKey."%' OR LOWER(kasetsart_mod_teacher_NameEn) LIKE '%".$inputSearchKey."%') AND kasetsart_mod_teacher_ID=".$inputTable."_TeacherID";
}
$sql.=" ORDER BY ".$inputTable ."_ID DESC";
}
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("
ไม่สามารถใช้งานระบบได้6 หากคุณเข้าใช้งานเป็นครั้งแรก กรุณาคลิ๊กที่นี่ เพื่อทำการสร้างฐานข้อมูลใหม่\n");
?>
if(mysql_num_rows($Query)>0){
$Count=0;
$index=0;
?>
| |
ผลงานวิชาการ |
| |
ปีที่เขียน |
|
ชื่อ |
|
ชื่อผู้เขียน |
|
while($row=MYSQL_FETCH_ARRAY($Query)){
$Count=$Count+1;
?>
| |
echo $row[$inputTable."_Year"]+543; ?>
|
|
|
|
if($row[$inputTable."_Owner"]==''){echo $row[$inputTable."_OwnerEng"];}else {echo $row[$inputTable."_Owner"];}?>
|
|
$index++;
} //-- end while
?>
|
} //-- end numRows > 0
}
?>
}
}
?>
|