后台提交数据提示信息的模板

3243
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html>
<head>
    <title>提示信息</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style>
        *{ padding:0; margin:0; font-size:12px}
        a:link,a:visited{text-decoration:none;color:#0068a6}
        a:hover,a:active{color:#ff6600;text-decoration: underline}
        .showMsg{border:1px solid #1e64c8;zoom:1; width:450px;height:134px;position:absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);}
        .showMsg h5{background-image: url("images/msg.png");background-repeat: no-repeat; color:#fff; padding-left:35px; height:25px; line-height:26px;*line-height:28px; overflow:hidden; font-size:14px; text-align:left}
        .showMsg .content{ padding:35px 12px 28px 45px; font-size:14px; height:20px; text-align:left}
        .button-close{width: 30px;height: 18px;line-height: 18px;text-align: center;background: #1e64c8;border: 0;color: #fff;cursor:pointer;border-radius: 3px}
        .showMsg .bottom{ background:#e4ecf7; margin: 0 1px 1px 1px;line-height:26px;height:26px; text-align:center;overflow: hidden;}
        .showMsg .ok,.showMsg .guery{background: url("images/msg_bg.png") no-repeat 0px -560px;}
        .showMsg .guery{background-position: left -473px; display:inline-block;display:-moz-inline-stack;zoom:1;*display:inline;max-width:330px}
    </style>
</head>
<body>
    <div class="showMsg" style="text-align:center">
        <h5>提示信息</h5>
        <div class="content guery">
        <?php if(isset($message)) {?>
            添加成功
        <?php }else{?>
            <!-- 添加失败 -->
        <?php }?>        
        </div>
        <div class="bottom">
            <?php if($jumpUrl=='goback' || $jumpUrl=='') { ?>
            <a href="javascript:history.back();" >[返回上一页]</a>
            <?php } elseif($jumpUrl=="close") {?>
            <input type="button" class="button-close" name="close" value="关闭 " onClick="window.close();">
            <?php } elseif($jumpUrl=="blank") {?>
            <?php } elseif($jumpUrl) { ?>
            系统将在&nbsp;&nbsp;<b id="wait" style="color:red">3<?php echo($waitSecond); ?></b>&nbsp;&nbsp;秒后自动跳转,<a id="href" href="<?php echo($jumpUrl); ?>">如果没有跳转请点击这里</a>
            <?php } ?>
        </div>
    </div>
    <script type="text/javascript" src="/Public/admin/js/jquery.min.js"></script>
    <script type="text/javascript">
    function jump() {
        var wait = document.getElementById('wait'), time = <?php echo($waitSecond); ?>, href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            --time;
            if(time <= 0) {
                clearInterval(interval);
                window.location.href = href;
            };
        }, 1000);
    }
    jump();
    </script>
</body>
</html>