<?php include_once("config/dbconfig.inc.php"); include_once("class/acpram.inc.php"); $std_code = $_POST['std_code']; $std_name = $_POST['std_name']; $std_project = $_POST['std_project']; $dayin = $_POST['dayin']; $monthin = $_POST['monthin']; $yearin = $_POST['yearin']; $topics = $_POST['topics']; $std_model = $_POST['std_model']; $std_grp = $_POST['std_grp']; $std_sub_grp = $_POST['std_sup_grp']; $std_no = $_POST['std_no']; $cur_address = $_POST['std_address']; $std_tel = $_POST['std_tel']; $std_mail = $_POST['std_mail']; $main_story = $_POST['main_story']; $tn = new myACP(); $tn->dbConnect ($dbhost, $dbuser, $dbpassword, $dbdatabase) ; if($std_code && $std_name){ $tn->add_kamroang($std_project , $dayin , $monthin , $yearin , $topics , $std_code , $std_name , $std_model , $std_grp , $std_sub_grp , $std_no , $cur_address, $std_tel, $std_mail, $main_story); ?> <?php $tn = new myACP(); $tn->dbConnect ($dbhost, $dbuser, $dbpassword, $dbdatabase) ; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>confirm registrator</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="mycss.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- body { margin-top: 0px; margin-bottom: 0px; background-color: #f3f3f3; } a:link { color: #000000; text-decoration: none; } a:visited { text-decoration: none; color: #000000; } a:hover { text-decoration: none; color: #000000; } a:active { text-decoration: none; color: #000000; } .style84 {font-family: "Microsoft Sans Serif"; font-size: 13px; font-weight: bold; } .style89 { color: #FFFFFF; font-family: "Microsoft Sans Serif"; font-size: 13px; } --> </style> <style type="text/css"> <!-- .style150 {color: #FFFFFF} .style153 {font-family: "Microsoft Sans Serif"} .style154 {font-size: 13px} a:link { color: #000000; text-decoration: none; } a:visited { text-decoration: none; color: #000000; } a:hover { text-decoration: none; color: #000000; } a:active { text-decoration: none; color: #000000; } body { margin-top: 0px; margin-bottom: 0px; } .style55 {color: #000000} --> </style> <link href="LinkMyCss.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- .style163 {color: #FF0000} .style164 {color: #0000FF} --> </style> </head> <body> <table width="860" height="620" border="0" align="center" cellpadding="0" cellspacing="0" background="images/head.jpg"> <tr> <td height="227"><img src="images/index_01.jpg" width="860" height="227"></td> </tr> <tr> <td height="340" valign="top" background="images/index_02.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="5%"> </td> <td width="10%"> </td> <td width="80%"> </td> <td width="5%"> </td> </tr> <tr> <td height="318"> </td> <td valign="top"> </td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="13%"> </td> <td width="74%"> </td> <td width="13%"> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><div align="center" class="style154 style153 style163"><strong>ทางโครงการฯได้รับข้อมูลจาก <?php $tn->show_kmnews($std_code); $tn->getrows(); ?> <?=$tn->result["std_name"]?> แล้ว <br> ขอบคุณที่ใช้บริการ</strong></div></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><div align="center" class="style154 style153 style164"><strong>กรุณาสั่งพิมพ์คำร้องของท่านต่อไป โดยคลิกที่รูปปริ้นเตอร์ </strong></div></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><div align="center"><font color="#000000"><a href="doc_comment_print_std.php?mycard=<?=$tn->result["doc_id"]?>" target="_blank"><img src="icons/print.gif" width="40" height="40" border="0"></a></font></div></td> <td> </td> </tr> <tr> <td> </td> <td><div align="center" class="style154 style153 style164"></div></td> <td> </td> </tr> </table></td> <td> </td> </tr> </table></td> </tr> <tr> <td height="53" valign="top"><img src="images/index_03.jpg" width="860" height="53"></td> </tr> </table> </body> </html> <?php } else{ echo "<BR><BR><BR><BR>"; echo "<center><h2>ข้อมูลไม่ถูกต้อง กรุณาลองใหม่อีกครั้ง</h2></center>"; exit; } ?>