<?php include_once("function/funcdate.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>New Register</title> <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; } .style140 { font-family: AngsanaUPC; font-size: 20px; font-weight: bold; color: #0000FF; } .style141 {color: #666600} --> </style> <link href="mycss.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- .style149 { color: #003300; font-family: "Microsoft Sans Serif"; font-size: 13px; font-weight: bold; } .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; } .style157 {font-size: 13px; font-weight: bold; font-family: "Microsoft Sans Serif";} .style159 { font-size: 13px; color: #0000FF; font-family: "Microsoft Sans Serif"; font-weight: bold; } body { margin-top: 0px; margin-bottom: 0px; } .style55 {color: #000000} .style160 {color: #003300} --> </style> <script language="JavaScript"> function check_number(ch){ var len, digit; if(ch == " "){ return false; len=0; }else{ len = ch.length; } for(var i=0 ; i<len ; i++) { digit = ch.charAt(i) if(digit >="0" && digit <="9"){ ; }else{ return false; } } return true; } </script> <script language="JavaScript"> <!-- Begin function CheckData(){ missinginfo = ""; if(document.cfrm.dayin.value == ""){ missinginfo += "\n - Please Select Day"; } if(document.cfrm.monthin.value == ""){ missinginfo += "\n - Please Select Month"; } if(document.cfrm.yearin.value == ""){ missinginfo += "\n - Please Select Year"; } if(document.cfrm.topics.value == ""){ missinginfo += "\n - Please Entry Topics"; } if(document.cfrm.std_name.value == ""){ missinginfo += "\n - Please Entry Full-Name"; } if(document.cfrm.std_code.value == ""){ missinginfo += "\n - Please Entry Your Code"; } if(document.cfrm.std_model.value == ""){ missinginfo += "\n - Please Entry Section"; } if(document.cfrm.std_grp.value == ""){ missinginfo += "\n - Please Entry Your Group"; } if(document.cfrm.std_no.value == ""){ missinginfo += "\n - Please Entry List No"; } if(document.cfrm.std_sub_grp.value == ""){ missinginfo += "\n - Please Entry Your Subject Group"; } if(document.cfrm.cur_address.value == ""){ missinginfo += "\n - Please Entry Your Current Address"; } if(document.cfrm.main_story.value == ""){ missinginfo += "\n - Please Entry Your Main Story"; } if(missinginfo != "") { missinginfo ="_____________________________\n" + "ท่านกรอกข้อมูลไม่ถูกต้องในช่องต่อไปนี้ :\n" + missinginfo + "\n_____________________________" + "\nกรุณากลับไปกรอกอีกครั้ง "; alert(missinginfo); return false; } if(!check_number(document.cfrm.yearin.value) || document.cfrm.yearin.value == "" ) { alert('Please Enter Number In Age Box'); return false; }else{return true;} } // End --> </script> <link href="LinkMyCss.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- .style162 { color: #E8E8E8; font-weight: bold; } .style176 {color: #FF0000} --> </style> </head> <body> <?php $resultEvent=show_dmy(); While( $row= mysql_fetch_array($resultEvent) ) { $dateDD = $row['DD']; $dateMM = $row['MM']; $dateYYYY = $row['YYYY']; } ?> <table width="860" height="831" border="0" align="center" cellpadding="0" cellspacing="0" background="images/head.jpg"> <tr> <td height="227"><div align="center"><img src="images/ad123.jpg" width="860" height="227"></div></td> </tr> <tr> <td height="551" valign="top" background="images/index_02.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="5%"> </td> <td width="5%"> </td> <td width="85%"> </td> <td width="5%"> </td> </tr> <tr> <td height="967"> </td> <td valign="top"><div align="left"></div> <div align="center"> </div></td> <td valign="top"> <form action="_save_kmnews.php" method="post" enctype="multipart/form-data" name="cfrm" onSubmit="return CheckData();"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="2%"> </td> <td width="96%"> </td> <td width="2%"> </td> </tr> <tr> <td> </td> <td><div align="center" class="style140 style159"><u>ใบคำร้องทั่วไป</u></div></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><div align="center" class="myfont style160"><strong>โครงการบริหารธุรกิจมหาบัณฑิต<br> M.B.A. for Advance Programr </strong></div></td> <td> </td> </tr> <tr> <td> </td> <td><input name="std_project" type="hidden" class="style84" id="std_project" value="" ></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><span class="style84 style149"> กรุณากรอกข้อมูลให้ครบทุกช่อง</span></td> <td> </td> </tr> <tr> <td> </td> <td><table width="100%" border=0 align="center" cellpadding="0" cellspacing="0" class="mytable"> <tr> <td height="761"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"> </td> <td width="20%"> </td> <td width="9%"> </td> <td width="8%"> </td> <td width="16%"> </td> <td width="5%"> </td> <td width="12%"> </td> </tr> <tr> <td width="11%"> </td> <td width="19%"> </td> <td><div align="center"><span class="myfont style160"><strong>วั</strong><strong>นที่</strong></span></div></td> <td><span class="myfont style160"><strong><input name="dayin" id="dayin" value="<?=$dateDD?>" size="2" maxlength="2" readonly/> </strong></span></td> <td><div align="center" class="myfont style160"><strong>เดือน</strong></div></td> <td><span class="myfont style160"><strong> <?php if($dateMM =="01") { $MMname = "มกราคม"; }else if($dateMM == "02"){ $MMname = "กุมภาพันธ์"; }else if($dateMM == "03"){ $MMname = "มีนาคม"; }else if($dateMM == "04"){ $MMname = "เมษายน"; }else if($dateMM == "05"){ $MMname = "พฤษภาคม"; }else if($dateMM == "06"){ $MMname = "มิถุนายน"; }else if($dateMM == "07"){ $MMname = "กรกฎาคม"; }else if($dateMM == "08"){ $MMname = "สิงหาคม"; }else if($dateMM == "09"){ $MMname = "กันยายน"; }else if($dateMM == "10"){ $MMname = "ตุลาคม"; }else if($dateMM == "11"){ $MMname = "พฤศจิกายน"; }else if($dateMM == "12"){ $MMname = "ธันวาคม"; } ?> <input name="monthin" id="monthin" maxlength="25" size="20" value="<?=$MMname?>" readonly /> </strong></span></td> <td><div align="center" class="myfont style160"><strong>พ.ศ.</strong></div></td> <td><span class="myfont style160"><strong> <input name="yearin" size="5" id="yearin" maxlength="5" value="<?=$dateYYYY?>" readonly/> </strong></span></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr bgcolor="#EEEEEE"> <td height="47"><div align="center" class="myfont style160"><strong>เรื่อง</strong></div></td> <td colspan="5" bgcolor="#EEEEEE"><input name="topics" type="text" class="style157" id="topics" size="40" maxlength="40" width="120"></td> <td> </td> <td> </td> </tr> <tr bgcolor="#EEEEEE"> <td height="22"><div align="center" class="myfont style160"><strong>เรียน</strong></div></td> <td><span class="style154 style153 style141 style84 style160"><strong>ประธานโครงการฯ</strong></span></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr bgcolor="#eeeeee"> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td colspan="8"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#eeeeee"> <tr> <td width="32%" height="19"> </td> <td width="2%" height="19"> </td> <td width="54%" height="19"> </td> <td width="12%" height="19"> </td> </tr> <tr> <td height="30"><div align="right" class="myfont style160"><strong>ข้าพเจ้า :</strong></div></td> <td height="30"> </td> <td height="30"><input name="std_name" type="text" class="myfont" id="std_name" width="70" vspace="13" ></td> <td height="30"> </td> </tr> <tr> <td height="30"><div align="right" class="myfont style160"><strong>รหัสประจำตัว<span class="style84 style141"> :</span></strong></div></td> <td height="30"> </td> <td height="30"> <div align="left"> <input name="std_code" type="text" class="myfont" id="std_code" width="70"> </div></td> <td height="30"> </td> </tr> <tr> <td height="30"><div align="right" class="myfont style160"><strong>นักศึกษารุ่น<span class="style84 style141"> : </span></strong></div></td> <td height="30"> </td> <td height="30"><span class="style84 style141"> <select name="std_model" size="1" id="std_model"> <option selected="selected">-</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> </select> </span></td> <td height="30"> </td> </tr> <tr> <td height="30"><div align="right" class="myfont style160"><strong>กลุ่มที่<span class="style84 style141"> :</span></strong></div></td> <td height="30"> </td> <td height="30"><span class="style84 style141"> <select name="std_grp" id="std_grp"> <option selected="selected">-</option> <option value="1">1</option> <option value="2">2</option> t="30"> </td> </tr> <tr> <td height="30"><div align="right" class="myfont style160"><strong>สาขาวิชา<span class="style84 style141"> : </span></strong></div></td> <td height="30"> </td> <td height="30"><span class="style84 style141"> <input name="std_sub_grp" type="text" class="myfont" id="std_sub_grp" width="70"> <font color="red">ตย. การตลาด , บริหารทั่วไป</font></span></td> <td height="30"> </td> </tr> <tr> <td height="30" valign="top"><div align="right" class="myfont style160"><strong>ที่อยู่ปัจจุบัน<span class="style84 style141"> :</span></strong></div></td> <td height="30"> </td> <td height="30"><textarea name="cur_address" cols="21" rows="5" class="myfont" id="cur_address"></textarea></td> <td height="30"> </td> </tr> <tr> <td height="30"><div align="right"><span class="myfont style160"><strong>เบอร์โทรศัพท์<span class="style84 style141"> :</span></strong></span></div></td> <td height="30"> </td> <td height="30"><input name="std_tel" type="text" class="myfont" id="std_tel"> <span class="style162">-</span><strong><span class="style84 style141 style153 style154 style160">( <span class="style176">ที่สามารถติดต่อได้ </span>)</span></strong></td> <td height="30"> </td> </tr> <tr> <td height="30"><div align="right"><span class="myfont style160"><strong>e-Mail<span class="style84 style141"> :</span></strong></span></div></td> <td height="30"> </td> <td height="30"><input name="std_mail" type="text" class="myfont" id="std_mail"> <span class="style162">-</span><strong><span class="style84 style141 style153 style154 style160">( <span class="style176">ที่สามารถติดต่อได้ </span>)</span></strong></td> <td height="30"> </td> </tr> <tr> <td height="30"> </td> <td height="30"> </td> <td height="30"> </td> <td height="30"> </td> </tr> </table></td> </tr> <tr bgcolor="#eeeeee"> <td height="130" colspan="8"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="17%" height="150"><div align="center"><span class="style154 style153 style141 style84 style160"><strong>ด้วยข้าพเจ้า :</strong></span></div></td> <td width="82%"><textarea name="main_story" cols="65" rows="7" class="myfont" id="main_story"></textarea></td> <td width="1%"> </td> </tr> <tr> <td height="33"> </td> <td class="style160"><span class="myfont"><strong>จึงเรียนมาเพื่อโปรดพิจารณา</strong></span></td> <td> </td> </tr> </table></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td colspan="8"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="32%" height="30"> </td> <td width="2%" height="30"> </td> <td width="54%" height="30"><input name="Submit" type="submit" value="ส่งใบคำร้อง"> <input type="reset" name="Submit2" value="ยกเลิก"></td> <td width="12%" height="30"> </td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </table> </form></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>