<!--#include file="header.asp"--> <!--#include file="menu.asp"--> <!--#include file="newfunc.asp"--> <% session.CodePage ="65001"%> <td valign="top" class="f2"> <table border="0" ><tr><td width="790" align="right"> <form action="newsearch.asp" method="post"> <input name="txtsearch" type="text" /> <input name="search" type="submit" value="ค้นหา" /> </form></td></tr></table> <script type="text/javascript"> function show_review(id) { if(id == 1) { document.getElementById("review_1").style.display = ''; document.getElementById("review_2").style.display = 'none'; document.getElementById("review_3").style.display = 'none'; document.getElementById("review_4").style.display = 'none'; document.getElementById("review_5").style.display = 'none'; } else if(id == 2) { document.getElementById("review_1").style.display = 'none'; document.getElementById("review_2").style.display = ''; document.getElementById("review_3").style.display = 'none'; document.getElementById("review_4").style.display = 'none'; document.getElementById("review_5").style.display = 'none'; } else if(id == 3) { document.getElementById("review_1").style.display = 'none'; document.getElementById("review_2").style.display = 'none'; document.getElementById("review_3").style.display = ''; document.getElementById("review_4").style.display = 'none'; document.getElementById("review_5").style.display = 'none'; } else if(id == 4) { document.getElementById("review_1").style.display = 'none'; document.getElementById("review_2").style.display = 'none'; document.getElementById("review_3").style.display = 'none'; document.getElementById("review_4").style.display = ''; document.getElementById("review_5").style.display = 'none'; } else if(id == 5) { document.getElementById("review_1").style.display = 'none'; document.getElementById("review_2").style.display = 'none'; document.getElementById("review_3").style.display = 'none'; document.getElementById("review_4").style.display = 'none'; document.getElementById("review_5").style.display = ''; } } </script> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="review_1" align="center"> <tr> <td> <a href="javascript:show_review(1);" title="ข่าวประชาสัมพันธ์"> <img src="images/buttomnew1.gif" border="0" height="77" width="150"/> </a> <a href="javascript:show_review(2);" title="ข่าวประกาศ"> <img src="images/buttomnew5.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(3);" title="ข่าวกิจกรรม"> <img src="images/buttomnew2.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(4);" title="ข่าวการศึกษาก่อนปริญญา"> <img src="images/buttomnew3.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(5);" title="ข่าวการศึกษาหลังปริญญา"> <img src="images/buttomnew4.gif" height="77" width="150" border="0"/> </a> <% dim a,c a="ข่าวประชาสัมพันธ์" call b(a) %> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="review_2" style="display:none" align="center"> <tr> <td> <a href="javascript:show_review(1);" title="ข่าวประชาสัมพันธ์"> <img src="images/buttomnew1.gif" border="0" height="77" width="150"/> </a> <a href="javascript:show_review(2);" title="ข่าวประกาศ"> <img src="images/buttomnew5.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(3);" title="ข่าวกิจกรรม"> <img src="images/buttomnew2.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(4);" title="ข่าวการศึกษาก่อนปริญญา"> <img src="images/buttomnew3.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(5);" title="ข่าวการศึกษาหลังปริญญา"> <img src="images/buttomnew4.gif" height="77" width="150" border="0"/> </a> <% a="ข่าวประกาศ" call b(a) %> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="review_3" style="display:none" align="center"> <tr> <td> <a href="javascript:show_review(1);" title="ข่าวประชาสัมพันธ์"> <img src="images/buttomnew1.gif" border="0" height="77" width="150"/> </a> <a href="javascript:show_review(2);" title="ข่าวประกาศ"> <img src="images/buttomnew5.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(3);" title="ข่าวกิจกรรม"> <img src="images/buttomnew2.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(4);" title="ข่าวการศึกษาก่อนปริญญา"> <img src="images/buttomnew3.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(5);" title="ข่าวการศึกษาหลังปริญญา"> <img src="images/buttomnew4.gif" height="77" width="150" border="0"/> </a> <% a="ข่าวกิจกรรม" call b(a) %> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="review_4" style="display:none" align="center"> <tr> <td> <a href="javascript:show_review(1);" title="ข่าวประชาสัมพันธ์"> <img src="images/buttomnew1.gif" border="0" height="77" width="150"/> </a> <a href="javascript:show_review(2);" title="ข่าวประกาศ"> <img src="images/buttomnew5.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(3);" title="ข่าวกิจกรรม"> <img src="images/buttomnew2.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(4);" title="ข่าวการศึกษาก่อนปริญญา"> <img src="images/buttomnew3.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(5);" title="ข่าวการศึกษาหลังปริญญา"> <img src="images/buttomnew4.gif" height="77" width="150" border="0"/> </a> <% a="ก่อนปริญญา" call b(a) %> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="review_5" style="display:none" align="center"> <tr> <td> <a href="javascript:show_review(1);" title="ข่าวประชาสัมพันธ์"> <img src="images/buttomnew1.gif" border="0" height="77" width="150"/> </a> <a href="javascript:show_review(2);" title="ข่าวประกาศ"> <img src="images/buttomnew5.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(3);" title="ข่าวกิจกรรม"> <img src="images/buttomnew2.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(4);" title="ข่าวการศึกษาก่อนปริญญา"> <img src="images/buttomnew3.gif" height="77" width="150" border="0"/> </a> <a href="javascript:show_review(5);" title="ข่าวการศึกษาหลังปริญญา"> <img src="images/buttomnew4.gif" height="77" width="150" border="0"/> </a> <% a="หลังปริญญา" call b(a) %> </td> </tr> </table> </td> </tr> </table> <!--#include file="footer.asp"-->
<!--#include file="user/connect.asp" --> <% session.CodePage ="65001" Function b(byref a) dim strsql,rec set con = Server.CreateObject("ADODB.Connection") con.open "DRIVER={MySQL ODBC 5.1 Driver}; SERVER=localhost;UID=root;pwd=admin;database=med;option=16384;" strsql = "Select * from news,officer where newstype like '%" & a & "%' and news.of_username=officer.of_username Limit 0,50 " set rec=Server.CreateObject("ADODB.Recordset") rec.open strsql,con %> <table border="0" width="790"> <tr> <th bgcolor="#0066CC"><div align="center" style="color:#FFFFFF" >วันที่ประกาศ</div></th> <th bgcolor="#0066CC"><div align="center" style="color:#FFFFFF">หัวข้อ</div></th> <th bgcolor="#0066CC"><div align="center" style="color:#FFFFFF">ผู้ประกาศ</div></th> </tr> <% if a="ข่าวประชาสัมพันธ์" then dim z while not rec.EOF %> <tr> <td width="200"><div align="center"><%=rec.fields("ddate").value%></div></td> <td width="400"><div align="center"><div align="left"><a href="newreport.asp?newid=<%=rec.fields("newsid").value%>" target="_blank" onclick="openWindow()"><%=rec.Fields("title").Value%></a></div></div></td> <td width="190"><div align="center"><%=rec.fields("of_name").value%></div></td> <% rec.movenext wend elseif a="ข่าวประกาศ" then while not rec.EOF %> <tr> <td width="200"><div align="center"><%=rec.fields("ddate").value%></div></td> <td width="400"><div align="center"><div align="left"><a href="newcall.asp?newcid=<%=rec.fields("newsid").value%>" target="_blank" onclick="openWindow()"><%=rec.Fields("title").Value%></a></div></div></td> <td width="190"><div align="center"><%=rec.fields("of_name").value%></div></td> </tr> <% rec.movenext wend elseif a="ข่าวกิจกกรรม" then while not rec.EOF %> <tr> <td width="200"><div align="center"><%=rec.fields("ddate").value%></div></td> <td width="400"><div align="center"><div align="left"><a href="newactivity.asp?newaid=<%=rec.fields("newsid").value%>" target="_blank" onclick="openWindow()"><%=rec.Fields("title").Value%></a></div></div></td> <td width="190"><div align="center"><%=rec.fields("of_name").value%></div></td> </tr> <% rec.movenext wend elseif a="ก่อนปริญญา" then while not rec.EOF %> <tr> <td width="200"><div align="center"><%=rec.fields("ddate").value%></div></td> <td width="400"><div align="center"><div align="left"><a href="newbefore.asp?newbid=<%=rec.fields("newsid").value%>" target="_blank" onclick="openWindow()"><%=rec.Fields("title").Value%></a></div></div></td> <td width="190"><div align="center"><%=rec.fields("of_name").value%></div></td> </tr> <% rec.movenext wend else while not rec.EOF %> <tr> <td width="200"><div align="center"><%=rec.fields("ddate").value%></div></td> <td width="400"><div align="center"><div align="left"><a href="newafter.asp?newfid=<%=rec.fields("newsid").value%>" target="_blank" onclick="openWindow()"><%=rec.Fields("title").Value%></a></div></div></td> <td width="190"><div align="center"><%=rec.fields("of_name").value%></div></td> </tr> <% rec.movenext wend end if %> </table> <% 'end If rec.close() con.close() set rec=nothing set con=nothing End Function %>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง