<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

<!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>
	<meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>管理页面</title>
    <link href="../../Content/skin/admin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #PopupMsg {
            padding: 2px 10px;
            text-align: center;
            border: 1px solid #C66;
            background: #fc3;
            color: #666;
            display: none;
            position: absolute;
            left: 45%;
            top: 20%;
        }
        a {
            color: #FFFFFF;
        }
    </style>
    <script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.loading.js" type="text/javascript"></script>
</head>
<body>
    <div class="admin_top">
        <div style="float: right;padding-right:40px;margin-top:10px">
			<a href="<%=Url.Action("FeedBack")%>" target="main">问题建议</a>
            <a href="<%=Url.Action("Index", "Home")%>" target="_blank">网站首页</a>
			<a href="<%=Url.Action("ClearCache")%>" onclick="return ClearCache()"target="_blank">清理缓存</a>
            <%=Html.ActionLink("退出管理", "Logout")%>
        </div>
        <div style="float: left">
            <img src="../../Content/images/adminlogo.png" alt="" />
        </div>
	    <div id="PopupMsg"></div>
    </div>
	<script type="text/javascript">
		function ShowMsg(str, timeout) {
			$("#PopupMsg").empty().append(str);
			$.showLoading(".admin_top", "#PopupMsg");
			setTimeout(function () { $.hideLoading(); }, timeout);
		}
		function ClearCache() {
			$.get('<%=Url.Action("ClearCache")%>?_='+Math.random(), null, function (data) { ShowMsg(data,1000); });
			return false;
		}
	</script>
</body>
</html>
