<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="editofficesoft.aspx.cs" Inherits="Webdisk.editofficesoft" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
  <title>编辑Office文件</title>
<% @ Import Namespace="Webdisk" %>
	<link href="<%=xml.GetStyle()%>" rel="stylesheet" type="text/css">
<SCRIPT language=javascript>
function ExitEdit(filepath)
{
	Webdisk.editofficesoft.ExitEdit(filepath);
}
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></HEAD>
	<body onUnload="ExitEdit(document.all.hidfile.value);">
		<form id="Form1" method="post" runat="server"><br>
			<TABLE cellSpacing="0" cellPadding="0" width="98%" align="center">
              <TR>
                <TD width="5"><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><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/files.gif" width="18" height="18" align="absMiddle"> 编辑<%=type%>文件&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><TABLE class="tablebgborder" cellSpacing="1" cellPadding="2" width="100%" align="center"
											border="0">
                          <TR class="tablebg">
                            <TD width="72%" height="22"><p>您在试图编辑一个<%=type%>文件，请确认本机已安装好<font color="#ff0066"><%=type%> XP以上版本</font>的程序，点击下面的&ldquo;<font color="#ff0066">在线编辑</font>&rdquo;按钮即可打开编辑，编辑完成后请在<%=type%> 里点击&ldquo;<font color="#ff0066">保存</font>&rdquo;按钮，然后回到本页再点击&ldquo;<font color="#ff0066">结束编辑</font>&rdquo;即可。</p><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>
                              <script language="JavaScript"> 
function OpenWord() 
{ 
var openDocObj; 
openDocObj = new ActiveXObject("SharePoint.OpenDocuments.1"); 
openDocObj.EditDocument("<%=docpath%>"); 
} 
			                  </script>
                              <div align="center">
                                <p>&nbsp;
                                  <input type="button" name="Button2" value="在线编辑" onClick="OpenWord()" class="btn" id=Button2 runat="server">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" value="结束编辑" id="Button1" name="Button1" runat="server" class="btn" onserverclick="Button1_ServerClick"> 
                  <INPUT id=hidfile type=hidden name=hidfile runat="server">
                                </p>
                                <p><div class="tip"><img src="pics/tip.gif" align="absMiddle">&nbsp;注：请确认使用的OFFICE完整版安装程序，使用迷你版安装程序会因为缺少必备的组件而无法在线编辑。</div>

							  </div>
                  <DIV></DIV></TD>
                          </TR>
                      </TABLE></TD>
                    </TR>
                </TABLE></TD>
                <TD width="5" background="pics/wenbenkuan_06.gif"><IMG height="5" src="pics/wenbenkuan_06.gif" width="5"></TD>
              </TR>
              <TR>
                <TD><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>
	</form>
	</body>
</HTML>