<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title> 云业内容管理系统-YUNYECMS <?php echo YUNYECMS_VERSION; ?></title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Font Awesome -->
  <link href="<?php echo YUNYECMS_PUBLIC; ?>plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" />
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI; ?>plugins/fontawesome-free/css/all.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI; ?>dist/css/admin.css">

  <link rel="stylesheet" href="<?php echo YUNYECMS_UI; ?>dist/css/AdminLTE.min.css">
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI; ?>plugins/jvectormap/jquery-jvectormap-1.2.2.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI; ?>dist/css/skins/_all-skins.min.css">
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI; ?>validator/dist/css/bootstrapValidator.css" />
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<body class="hold-transition rightbgcolor" onload="changefrmHeight()">
  <!-- Content Wrapper. Contains page content -->
  <div class="container-fluid" id="mainwrap">
    <!-- Main content -->
    <section class="content">
      <!-- Info boxes -->
      <div class="row">
        <div class="col-md-12">
          <div class="card card-info card-outline">
            <div class="card-header">
              <h3 class="card-title">内容</h3>
              <div class="card-tools">
                <button type="button" class="btn btn-tool" data-card-widget="collapse">
                  <i class="fas fa-minus"></i>
                </button>
                <button type="button" class="btn btn-tool" data-card-widget="remove"><i class="fas fa-times"></i>
                </button>
              </div>
            </div>
            <!-- /.box-header -->
            <div class="card-body">
              <div class="row">
                <?php foreach ($category as $key => $var) : ?>
                  <div class="col-md-3 col-sm-6 col-12">
                    <div class="info-box">
                      <span class="info-box-icon bg-info"> <a href="<?php echo $var['url']; ?>"><i class="<?php echo $var['colcss']; ?>"></i></a></span>
                      <div class="info-box-content">
                        <a href="<?php echo $var['url']; ?>">
                          <span class="info-box-text"><?php echo $var['title']; ?></span>
                          <span class="info-box-number"><?php echo $var['cnt']; ?></span>
                        </a>
                      </div>
                      </a>
                      <!-- /.info-box-content -->
                    </div>
                    <!-- /.info-box -->
                  </div>

                <?php endforeach ?>
              </div>
              <div class="clearfix"></div>
              <!-- /.table-responsive -->
            </div>
            <!-- /.box-body -->
            <!-- /.box-footer -->
          </div>
        </div>
        <!-- /.col -->
        <!-- /.col -->
        <!-- fix for small devices only -->
        <div class="clearfix visible-sm-block"></div>
        <!-- /.col -->
        <!-- /.col -->
      </div>
      <!-- /.row -->
      <div class="row">
        <?php if (!empty($msgto)) : ?>
          <div class="col-md-6">
            <div class="card card-info  card-outline">
              <div class="card-header">
                <h3 class="card-title">最新系统消息</h3>
                <div class="card-tools">
                  <button type="button" class="btn btn-tool" data-card-widget="collapse">
                    <i class="fas fa-minus"></i>
                  </button>
                  <button type="button" class="btn btn-tool" data-card-widget="remove"><i class="fas fa-times"></i>
                  </button>
                </div>
              </div>
              <!-- /.box-header -->
              <div class="card-body">
                <div class="table-responsive">
                  <table class="table no-margin">
                    <thead>
                      <tr>
                        <th>标题</th>
                        <th>时间</th>
                      </tr>
                    </thead>
                    <tbody>
                      <?php foreach ($msgto as $key => $vo) : ?>
                        <tr>
                          <td><?php echo $vo['icon']; ?> <a href="<?php echo $vo['url']; ?>"><?php echo strcut($vo['title'], 66); ?></a></td>
                          <td><?php echo yytime($vo['addtime']); ?></td>
                        </tr>
                      <?php endforeach ?>
                    </tbody>
                  </table>
                </div>
                <!-- /.table-responsive -->
              </div>
              <!-- /.box-body -->
              <div class="card-footer clearfix">
                <a href="<?php echo url_admin('init', 'msg'); ?>" class="btn btn-sm btn-info btn-flat float-right">查看全部</a>
              </div>
              <!-- /.box-footer -->
            </div>
          </div>
        <?php endif; ?>
        <?php if (!empty($customfromto)) : ?>
          <div class="col-md-6">
            <div class="card card-primary card-outline">
              <div class="card-header">
                <h3 class="card-title">最新<?php echo $formcat["title"]; ?></h3>

                <div class="card-tools">
                  <button type="button" class="btn btn-tool" data-card-widget="collapse">
                    <i class="fas fa-minus"></i>
                  </button>
                  <button type="button" class="btn btn-tool" data-card-widget="remove"><i class="fas fa-times"></i>
                  </button>
                </div>
              </div>
              <!-- /.box-header -->
              <div class="card-body">
                <div class="table-responsive">
                  <table class="table no-margin">
                    <thead>
                      <tr>
                        <th>姓名</th>
                        <th>标题</th>
                        <th>内容</th>
                        <th>时间</th>
                      </tr>
                    </thead>
                    <tbody>
                      <?php foreach ($customfromto as $key => $vo) : ?>
                        <tr>
                          <td><a href="<?php echo url_admin('customform_view', 'content', array('catid' => $vo["catid"], 'id' => $vo["id"])); ?>"> <?php echo $vo['name']; ?></a></td>
                          <td><?php echo $vo['title']; ?></a></td>
                          <td><?php echo strcut($vo['remark'], 50); ?></td>
                          <td>
                            <?php echo yytime($vo['addtime']); ?>
                          </td>
                        </tr>
                      <?php endforeach ?>
                    </tbody>
                  </table>
                </div>
                <!-- /.table-responsive -->
              </div>
              <!-- /.box-body -->
              <div class="card-footer clearfix">
                <a href="<?php echo $formurl; ?>" class="btn btn-sm btn-info btn-flat float-right">查看全部</a>
              </div>
              <!-- /.box-footer -->
            </div>
          </div>
        <?php endif; ?>
      </div>
      <div class="row">
        <div class="col-md-6">
          <div class="card card-info  card-outline">
            <div class="card-header">
              <h3 class="card-title">系统信息</h3>
            </div>
            <!-- /.box-header -->
            <div class="card-body p-0">
              <div class="table-responsive">
                <table class="table no-margin">
                  <thead>
                    <tr>
                      <th>系统名称：云业内容管理系统 &nbsp;&nbsp;&nbsp;&nbsp; [云业CMS或yunyecms]</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                      <td>品牌名称：yunyecms <span class="text-red">(已注册)</span></td>
                    </tr>
                    <!--   <tr>
                    <td>著作权登记号：2018SR208761 </td>
                  </tr>-->
                    <tr>
                      <td>版权所有：洛阳云业信息科技有限公司 </td>
                    </tr>
                    <tr>
                      <td id="versioninfo">当前版本： <?php echo $cur_ver; ?> </td>
                    </tr>
                    <tr>
                      <td>官方网站：<a href="http://www.yunyecms.com" target="_blank">http://www.yunyecms.com</a></td>
                    </tr>
                    <tr>
                      <td>手机/微信： 15937957328 &nbsp;&nbsp; 电话： 0379-62210683 &nbsp;&nbsp; QQ： <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=15003219&amp;site=qq&amp;menu=yes">15003219 </a> / <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=527150978&amp;site=qq&amp;menu=yes">527150978 </a> </td>
                    </tr>
                  </tbody>
                </table>
              </div>
              <!-- /.table-responsive -->
            </div>
          </div>
        </div>
        <div class="col-md-6">
          <div class="card card-success  card-outline">
            <div class="card-header with-border">
              <h3 class="card-title">授权信息</h3>
            </div>
            <!-- /.box-header -->
            <div class="card-body  p-0">
              <div class="table-responsive">
                <table class="table no-margin">
                  <thead>
                    <tr>
                      <th>程序名称：<?php echo $cur_soft_name; ?> </th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr id="grantinfo">
                      <td style="line-height: 2.3; padding-bottom: 30px;height:185px;">
                        <span id="grantren"></span> <br>
                        <span id="grantdomain"></span> <br>
                        <span id="granttime"></span> <br>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>
              <!-- /.table-responsive -->
            </div>
            <!-- /.box-body -->
            <!-- /.box-footer -->
          </div>
        </div>
      </div>
      <!-- Main row -->

      <!-- /.row -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  <?php require tpl_adm('foot'); ?>
  <!-- jQuery 2.2.3 -->
  <script src="<?php echo YUNYECMS_UI; ?>plugins/jQuery/jquery-3.6.1.min.js"></script>
  <!-- Bootstrap 3.3.6 -->
  <script src="<?php echo YUNYECMS_UI; ?>bootstrap/js/bootstrap.min.js"></script>
  <!-- FastClick -->
  <script src="<?php echo YUNYECMS_UI; ?>plugins/fastclick/fastclick.js"></script>
  <script src="<?php echo YUNYECMS_UI; ?>dist/js/admin.js"></script>
  <script src="<?php echo YUNYECMS_UI; ?>dist/js/modal.js"></script>
  <!-- AdminLTE App -->
  <script src="<?php echo YUNYECMS_UI; ?>dist/js/adminlte.js"></script>
  <!-- Sparkline -->
  <script src="<?php echo YUNYECMS_UI; ?>plugins/sparkline/jquery.sparkline.min.js"></script>
  <!-- jvectormap -->
  <script src="<?php echo YUNYECMS_UI; ?>plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
  <script src="<?php echo YUNYECMS_UI; ?>plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
  <!-- SlimScroll 1.3.0 -->
  <script src="<?php echo YUNYECMS_UI; ?>plugins/slimScroll/jquery.slimscroll.min.js"></script>
  <!-- ChartJS 1.0.1 -->
  <script src="<?php echo YUNYECMS_UI; ?>plugins/chartjs/Chart.min.js"></script>
  <!-- AdminLTE dashboard demo (This is only for demo purposes) -->
  <!-- AdminLTE for demo purposes -->
  <script language="javascript" type="text/javascript">
    $(function() {
      var navudinfo = "<?php echo $parnav; ?>";
      $('.breadcrumb', window.parent.document).children('#homeitem').nextAll().remove();
      $('.breadcrumb', window.parent.document).children('#homeitem').after(navudinfo);
      $.ajax({
        type: "get",
        dataType: "text",
        async: true,
        url: "<?php echo url_admin('getgrant', 'main'); ?>",
        success: function(data) {
          //console.log(data);
          var grantdata = JSON.parse(data);
          if (grantdata.isgrant == 1) {
            $("#grantren").html("授权人：" + grantdata.company);
            $("#grantdomain").html("授权域名：" + grantdata.domain);
            $("#granttime").html("授权期限：" + grantdata.granttime + "～永久");
          } else {
            $("#grantren").html("<span class='label label-danger'>未授权</span> &nbsp;&nbsp; <a href='http://www.yunyecms.com/grant.html' class='btn btn-info btn-xs btn-flat' target='_blank'> <i class='icon-badge'></i> 去授权 </a> ");
          }
          //objtotalmoney.val(pricedata.num);
        },
        error: function() {
          return false;
        }
      })

      $.ajax({
        type: "get",
        dataType: "text",
        async: true,
        url: "<?php echo url_admin('getver', 'main'); ?>",
        success: function(data) {
          //console.log(data);
          var versiondata = JSON.parse(data);
          $("#versioninfo").html("当前版本：" + versiondata.cur_ver);
        },
        error: function() {
          return false;
        }
      })



    });
  </script>
</body>

</html>