ของหน่วยงานปล่อยว่างไว้"; echo ""; //.col-sm echo ""; //.form-group row echo "
"; echo ""; echo "
"; echo ""; echo "
"; //.col-sm echo "
"; //.form-group row echo "
"; echo ""; echo "
"; echo ""; echo "
"; //.col-sm echo "
"; //.form-group row echo "
"; echo ""; echo "
"; echo ""; echo "
"; //.col-sm echo "
"; //.form-group row echo "
"; echo ""; echo "
"; echo ""; echo "
"; //.col-sm echo "
"; //.form-group row echo "
"; echo ""; echo "
"; echo ""; if($rs[refer_file] != ''){ echo "
".$rs[refer_file]; //echo ""; } echo "
"; //.col-sm echo "
"; //.form-group row echo "
"; echo ""; echo "
"; echo ""; echo "
"; //.col-sm echo "
"; //.form-group row echo "
"; echo ""; echo "
"; echo ""; echo "
"; //.col-sm echo "
"; //.form-group row echo ""; // echo ""; echo ""; echo ""; // break; case 'update': $basename = basename($_FILES['refer_file']['name']); if ($basename!=""){ $fileName = file_upload(); $sql = "UPDATE best SET year='$_POST[year]', name='$_POST[name]', schoolcode='$_POST[schoolcode]', subject='$_POST[subject]', guarantee='$_POST[guarantee]', level='$_POST[level]', refer_file='$fileName', refer_link='$_POST[refer_link]', detail='$_POST[detail]' WHERE id='$id' "; }else{ $sql = "UPDATE best SET year='$_POST[year]', name='$_POST[name]', schoolcode='$_POST[schoolcode]', subject='$_POST[subject]', guarantee='$_POST[guarantee]', level='$_POST[level]', refer_link='$_POST[refer_link]', detail='$_POST[detail]' WHERE id='$id' "; } $dbquery = mysqli_query($connect,$sql); echo "
"; echo ""; break; case 'del': $db=mysqli_query($connect, "DELETE FROM best WHERE id='$id' "); echo "
"; echo ""; break; default: // .$sch No blank // // echo "
"; echo "
"; echo "
"; echo "
"; echo ""; echo ""; echo "
"; // echo "
"; // echo "
"; echo ""; echo ""; echo ""; $query=mysqli_query($connect, "SELECT * FROM best order by year"); while($rs=mysqli_fetch_array($query)){ $id=$rs[id]; $school_Code=$rs[schoolcode]; if($school_Code==$system_office_code){ $officeName=$_s_name; }else{ $officeName=$schoolName[$school_Code]; } echo ""; echo ""; } echo ""; if($rs[guarantee]==''){ echo""; }else{ echo ""; } echo ""; // echo ""; echo "
ปีเจ้าของผลงาน
หน่วยงาน
เรื่อง/หัวข้อ ระดับของผลงานดูข้อมูล
$rs[year]"; if($rs[name]!=''){ echo $rs[name]."
(".$officeName.")"; }else{ echo $officeName."
$rs[subject]$rs[level]$rs[level]
($rs[guarantee])
"; // .for Admin if($_SESSION['admin_bigdata']=='bigdata'){ echo "  "; echo "  "; } echo "
"; echo ""; echo "
"; // echo "
"; break; } echo ""; // echo ""; // include("index.f.php"); ?>