File Manager
Back to List
| Current Directory: ~/
Editing: inprogress_research.asp.bak
Full path: C:\ict\ICT\inprogress_research.asp.bak
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> <br> [<a href="inprogress_research.asp?idtype=2">������ҳ����</a>] [<a href="inprogress_research.asp?idtype=1">������ҳ��¹͡</a>] [<a href="inprogress_research.asp?idtype=0">������</a>] <table width="100%" border="1" cellspacing="0"> <tr> <td><div align="center">�ӴѺ���</div></td> <td width="250"><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> <% 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 sqlall1="select COUNT(*) AS IntTotal from research where id_status_res<>'"&id_stat_res&"' and id_type_capital_res='"&idtype&"' " sqlall="select * from research where id_status_res<>'"&id_stat_res&"' and id_type_capital_res='"&idtype&"' order by y_begin desc " response.write "������ҳ��¹͡" elseif idtype="2" then sqlall1="select count(*) as inttotal from research where id_status_res<>'"&id_stat_res&"' and id_type_capital_res='"&idtype&"' " sqlall="select * from research where id_status_res<>'"&id_stat_res&"' and id_type_capital_res='"&idtype&"' order by y_begin desc " response.write "������ҳ����" 'idtype="" else sqlall="select * from research where id_status_res<>'"&id_stat_res&"' order by y_begin desc" sqlall1="select count(*) as inttotal from research where id_status_res<>'"&id_stat_res&"' " response.write "������" 'idtype="" end if set orsall1=server.CreateObject("adodb.recordset") orsall1.open sqlall1,conn,1,3 'response.write sqlall 'response.write idtype set orsall=server.CreateObject("adodb.recordset") orsall.open sqlall,conn,1,3 if not orsall.eof then response.write " �ӹǹ " &orsall1("IntTotal")&" ����ͧ" noo=0 orsall.movefirst do while not orsall.eof noo=noo+1 response.write "<tr><td div align=center>"&noo response.write "<td width=250>[<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 response.write orsall1("id_level")&"." s_value=orsall1("source_c") 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 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_begin")&"-"&orsall("m_begin")&"-"&orsall("y_begin")&"<td>" response.write orsall("id_status_res") sqlsa="select * from reportprogress_res where id_contact='"&orsall("id_contact")&"'" set orssa=server.CreateObject("adodb.recordset") orssa.open sqlsa,conn,1,3 if not orssa.eof then 'response.write orss("status_res_name") orssa.movelast sqls="select * from status_research where id_status_res='"&orssa("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 end if 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 orsall.movenext loop else response.write "<tr><td colspan =6 align=center>����բ�����" end if ' orsall.close 'set orsall=nothing %> </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>