<%@ page language="C#" autoeventwireup="true" inherits="ims.table, ims.web" enableviewstatemac="false" enableEventValidation="false" %><!DOCTYPE html>
<html id="table">
<head runat="server"><title></title><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=0.9,user-scalable=no"></head>
<body class="waiting">
    <div class="hide"><div class="loadbar"><div></div><div></div><div></div><div></div><div></div></div></div>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s1" runat="server" EnablePageMethods="true" AsyncPostBackTimeout="600" OnAsyncPostBackError="AsyncError">
            <CompositeScript Path="js/msajax.js" ScriptMode="Release">
                <Scripts>
                    <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" /><asp:ScriptReference Name="MicrosoftAjax.js" /><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
                </Scripts>
            </CompositeScript>
        </asp:ScriptManager>
        <div runat="server" id="headzone" class="smallbtns">
            <p id="path" runat="server"></p>
            <asp:UpdatePanel ID="searcher" runat="server" ChildrenAsTriggers="false" UpdateMode="conditional">
            <ContentTemplate>
            </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="sls" EventName="SelectedIndexChanged" />
                </Triggers>
            </asp:UpdatePanel>
        </div>
        <div id="printArea">
        <asp:UpdatePanel ID="upObjs" runat="server" OnPreRender="TablePreRender" RenderMode="Block" UpdateMode="conditional">
        <ContentTemplate><asp:GridView ID="gv" runat="server" ShowHeader="true" ShowFooter="true" CellSpacing="-1" DataKeyNames="ID" AutoGenerateColumns="False" GridLines="None" AllowPaging="false" AllowSorting="true"
            OnDataBound="GvDataBound" OnRowDataBound="GvRowBound" OnRowCreated="GvRowCreated" OnSorting="GvSorting">
            </asp:GridView></ContentTemplate>
        </asp:UpdatePanel>
        <asp:HiddenField ID="curObjItemId" runat="server" /><asp:HiddenField ID="curFieldId" runat="server" />
        <asp:UpdatePanel ID="upPager" runat="server" ChildrenAsTriggers="false" class="mtop_s" UpdateMode="conditional">
        <ContentTemplate>
            <table id="PagerBar" class="PagerBar"><tr><td>
                <a runat="server" id="showslted" class="tempHide" onclick="showSelected()">查看所选</a>
                <asp:LinkButton ID="btnFirst" Text="首页" runat="server" ToolTip="快捷键：Home" AccessKey="F" OnClick="ToPage" />
                <asp:LinkButton ID="btnPrevious" Text="上页" runat="server" ToolTip="快捷键：←或PageUp" AccessKey="P" OnClick="ToPage" />
                <asp:Label ID="lblCount" CssClass="count" runat="server"></asp:Label>
                <asp:LinkButton ID="btnNext" Text="下页" runat="server" ToolTip="快捷键：→或PageDown" AccessKey="N" OnClick="ToPage" />
                <asp:LinkButton ID="btnLast" Text="末页" runat="server" ToolTip="快捷键：End" AccessKey="L" OnClick="ToPage" />
                <a title="添加记录" runat="server" id="aAdd" />
            </td><td class="right">
                <select id="rCount" onfocus="this.blur();" runat="server"></select><asp:DropDownList runat="server" id="ddlPagesize" AutoPostBack="True" OnSelectedIndexChanged="PageSizeChanged">
                    <asp:ListItem Value="5">5/页</asp:ListItem>
                    <asp:ListItem Value="10">10/页</asp:ListItem>
                    <asp:ListItem Value="15" Selected="True">15/页</asp:ListItem>
                    <asp:ListItem Value="20">20/页</asp:ListItem>
                    <asp:ListItem Value="30">30/页</asp:ListItem>
                    <asp:ListItem Value="50">50/页</asp:ListItem>
                    <asp:ListItem Value="100">100/页</asp:ListItem>
                    <asp:ListItem Value="300">300/页</asp:ListItem>
                    <asp:ListItem Value="500">500/页</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddlPager" AutoPostBack="true" OnSelectedIndexChanged="ToPage" runat="server"></asp:DropDownList>
            </td></tr></table>
            <ul id="curInfo"><li>共<asp:Literal ID="recordCount" runat="server"></asp:Literal>项</li></ul>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Del" EventName="serverclick" />
            <asp:AsyncPostBackTrigger ControlID="Edit_InPlace" EventName="serverclick" />
            <asp:AsyncPostBackTrigger ControlID="Edit_Save" EventName="serverclick" />
            <asp:AsyncPostBackTrigger ControlID="Edit_Canel" EventName="serverclick" />
        </Triggers>
        </asp:UpdatePanel>
        <asp:DropDownList ID="stats" runat="server" ToolTip="统计/切换视图" onfocus="$(this).attr('ori',$(this).val());" onchange="return statsChanged();" AutoPostBack="true" OnSelectedIndexChanged="stats_Changed" />
        </div>
        <asp:UpdatePanel ID="btnArea" UpdateMode="Conditional" runat="server" OnPreRender="btnArea_PreRender" RenderMode="Block">
        <ContentTemplate>
            <input type="button" runat="server" id="btnSelect" class="btn" value="选定" visible="false" onclick="selectTo();" />
            <input type="button" runat="server" id="btnBatch" class="btn" value="批量操作" onclick="showBatchPop()" />
            <input type="button" runat="server" id="btnFilter" class="btn" value="筛选" onclick="return toFastFilter();" onserverclick="ShowFastFilter" />
            <input type="button" id="btnLayout" runat="server" title="切换或管理版式" value="版式" onclick="return showLayouts();" class="btn" />
            <input type="button" class="btn" value="更多…" id="btnMore" runat="server" onclick="return showMenu()" />           
		    <input type="button" runat="server" id="btnBack" onclick="back();" value="返回" class="btn hide2" />
        </ContentTemplate>
        </asp:UpdatePanel>
        <ims:Pop runat="server" ID="p" Title="选择要显示的列" Width="430" CustomCss="withline" OnClientCanel="restoreFieldsPanel();" OnOkClientClick="return toChangeCols();" HideOnOkClientClick="false">
        <ContentTemplate>
            <asp:CheckBoxList ID="fs" runat="server" CssClass="ml_m" OnSelectedIndexChanged="colsChanged" RepeatLayout="Table" RepeatColumns="2" RepeatDirection="Horizontal"></asp:CheckBoxList>
            <div class="selecter"><button type="button" class="f-duoxuan btn smest outline" onclick="SelectAll(this,'p_fs');">全选</button><button type="button" class="f-ok btn smest outline" onclick="RevSelect('p_fs');">反选</button></div>
        </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="query" OnOkClick="ExecQuery" Title="查看相关数据" Width="430" OnOkClientClick="return toQuery();">
            <ContentTemplate>
                <div class="ml_m sparse2">
                查看：<asp:DropDownList runat="server" ID="tarTemplets" AutoPostBack="true" OnDataBound="BindQueryFields" OnSelectedIndexChanged="BindQueryFields"></asp:DropDownList><br />
                条件：<asp:DropDownList runat="server" ID="queryFields"></asp:DropDownList> 在当前 <asp:DropDownList runat="server" ID="ddlRange"><asp:ListItem Value="Selected">选中</asp:ListItem><asp:ListItem Value="All">全部</asp:ListItem></asp:DropDownList> 的<span id="colName" class="blod"></span>中
                </div>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="batch" ShowOkButton="false" OnClientUpdated="setBatchPop();" ShowCancelButton="false" Width="460" CustomCss="notfocus">
            <ContentTemplate>
                <asp:UpdatePanel ID="range" runat="server" UpdateMode="conditional" class="middle" RenderMode="Inline">
                    <ContentTemplate><asp:RadioButton runat="server" ID="rbSelected" GroupName="range" Text="选中的记录" Checked="true" /> <asp:RadioButton runat="server" ID="rbAll" GroupName="range" Text="所有记录" /></ContentTemplate>
                </asp:UpdatePanel>
                <fieldset runat="server" id="sms" class="mtop_m">
                    <legend>发短信 > <asp:DropDownList runat="server" ID="ddlMobFields"></asp:DropDownList></legend>
                    <asp:TextBox runat="server" ID="tbSms" onkeyup="return ctrlq(event);" placeholder="短信内容" TextMode="MultiLine" Rows="4" Width="99%"></asp:TextBox>
                </fieldset>
                <div id="btnSms" class="right" runat="server">
                    <asp:Button ID="btnSendSms" runat="server" Text="发送" ToolTip="群发短信" OnClick="BatchSendSms" OnClientClick="return smsConfirm();" CssClass="btn outline small" />
                </div>
                <fieldset runat="server" id="mail">
                    <legend>发邮件 > <asp:DropDownList runat="server" ID="ddlMailFields"></asp:DropDownList></legend>
                    <div runat="server" id="tbMail" contenteditable="true"></div>
                    <div id="divSubj">
                        <table class="fixedLayout"><tr><td class="nowrap">
                                <asp:TextBox runat="server" ID="tbSubject" CssClass="nobgborder" placeholder="主题" ToolTip="输入邮件主题"></asp:TextBox>
                            </td><td id="tdSendMail">
                                <asp:Button ID="btnSendMail" runat="server" Text="发送" ToolTip="群发邮件" OnClick="BatchSendMail" OnClientClick="return mailConfirm();" CssClass="btn outline small" />
                            </td></tr>
                        </table>
                    </div>
                </fieldset>
            <asp:UpdatePanel ID="upBu" runat="server" UpdateMode="conditional" RenderMode="Block">
                <ContentTemplate>
                <fieldset runat="server" id="update" class="mtop_n" onkeydown="return enterTo(event,'batch_btnUpdate');">
                    <legend>更新 <asp:DropDownList ID="fsUpdate" runat="server" AutoPostBack="true" OnSelectedIndexChanged="SetEditControls"></asp:DropDownList><span id="spanValue" class="hide"> 为 <asp:DropDownList runat="server" ID="ddlValue" onchange="valueChanged();"></asp:DropDownList></span></legend>
                    <div runat="server" id="editArea">
                    <asp:TextBox ID="_tb" runat="server" Width="99%" CssClass="nobgborder" autocomplete="off" Visible="false"></asp:TextBox>
                    <asp:DropDownList ID="_ddl" runat="server" visible="false"></asp:DropDownList>
                    <asp:CheckBox ID="_cb" runat="server" Visible="false" />
                    <asp:CheckBoxList ID="_cbl" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="100%" Visible="false"></asp:CheckBoxList>
                    <asp:RadioButtonList ID="_rbl" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="100%" Visible="false"></asp:RadioButtonList>
                    <asp:TextBox runat="server" ID="_ck" CssClass="ck" Width="99%" TextMode="MultiLine" Visible="false"></asp:TextBox>
                    <div id="_uploader" runat="server" visible="false"><div class="files" runat="server"></div><div class="icon"><input id="_f" name="_f" class="f" contenteditable="false" multiple="multiple" title="上传(可多选)" onchange="return toUpload(this);" type="file" /></div></div>
                    <table ID="_hl" runat="server" style="table-layout:fixed;width:98%" visible="false">
                        <tr><td style="width:4.5em">链接文字</td><td><asp:TextBox ID="_tbText" runat="server" Width="99%"></asp:TextBox></td></tr>
                        <tr><td>链接地址</td><td><asp:TextBox ID="_tbUrl" runat="server" Width="99%"></asp:TextBox></td></tr>
                    </table>
                    <div class="sig" runat="server" id="_sign" onclick="toSign(this);" visible="false"></div>
                    </div>
                    <div id="buMsg" class="padsbox gray hide"></div>
                </fieldset>
                <div class="right"><asp:Button ID="btnUpdate" runat="server" Text="更新" OnClick="BatchUpdate" OnClientClick="return doConfirm();" CssClass="btn outline small" /></div>
                </ContentTemplate>
            </asp:UpdatePanel>
                <fieldset runat="server" id="addTo" class="mtop_n"><legend>添加到 <asp:DropDownList runat="server" ID="ddlAddTo" onchange="showKey();"></asp:DropDownList></legend>
                    <div class="padcenter notfocus">
                        <span id="keyText"></span><asp:TextBox runat="server" ID="tbKey" Width="135"></asp:TextBox><asp:UpdatePanel ID="add" runat="server" UpdateMode="conditional" RenderMode="Inline">
                            <ContentTemplate>
                                <asp:Button runat="server" ID="btnAddto" Text="添加" OnClick="ToAdd" OnClientClick="return preAddTo();" CssClass="btn outline small" />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </fieldset>
                <fieldset runat="server" id="sendarea" class="mtop_n"><legend>通知</legend>
                    <div class="padbox" runat="server" id="sendbtns"></div>
                </fieldset>
                <fieldset runat="server" id="todoc" class="mtop_n"><legend>模板化导出</legend>
                    <div class="padbox" runat="server" id="todocs"></div>
                </fieldset>
                <asp:UpdatePanel ID="batchBtns" runat="server" UpdateMode="conditional">
                    <ContentTemplate>
                    <asp:Literal runat="server" ID="phOprs"></asp:Literal>
                    <asp:Literal runat="server" ID="phGeners"></asp:Literal>
                    <asp:Button ID="btnDel" CssClass="btn smaller" runat="server" Text="删除" OnClientClick="return beforeDel();" OnClick="DelRows" />
                    <asp:Button ID="btnRemove" CssClass="btn smaller" runat="server" Text="移到目录" OnClick="RemoveTo" OnClientClick="return moveToDir()" />
                    <input type="button" runat="server" id="ExportExcel" value="导出Excel" onclick="return toXls();" onserverclick="toExcel" class="btn smaller" />
                    <asp:Button runat="server" ID="btnCo" CssClass="btn smaller" Text="结转" OnClick="DoCarryover" OnClientClick="return carryover();" />
                    <asp:Button runat="server" ID="btnGenerate" CssClass="hide" UseSubmitBehavior="false" OnClick="ToGenerate" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="ft" OnOkClick="doFilter" OnOkClientClick="return doFilter('');" OnClientUpdated="InitFilter();" Width="460" HideOnOkClientClick="false" HelpSubject="fastFilter">
        <ContentTemplate>
            <asp:RadioButtonList runat="server" ID="rblRange" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="middle">
                <asp:ListItem Value="Current" Selected="True">从当前结果中筛选　</asp:ListItem>
                <asp:ListItem Value="All">从所有数据中筛选</asp:ListItem>
            </asp:RadioButtonList>
            <ul runat="server" id="ulFilter" class="notfocus nodrop noli"></ul>
        </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="fmt" OnOkClick="SaveCondFmt" Title="条件格式" Width="450" OnClientUpdated="fmtUpdated();" HideOnOkClientClick="false" HelpSubject="CondFormat" CustomCss="notfocus">
        <ContentTemplate>
            <fieldset><legend>#1</legend>
                <asp:CheckBox runat="server" ID="cbFmt1" Text="启用" />
                <div>
                条件：<a href="#" onclick="return ShowFilter('fmtCond1');">设置</a><br />
                格式：<asp:DropDownList runat="server" ID="ddlFmt1"></asp:DropDownList> 背景色：<asp:TextBox runat="server" ID="tbColor1" CssClass="iColorPicker"></asp:TextBox>&nbsp;前景色：<asp:TextBox runat="server" ID="tbForeColor1" CssClass="iColorPicker"></asp:TextBox>　<asp:CheckBox runat="server" ID="cbTop1" Text="置顶" />
                </div>
            </fieldset>
            <fieldset><legend>#2</legend>
                <asp:CheckBox runat="server" ID="cbFmt2" Text="启用" />
                <div>
                条件：<a href="#" onclick="return ShowFilter('fmtCond2');">设置</a><br />
                格式：<asp:DropDownList runat="server" ID="ddlFmt2"></asp:DropDownList> 背景色：<asp:TextBox runat="server" ID="tbColor2" CssClass="iColorPicker"></asp:TextBox>&nbsp;前景色：<asp:TextBox runat="server" ID="tbForeColor2" CssClass="iColorPicker"></asp:TextBox>　<asp:CheckBox runat="server" ID="cbTop2" Text="置顶" />
                </div>
            </fieldset>
            <fieldset><legend>#3</legend>
                <asp:CheckBox runat="server" ID="cbFmt3" Text="启用" />
                <div>
                条件：<a href="#" onclick="return ShowFilter('fmtCond3');">设置</a><br />
                格式：<asp:DropDownList runat="server" ID="ddlFmt3"></asp:DropDownList> 背景色：<asp:TextBox runat="server" ID="tbColor3" CssClass="iColorPicker"></asp:TextBox>&nbsp;前景色：<asp:TextBox runat="server" ID="tbForeColor3" CssClass="iColorPicker"></asp:TextBox>　<asp:CheckBox runat="server" ID="cbTop3" Text="置顶" />
                </div>
            </fieldset>
            <fieldset><legend>#4</legend>
                <asp:CheckBox runat="server" ID="cbFmt4" Text="启用" />
                <div>
                条件：<a href="#" onclick="return ShowFilter('fmtCond4');">设置</a><br />
                格式：<asp:DropDownList runat="server" ID="ddlFmt4"></asp:DropDownList> 背景色：<asp:TextBox runat="server" ID="tbColor4" CssClass="iColorPicker"></asp:TextBox>&nbsp;前景色：<asp:TextBox runat="server" ID="tbForeColor4" CssClass="iColorPicker"></asp:TextBox>　<asp:CheckBox runat="server" ID="cbTop4" Text="置顶" />
                </div>
            </fieldset>
            <fieldset><legend>#5</legend>
                <asp:CheckBox runat="server" ID="cbFmt5" Text="启用" />
                <div>
                条件：<a href="#" onclick="return ShowFilter('fmtCond5');">设置</a><br />
                格式：<asp:DropDownList runat="server" ID="ddlFmt5"></asp:DropDownList> 背景色：<asp:TextBox runat="server" ID="tbColor5" CssClass="iColorPicker"></asp:TextBox>&nbsp;前景色：<asp:TextBox runat="server" ID="tbForeColor5" CssClass="iColorPicker"></asp:TextBox>　<asp:CheckBox runat="server" ID="cbTop5" Text="置顶" />
                </div>
            </fieldset>
        </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="prn" Title="打印" OnOkClientClick="return exePrint(event);" OkButtonText="打印" Width="408" OnClientCanel="outPreview();">
            <ContentTemplate>
                <div id="prnset">
                    <input type="checkbox" checked="checked" id="cbTitle" /><label for="cbTitle">标题：</label><asp:TextBox runat="server" ID="tbTitle"></asp:TextBox><br />
                    <input type="checkbox" id="cbFooter" /><label for="cbFooter">页脚：</label><input type="text" id="tbFooter" value="打印：<%= ims.ui.My.UserInfo.RealName + "，" + DateTime.Now.ToString("g") %>" />
                    <select id="align"><option value="left">居左</option><option value="center">居中</option><option value="right">居右</option></select>
                </div>
                <div id="printPrompt" class="bluebox infoico mtop_n"></div>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="manage" Title="版式管理" ShowOkButton="false" HelpSubject="tableLayoutManage" CanelButtonText="关闭" Width="420">
            <ContentTemplate>
                <table class="fine" id="lays">
                    <tr><th>版式</th><th style="width:32px">默认</th><th style="width:32px">更名</th><th style="width:32px">删除</th></tr>
                    <asp:PlaceHolder runat="server" ID="phLayouts"></asp:PlaceHolder>
                </table>
                <fieldset class="mtop_n mbottom_s"><legend>默认版式规则</legend>
                    <div class="padbox">
                        <ol runat="server" id="olRules"></ol>
                        <div class="right"><a href="#" id="aAddRule" runat="server" onserverclick="ToAddRule">添加</a></div>
                    </div>
                </fieldset>
                <asp:CheckBox runat="server" ID="cbDisChange" Text="禁止普通用户切换版式" onclick="switchChange();" />
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="rule" OnClientUpdated="setTimeout(initRule,0);" OnOkClick="SaveRule" HideOnOkClientClick="false">
            <ContentTemplate>
                <fieldset><legend>以下情况使用：<asp:DropDownList runat="server" ID="ddlAll"></asp:DropDownList></legend>
                    <div id="rulediv" class="notfocus">
                        <asp:CheckBox runat="server" ID="cbRoles" Text="角色：" /><asp:TextBox runat="server" ID="tbRoles" acfid="RoleName" chars=";；、,，" ToolTip="输入角色名。多项之间以逗号、分号或顿号分隔"></asp:TextBox>
                        <asp:RadioButtonList runat="server" ID="rblOpera" CssClass="rblCond" RepeatLayout="Flow" RepeatDirection="Horizontal"><asp:ListItem Value="And">并且</asp:ListItem><asp:ListItem Value="Or" Selected="True">或者</asp:ListItem></asp:RadioButtonList>
                        <asp:CheckBox runat="server" ID="cbDevice" Text="设备：" /><asp:DropDownList runat="server" ID="ddlDevice"><asp:ListItem Value="PC">电脑</asp:ListItem><asp:ListItem Value="Mobile" Selected="True">移动设备</asp:ListItem></asp:DropDownList>
                    </div>
                </fieldset>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="dnSet" Title="数据导航设置" OnOkClick="SaveDataNavSetting" HideOnOkClientClick="false">
            <ContentTemplate>
                <div class="ml_m">
                    <div runat="server" id="dnf">数据来源：<asp:DropDownList runat="server" ID="dnFilter"></asp:DropDownList>
                    <div class="sepline2 mbottom_n"></div>
                    </div>
                    <fieldset><legend>分组方式(报表)</legend>
                        <div class="padbox">
                            <asp:CheckBoxList runat="server" ID="cblDn" RepeatLayout="Table" RepeatColumns="1"></asp:CheckBoxList>
                            <div class="sepline"></div>
                            默认：<asp:DropDownList runat="server" ID="defDn"></asp:DropDownList>
                        </div>
                    </fieldset>
                </div>
            </ContentTemplate>
        </ims:Pop>
        <ims:Pop runat="server" ID="fcode" Title="字段代码查询" ShowOkButton="false" ShowCancelButton="false" CustomCss="withline">
            <ContentTemplate>
                <asp:DropDownList runat="server" ID="ddlfc" ToolTip="选择字段" onchange="showFieldCode();" CssClass="mtop_n"></asp:DropDownList> ：<span id="fc" class="red pointer" onclick="toCopy(this);"></span> <i class="f-copy green pointer" onclick="toCopy('#fc');" title="复制"></i>
            </ContentTemplate>
        </ims:Pop>
        <div class="menu" id="tools">
            <a href="#" id="muFind" onclick="return CanelEvent(event);" onmouseover="showSubMenu(event,'sub_fast')" onmouseout="hideSubMenu(event,'sub_fast')" class="hasSubMenus">搜索</a>
            <div></div>
            <a href="#" onclick="toggleStyle()">切换样式</a>
            <a href="#" onclick="return selectFields('p_popup')" id="cols" runat="server" title="选择要显示的列">显示/隐藏列</a>
            <a href="###" runat="server" id="condfmt" onserverclick="ShowCondFmt" title="将满足指定条件的记录用特殊格式显示">条件格式</a>
            <div></div>
            <a href="###" runat="server" id="exportas" onclick="preExport();" class="pconly">导出</a>
            <a href="###" runat="server" id="aPrint" onclick="toPrint()" class="pconly">打印</a>
            <a href="#" runat="server" id="saveSc" onserverclick="SaveasSc" onclick="return toSavesc();">保存快捷方式</a>
            <a href="#" onclick="showLoading();reloadPage(true);" id="reload" class="pconly">刷新</a>
            <div></div>
            <label title="在表格上方显示预设的过滤器" id="lblFilter" runat="server" visible="false"><input type="checkbox" runat="server" id="cbf" onchange="toggleFilter(this);" />显示过滤器</label>
            <label title="将单元格中以省略号显示的内容显示出来" id="lblEll"><input type="checkbox" runat="server" id="cbell" onchange="changeEll(this);" />显示溢出内容</label>
            <div class="sls"></div>
            <a id="slMenu" runat="server" class="fb1 sls"><asp:DropDownList runat="server" id="sls" AutoPostBack="true" onchange="return slsChanged();" OnSelectedIndexChanged="SwitchSearcher"></asp:DropDownList></a>
        </div>
        <div class="menu" id="menu_tr">
            <a href="#" runat="server" id="Edit_Save" class="save" onclick="return toSaveRow();" title="快捷键：Ctrl+S" onserverclick="UpdateRow">保存</a>
            <a href="#" runat="server" id="Edit_Canel" onserverclick="CancelChange">放弃修改</a>
            <a href="#" onclick="return detail()">打开</a>
            <a href="#" onclick="return InPlaceOpen()" title="按住Ctrl键双击行可就地打开" class="pconly">就地打开</a>
            <a href="#" onclick="return false;" onmouseover="showSubMenu(event,'sub_add')" onmouseout="hideSubMenu(event,'sub_add')" id="addsub" runat="server" class="hasSubMenus">添加</a>
            <a href="#" onclick="return false;" onmouseover="showSubMenu(event,'sub_gen')" onmouseout="hideSubMenu(event,'sub_gen')" id="aGen" runat="server" class="hasSubMenus">生成</a>
            <a href="#" runat="server" id="aAddToFav" onclick="return addToFav(tid, curRid)">收藏</a>
            <a href="#" onclick="return addToCart(tid, curRid)" runat="server" id="aAddToCart">加入购物车</a>
            <a href="#" onclick="return toEdit()" runat="server" id="Edit_Full">编辑</a>
            <a href="#" runat="server" id="Edit_InPlace" onserverclick="InPlaceEdit">就地编辑</a>
            <a href="#" runat="server" id="Del" onclick="return toDelConfirm()" onserverclick="DelObjItem">删除</a>
            <a href="#" onclick="return false;" onmouseover="showSubMenu(event,'sub_opr')" onmouseout="hideSubMenu(event,'sub_opr')" id="aOpr" runat="server" visible="false" class="hasSubMenus">操作</a>
            <div class="pconly"></div>
            <a href="#" runat="server" id="aBatch" onclick="return showBatchPop()">批量操作</a>
            <p class="pconly">双击：<select runat="server" id="behave" onchange="setBehave();"><option value="InPlaceEdit">就地编辑</option><option value="InPlaceOpen">就地打开</option><option value="Edit">编辑</option><option value="Open">打开</option><option value="None">无动作</option></select></p>
        </div>
        <div class="menu" id="menu_foot">
            <a href="#" id="px" onclick="return toSort();">排序</a>
            <a href="#" id="sx" onclick="return filterCol();">筛选</a>
            <a href="#" id="yc" onclick="return hideCol();">隐藏</a>
            <div></div>
            <a href="#" id="qh" onclick="return switchThumb();">切换缩略图</a>
            <div></div>
            <a href="#" id="bh" onclick="return toContain();" title="查看包含于该列中的相关数据">包含的…</a>
        </div>
        <div class="menu" id="sub_add" runat="server" onmouseout="hideSubMenu(event,this)"></div>
        <div class="menu" id="sub_gen" runat="server" onmouseout="hideSubMenu(event,this)"></div>
        <div class="menu" id="sub_opr" onmouseout="hideSubMenu(event,this)"></div>
        <div class="menu" id="sub_fast" onmouseout="hideSubMenu(event,this)">
            <a href="#" runat="server" id="hereFind">就地搜索</a>
            <div></div>
            <a href="#" runat="server" id="mydata" onclick="return fastOpen('_My');">我的记录</a>
            <a href="#" onclick="return fastOpen('_Last');">最近添加</a>
            <a href="#" onclick="return fastOpen('_Today');">今天更新</a>
            <a href="#" onclick="return fastOpen('_All');">全部记录</a>
            <div></div>
            <a href="#" runat="server" id="toFilters">过滤器管理</a>
        </div>
        <div runat="server" id="datanav">
            <a id="setlink" runat="server" href="#" onclick="dataNavAdmin()">设置数据导航</a>
            <div id="navzone" runat="server">
                <a id="seticon" runat="server" class="f-setting" title="数据导航设置" onclick="dataNavAdmin()"></a>
                <asp:DropDownList runat="server" ID="ddlRs" onchange="loadDataTree();"></asp:DropDownList>
                <div runat="server" id="sepline" class="sepline2"></div>
                <div id="divTree" class="loading"><div class="loadbar"><div></div><div></div><div></div><div></div><div></div></div></div>
            </div>
        </div>
        <div runat="server" id="editTool"><i class="btn rd f-yes" id="btnYes" onclick="toSaveRow();" title="保存｜快捷键 Ctrl+S"></i><i class="btn rd f-close" id="btnNo" onclick="__doPostBack('Edit_Canel','');" title="取消"></i></div>
        <asp:UpdatePanel ID="layouts" runat="server" UpdateMode="conditional" RenderMode="Block" class="menu" />
        <asp:Button runat="server" ID="btnQuery" CssClass="hide" OnClick="ToQuery" /><asp:Button runat="server" ID="btnOpera" CssClass="hide" OnClick="OperaLayout" /><asp:Button runat="server" ID="btnOpr" CssClass="hide" OnClick="DoOpera" /><asp:Button runat="server" ID="btnGlq" CssClass="hide" OnClick="DoGlq" />
        <script src="js/comm.js"></script>
        <script src='ckeditor/ckeditor.js'></script>
        <script src='ckeditor/ckfinder/ckfinder.js'></script>
        <script src='js/datepicker/WdatePicker.js'></script>
        <script src="js/ztree.js"></script>
        <script src="js/signature.js"></script>
        <script src="js/table.js"></script>
    </form>
</body>
</html>