<%@ Master Language="C#" Debug="true" AutoEventWireup="true" Inherits="DefaultMaster_Default"
    CodeBehind="DefaultMaster.master.cs" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxSiteMapControl" TagPrefix="dxsm" %>
<!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">
<head id="MasterHead" runat="server">
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="/css/toastr-master/toastr.css" rel="stylesheet" />
    <script src="/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <%--<script src="/css/toastr-master/toastr.js" type="text/javascript"></script>--%>
</head>
<body>
    <form id="MasterPageForm" runat="server">
    <div id="master_header" style="width: 793px">
        <div id="master_headertop">
            <asp:Image ID="Image2" runat="server" ImageUrl="~/images/headertop_img.jpg" />
        </div>
    </div>
    <div id="master_page">
        <div id="master_content" style="width: 795px">
            <div id="master_contentheader" style="width: 795px">
                <div style="text-align: left">
                    <table>
                        <tr>
                            <td style="width: 17px">
                            </td>
                            <td style="width: 767px">
                                <asp:Label ID="Label_login" runat="server" Font-Size="12px" Font-Bold="True" Font-Names="微软雅黑"
                                    ForeColor="Navy" OnLoad="info_load" Text="Label"></asp:Label>
                                &nbsp; &nbsp;
                                <asp:HyperLink ID="HyperLink2" runat="server" Style="left: 68px; top: 118px" Font-Bold="True"
                                    ForeColor="CornflowerBlue" NavigateUrl="~/admin/user_detail.aspx" Width="80px"
                                    Height="21px" Font-Names="微软雅黑">(修改资料)</asp:HyperLink>
                                <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Names="微软雅黑"
                                    ForeColor="CornflowerBlue" Height="21px" NavigateUrl="~/Logon.aspx" Style="left: 68px;
                                    top: 118px" Width="44px">(注销)</asp:HyperLink>
                                <%-- <asp:Image ID="Image4" runat="server" Style="top: 10px; width: 30px; height: 30px;"
                                    ImageUrl="~/images/message.jpg" ImageAlign="Right" />--%>
                            </td>
                            <td style="width: 160px">
                                <a target="_blank" href="手术申请使用说明.pdf">手术申请帮助文档</a>
                                <%--  <asp:HyperLink ID="HyperLink3" runat="server" Text=""
                                         NavigateUrl="~/手术申请使用说明.pdf" />--%>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 17px">
                            </td>
                            <td colspan="2" style="width: 767px">
                                <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="微软雅黑" ForeColor="Black"
                                    OnLoad="info_load" Text="快速导航:"></asp:Label>
                                <asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="微软雅黑" Font-Size="Small">
                                    <PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" />
                                    <CurrentNodeStyle ForeColor="#333333" />
                                    <NodeStyle Font-Bold="True" ForeColor="#284E98" />
                                    <RootNodeStyle Font-Bold="True" ForeColor="#507CD1" />
                                </asp:SiteMapPath>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div id="master_contentplaceholder">
                <br />
                <asp:ContentPlaceHolder ID="SampleContent" runat="server" />
            </div>
            <div id="master_contentfooter" align="center">
                <table class="style1">
                    <tr>
                        <td style="width: 400px">
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/chaoYangHospital.png" ImageAlign="Right" />
                        </td>
                        <td class="style2">
                            &nbsp;
                        </td>
                        <td>
                            <asp:Image ID="Image3" runat="server" ImageUrl="~/images/company.png" ImageAlign="Left"
                                Height="54px" Width="200px" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" align="center">
                            Copyright © 2015-2016 BEIJING CHAO-YANG HOSPITAL &amp; Beijing EASYMONITOR
                            Tech. Co.,Ltd. &nbsp;All Rights Reserved.
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div id="popupcontent1" class='popupcontent1'>
        <span id="ta1">推送消息:</span>
        <asp:Label ID="MessageInfoText" runat="server" Font-Bold="True" Font-Names="微软雅黑"
            ForeColor="Black" OnLoad="Messageinfo_load"></asp:Label>
        <asp:Label ID="TimeText" runat="server" Font-Bold="True" Font-Names="微软雅黑" ForeColor="Black"
            OnLoad="Messageinfo_load"></asp:Label>
        <asp:Button ID="Button_regId" runat="server" Font-Bold="False" OnClick="HistoryPushMessage_Click" />
    </div>
    </form>
    <script type="text/javascript">
        window.onload = function () {
            function readCookie(name) {
                var nameEQ = name + "=";
                var ca = document.cookie.split(';');
                for (var i = 0; i < ca.length; i++) {
                    var c = ca[i];
                    while (c.charAt(0) == ' ') c = c.substring(1, c.length);
                    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
                }
                return false;
            }

function createCookie(name, value, days) {
                if (days) {
                    var date = new Date();
                    date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
                    var expires = "; expires=" + date.toGMTString();
                }
                else expires = "";
                document.cookie = name + "=" + value + expires + "; path=/";
            }
            /*
            * Toastr
            * Copyright 2012-2014 John Papa and Hans Fjällemark.
            * All Rights Reserved.
            * Use, reproduction, distribution, and modification of this code is subject to the terms and
            * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
            *
            * Author: John Papa and Hans Fjällemark
            * ARIA Support: Greta Krafsig
            * Project: https://github.com/CodeSeven/toastr
            */
            ; (function (define) {
                define(['jquery'], function ($) {
                    return (function () {
                        var $container;
                        var listener;
                        var toastId = 0;
                        var toastType = {
                            error: 'error',
                            info: 'info',
                            success: 'success',
                            warning: 'warning'
                        };

var toastr = {
                            clear: clear,
                            remove: remove,
                            error: error,
                            getContainer: getContainer,
                            info: info,
                            options: {},
                            subscribe: subscribe,
                            success: success,
                            version: '2.0.3',
                            warning: warning
                        };

return toastr;

//#region Accessible Methods
                        function error(message, title, optionsOverride) {
                            return notify({
                                type: toastType.error,
                                iconClass: getOptions().iconClasses.error,
                                message: message,
                                optionsOverride: optionsOverride,
                                title: title
                            });
                        }

function getContainer(options, create) {
                            if (!options) { options = getOptions(); }
                            $container = $('#' + options.containerId);
                            if ($container.length) {
                                return $container;
                            }
                            if (create) {
                                $container = createContainer(options);
                            }
                            return $container;
                        }

function info(message, title, optionsOverride) {
                            return notify({
                                type: toastType.info,
                                iconClass: getOptions().iconClasses.info,
                                message: message,
                                optionsOverride: optionsOverride,
                                title: title
                            });
                        }

function subscribe(callback) {
                            listener = callback;
                        }

function success(message, title, optionsOverride) {
                            return notify({
                                type: toastType.success,
                                iconClass: getOptions().iconClasses.success,
                                message: message,
                                optionsOverride: optionsOverride,
                                title: title
                            });
                        }

function warning(message, title, optionsOverride) {
                            return notify({
                                type: toastType.warning,
                                iconClass: getOptions().iconClasses.warning,
                                message: message,
                                optionsOverride: optionsOverride,
                                title: title
                            });
                        }

function clear($toastElement) {
                            var options = getOptions();
                            if (!$container) { getContainer(options); }
                            if (!clearToast($toastElement, options)) {
                                clearContainer(options);
                            }
                        }

function remove($toastElement) {
                            var options = getOptions();
                            if (!$container) { getContainer(options); }
                            if ($toastElement && $(':focus', $toastElement).length === 0) {
                                removeToast($toastElement);
                                return;
                            }
                            if ($container.children().length) {
                                $container.remove();
                            }
                        }
                        //#endregion

//#region Internal Methods

function clearContainer(options) {
                            var toastsToClear = $container.children();
                            for (var i = toastsToClear.length - 1; i >= 0; i--) {
                                clearToast($(toastsToClear[i]), options);
                            };
                        }

function clearToast($toastElement, options) {
                            if ($toastElement && $(':focus', $toastElement).length === 0) {
                                $toastElement[options.hideMethod]({
                                    duration: options.hideDuration,
                                    easing: options.hideEasing,
                                    complete: function () { removeToast($toastElement); }
                                });
                                return true;
                            }
                            return false;
                        }

function createContainer(options) {
                            $container = $('<div/>')
                    .attr('id', options.containerId)
                    .addClass(options.positionClass)
                    .attr('aria-live', 'polite')
                    .attr('role', 'alert');

$container.appendTo($(options.target));
                            return $container;
                        }

function getDefaults() {
                            return {
                                tapToDismiss: true,
                                toastClass: 'toast',
                                containerId: 'toast-container',
                                debug: false,

showMethod: 'fadeIn', //fadeIn, slideDown, and show are built into jQuery
                                showDuration: 300,
                                showEasing: 'swing', //swing and linear are built into jQuery
                                onShown: undefined,
                                hideMethod: 'fadeOut',
                                hideDuration: 1000,
                                hideEasing: 'swing',
                                onHidden: undefined,

extendedTimeOut: 1000,
                                iconClasses: {
                                    error: 'toast-error',
                                    info: 'toast-info',
                                    success: 'toast-success',
                                    warning: 'toast-warning'
                                },
                                iconClass: 'toast-info',
                                positionClass: 'toast-top-right',
                                timeOut: 5000, // Set timeOut and extendedTimeout to 0 to make it sticky
                                titleClass: 'toast-title',
                                messageClass: 'toast-message',
                                target: 'body',
                                closeHtml: '<button>&times;</button>',
                                newestOnTop: true
                            };
                        }

function publish(args) {
                            if (!listener) { return; }
                            listener(args);
                        }

function notify(map) {
                            var options = getOptions(),
                    iconClass = map.iconClass || options.iconClass;

if (typeof (map.optionsOverride) !== 'undefined') {
                                options = $.extend(options, map.optionsOverride);
                                iconClass = map.optionsOverride.iconClass || iconClass;
                            }

toastId++;

$container = getContainer(options, true);
                            var intervalId = null,
                    $toastElement = $('<div/>'),
                    $titleElement = $('<div/>'),
                    $messageElement = $('<div/>'),
                    $closeElement = $(options.closeHtml),
                    response = {
                        toastId: toastId,
                        state: 'visible',
                        startTime: new Date(),
                        options: options,
                        map: map
                    };

if (map.iconClass) {
                                $toastElement.addClass(options.toastClass).addClass(iconClass);
                            }

if (map.title) {
                                $titleElement.append(map.title).addClass(options.titleClass);
                                $toastElement.append($titleElement);
                            }

if (map.message) {
                                $messageElement.append(map.message).addClass(options.messageClass);
                                $toastElement.append($messageElement);
                            }

if (options.closeButton) {
                                $closeElement.addClass('toast-close-button').attr("role", "button");
                                $toastElement.prepend($closeElement);
                            }

$toastElement.hide();
                            if (options.newestOnTop) {
                                $container.prepend($toastElement);
                            } else {
                                $container.append($toastElement);
                            }

$toastElement[options.showMethod](
                    { duration: options.showDuration, easing: options.showEasing, complete: options.onShown }
                );

if (options.timeOut > 0) {
                                intervalId = setTimeout(hideToast1, options.timeOut);
                            }

$toastElement.hover(stickAround, delayedHideToast);
                            if (!options.onclick && options.tapToDismiss) {
                                $toastElement.click(hideToast);
                            }

if (options.closeButton && $closeElement) {
                                $closeElement.click(function (event) {
                                    if (event.stopPropagation) {
                                        event.stopPropagation();
                                    } else if (event.cancelBubble !== undefined && event.cancelBubble !== true) {
                                        event.cancelBubble = true;
                                    }
                                    hideToast(true);
                                });
                            }

if (options.onclick) {
                                $toastElement.click(function () {
                                    options.onclick();
                                    hideToast();
                                });
                            }

publish(response);

if (options.debug && console) {
                                console.log(response);
                            }

return $toastElement;

function hideToast(override) {                          
                                var name = "visited";
                                var value = $("#<%=TimeText.ClientID%>").text().toString();
                                createCookie(name, value, 1000);
                                if ($(':focus', $toastElement).length && !override) {
                                    return;
                                }
                                return $toastElement[options.hideMethod]({
                                    duration: options.hideDuration,
                                    easing: options.hideEasing,
                                    complete: function () {
                                        removeToast($toastElement);
                                        if (options.onHidden && response.state !== 'hidden') {
                                            options.onHidden();
                                        }
                                        response.state = 'hidden';
                                        response.endTime = new Date();
                                        publish(response);
                                    }
                                });
                            }
                            function hideToast1(override) {
                                if ($(':focus', $toastElement).length && !override) {
                                    return;
                                }
                                return $toastElement[options.hideMethod]({
                                    duration: options.hideDuration,
                                    easing: options.hideEasing,
                                    complete: function () {
                                        removeToast($toastElement);
                                        if (options.onHidden && response.state !== 'hidden') {
                                            options.onHidden();
                                        }
                                        response.state = 'hidden';
                                        response.endTime = new Date();
                                        publish(response);
                                    }
                                });
                            }

function delayedHideToast() {
                                if (options.timeOut > 0 || options.extendedTimeOut > 0) {
                                    intervalId = setTimeout(hideToast, options.extendedTimeOut);
                                }
                            }

function stickAround() {
                                clearTimeout(intervalId);
                                $toastElement.stop(true, true)[options.showMethod](
                        { duration: options.showDuration, easing: options.showEasing }
                    );
                            }
                        }

function getOptions() {
                            return $.extend({}, getDefaults(), toastr.options);
                        }
                        function removeToast($toastElement) {
                            if (!$container) { $container = getContainer(); }
                            if ($toastElement.is(':visible')) {
                                return;
                            }
                            $toastElement.remove();
                            $toastElement = null;
                            if ($container.children().length === 0) {
                                $container.remove();
                            }
                        }
                        //#endregion
                    })();
                });
            } (typeof define === 'function' && define.amd ? define : function (deps, factory) {
                if (typeof module !== 'undefined' && module.exports) { //Node
                    module.exports = factory(require('jquery'));
                } else {
                    window['toastr'] = factory(window['jQuery']);
                }
            }));

function showlist() {
                $("#<%=Button_regId.ClientID%>").click();
                var name = "visited";
                var value = $("#<%=TimeText.ClientID%>").text();
                createCookie(name, value, 1000);
            }
            var arrStr = readCookie("visited").toString();
            var myIntervalshowCookie = arrStr.indexOf($("#<%=TimeText.ClientID%>").text().toString());
            if (myIntervalshowCookie > -1) {
            }
            else {
                //消息推送设置
                function myIntervalshow() {
                    //参数设置,若用默认值可以省略以下面代
                    toastr.options = {
                        "closeButton": true,
                        "debug": false,
                        "positionClass": "toast-bottom-right",
                        "onclick": showlist,
                        "showDuration": "300",
                        "hideDuration": "1000",
                        "timeOut": "5000",
                        "extendedTimeOut": "1000",
                        "showEasing": "swing",
                        "hideEasing": "linear",
                        "showMethod": "fadeIn",
                        "hideMethod": "fadeOut",
                        "progressBar": "true"
                    }
                    if ($("#<%=MessageInfoText.ClientID%>").text() != "") {
                        toastr.info($("#<%=TimeText.ClientID%>").text() + "<br/>" + $("#<%=MessageInfoText.ClientID%>").text());
                    }
                }
            }
            if ($("#<%=MessageInfoText.ClientID%>").text() != "" && myIntervalshowCookie == -1) {
                myIntervalshow();
            }

}
    </script>
</body>
</html>

iE6、7、8、9、10、11兼容的Cookie的更多相关文章

  1. Textarea自适应高度 JS实现,兼容IE6\7\8\9\10\11

    <!DOCTYPE html> <html> <head> <title>autoresizing textarea</title> < ...

  2. mac 10.11.6,Xcode8下,ruby2.3安装,Cocoapods安装~

    适用环境 mac: 10.11.6 Xcode:8.1 命令执行步骤(安装ruby2.3前准备工作) 查看ruby更新源 gem sources  -L 删除默认官方或者淘宝,新增 https://g ...

  3. Setup Tensorflow with GPU on Mac OSX 10.11

    Setup Tensorflow with GPU on OSX 10.11 环境描述 电脑:MacBook Pro 15.6 CPU: 2.7GHz 显卡: GT 650m 系统:OSX 10.11 ...

  4. RxHttp 完美适配Android 10/11 上传/下载/进度监听

    1.前言 随着Android 11的正式发布,适配Android 10/11 分区存储就更加的迫切了,因为Android 11开始,将强制开启分区存储,我们就无法再以绝对路径的方式去读写非沙盒目录下的 ...

  5. iOS冰与火之歌(番外篇) - 基于PEGASUS(Trident三叉戟)的OS X 10.11.6本地提权

    iOS冰与火之歌(番外篇) 基于PEGASUS(Trident三叉戟)的OS X 10.11.6本地提权 蒸米@阿里移动安全 0x00 序 这段时间最火的漏洞当属阿联酋的人权活动人士被apt攻击所使用 ...

  6. 背水一战 Windows 10 (11) - 资源: CustomResource, ResourceDictionary, 加载外部的 ResourceDictionary 文件

    [源码下载] 背水一战 Windows 10 (11) - 资源: CustomResource, ResourceDictionary, 加载外部的 ResourceDictionary 文件 作者 ...

  7. HP 820 G2变色龙安装10.11.6基本完美

    初始状态: 一块ssd硬盘,MBR格式分区,安装了WIN7 64位. 不想动win系统,因此就安装在硬盘的扩展分区 电脑配置: cpu: i7-5600u 声卡: ALC280 显卡: HD55 ...

  8. MAC OS升级到10.11(OS X EICAPTION)之后CocoaPods不能正常使用的问题解决

    昨晚回家之后开始升级系统到10.11,下载了一整个晚上之后终于在早上下载完毕,早上带到公司,想查一个第三方库的时候却遇到了问题: guoyufudeMacBook-Pro:~ GuoYufu$ pod ...

  9. 释放修改OS X 10.11系统文件权限【转】

    序言:有时要替换相关的(系统目录下的)文件以完成软件的破解,但在 OS X 10.11 系统图形界面下,Root(系统超级用户)已‘转变’为 Administrator(管理员用户),选择系统文件夹( ...

随机推荐

  1. Restore IP Addresses

    Given a string containing only digits, restore it by returning all possible valid IP address combina ...

  2. NSOJ10050 Newspaper Headline

    题意:给你一个<10^4的S串和<10^6的T串,通过将S串重复k次,然后将其中一些多余的字母删掉可以获得T串,问k最小是多少,没有的话输出1. 思路:对于每个T串里的字母,我们从左到右扫 ...

  3. 2014多校第一场D题 || HDU 4864 Task (贪心)

    题目链接 题意 : 用N台机器,M个任务,每台机器都有一个最大工作时间和等级,每个任务有一个需要工作时间和一个等级.如果机器完成一个任务要求是:机器的工作时间要大于等于任务的时间,机器的等级要大于等于 ...

  4. SDUT1500 Message Flood

    以前做过的用的字典树,可是貌似现在再用超内存....求解释... 问了LYN用的map函数做的,又去小小的学了map函数.... http://wenku.baidu.com/view/0b08cec ...

  5. PSYoungGen /PSOldGen/PSPermGen区别

    原文地址:http://bbs.csdn.net/topics/210064791 谁能解译一下PSYoungGen /PSOldGen/PSPermGen区别及出现的问题? 看来没有收集到答案,查看 ...

  6. Netty 的Downstream 和 Upstream

    Netty的Downstream 和 Upstream 如果一个event从第一个handler传递直到最后一个handler就是 Upstream 相反的如果一个event从最后一个handler传 ...

  7. 51Nod 有限背包计数问题 题解报告

    首先这道题理论上是可以做到O(nlogn)的,因为OEIS上有一个明显可以用多项式乘法加速的式子 但是由于模数不是很兹磁,所以导致nlogn很难写 在这里说一下O(n*sqrt(n))的做法 首先我们 ...

  8. 转一个distinct用法,很有帮助

    转一个distinct用法,很有帮助 (2011-12-01 15:18:11) 转载▼ 标签: 杂谈 分类: mysql复制 在使用mysql时,有时需要查询出某个字段不重复的记录,虽然mysql提 ...

  9. activiti5.13 框架 数据库设计说明书

    转载自:http://www.cnblogs.com/llzgzljl/p/3356108.html activiti5.13 框架 数据库设计说明书 1.结构设计 1.1.    逻辑结构设计 Ac ...

  10. HackDemo.java

    import java.io.*; import java.awt.*; public class HackDemo{ public static void main(String args[]) t ...