File Manager
Back to List
| Current Directory: ~/
Editing: finish_research.asp
Full path: C:\ict\ICT\finish_research.asp
Permissions: rwx
Write test: File appears not directly writable
Current process identity: IIS APPPOOL\DefaultAppPool
<%response.cachecontrol="private"%> <!--#INCLUDE FILE="ConnectDB.asp"--> <!--#include file="chk_login.asp"--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><!-- InstanceBegin template="/Templates/ICT.dwt" codeOutsideHTMLIsLocked="false" --> <head> <!-- InstanceBeginEditable name="doctitle" --> <title>�к����ʹ�����͡�ú�����</title> <!-- InstanceEndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <link href="bsri2006.css" rel="stylesheet" type="text/css"> <link href="image/favicon.ico" rel="shortcut icon" type="image/x-icon"> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="100%" border="0"> <tr> <td colspan="2"><div align="right"><img src="Image/head1.gif" width="800" height="61"></div></td> </tr> <tr> <td colspan="2" background="Image/bghead1.gif"><div align="right"><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><strong>| <a href="http://www.swu.ac.th" target=_blank>SWU</a> | <a href="http://bsri.swu.ac.th" target=_blank>BSRI</a> |<a href="chaPW.asp"><strong>Change Password</strong></a>|<a href="log_out.asp">Log Out </a></strong></font>|</div></td> </tr> <tr> <td width="20%" align="left" valign="top" bgcolor="#FFCCCC"><!-- InstanceBeginEditable name="EditRegion5" --><!--#include file="chk_menu.asp"--><!-- InstanceEndEditable --></td> <td width="77%" align="left" valign="top"><!-- InstanceBeginEditable name="EditRegion3" --> <div align="center"> <p><strong>�ҹ�Ԩ�·���������<br> ʶҺѹ�Ԩ�¾ĵԡ�����ʵ��</strong></p> [<a href="finish_research.asp?idtype=2">������ҳ����</a>] [<a href="finish_research.asp?idtype=1">������ҳ��¹͡</a>] [<a href="finish_research.asp?idtype=0">������</a>] <table width="100%" border="1" cellspacing="0"> <tr> <td><div align="center">�ӴѺ���</div></td> <td><div align="center" width="200">���ͧҹ�Ԩ��+�Ţ����ѭ��</div></td> <td><div align="center">��м���Ԩ��</div></td> <td><div align="center">���觷ع</div></td> <td><div align="center">�ӹǹ�Թ</div></td> <td><div align="center">�շ������(����ѭ��)</div></td> <td><div align="center">�շ������(�����ԧ)</div></td> <td><div align="center">ʶҹ�+ISBN</div></td> <% pern=session("username") per="2" tb="research" sqlnc="select * from tb_permission where id_staff='"&pern&"' and tb_edit='"&per&"' and tb_name='"&tb&"'" set orsnc=server.createobject("adodb.recordset") orsnc.open sqlnc,conn,1,3 if not orsnc.eof then %> <td><div align="center">Action</div></td> <%end if%> </tr> <% id_stat_res="5" idtype=request("idtype") if idtype="1" then sqlall21="select COUNT(*) AS IntTotal from research where id_contact='"&id_contact&"' and id_type_capital_res='"&idtype&"' " response.write "������ҳ��¹͡" sqlall="select * from research where id_status_res='"&id_stat_res&"' and id_type_capital_res='"&idtype&"' order by id_research desc " elseif idtype="2" then sqlall21="select COUNT(*) AS IntTotal from research where id_contact='"&id_contact&"' and id_type_capital_res='"&idtype&"' " response.write "������ҳ����" sqlall="select * from research where id_status_res='"&id_stat_res&"' and id_type_capital_res='"&idtype&"' order by id_research desc " else sqlall21="select COUNT(*) AS IntTotal from research where id_status_res='"&id_stat_res&"' " 'sqlall="select * from research where id_status_res='"&id_stat_res&"' order by ytime_end desc" sqlall="select * from research where id_status_res='"&id_stat_res&"' order by id_research desc" response.write "������" end if 'elseif idtype="2" then ' else ' ' ' end if set orsall21=server.CreateObject("adodb.recordset") orsall21.open sqlall21,conn,1,3 if not orsall21.eof Then 'Response.write sqlall21 response.write " �ӹǹ " &orsall21("IntTotal")&" ����ͧ" end if 'sqlall="select * from research where id_contact='"&id_contact&"'" set orsall=server.CreateObject("adodb.recordset") orsall.open sqlall,conn,1,3 if not orsall.eof then noo=1 orsall.movefirst do while not orsall.eof response.write "<tr><td>"&noo response.write "<td width=200>[<a href=detail_research.asp?id="&orsall("id_contact")&">"&orsall("research_t")&"("&orsall("id_contact")&")</a>]" response.write "<td>" '���������ʴ��ѡ�Ԩ�� id=orsall("id_contact") sqlall1="select * from cowork_res where id_contact='"&id&"' order by id_level" set orsall1=server.CreateObject("adodb.recordset") orsall1.open sqlall1,conn,1,3 if not orsall1.eof then orsall1.movefirst do while not orsall1.eof s_value=orsall1("source_c") response.write orsall1("id_level")&"." 'response.Write "<td>" sqlch="select * from lecturer where id_lecturer='"&orsall1("id_lecturer")&"'" set orsch=server.CreateObject("adodb.recordset") orsch.open sqlch,conn,1,3 if s_value="1" then sqlch="select * from lecturer where id_lecturer='"&orsall1("id_lecturer")&"'" set orsch=server.CreateObject("adodb.recordset") orsch.open sqlch,conn,1,3 if not orsch.eof then response.Write orsch("name_lec")&" "&orsch("sur_lec") end if elseif s_value="2" then sqlch2="select * from other_lec where id_other_lec='"&orsall1("id_lecturer")&"'" set orsch2=server.CreateObject("adodb.recordset") orsch2.open sqlch2,conn,1,3 if not orsch2.eof then response.Write orsch2("firstname")&" "&orsch2("lastname") end if else sqls="select * from staff where id_staff='"&orsall1("id_lecturer")&"'" set orss=server.CreateObject("adodb.recordset") orss.open sqls,conn,1,3 if not orss.eof then response.Write orss("name_st")&" "&orss("sur_st") end if end if 'response.Write orsall1("id_lecturer") response.Write "-" sqlp="select * from position_res where id_position_res='"&orsall1("id_position_res")&"'" set orsp=server.CreateObject("adodb.recordset") orsp.open sqlp,conn,1,3 if not orsp.eof then response.write orsp("position_res") end if 'response.Write orsall1("id_position_res") 'response.Write "<td>" response.Write "<br>" orsall1.movenext loop else response.write "-" end if '����ش����ʴ��ѡ�Ԩ�� response.write "<td>" '������ʴ����觷ع 'Response.write orsall("id_capital_res") sqlca="select * from capital_res where id_capital_res='"&orsall("id_capital_res")&"'" Set orsca=server.createobject("adodb.recordset") orsca.open sqlca,conn,1,3 If Not orsca.eof Then Response.write orsca("capital_res_name") End if response.write "<td>" Response.write orsall("amount") response.write "<td>" response.write orsall("d_fcontact")&"-"&orsall("m_fcontact")&"-"&orsall("y_fcontact") response.write "<td>" response.write orsall("dtime_end")&"-"&orsall("mtime_end")&"-"&orsall("ytime_end") response.write "<td>" 'response.write orschk("id_status_res") sqls="select * from status_research where id_status_res='"&orsall("id_status_res")&"'" set orss=server.CreateObject("adodb.recordset") orss.open sqls,conn,1,3 if not orss.eof then response.write orss("status_res_name") end if response.write "("&orsall("id_research")&")" if not orsnc.eof then response.write "<td>[<a href=edit_research_form.asp?id="&orsall("id_contact")&">Edit</a>]" %> [<a href=del_research.asp?id=<%=orsall("id_contact")%> onclick="return confirm('�س��ͧ���ź?');">Del</a>] <% end if noo=cint(noo)+1 orsall.movenext loop 'end if 'orschk.movenext 'loop else response.write "<tr><td colspan =6 align=center>����բ�����" end if %> </table> <p> </p> <p></p> <p></p> </div> <!-- InstanceEndEditable --></td> </tr> <tr> <td colspan="2" background="Image/bghead1.gif">Contact Admin:: wassanaw@swu.ac.th tel.02-649-5000 ext 17600</td> </tr> </table> </body> <!-- InstanceEnd --></html>