<%@ page language="C#" autoeventwireup="true" enablesessionstate="False" inherits="ims.home, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="home">
<head runat="server"><title>首页</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1">
    <script src="js/comm.js"></script><script src="js/echart.js"></script><script src="js/home.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="s1" runat="server" EnablePageMethods="true" 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="curTitle" visible="false">当前版式</div>
    <i runat="server" id="gear" title="自定义首页" onclick="ShowPop('set_popup');"></i>
    <div runat="server" id="main">
    </div>
    <asp:UpdatePanel runat="server" ID="up" ChildrenAsTriggers="false" UpdateMode="Conditional" OnPreRender="UpPreRender">
        <ContentTemplate>
        <div ID="personal" runat="server" class="block" visible="false">
        <div class="clear">
            <div class="iconitem" runat="server" id="tologin"><a href="login.aspx">登录</a></div>
            <div class="iconitem" runat="server" id="myinfo"><a href="reg.aspx?mode=update" onclick="return toPopup(this.href,600,475);">个人资料</a></div>
            <div class="iconitem" id="profile"><a href="#" onclick="return showProfile();" runat="server" id="aTheme" onserverclick="ShowThemePop">个性化</a></div>
            <div class="iconitem" runat="server" id="MyCart"><a href="cart.aspx">我的购物车</a></div>
            <div class="iconitem" runat="server" id="MyOrders"><a href="OrderAdmin.aspx?owner=my">我的订单</a></div>
            <div class="iconitem" runat="server" id="OrderAdmin"><span runat="server" id="newCount"></span><a href="orderAdmin.aspx">订单管理</a></div>
            <div class="iconitem" runat="server" id="msg"><a href="#" onclick="return toSend('msg');">发消息</a></div>
            <div class="iconitem" runat="server" id="mail"><a href="#" onclick="return toSend('mail');">发邮件</a></div>
            <div class="iconitem" runat="server" id="sms"><a href="#" onclick="return toSend('sms');">发短信</a></div>
            <div class="iconitem" runat="server" id="tel"><a href="#" onclick="return toCall();">打电话</a></div>
            <div class="iconitem" runat="server" id="wx"><a href="#" onclick="return toSend('weixin');">发微信</a></div>
            <div class="iconitem" runat="server" id="info"><a href="#" onclick="return toPopup('infoEdit.aspx',800);">发布<%= ims.Sys.InfoType %></a></div>
            <div class="iconitem" runat="server" id="flow"><a href="select.aspx?action=AddFlow">发起流程</a></div>
        </div>
        </div>
        <div ID="memo" runat="server" class="block" visible="false">
        <div class="title">我的备忘</div>
        <asp:TextBox runat="server" ID="tbMemo" contenteditable="true" TextMode="MultiLine" Rows="8" AutoPostBack="true" OnTextChanged="UpdateMemo"></asp:TextBox>
        </div>
        <div ID="infos" runat="server" class="block" visible="false">
        <div class="title">最新<%= ims.Sys.InfoType %><a href='infoList.aspx' class="more"></a></div>
        <div id="infoItems" runat="server">
        </div>
        </div>
        <div ID="lastMsgs" runat="server" class="block" visible="false">
        <div class="title">最新消息<a href='msgs.aspx' class="more"></a></div>
        <div id="msgItems" runat="server">
        </div>
        </div>
        <div ID="shortcuts" runat="server" class="block" visible="false">
        <div class="title">快捷方式<a href='dataHome.aspx?Area=shortcuts' class="more"></a></div>
        <div id="scItems" runat="server">
        </div>
        </div>
        <div ID="favs" runat="server" class="block" visible="false">
        <div class="title">我的收藏<a href='dataHome.aspx?Area=favs' class="more"></a></div>
        <div id="favItems" runat="server">
        </div>
        </div>
        <div ID="adminTools" runat="server" class="block" visible="false">
        <div class="title">管理工具</div>
        <div class="clear">
            <div class="iconitem" id="setsys"><a href="admin.aspx">系统设置</a></div>
            <div class="iconitem" id="maintsys"><a href="maint.aspx">系统维护</a></div>
            <div class="iconitem" id="useradmin"><a href="users.aspx">用户管理</a></div>
            <div class="iconitem" id="roleadmin"><a href="roles.aspx">角色管理</a></div>
            <div class="iconitem" runat="server" id="smsadmin"><a href="smsadmin.aspx">短信设置</a></div>
            <div class="iconitem" id="sysguide"><a href="guide.aspx">向导</a></div>
        </div>
        </div>
        <div ID="navs" runat="server" class="block" visible="false">
        <div class="title">操作导航</div>
        <div class="btns clear">
            <div class="btn" href="templets.aspx" runat="server" id="design">设计中心</div>
            <div class="btn" href="templets.aspx?mode=data"><%= ims.Sys.DataCenterText %></div>
            <div class="btn" href="infolist.aspx"><%= ims.Sys.InfoCenterText %></div>
            <div class="btn" href="msgs.aspx" runat="server" id="msgs">消息</div>
            <div class="btn" href="dir.aspx" runat="server" id="dir">目录</div>
            <div class="btn" href="dataHome.aspx">搜索</div>
            <div class="btn" href="adminHome.aspx" runat="server" id="sysAdmin">系统管理</div>
        </div>
        </div>
        <div ID="dataOpera" runat="server" class="block" visible="false">
        <div class="title">数据操作</div>
        <div class="btns mtop_n clear">
            <div class="btn" href="select.aspx" runat="server" id="add">添加</div>
            <div class="btn" href="select.aspx?action=View" id="browse">浏览</div>
            <div class="btn" href="select.aspx?action=Search">搜索</div>
            <div class="btn" href="templets.aspx?mode=data" runat="server" id="datadmin">管理</div>
            <div class="btn" href="view.aspx?view=last">上次查看的数据</div>
        </div>
        </div>
        <div ID="dataUpdate" runat="server" class="block" visible="false">
        <div class="title">最新数据：<select runat="server" id="ddlTimeSpan" onchange="toQuery(true);">
                    <option value="Today">今天</option>
                    <option value="Yesterday">昨天</option>
                    <option value="ThisWeek">本周</option>
                    <option value="LastWeek">上周</option>
                    <option value="ThisMonth">本月</option>
                    <option value="LastMonth">上月</option>
                </select></div>
        <asp:UpdatePanel runat="server" ID="upUpdated" ChildrenAsTriggers="false" UpdateMode="Conditional" class="clear">
            <ContentTemplate>
                <div runat="server" id="updated"><div class="padscenter"><a href="###" onclick="toQuery();">查询</a></div></div>
            </ContentTemplate>
        </asp:UpdatePanel>
        </div>
        <div ID="todo" runat="server" class="block" visible="false">
        <div class="title">待办事项<a href='trans.aspx?tab=pending' class="more"></a></div>
        <div class="clear" id="todoItems" runat="server">
        </div>
        </div>
        <div ID="board" runat="server" class="block" visible="false">
        <asp:UpdatePanel runat="server" class="clear" ID="boardcon" UpdateMode="Conditional">
            <ContentTemplate>
                <div id="bdcon" class="loading" runat="server"><div class="loadbar"><div></div><div></div><div></div><div></div><div></div></div></div>
            </ContentTemplate>
        </asp:UpdatePanel>
        </div>
        <div ID="newcmnts" runat="server" class="block" visible="false">
        <div class="title">评论提醒</div>
        <div id="divcmnts" class="clear loading" runat="server"><div class="loadbar"><div></div><div></div><div></div><div></div><div></div></div></div>
        </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel runat="server" ID="added" UpdateMode="Conditional" OnPreRender="RegScript">
        <ContentTemplate>
            <asp:PlaceHolder runat="server" ID="phAdded"></asp:PlaceHolder>
            <input type="button" runat="server" id="btnHelper" class="hide" onserverclick="BlockOpera" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <ims:Pop runat="server" ID="set" Title="设置我的首页" Width="440" OkButtonText="切换布局" OnOkClick="ApplyLayoutHtml" CustomButtonA_OnClick="return toPrompt('请输入名称：', toSaveas, '新建版式');" CustomButtonB_OnClick="__doPostBack('btnSave', 'ShowManage');" HideOnOkClientClick="false" OnOkClientClick="return showLayouts();" OnClientUpdated="InitUnused();" CanelButtonText="关闭" HelpSubject="HomeLayout">
        <ContentTemplate>
            <fieldset runat="server" id="blklist"><legend>候选版块</legend>
                <div runat="server" id="sysblks" class="blks"></div>
                <div runat="server" id="myblks" class="blks"></div>
            </fieldset>
            <fieldset class="mtop_n"><legend>添加：</legend>
                <div class="padscenter">
                    <input type="button" onclick="return toAddBlock();" value="自定义版块" runat="server" id="btnAdd" onserverclick="ShowAddBlockPop" class="btn smaller rd" />
                    <input type="button" onclick="return toAddStatsBlock();" value="图表/报表" runat="server" id="btnStats" onserverclick="ShowAddStatsBlockPop" class="btn smaller rd" />
                    <input type="button" onclick="return toAddWebBlock();" value="网页版块" runat="server" id="btnWeb" onserverclick="ShowAddWebBlockPop" class="btn smaller rd" />
                    <input type="button" onclick="return toAddRssBlock();" value="RSS版块" runat="server" id="btnRss" onserverclick="ShowAddRssBlockPop" class="btn smaller rd pconly" />
                </div>
            </fieldset>
        </ContentTemplate>
    </ims:Pop>

<asp:UpdatePanel runat="server" ID="pops" UpdateMode="Conditional" ChildrenAsTriggers="false">
    <ContentTemplate>
    <ims:Pop runat="server" ID="myTheme" Title="个性化" OnOkClick="ChangeTheme" Width="420" HideOnOkClientClick="false" Visible="false">
    <ContentTemplate>
        <ul class="square notfocus">
            <li>进入系统后打开：<br />
            <asp:RadioButton runat="server" ID="rbCommon" Checked="true" Text="页面：" GroupName="types" /><asp:DropDownList ID="ddlPages" runat="server"></asp:DropDownList><br />
            <div runat="server" id="divData"><asp:RadioButton runat="server" ID="rbData" Text="数据：" GroupName="types" /><asp:DropDownList ID="ddlTemplets" runat="server" /></div>
            <div runat="server" id="divDir"><asp:RadioButton runat="server" ID="rbDir" Text="目录：" GroupName="types" /><a id="showdir" title="点击选择目录" runat="server" onclick="return selectDir();" onserverclick="DirChanged"></a></div>
            <asp:RadioButton runat="server" ID="rbCustom" Text="网址：" GroupName="types" /><asp:TextBox runat="server" ID="tbCustom" ToolTip="可填写系统内相对地址，如：info.aspx?id=3&#13;也可填写绝对网址，如：http://www.sina.com"></asp:TextBox><br />
            <asp:RadioButton runat="server" ID="rbSc" Text="快捷方式：" GroupName="types" /><asp:DropDownList ID="ddlSc" runat="server" />
            </li>
            <li runat="server" id="liSideLays">侧栏版式：<asp:DropDownList runat="server" ID="mySide"></asp:DropDownList></li>
            <li runat="server" id="liHome"><a href="#" onclick="return toLayout();">自定义首页</a></li>
            <li runat="server" id="liSidebar"><a href="sidebar.aspx?layout=">自定义侧栏</a></li>
            <li><a href="#" onclick="return ShowPop('tools_popup');">生成二维码</a></li>
        </ul>
    </ContentTemplate>
    </ims:Pop>    
    <ims:Pop runat="server" ID="cus" Title="添加自定义版块" Width="500" OnOkClick="AddFreeBlock" OnOkClientClick="return PreAddBlock();" HideOnOkClientClick="false" Visible="false">
        <ContentTemplate>
            <div ID="newBlock" runat="server" class="block">
            <div class="title"><asp:TextBox runat="server" placeholder="标题" ToolTip="标题（可不填）" ID="tbTitle" Width="90"></asp:TextBox></div>
            <div id="newContent" runat="server">
                <ul runat="server" id="ulEles" class="ulCustom"></ul>
                <div class="blkmsg" id="noEle" runat="server">请添加元素</div>
                <asp:TextBox runat="server" ID="htmlContent" Width="100%" Height="200" TextMode="MultiLine" Visible="false"></asp:TextBox>
            </div>
            <div class="right" runat="server" id="eleManage"><a href="#" onclick="return toAddEle();">添加元素</a>&nbsp;&nbsp;<asp:LinkButton runat="server" ID="lbClear" OnClick="ClearElements" Text="清空元素"></asp:LinkButton></div>
            </div>
        </ContentTemplate>
    </ims:Pop>
    <ims:Pop runat="server" ID="addEle" Title="添加元素" OkButtonText="添加" HideOnOkClientClick="false" OnOkClick="AddElement" Width="550" OnOkClientClick="return PreAddEle();" OnClientUpdated="InitAddPop();" Visible="false">
        <ContentTemplate>
            <div id="divEles" runat="server" visible="false">
            <asp:DropDownList runat="server" ID="ddlTypes" AutoPostBack="true" OnSelectedIndexChanged="FillLayouts" 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:DropDownList runat="server" ID="ddlBrowse" OnDataBound="FillFilters" ToolTip="选择要浏览的数据" AutoPostBack="true" OnSelectedIndexChanged="FillFilters"></asp:DropDownList>&nbsp;<asp:DropDownList runat="server" ToolTip="可在此选择过滤器" onchange="setUrl();" ID="ddlFilters"></asp:DropDownList>
            </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" OnSelectedIndexChanged="FillLayouts" AutoPostBack="true" 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="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="trans.aspx">事务中心</asp:ListItem>
                <asp:ListItem Value="msgs.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" onclick="return toSelectDir();" onserverclick="DirChanged"></a>
            <asp:DropDownList runat="server" ID="laysTable" for="Table" onchange="setUrl();" ToolTip="指定版式"></asp:DropDownList>
            <asp:DropDownList runat="server" ID="laysDetail" for="Detail" onchange="setUrl();" ToolTip="指定版式"></asp:DropDownList>
            <asp:DropDownList runat="server" ID="laysChart" for="Chart" onchange="setUrl();" ToolTip="指定图表"></asp:DropDownList>
            <asp:DropDownList runat="server" ID="laysReport" for="Report" onchange="setUrl();" ToolTip="指定报表"></asp:DropDownList>
            <asp:DropDownList runat="server" ID="laysEdit" for="Add" onchange="setUrl();" ToolTip="指定版式"></asp:DropDownList>
            <span class="hide" for="Table Thumb Summary Detail Dir" style="margin-left:6px"><asp:CheckBox runat="server" onclick="setUrl();" ID="cbDisCache" Text="禁止缓存" /><i title="说明" onclick="What('DisCache')" class="what"></i></span>
            <div for="Html" class="hide">
            <asp:TextBox runat="server" ID="tbHtml" TextMode="MultiLine" Width="98%"></asp:TextBox>
            </div>
            </div>
            <div id="innerUrl" class="hide"><span id="spanUrl">元素链接地址：</span><a id="aUrl"></a></div>
        </ContentTemplate>
    </ims:Pop>
    <ims:Pop runat="server" ID="web" Title="添加网页版块" Width="422" OnOkClick="AddWebBlock" OnOkClientClick="return PreAddWebBlock();" HideOnOkClientClick="false" Visible="false">
        <ContentTemplate>
            <div ID="webBlock" runat="server" class="block">
            <div class="title"><asp:TextBox runat="server" placeholder="标题" ToolTip="标题（可不填）" ID="webTitle" Width="120"></asp:TextBox></div>
            网址：<asp:TextBox runat="server" ID="tbUrl" ToolTip="可输入互联网网址，或内部页面地址"></asp:TextBox><br />
            高度：<asp:TextBox runat="server" ID="tbHeight" Width="40"></asp:TextBox> 像素，<asp:CheckBox runat="server" ID="cbAuto" Text="自适应高度" /> <asp:CheckBox runat="server" ID="cbScroll" Text="隐藏滚动条" />
            <div class="right mtop_m"><a href="#" onclick="return toGetUrl();">获取内部页面地址</a></div>
            </div>
        </ContentTemplate>
    </ims:Pop>
    <ims:Pop runat="server" ID="rss" Title="添加RSS版块" Width="420" OnOkClick="AddRssBlock" OnOkClientClick="return PreAddRssBlock();" HideOnOkClientClick="false" Visible="false">
        <ContentTemplate>
            <div ID="rssBlock" runat="server" class="block">
            <div class="title"><asp:TextBox runat="server" placeholder="标题" ToolTip="标题（可不填）" ID="rssTitle" Width="90"></asp:TextBox></div>
            RSS源：<asp:TextBox runat="server" ID="tbRss"></asp:TextBox> <asp:DropDownList runat="server" ID="ddlRss" onchange="ddlRssChanged();"></asp:DropDownList><br />
            显示的条目数量：<asp:TextBox runat="server" ID="tbRssCount" Width="40"></asp:TextBox>
            </div>
            <div class="right"><a href="###" onclick="What('rss');">RSS是什么？</a></div>
        </ContentTemplate>
    </ims:Pop>
    <ims:Pop runat="server" ID="stats" Title="添加图表/报表" Width="440" OnOkClick="AddStatsBlock" OnOkClientClick="return PreAddStatsBlock();" HideOnOkClientClick="false" Visible="false">
        <ContentTemplate>
            <div ID="statsBlock" runat="server" class="block">
            <div class="title"><asp:TextBox runat="server" placeholder="标题" ToolTip="标题（可不填）" ID="statsTitle" Width="90"></asp:TextBox></div>
                数据：<asp:DropDownList runat="server" ID="ddlData" AutoPostBack="true" OnSelectedIndexChanged="StatsDataChanged"></asp:DropDownList> <asp:DropDownList runat="server" ID="statsFilter"></asp:DropDownList><br />
                展现：<asp:DropDownList runat="server" ID="ddlStats" AutoPostBack="true" OnSelectedIndexChanged="FillStatsList">
                    <asp:ListItem Value="Chart" Selected="True">图表</asp:ListItem>
                    <asp:ListItem Value="Report">报表</asp:ListItem>
                   </asp:DropDownList>
                <asp:DropDownList runat="server" ID="statsList"></asp:DropDownList>
            </div>
        </ContentTemplate>
    </ims:Pop>
    </ContentTemplate>
</asp:UpdatePanel>
<ims:Pop runat="server" ID="manage" OkButtonText="我的版式" OnOkClick="SelectLayout" Title="管理版式" CanelButtonText="关闭" Width="420">
    <ContentTemplate>
        <table class="normal" id="layouts">
            <tr><th>版式</th><th style="width:32px">默认</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"><legend>默认版式规则</legend>
            <div class="padbox">
                <ol runat="server" id="olRules" class="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();" />
        <asp:Button runat="server" ID="btnOpera" OnClick="OperaLayout" CssClass="hide" />
    </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="src" Title="选择我的默认首页版式" OnOkClick="SetLayoutSource">
    <ContentTemplate>
        <div id="mylayouts">
            <asp:RadioButton runat="server" ID="rbMy" GroupName="src" Text="我的自定义首页" /><br />
            <asp:RadioButton runat="server" ID="rbDefault" GroupName="src" Text="我的默认首页版式" /><br />
            <asp:RadioButton runat="server" ID="rbRole" GroupName="src" Text="使用版式：" /><asp:DropDownList runat="server" ID="ddlUsable" onclick="$('#src_rbRole').prop('checked',true);"></asp:DropDownList>
        </div>
    </ContentTemplate>
</ims:Pop>
<ims:Pop runat="server" Title="生成二维码" ID="tools" ShowOkButton="false" ShowCancelButton="false">
<ContentTemplate>
    <asp:TextBox runat="server" ID="tbQrcode" Width="98.5%" placeholder="输入网址或文字" TextMode="MultiLine" Rows="4"></asp:TextBox>
    <table>
        <tr>
            <td></td>
            <td class="right"><a runat="server" id="urlQuery" onserverclick="InitForQueryUrl" onclick="return toGetUrl('queryurl');">获取页面地址</a></td>
        </tr>
    </table>
    <div class="padcenter mtop_m">
        <asp:Button runat="server" CssClass="btn" Text="生成二维码" OnClick="BuildQrcode" OnClientClick="return preQrcode();" />
    </div>
</ContentTemplate>
</ims:Pop>
<ims:Pop runat="server" ID="boards" Title="设置看板" Width="480" OnClientUpdated="boardSortable();" ShowOkButton="false" CanelButtonText="关闭">
    <ContentTemplate>
        <fieldset class="mtop_m"><legend>关注项</legend>
            <div runat="server" id="bs">
            </div>
        </fieldset>
        <fieldset class="mtop_n"><legend>添加关注项</legend>
            <div class="padbox ddls">
                从：<asp:DropDownList runat="server" ID="ddlsrc" AutoPostBack="true" OnDataBound="SrcTempletChanged" OnSelectedIndexChanged="SrcTempletChanged"></asp:DropDownList> <asp:DropDownList runat="server" ID="srcfilters"></asp:DropDownList><br />
                取：<asp:RadioButton ID="res1" GroupName="Result" Text="" runat="server" /><asp:DropDownList ID="resultSortBy"
                runat="server"></asp:DropDownList> 最 <asp:DropDownList ID="ddlDirection" runat="server">
                    <asp:ListItem Value="Ascending" Selected="true">小</asp:ListItem>
                    <asp:ListItem Value="Descending">大</asp:ListItem>
                </asp:DropDownList> 的 <asp:DropDownList ID="resultFields" runat="server">
                </asp:DropDownList><br />
                <asp:UpdatePanel ID="upfuncs" runat="server" RenderMode="Block" UpdateMode="conditional">
                <ContentTemplate>
                　　<asp:RadioButton ID="res2" Checked="true" GroupName="Result" Text="" runat="server" /><asp:DropDownList
                    ID="ddlResultStat" runat="server" AutoPostBack="true" OnSelectedIndexChanged="setComputeFuns" OnDataBound="setComputeFuns"></asp:DropDownList> <asp:DropDownList ID="ddlCompute" runat="server">
                </asp:DropDownList>
                </ContentTemplate>
                </asp:UpdatePanel>
                　　<asp:RadioButton ID="res3" GroupName="Result" Text="数量" runat="server" />
            </div>
        </fieldset>
        <table><tr><td runat="server" id="ignorePower" class="vtop"><asp:CheckBox runat="server" ID="cbIgnore" Text="忽略权限和数据保护限制" /></td><td class="right"><asp:Button runat="server" ID="btnBoard" OnClick="SaveBoard" Text="添加" OnClientClick="return toAddBoard();" CssClass="btn sec small" /></td></tr></table>
    </ContentTemplate>
</ims:Pop>
<asp:Button runat="server" ID="btnSave" OnClick="btnSave_Clicked" CssClass="hide" />
</form>
</body>
</html>