File Manager
Back to List
| Current Directory: ~/
Editing: command_add_form.asp
Full path: C:\ict\ICT\command_add_form.asp
Permissions: rwx
Write test: File appears not directly writable
Current process identity: IIS APPPOOL\DefaultAppPool
<!--#include file="inc_cache_control.asp"--> <!--#include file="inc_access_control.asp"--> <!--#include file="chk_login.asp"--> <script language="javascript"> function doSubmit() { if( document.form1.cno.value == "" ) { alert("��سҡ�͡�Ţ�������") document.form1.cno.focus() return false; } if( document.form1.cyear.value == "" ) { alert("��سҡ�͡�� �.�. �ͧ�����") document.form1.cyear.focus() return false; } if( document.form1.cname.value == "" ) { alert("��سҡ�͡���ͤ����") document.form1.cname.focus() return false; } if( document.form1.date0.value == "" ) { alert("��سҡ�͡�ѹ�������������") document.form1.date0.focus() return false; } } </script> <!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"> <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.10.offset.datepicker.min.js"></script> <script type="text/javascript"> $(function () { var d = new Date(); var toDay = d.getDate() + '/' + (d.getMonth() + 1) + '/' + (d.getFullYear() + 543); // �óյ�ͧ�����軯ԷԹŧ��ҡ���� 1 �ѹ���˹�� ����������� Code ����÷Ѵ��ҹ��ҧ���¤�Ѻ (1 �ش = 1 ��ԷԹ) $("#datepicker-th").datepicker({ dateFormat: 'dd/mm/yy', isBuddhist: true, defaultDate: toDay, dayNames: ['�ҷԵ��', '�ѹ���', '�ѧ���', '�ظ', '����ʺ��', '�ء��', '�����'], dayNamesMin: ['��.','�.','�.','�.','��.','�.','�.'], monthNames: ['���Ҥ�','����Ҿѹ��','�չҤ�','����¹','����Ҥ�','�Զع�¹','�á�Ҥ�','�ԧ�Ҥ�','�ѹ��¹','���Ҥ�','��Ȩԡ�¹','�ѹ�Ҥ�'], monthNamesShort: ['�.�.','�.�.','��.�.','��.�.','�.�.','��.�.','�.�.','�.�.','�.�.','�.�.','�.�.','�.�.']}); $("#datepicker-th-2").datepicker({ changeMonth: true, changeYear: true,dateFormat: 'dd/mm/yy', isBuddhist: true, defaultDate: toDay,dayNames: ['�ҷԵ��','�ѹ���','�ѧ���','�ظ','����ʺ��','�ء��','�����'], dayNamesMin: ['��.','�.','�.','�.','��.','�.','�.'], monthNames: ['���Ҥ�','����Ҿѹ��','�չҤ�','����¹','����Ҥ�','�Զع�¹','�á�Ҥ�','�ԧ�Ҥ�','�ѹ��¹','���Ҥ�','��Ȩԡ�¹','�ѹ�Ҥ�'], monthNamesShort: ['�.�.','�.�.','��.�.','��.�.','�.�.','��.�.','�.�.','�.�.','�.�.','�.�.','�.�.','�.�.']}); $("#datepicker-en").datepicker({ dateFormat: 'dd/mm/yy'}); $("#inline").datepicker({ dateFormat: 'dd/mm/yy', inline: true }); }); </script> </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" --> <table width="100%" border="0" cellspacing="0"> <% '***************************************************************** session("tb_name")="command" %> <!--#include file="chk_permission.asp"--> <% '***************************************************************** if session("tb_edit") <> 1 then '���Է��� �����㹰ҹ ��� ����Ңͧ�������ͧ %> <form name="form1" method="post" action="command_add.asp"> <tr> <td width="892" align="left" valign="top"><div align="center"> <%'if session("tb_edit")=2 then %>[<a href=index_com.asp>˹���á�����</a>]<br><!-- <a href="command_add_author_form.asp">+���������+</a>][--><%'end if%><br><strong> <%crd=request("crd") if crd="1" then response.write "��������� Thesis" else response.write "��������觷����" end if %><br> <table align=center border=0> <tr> <% response.write "<tr><td ><div align=right>������Ţ���::</td><td>" %> <input type="text" name="cno" onkeypress='if (event.keyCode < 46 || event.keyCode >57 ) event.returnValue=false;' style="font-size:16px"> * </td></tr> <% response.write "<tr><td ><div align=right>�� �.�.</td><td>" y=year(now()) y=543+y %> <input type="text" name="cyear" value=<%=y%> onkeypress='if (event.keyCode < 46 || event.keyCode >57 ) event.returnValue=false;' style="font-size:16px"> * </td></tr> <% response.write "<tr><td ><div align=right>����͡�����</td><td>" %> <select name="cidauthor" style="font-size=16px"> <% set ors_=server.createobject("adodb.recordset") sqlmark_="select * from command_author" ors_.open sqlmark_,Conn,1,3 ors_.movefirst do while not ors_.eof response.write "<option value="&ors_("cid_author")&">"&ors_("cauthor")&"</option>" ors_.movenext loop %> </select> <% if crd="1" then '������͡�� ��͡ ����� thesis %> <tr><td>�����������<td> <select name="id_type_command" style="font-size=16px"> <% set orsttt=server.createobject("adodb.recordset") sqlttt="select * from command_type" orsttt.open sqlttt,Conn,1,3 if not orsttt.eof then orsttt.movefirst do while not orsttt.eof response.write "<option value="&orsttt("id_type_command")&">"&orsttt("type_command")&"</option>" orsttt.movenext loop end if %> </select> <% response.write "<tr><td ><div align=right>���ʹ��Ե::</td><td>" %> <input type="text" name="id_stu" onkeypress='if (event.keyCode < 46 || event.keyCode >57 ) event.returnValue=false;' style="font-size:16px"> *</td></tr> <% else ''��ҡ�͡����觷���� response.write "<tr><td><div align=right>���ͤ����::</td><td><textarea cols=60 rows=3 name=cname style=font-size:16px></textarea>* " response.write "</td></tr>" end if %> <% response.write "<tr><td><div align=right>��������´::</td><td><textarea cols=60 rows=3 name=cdetail style=font-size:16px></textarea> </td></tr>" response.write "<tr> <td align=right>������ѹ���<td>" response.write "<input type=text size=15 id=datepicker-th-2 name=date0 style=font-size=16px/>mm/dd/yyyy*</tr>" response.write "<tr> <td align=right>��� � �ѹ���<td>" response.write "<input type=text size=15 id=datepicker-th name=date1 style=font-size=16px/>mm/dd/yyyy</tr>" 'response.write "<tr><td><div align=right>��������Ԫ�(��)::</td><td><input type=text name=course_th size=50>*</td></tr>" 'response.write "<tr><td><div align=right>��������Ԫ�(Eng)::</td><td><input type=text name=course_eng size=50>*</td></tr>" 'conn.close if crd="1" then %> <input type="hidden" name="crd" value="1" > <% end if %> <tr><td colspan=3 align=center><input type="submit" name="Submit" value="Submit" onmousedown="doSubmit();"> <input type="reset" name="Submit2" value="Reset"></td></tr> </form> </div></td> </tr> <!-- <tr bgcolor=#EAEAEA><td colspan=3 align=center >��ª��ͼ���͡����觷����� <tr align=center bgcolor=#B8B589><td>�ӴѺ���<td>���ͼ���͡�����<td>Action</tr><tr>--> <% 'sqlcr="select * from command_author" 'set orscr=server.createobject("adodb.recordset") 'orscr.open sqlcr,conn,1,3 ' aa=0 ' if not orscr.eof then ' orscr.movefirst ' do while not orscr.eof ' aa=aa+1 ' if aa mod 2 = 0 then ' bg1="#EEEEEE" ' else ' bg1="#FFFFFF" ' end if ' response.write "<tr bgcolor="&bg1&"><td>"&aa&"<td>"&orscr("cauthor")%> <!-- <td>[<a href=command_del_author.asp?id=<%'=orscr("cid_author")%> onclick="return confirm('�س��ͧ���ź?');">Del</a>]--> <%'response.write "[<a href=command_edit_author_form.asp?id="&orscr("cid_author")&">Edit</a>]" 'orscr.movenext 'loop 'end if %> </table> <% else '���Է� response.write "<tr><td colspan=3><center>�س������Է����� �س���ѵԹ��" response.write "<meta http-equiv=refresh content =4;url=javascript:history.back();>" '���Է� end if '���Է� %> </table> <!-- 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>