<%@ page language="C#" autoeventwireup="true" inherits="ims.web.rows, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="rows">
<head runat="server"><title></title></head>
<body class="waiting" onbeforeunload="confirmExit();" runat="server" id="body">
    <div class="hide"><img src="images/loading.gif" />正在生成，请稍候 …</div>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="sm" runat="server">
            <Scripts><asp:ScriptReference Name="MicrosoftAjax.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/></Scripts>
        </asp:ScriptManager>
        <asp:HiddenField runat="server" ID="keyValue" />
        <table cellspacing="1" class="normal disselect" id="main">
            <tbody runat="server" id="tbody"></tbody>
        </table>
        <table cellspacing="1" class="normal" id="helper" title="单击添加新行，右键弹出菜单"><tr><td onclick="addNewRow(1);" class="no" oncontextmenu="return showToolMenu();">*</td></tr></table>
        <asp:UpdatePanel ID="upBtns" runat="server" RenderMode="Block" UpdateMode="conditional">
        <ContentTemplate>
            <asp:Button ID="btnSave" runat="server" OnClientClick="return doValidate();" Text="保存" OnClick="Save" CssClass="btn big" />
            <asp:Button ID="btnSave_New" runat="server" OnClientClick="return doValidate();" Text="保存并继续添加" Width="102" OnClick="Save" CssClass="btn" />
            <input type="button" id="btnLayout" value="版式" onclick="return showLayouts();" class="btn" />
            <input type="button" onclick="back();" value="返回" class="btn" />
            <input type="button" value="帮助" class="btn" onclick="showHelp();" />
        </ContentTemplate>
        </asp:UpdatePanel>
        <div class="menu" id="tools">
            <a accesskey="C" id="aPaste" href="#" onclick="return pasteAsNew();">粘贴　　　　 Alt+P</a>
            <div></div>
            <a href="#" onclick="return addNewRow(3);">添加 3 行</a>
            <a href="#" onclick="return addNewRow(10);">添加10行</a>
        </div>
        <div class="menu" id="rowMenu">
            <a accesskey="C" id="aCopy" href="#" onclick="return setSource('copy');">复制　　　　 Alt+C</a>
            <a accesskey="X" id="aCut" href="#" onclick="return setSource('cut');">剪切　　　　 Alt+X</a>
            <a accesskey="D" id="aDel" href="#" onclick="return del();">删除　　　　 Alt+D</a>
            <a accesskey="R" id="aClear" href="#" onclick="return clearData();">清空　　　　 Alt+R</a>
            <div id="sep"></div>
            <a accesskey="P" id="aClone" href="#" onclick="return pasteRows(false);">粘贴　　　　 Alt+P</a>
            <a accesskey="R" id="aInsert" href="#" onclick="return pasteRows(true);">插入到此处　 Alt+R</a>
        </div>
        <div class="menu" id="layouts" runat="server"></div>
    <script src="js/comm.js"></script><script src="js/rows.js"></script>
    </form>
</body>
</html>