<%@ Page language="c#" Codebehind="editfile.aspx.cs" AutoEventWireup="True" Inherits="Webdisk.editfile" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
<title>编辑文件</title>
		<% @ Import Namespace="Webdisk" %>
		<link href="<%=xml.GetStyle()%>" rel="stylesheet" type="text/css">
			<style type="text/css">
.style1 { COLOR: #000000 }
</style>
<SCRIPT language=javascript>
function ExitEdit(filepath)
{
	Webdisk.editfile.ExitEdit(filepath);
}
</SCRIPT>
</HEAD>
	<BODY onUnload="javascript:if (document.all.hidlock.value=='') ExitEdit(document.all.hidfile.value);">
		<form id="edit" method="post" runat="server">
			<BR>
			<TABLE cellSpacing="0" cellPadding="0" width="98%" align="center">
				<TR>
					<TD width="5" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_01.gif" width="5"></TD>
					<TD width="874" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_02.gif" width="5"></TD>
					<TD width="5"><IMG height="5" src="pics/wenbenkuan_03.gif" width="5"></TD>
				</TR>
				<TR>
					<TD background="pics/wenbenkuan_04.gif">&nbsp;</TD>
					<TD background="pics/wenbenkuan_05.gif" bgColor="#ffffff"><TABLE width="100%">
							<TR>
								<TD class="tabletop"><img src="pics/page.gif" width="18" height="18" align="absMiddle"> 编辑文件
									<%=head%>
									&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1);"><img src="pics/link_back.gif" border="0" align="absMiddle"></a>
								</TD>
							<TR class="tablebg">
								<TD><div class="tip" id="dlock" runat="server"><img src="pics/tip.gif" align="absMiddle">&nbsp;当前文件正由<%=lockuser%>                                                                 用户于<%=locktime%>             时间编辑中，不能同时编辑，当前显示仅供查看，您可以选择强制性&nbsp;<asp:LinkButton id=btnlock runat="server" Font-Underline="True" ForeColor="Black" onclick="btnlock_Click">解除其它人编辑锁定</asp:LinkButton><br></div>
									<div align=center><INPUT class="btn" type="button" value=" 保 存 " name="SaveBtn" runat="server" id="SaveBtn" onserverclick="SaveBtn_ServerClick">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <INPUT class="btn" id="SaveAs" type="button" value="另存为：" name="SaveAs" runat="server" onserverclick="SaveAs_ServerClick">
									<INPUT class="kuan" id="SaveAsTxt" maxLength="30" name="SaveAsTxt" runat="server">
									<span class="style1">（扩展名使用当前文件扩展名）
									<asp:CheckBox ID="CheckBox1" runat="server" Text="自动换行" Checked="True" AutoPostBack="True" oncheckedchanged="CheckBox1_CheckedChanged"></asp:CheckBox><INPUT 
            id=hidfile type=hidden name=hidfile runat="server"> <INPUT id=hidlock type=hidden name=hidlock 
            runat="server">
									</span></div><br>
									<br>
									<asp:TextBox id="CodeText" runat="server" Width="95%" Height="500px" TextMode="MultiLine"></asp:TextBox>
									<DIV></DIV>
								</TD>
							</TR>
						</TABLE>
					</TD>
					<TD width="5" background="pics/wenbenkuan_06.gif" style="background-repeat:repeat-y"></TD>
				</TR>
				<TR>
					<TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_07.gif" width="5"></TD>
					<TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_08.gif" width="5"></TD>
					<TD><IMG height="5" src="pics/wenbenkuan_09.gif" width="5"></TD>
				</TR>
			</TABLE>
			<P align="center">
			</P>
		</form>
	</BODY>
</HTML>
