Viewing file: InsertActivity.php (3.5 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("../../include/FunctionDB.php"); ConnectDB(); $Flag = true; $Activity_name = htmlspecialchars(trim($_POST[Activity_name])); $Period = htmlspecialchars(trim($_POST[Period])); $Target = htmlspecialchars(trim($_POST[Target])); $Objective = htmlspecialchars(trim($_POST[Objective])); $Result_oper = $_POST[Result_oper]; $Dif_result = $_POST[Budget] - $_POST[Budget_use]; ///////////////////// check name if ($Activity_name =="") { $msg .="<li>กรุณากรอกชื่อ กิจกกรม/โครงการ "; $button ="<input type=\"button\" value=\"Back to Edit\" onclick=\"history.back();\" style=\"font-weight:bold;color:#FFF;background-color:#036;border-style:outset;border-color:#69F;font-family:Tohoma;\">"; $Flag = false; } /////////////////// if ($Activity_type =="") { $msg .="<li>กรุณาเลือก ชนิด กิจกกรม/โครงการ"; $button ="<input type=\"button\" value=\"Back to Edit\" onclick=\"history.back();\" style=\"font-weight:bold;color:#FFF;background-color:#036;border-style:outset;border-color:#69F;font-family:Tohoma;\">"; $Flag = false; }
///////////////////////// Check Status to Insert Data ///////////////////////////// if( $Flag) { //Activity_name Activity_type Perform Activity Period Fund Budget_use Dif_result Source Target Amount Supervisor Duty Objective Index_mature Spec Affect_class Asses Result_oper InsertActivity($Activity_name,$Activity_type,$Perform,$Activity,$Period,$Budget,$Budget_use,$Dif_result,$Source,$Target,$Amount,$Supervisor,$Duty,$Objective,$Index_mature,$Affect_class,$Ec41_1,$Ec41_2 ,$Ec41_3,$Ec41_4,$Ec41_5,$Ec41_6,$Ec41_7,$Ec41_8,$Ec41_9,$Ec41_10,$Ec41_11,$Ec42_1,$Ec42_2,$Ec42_3,$Ec42_4,$Ec42_5,$Ec42_6,$Ec42_7,$Ec42_8,$Ec42_9,$Ec42_10,$Ec42_11,$Ec42_12,$Ec42_13,$Ec42_14,$Ec42_15,$Ec43_1,$Ec43_2,$Ec43_3,$Ec43_4,$Ec43_5,$Ec43_6,$Ec43_7,$Ec43_8,$Ec43_9,$Ec43_10,$Ec44_1,$Ec44_2,$Ec44_3,$Ec44_4,$Ec44_5,$Ec44_6,$Ec44_7,$Ec44_8,$Ec44_9,$Ec44_10,$Ec44_11,$Ec44_12,$Ec44_13,$Ec44_14,$Ec44_15,$Result_oper); // InsertEs($code,$Ec41_1,$Ec41_2 ,$Ec41_3,$Ec41_4,$Ec41_5,$Ec41_6,$Ec41_7,$Ec41_8,$Ec41_9,$Ec41_10,$Ec41_11); $msg.="<li>ระบบจัดเก็บข้อมูลของท่านเรียบร้อยแล้ว"; echo"<meta http-equiv=\"refresh\" content=\"1;URL=ActivityList.php\">\n"; } CloseDB(); ?> <html> <head> <title>Student Activity Detail</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <link rel="stylesheet" href="../../css/style1.css" type="text/css"> </head> <body bgcolor="#F4F1FE"> <form> <br> <table width="57%" border="0" cellspacing="0"cellpadding="2"align="center"> <tr> <td><div align="center"><span><b><font color="#003366" size="4" face="Tahoma">::แบบฟอร์มการโครงการ/กิจกรรมนักศึกษา::</font></b></span></div></td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="1"cellpadding="0"align="center"bordercolor="#0B62D9" class="table"> <tr> <td bgcolor="#CCCCFF"> <div align="center"><b><font color="#003399" size="4" face="Tahoma">ระบบแจ้ง</font></b></div></td> </tr> <tr> <td bgcolor="#000000"> <table width="90%" border="0" cellspacing="0"cellpadding="2"align="center"> <tr> <td><font color="#FFFFFF"><strong><span><font size="4" face="Tahoma"><?php echo $msg;?></font></span></strong></font></td> </tr> </table></td> </tr> <tr> <td bgcolor="#CCCCFF"> <div align="center"><b><font color="#CCFF00"><?php echo $button;?></font></b></div></td> </tr> </table> </td> </tr> </table> <br> <br> </form> </body> </html>
|