{template "nheader.html"}
<script type="text/javascript">
    $(function(){
        $.getScript("{dr_url('home/mtotal')}");
    });
</script>

<!-- BEGIN PAGE BAR -->
<div class="page-bar">
    <ul class="page-breadcrumb">
        <li>
            <a href="{dr_url('home/main')}">{fc_lang('网站后台')}</a>
            <i class="fa fa-circle"></i>
        </li>
        <li>
            <a class="blue">{fc_lang('总览')}</a>
        </li>
    </ul>
    <div class="page-toolbar">
    </div>
</div>
<!-- END PAGE BAR -->

<!-- BEGIN PAGE TITLE-->
<h3 class="page-title">
    <small></small>
</h3>

{if $ip}
<div class="alert alert-block alert-danger fade in">
    <button type="button" class="close" data-dismiss="alert"></button>
    <p> {$ip} </p>
</div>
{/if}

{template "main2.html"}

{if $admin.usermenu}
<div class="row margin-bottom-20">
    <div class="col-md-12">
        <div class="admin-usermenu">
            {loop $admin.usermenu $t}
            <a class="btn btn-default" href="{$t.url}"> {$t.name} </a>
            {/loop}
        </div>
    </div>
</div>
{/if}

<div class="row">
    <div class="col-md-6 col-sm-6">
        <div class="portlet light ">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-bar-chart font-green-sharp" style="font-size: 20px;"></i>
                    <span class="caption-subject font-green-sharp  ">{fc_lang('数据统计')}</span>
                </div>
            </div>
            <div class="portlet-body">
                <div>
                    <table class="table mtable table-nomargin table-bordered table-striped table-bordered">
                        <thead>
                        <tr>
                            <th style="text-align:center">{fc_lang('模块')}</th>
                            <th style="text-align:center">{fc_lang('总数据')}</th>
                            <th style="text-align:center">{fc_lang('今日')}</th>
                            <th style="text-align:center">{fc_lang('审核')}</th>
                            <th style="text-align:center">{fc_lang('扩展审核')}</th>
                        </tr>
                        </thead>
                        <tbody>
                        {loop $mtotal $dir $t}
                        <tr>
                            <td style="text-align:center">{$t.name}</td>
                            <td style="text-align:center"><a class="drlabel drlabel-success" href="{$t.content}" id="{$dir}_content"><img src="{THEME_PATH}admin/images/mloading.gif"></a></td>
                            <td style="text-align:center"><a class="drlabel drlabel-success" href="{$t.today}" id="{$dir}_today"><img src="{THEME_PATH}admin/images/mloading.gif"></a></td>
                            <td style="text-align:center"><a class="drlabel drlabel-important" href="{$t.content_verify}" id="{$dir}_content_verify"><img src="{THEME_PATH}admin/images/mloading.gif"></a></td>
                            <td style="text-align:center"><a class="drlabel drlabel-important" href="{$t.extend_verify}" id="{$dir}_extend_verify"><img src="{THEME_PATH}admin/images/mloading.gif"></a></td>
                        </tr>
                        {/loop}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-6 col-sm-6">
        <div class="portlet light ">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-cog font-red-sunglo" style="font-size: 20px;"></i>
                    <span class="caption-subject font-red-sunglo">系统信息</span>
                </div>
            </div>
            <div class="portlet-body">
                <div>
                    <table class="table table-light mtable">
                        <tr>
                            <td class="mleft" align="right">{fc_lang('官方网站')}：</td>
                            <td>&nbsp;<a href="http://www.phpkaiyuancms.com" target="_blank">www.phpkaiyuancms.com</a></td>
                        </tr>
                        <tr>
                            <td class="mleft" align="right">{fc_lang('程序版本')}：</td>
                            <td>&nbsp;<a href="{dr_url('upgrade/index')}">POSCMS免费版&nbsp;v{DR_VERSION} bulid {str_replace('.','', DR_UPDATE)}</a></td>
                        </tr>
                        <tr>
                            <td class="mleft" align="right">{fc_lang('用户交流群')}：</td>
                            <td>&nbsp;<a href="//shang.qq.com/wpa/qunwpa?idkey=e658f0cd3812960181232c331421fda6fb9b98887b1af489e19b9f664738c691" target="_blank">8615168 (进群验证poscms)</a></td>
                        </tr>
                        <tr>
                            <td class="mleft" align="right">{fc_lang('服务器环境')}：</td>
                            <td>&nbsp;{$server} 、PHP{PHP_VERSION} 、MySql{$sqlversion}</td>
                        </tr>
                        <tr>
                            <td class="mleft" align="right">{fc_lang('上传/POST最大值')}：</td>
                            <td>&nbsp;{php echo @ini_get("upload_max_filesize");} / {php echo @ini_get("post_max_size");}</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div class="portlet light ">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-volume-down font-blue-hoki" style="font-size: 20px;"></i>
                    <span class="caption-subject font-blue-hoki">{fc_lang('通知提醒')}</span>
                </div>
                <ul class="nav nav-tabs">
                    <li class="">
                        <a href="{$notice_url}" class="active"> {fc_lang('全部')} </a>
                    </li>
                </ul>
            </div>
            <div class="portlet-body">
                <div >
                    {if !$notice}
                    <div style="text-align: center"> {fc_lang('无任何提醒')} </div>
                    {else}

                    <ul class="feeds">
                        {loop $notice $t}
                        <li>
                            <a href="{dr_url('notice/go', array('id' => $t.id))}">
                                <div class="col1">
                                    <div class="cont">
                                        <div class="cont-col1">
                                            {if $t.type =='system'}
                                            <div class="label label-sm label-danger">
                                                <i class="fa fa-bell-o"></i>
                                            </div>
                                            {else if $t.type =='content'}
                                            <div class="label label-sm label-warning">
                                                <i class="fa fa-th-large"></i>
                                            </div>
                                            {else if $t.type =='app'}
                                            <div class="label label-sm label-info">
                                                <i class="fa fa-cloud"></i>
                                            </div>
                                            {else if $t.type =='member'}
                                            <div class="label label-sm label-success">
                                                <i class="fa fa-user"></i>
                                            </div>
                                            {/if}
                                        </div>
                                        <div class="cont-col2">
                                            <div class="desc mdesc"> {$t.msg} </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col2">
                                    <div class="date"> {dr_date($t.inputtime,'m-d')} </div>
                                </div>
                            </a>
                        </li>
                        {/loop}
                    </ul>
                    {/if}
                </div>
            </div>
        </div>
    </div>

</div>


{template "nfooter.html"}