@using GBLab.Common.Expand;
@using System.Data;

@{
    Layout = "~/Areas/Manage/Views/DefaultSkin/Shared_Back/_Layout_Page.cshtml";
    var config = ViewData["CmsConfig"] as GBLab.Entities.Config.CmsConfig;

    var count = ViewData["GetCms_Count_Info"] as DataTable;
    var countmonth = ViewData["GetCms_Count_Info_ThisMonth"] as DataTable;
}

<script src="/App_Themes/Skin_Manage/Extend/libs/sea/sea.js?v=@(ViewBag.Version)"></script>
<script src="/App_Themes/Skin_Manage/Extend/libs/sea/seajs-css.js?v=@(ViewBag.Version)"></script>
<script src="/App_Themes/Skin_Manage/Extend/helper/sea/seaConfig.js?v=@(ViewBag.Version)"></script>

<style>
    /*.panel { display: inline; float: left; padding: 3px; }*/
    .headimage { float: left; margin: 3px 10px 3px 3px; padding: 3px; border: 1px solid #efefef; border-radius: 5px; height: 78px; width: 78px; }
    .headcontainer { line-height: 35px; }
    .headcontainer > div { margin-top: 10px; }
    .headcontainer > div > span { font-weight: bold; color: green; }

    .enterpriseInfo > a { float: left; height: 80px; margin: 5px; }
    .enterpriseInfo > a > span > .l-btn-text { margin-top: 40px; line-height: 17px; }

    .countInfo > a { float: left; height: 80px; margin: 5px; }
    .countInfo > a > span > .l-btn-text { margin-top: 40px; line-height: 17px; }

    #countbutton > div { margin-bottom: 5px; }
</style>

<div id="tabs" class="easyui-tabs menu-tabs" data-options="border:true,fit:true" style="width:100%;">
    <div title="网站坐标" id="2" style="padding:5px;">
        <div id="p" class="easyui-panel" data-options="fit:true">
            @RenderPage("~/Areas/Manage/Views/DefaultSkin/Modules/00Common/Partial/_BaiDuMap_View.cshtml", new { FieldName = "F_Value", ValueInfo = config.Site_Baidu, NameInfo = config.Site_Name.DefaultIsNullOrEmpty("学校软件"), AddressInfo = config.Site_Contract_Address.DefaultIsNullOrEmpty("学校软件") })
        </div>
    </div>
    <div title="系统汇总" id="countbutton" style="padding:5px;">
        <div id="p" class="easyui-panel" title="全部数据" style="height:125px;padding:5px;width:100%;">
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-picture',size:'large',iconAlign:'top'">【资讯】</br>@(count.Rows[0]["newsNum"].DefaultIsNullOrEmpty(""))</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-shapes',size:'large',iconAlign:'top'">【相册】</br>@(count.Rows[0]["imgsNum"].DefaultIsNullOrEmpty(""))</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-smartart',size:'large',iconAlign:'top'">【教师】</br>@(count.Rows[0]["teacherNum"].DefaultIsNullOrEmpty(""))</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-chart',size:'large',iconAlign:'top'">【招聘】</br>@(count.Rows[0]["hireNum"].DefaultIsNullOrEmpty(""))</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-smartart',size:'large',iconAlign:'top'">【留言】</br>@(count.Rows[0]["guestbookNum"].DefaultIsNullOrEmpty(""))</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-chart',size:'large',iconAlign:'top'">【菜单】</br>@(count.Rows[0]["nodeNum"].DefaultIsNullOrEmpty(""))</a>
        </div>
        <div id="p" class="easyui-panel" title="当月数据" style="height:125px;padding:5px;width:100%;">
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-picture',size:'large',iconAlign:'top'">【资讯】</br>@(countmonth.Rows[0]["newsNum"].DefaultIsNullOrEmpty(""))</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-shapes',size:'large',iconAlign:'top'">【相册】</br>@(countmonth.Rows[0]["imgsNum"].DefaultIsNullOrEmpty(""))</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-smartart',size:'large',iconAlign:'top'">【教师】</br>@(countmonth.Rows[0]["teacherNum"].DefaultIsNullOrEmpty(""))</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-chart',size:'large',iconAlign:'top'">【招聘】</br>@(countmonth.Rows[0]["hireNum"].DefaultIsNullOrEmpty(""))</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-smartart',size:'large',iconAlign:'top'">【留言】</br>@(countmonth.Rows[0]["guestbookNum"].DefaultIsNullOrEmpty(""))</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px" data-options="iconCls:'icon-large-chart',size:'large',iconAlign:'top'">【菜单】</br>@(countmonth.Rows[0]["nodeNum"].DefaultIsNullOrEmpty(""))</a>
        </div>
    </div>
    <div title="网站配置" id="3" style="padding:5px;">
        <div id="p" class="easyui-panel" data-options="fit:true">
            <table class="easyui-propertygrid" style="width:300px" data-options="url:'/manage/KeyValueItem/GetCmsConfig',method:'get',showGroup:true, scrollbarSize:0,border:false,groupFormatter:groupFormatter,fit:true"></table>
            <script>
                function groupFormatter(fvalue, rows) {
                    return fvalue + ' - <span style="color:red">' + rows.length + ' rows</span>';
                }
            </script>
        </div>
    </div>
    <div title="服务器信息" id="4" style="padding:5px;">
        <div id="p" class="easyui-panel" data-options="fit:true">
            <table class="easyui-propertygrid" style="width:300px" data-options="url:'/manage/index/SystemInfo?type=server',method:'get',showGroup:true, scrollbarSize:0,border:false,groupFormatter:groupFormatter,fit:true"></table>
            <script>
                function groupFormatter(fvalue, rows) {
                    return fvalue + ' - <span style="color:red">' + rows.length + ' rows</span>';
                }
            </script>
        </div>
    </div>
    <div title="网站信息" id="5" style="padding:5px;">
        <div id="p" class="easyui-panel" data-options="fit:true">
            <table class="easyui-propertygrid" style="width:300px" data-options="url:'/manage/index/SystemInfo?type=site',method:'get',showGroup:true, scrollbarSize:0,border:false,groupFormatter:groupFormatter,fit:true"></table>
            <script>
                function groupFormatter(fvalue, rows) {
                    return fvalue + ' - <span style="color:red">' + rows.length + ' rows</span>';
                }
            </script>
        </div>
    </div>
</div>