0) { $msg .="
  • รหัสครุภัณฑ์ มีรหัส $Acc_code ในฐานข้อมูลแล้ว"; $button =""; $Flag = false; } ///////////////////// check name if ($Acc_code =="") { $msg .="
  • กรุณากรอก รหัสอุปกรณ์"; $button =""; $Flag = false; } ///////// check period time long or short if ($Acc_name =="") { $msg .="
  • กรุณากรอก ชื่ออุปรณ์"; $button =""; $Flag = false; } /////////////////// type if ($Acc_type_code =="") { $msg .="
  • กรุณากรอก ชนิดชื่ออุปรณ์"; $button =""; $Flag = false; } /////////////////// Store if ($Store =="") { $msg .="
  • กรุณากรอก ที่จัดเก็บ"; $button =""; $Flag = false; } ///////// check period time long or short if ($Status =="") { $msg .="
  • กรุณากรอก สถานะอุปรณ์"; $button =""; $Flag = false; } ///////////////////////// Check Address ///////////////////////////// if( $Flag) { $Path = "../Acc_pic"; if ( isset($Img1)) if (copy($Img1,"$Path/$Img1_name")) { unlink ($Img1); $Img1 = "$Path/$Img1_name"; } else echo"Can't Copy"; InsertAcc($Acc_code,$Acc_name,$Faculty_code,$Acc_type_code,$Store,$Img1,$Fix_History,$Contact, $Date_buy,$Price,$Fix_budget,$Status,$Statistic,$Description); $msg.="
  • ระบบจัดเก็บข้อมูลเรียบร้อยแล้ว"; echo"\n"; } CloseDB(); ?> Inserting Accesores

    ::ฟอร์มการเพิ่มข้อมูลครุภัณฑ์::
    ระบบแจ้งการทำงาน


    \n"; echo"Please Login "; } ?>