<%@ page language="C#" autoeventwireup="true" inherits="ims.web.sidebar, 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="sidebar">
<head runat="server">
    <title></title>
    <base target="mainFrame" />
</head>
<body runat="server" id="body">
   <form id="form1" runat="server" target="_self">
   <asp:ScriptManager runat="server" ID="sm" EnablePageMethods="True">
        <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:UpdatePanel ID="main" runat="server" RenderMode="Block" OnPreRender="AddInitScript" UpdateMode="Conditional" ChildrenAsTriggers="false">
        <ContentTemplate>
        <div runat="server" id="b1" class="btitle" visible="false">预览区：</div>
        <div id="inMain" runat="server">
        <div runat="server" id="Starts" class="item">
         <div id="tabs" class="ui-tabs">
            <ul>
                <li><a href="#start" title="开始（首页）" rev="home.aspx" id="t0"></a></li>
                <li runat="server" id="liAdd"><a href="#add" rel="添加" rev="select.aspx" id="t1"></a></li>
                <li><a href="#browse" rel="浏览" rev="select.aspx?action=View" id="t2"></a></li>
                <li><a href="#serach" rel="搜索" rev="select.aspx?action=Search" id="t3"></a></li>
                <li runat="server" id="liFav"><a href="#fav" rel="收藏" rev="dataHome.aspx?Area=favs" id="t4"></a></li>
                <li><a href="#shortcut" rel="快捷方式" rev="dataHome.aspx?Area=shortcuts" id="t5"></a></li>
            </ul>
            <div id="start">
                <ul>
                    <li id="dataAdmin"><a href="templets.aspx?mode=data"><%= ims.Comm.Vars.DataCenterText %></a><span class="more"> &gt <span runat="server" id="spanAdd"><a href="select.aspx">添加</a> &gt; </span><a href="select.aspx?action=View">浏览</a> &gt; <a href="select.aspx?action=Search">搜索</a></span></li>
                    <li runat="server" id="templets"><a href="templets.aspx">设计中心</a></li>
                    <li runat="server" id="liInfo"><a href="infoList.aspx"><%= ims.Comm.Vars.InfoCenterText %></a><span runat="server" id="addInfo" class="more"> &gt; <a href="infoEdit.aspx">发布信息</a></span></li>
                    <li runat="server" id="admin"><a href="adminHome.aspx">系统管理</a></li>
                    <li class="lastData"><a href="view.aspx" class="views">最近浏览的数据</a></li>
                    <li id="help"><a href="#" title="查看与当前操作相关的帮助信息" onclick="return showHelp();">实时帮助</a></li>
                </ul>
            </div>
            <div runat="server" id="add">
                <asp:TreeView ID="d1" NodeWrap="true" ExpandDepth="0" LineImagesFolder="images" SkipLinkText="" ShowExpandCollapse="true" NodeIndent="16" runat="server" ShowLines="false" CssClass="tree"></asp:TreeView>
                <div runat="server" id="msg1" class="msg">无项目</div>
            </div>
            <div id="browse">
                <asp:TreeView ID="d2" NodeWrap="true" ExpandDepth="0" LineImagesFolder="images" SkipLinkText="" ShowExpandCollapse="true" NodeIndent="16" runat="server" ShowLines="false" CssClass="tree"></asp:TreeView>
                <div runat="server" id="msg2" class="msg">无项目</div>
            </div>
            <div id="serach">
                <asp:TreeView ID="d3" NodeWrap="true" ExpandDepth="0" LineImagesFolder="images" SkipLinkText="" ShowExpandCollapse="true" NodeIndent="16" runat="server" ShowLines="false" CssClass="tree"></asp:TreeView>
                <div runat="server" id="msg3" class="msg">无项目</div>
            </div>
            <div runat="server" id="fav">
                <ul runat="server" id="divFavs" class="tabul"></ul>
                <div runat="server" id="msg4" class="msg">无项目</div>
            </div>
            <div id="shortcut">
                <ul runat="server" id="divShortcuts" class="tabul"></ul>
                <div runat="server" id="msg5" class="msg">无项目</div>
            </div>
        </div>       
        </div>
        <div runat="server" id="Online" class="item">
            <div class="title bgd"><span></span>在线用户</div>
            <div class="taskArea clear hide">
                <ul id="ulOnline"></ul>
                <div class="msg">暂无</div>
            </div>
        </div>
        <div runat="server" id="MsgCenter" class="item">
            <div class="title bgu"><span></span>消息</div>
            <div class="taskArea">
                <ul>
                    <li id="liMsgs"><a href="msgs.aspx">消息中心</a><span runat="server" id="sendMsg" class="more"> &gt; <a href="msg.aspx" onclick="return toSendMsg();">发送消息</a></span></li>
                    <li id="unread"><img src="images/todo.gif" id="togMsgs" onclick="showUnread(true);" /><a href="msgs.aspx?tab=unread">未读消息</a><span class="total" onclick="openUnread();"></span></li>
                </ul>
                <ol id="olMsgList" class="list hide"></ol>
            </div>
        </div>
        <div runat="server" id="Worktable" class="item">
            <div class="title bgu"><span></span>事务</div>
            <div class="taskArea">
                <ul>
                    <li id="works"><a href="trans.aspx"><%= ims.Comm.Vars.TransCenterText %></a><span id="addWork" class="more"> &gt; <a href="select.aspx?action=AddFlow">发起流程</a></span></li>
                    <li id="todo"><img src="images/todo.gif" id="togTodo" onclick="showTodo(true);" /><a href="trans.aspx?tab=pending&sort=default">待办事项</a><span class="total" onclick="openTodo();"></span></li>
                </ul>
                <ol id="olList" class="list hide"></ol>
            </div>
        </div>
        <div runat="server" id="Dirs" class="item">
            <div class="title bgu"><span></span>目录</div>
            <div class="taskArea">
                <asp:TreeView ID="d" NodeWrap="true" ExpandDepth="1" LineImagesFolder="images/tree" SkipLinkText="" NodeStyle-ImageUrl="images/off.gif" NodeStyle-HorizontalPadding="3" runat="server" ShowLines="true" CssClass="tree">
                    <Nodes>
                        <asp:TreeNode NavigateUrl="0" Text="根目录" Value="0" ImageUrl="images/root.gif"></asp:TreeNode>
                    </Nodes>
                </asp:TreeView>
            </div>
        </div>
        <div runat="server" id="CurrentInfo" class="item">
        <div class="title bgu"><span></span>详细信息</div>
        <div class="taskArea">
            <ul style="display:none" id="fixedInfo">
                <li runat="server" id="liLoginView">当前状态：<asp:LoginView ID="lv" runat="server">
                        <AnonymousTemplate>未登录「<a href="Login.aspx">登录</a><span runat="server" id="spanReg">，<a href="reg.aspx">注册</a></span>」</AnonymousTemplate>
                        <LoggedInTemplate>已登录，<asp:LinkButton ID="lbLogout" Text="注销" ToolTip="退出登录状态" OnClick="logout" runat="server" /></LoggedInTemplate>
                    </asp:LoginView>
                </li>
                <li id="liTitle">当前内容：<span id="curTitle"></span></li>
            </ul>
            <ul id="ulDetail">
            </ul>
        </div>
        </div>
        </div>
        <div id="views">
            <ul class="ui-corner-all">
                <li id="v2" href="table.aspx">表格视图</li>
                <li id="v4" href="detail.aspx?InSerial=true">详情视图</li>
                <li id="v1" href="thumb.aspx">缩略视图</li>
                <li id="v3" href="summary.aspx">概要视图</li>
                <li id="v5" href="chart.aspx">图表视图</li>
                <li id="v6" href="report.aspx">报表视图</li>
            </ul>
        </div>
        <asp:UpdatePanel ID="btns" runat="server" RenderMode="Block" UpdateMode="Conditional" Visible="false">
            <ContentTemplate>
            <input type="button" onclick="return PreSave(this);" runat="server" id="btnSave" onserverclick="SaveLayout" value="保存" title="保存当前预览区的版面设置" class="btn" />
            <input type="button" runat="server" id="btnDefault" style="width:126px" onclick="return PreSave(this);" onserverclick="SaveLayout" value="保存为系统默认状态" title="将当前预览区的版面设置保存为系统默认状态，未自定义左侧栏的用户将应用此版面" class="btn" />
            <input type="button" runat="server" id="btnRestore" style="width:114px" onclick="if(!confirm('确定要恢复为系统默认状态吗？'))return false;" onserverclick="RestoreLayout" value="恢复系统默认状态" title="将版面恢复为系统的默认状态" class="btn" />
            <input type="button" onclick="return showHelp();" value="帮助" class="btn" />           
            </ContentTemplate>
        </asp:UpdatePanel>
        <input type="button" runat="server" id="btnReload" class="hide" onserverclick="BuildDynContents" />
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnReload" EventName="serverclick" />
        </Triggers>
    </asp:UpdatePanel>

        <div id="other" runat="server" visible="false">
            <div class="btitle">候选区：</div>
            <div id="inOther" runat="server"></div>
        </div>
        <asp:UpdatePanel ID="custom" runat="server" RenderMode="Block" ChildrenAsTriggers="false" UpdateMode="Conditional" Visible="false">
            <ContentTemplate>
                <div class="btitle">添加版块：</div>
                <div id="inCustom" class="item">
                <div class="title bgu"><span></span>标题：<asp:TextBox runat="server" ID="tbTitle" ToolTip="输入新版块的标题文字" onclick="CanelEvent();"></asp:TextBox></div>
                <div class="taskArea">
                    <ul runat="server" id="ulEles" class="ulCustom"></ul>
                    <div id="cmds"><a href="#" onclick="return ShowPop('addEle_popup');">添加元素</a>&nbsp;&nbsp;<asp:LinkButton runat="server" ID="lbClear" OnClick="ClearElements" Text="清空元素"></asp:LinkButton></div>
                </div>
                </div>
                <div class="center">
                    <asp:Button runat="server" ID="btnAdd" Width="90" CssClass="btn" OnClick="AddBlock" OnClientClick="return PreAddBlock();" Text="添加到候选区" />
                </div>
                <input type="button" runat="server" id="btnHelper" class="hide" onserverclick="DelBlock" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <ims:Pop runat="server" ID="addEle" Title="添加元素" OkButtonText="添加" HideOnOkClientClick="false" OnOkClick="AddElement" Width="520" Visible="false" OnOkClientClick="return PreAddEle();" OnClientUpdated="InitAddPop();">
            <ContentTemplate>
                <asp:DropDownList runat="server" ID="ddlTypes" onchange="typesChanged();" ToolTip="选择要添加的元素的类型">
                    <asp:ListItem Selected="True" Value="">-选择类型-</asp:ListItem>
                    <asp:ListItem Value="Browse">浏览</asp:ListItem>
                    <asp:ListItem Value="Add">添加</asp:ListItem>
                    <asp:ListItem Value="Start">发起</asp:ListItem>
                    <asp:ListItem Value="Search">搜索</asp:ListItem>
                    <asp:ListItem Value="Dir">目录</asp:ListItem>
                    <asp:ListItem Value="Page">页面</asp:ListItem>
                    <asp:ListItem Value="Table">表格视图</asp:ListItem>
                    <asp:ListItem Value="Thumb">缩略视图</asp:ListItem>
                    <asp:ListItem Value="Summary">概要视图</asp:ListItem>
                    <asp:ListItem Value="Detail">详情视图</asp:ListItem>
                    <asp:ListItem Value="Chart">图表视图</asp:ListItem>
                    <asp:ListItem Value="Report">报表视图</asp:ListItem>
                    <asp:ListItem Value="Favorite">我的收藏</asp:ListItem>
                    <asp:ListItem Value="Shortcut">快捷方式</asp:ListItem>
                    <asp:ListItem Value="Html">自由编辑内容</asp:ListItem>
                </asp:DropDownList><span>：</span>
                <span class="hide" for="Browse Table Thumb Summary Detail Chart Report">
                <asp:UpdatePanel ID="upFilters" runat="server" RenderMode="Inline">
                    <ContentTemplate>
                        <asp:DropDownList runat="server" ID="ddlBrowse" OnDataBound="FillFilters" ToolTip="选择要浏览的数据" AutoPostBack="true" OnSelectedIndexChanged="FillFilters"></asp:DropDownList>&nbsp;<asp:DropDownList runat="server" ToolTip="可在此选择过滤器" ID="ddlFilters"></asp:DropDownList>
                    </ContentTemplate>
                </asp:UpdatePanel>
                </span>
                <asp:DropDownList runat="server" ID="ddlStart" for="Start" CssClass="hide" ToolTip="选择要发起的流程"></asp:DropDownList>
                <asp:DropDownList runat="server" ID="ddlSearch" for="Search" CssClass="hide" ToolTip="选择搜索的对象"></asp:DropDownList>
                <asp:DropDownList runat="server" ID="ddlAdd" for="Add" CssClass="hide" ToolTip="选择模板"></asp:DropDownList>
                <asp:DropDownList runat="server" ID="ddlFav" for="Favorite" CssClass="hide" ToolTip="选择收藏的项目"></asp:DropDownList>
                <asp:DropDownList runat="server" ID="ddlShortcut" for="Shortcut" CssClass="hide" ToolTip="选择快捷方式"></asp:DropDownList>
                <asp:DropDownList runat="server" ID="ddlPage" for="Page" CssClass="hide" ToolTip="选择页面">
                    <asp:ListItem Value="home.aspx" Selected="True">首页</asp:ListItem>
                    <asp:ListItem Value="infolist.aspx">信息中心</asp:ListItem>
                    <asp:ListItem Value="infoEdit.aspx">发布信息</asp:ListItem>
                    <asp:ListItem Value="templets.aspx?mode=data">数据中心</asp:ListItem>
                    <asp:ListItem Value="templets.aspx">设计中心</asp:ListItem>
                    <asp:ListItem Value="msgs.aspx">消息中心</asp:ListItem>
                    <asp:ListItem Value="trans.aspx">事务中心</asp:ListItem>
                    <asp:ListItem Value="datahome.aspx">搜索</asp:ListItem>
                    <asp:ListItem Value="select.aspx?action=Search">高级搜索</asp:ListItem>
                    <asp:ListItem Value="adminhome.aspx">系统管理</asp:ListItem>
                </asp:DropDownList>
                <a id="selectDir" for="Dir" class="hide" title="点击选择目录" runat="server" style="color:Blue" onclick="return showDirTree();" onserverclick="DirChanged"></a>
                <div for="Html" class="hide">
                <asp:TextBox runat="server" ID="tbHtml" TextMode="MultiLine" Width="98%"></asp:TextBox>
                </div>
            </ContentTemplate>
        </ims:Pop>
        <div id="rt" runat="server"><span id="diy">＋</span><span id="close">×</span></div>
        <script src="js/comm.js"></script><script src="js/sidebar.js"></script>
    </form>
</body>
</html>