<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <!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>Search Keyword</title> </head> <body> <form method="post" action="insert_record.asp"> <input type="text" name="keyword" size="20" /> <input type="submit" value="GO" /> </form> </body> </html>
<html> <head> <% Dim strSQL_mo,objRec_mo Dim strSQL_ye,objRec_ye keyword=Request.Form("keyword") sql = " select * from employees where emp_name like '%"&keyword&"%' or acc_id like '%"&keyword&"%'" Set objRec = Server.CreateObject("ADODB.Recordset") objRec.Open sql,Conn1 do while not objRec.EOF emp_name=objRec("emp_name") acc_id=objRec("acc_id")%> </head> <body> <form name="form1" action="Add_insert.asp" method="post"> <table> <tr> <td><strong>ข้อมูลเงินกู้ธนาคาร</strong></td> </tr> <tr> <td align="right">ชื่อพนักงาน :</td> <td><input type="text" name="emp_name" value="<%=emp_name%>"/></td> <td width="30"></td> <td align="right">เลขที่บัญชีเงินกู้ :</td> <td><input type="text" name="acc_id" value="<%=acc_id%>" /></td> <%objRec.movenext loop%> </tr> <tr> <td align="right">งวดเดือน :</td> <td> <%strSQL_mo = "SELECT * FROM [month]" Set objRec_mo = Server.CreateObject("ADODB.Recordset") objRec_mo.Open strSQL_mo,Conn1%> <select name="month"> <%Do while not objRec_mo.EOF%> <option value="<%=objRec_mo("month_id")%>"><%=objRec_mo("month_name")%></option> <%objRec_mo.movenext loop %> </select> <%strSQL_ye = "SELECT * FROM [years]" Set objRec_ye = Server.CreateObject("ADODB.Recordset") objRec_ye.Open strSQL_ye,Conn1%> <select name="year"> <%Do while not objRec_ye.EOF%> <option value="<%=objRec_ye("year_id")%>"><%=objRec_ye("year_id")%></option> <%objRec_ye.movenext loop %> </select> </td> <td></td> <td align="right">งวดที่ :</td> <td><input type="text" name="a_time" size="5"/></td> <td width="20"></td> <td align="right">จำนวนบาท :</td> <td><input type="text" name="amount" size="5"/></td> </tr> <tr> <td><input type="submit" name="btnsubmit" value="---Add Record---"/></td> </tr> </table> </form> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง