<%@ page language="C#" autoeventwireup="true" inherits="ims.web.rows, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="rows">
<head runat="server"><title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
</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" OnAsyncPostBackError="AsyncError" />
        <asp:HiddenField runat="server" ID="keyValue" />
        <table class="normal disselect" id="main">
            <tbody runat="server" id="tbody"></tbody>
        </table>
        <table 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="保存并继续添加" OnClick="Save" CssClass="btn" />
            <input type="button" runat="server" 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>