<!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">

  <link href="<?php echo YUNYECMS_PUBLIC; ?>plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" />
  <!-- Font Awesome -->
  <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; ?>plugins/iCheck/all.css">
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI; ?>dist/css/AdminLTE.min.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; ?>dist/css/admin.css">
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI; ?>dist/css/addons_detail.css">
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI; ?>validator/dist/css/bootstrapValidator.css" />
  <link href="<?php echo YUNYECMS_PUBLIC; ?>plugins/bxslider/css/bxslider.css" rel="stylesheet">
  <link href="<?php echo YUNYECMS_PUBLIC; ?>plugins/lightbox/css/lightbox.css" rel="stylesheet">

  <!-- 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">
      <div class="row">
        <!-- left column -->
        <div class="col-md-12">
          <div class="card box-primary card-outline">
            <div class="card-header">
              <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-8 pb10">
                  <h3 class="card-title">应用详情</h3> &nbsp;
                  <a href="<?php echo url_admin("init", "addons"); ?>" class="btn btn-info btn-sm btn-flat"><i class="fa fa-th-large" aria-hidden="true"> </i> 全部应用</a> &nbsp;

                  <a href="<?php echo url_admin("addons_list", "addons"); ?>" class="btn bg-blue btn-sm btn-flat"><i class="fa  fa-th-list " aria-hidden="true"> </i> 已安装的应用</a> &nbsp;
                </div>
              </div>
              <!-- /.box-header -->
              <div class="card-body">
                <div id="details" class="AppDetails">
                  <div class="TopAppInfo">
                    <div class="Banner ">
                      <div class="col-lg-12 col-md-12">
                        <div class="shop--product-slider pic-slider" style="margin-top: 0px;" data-animate="fadeInUp" data-delay=".2">
                          <ul class="showpic-mod">
                            <?php if (!empty($addonsdetail['morepic'])) : foreach ($addonsdetail['morepic'] as $key => $var) : ?>
                                <li><a class="example-image-link" href="<?php echo $var; ?>" data-lightbox="example-set" target="_blank"><img class="example-image" src="<?php echo $var; ?>" /></a></li>
                            <?php endforeach;
                            endif; ?>
                          </ul>
                          <div id="smallpic-list">
                            <?php if (!empty($addonsdetail['morepic'])) : foreach ($addonsdetail['morepic'] as $key => $var) : ?>
                                <a data-slide-index="<?php echo $key; ?>" href="<?php echo $var; ?>"><img src="<?php echo $var; ?>" alt="<?php echo $addonsdetail["title"]; ?>" /></a>
                            <?php endforeach;
                            endif; ?>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class="Sku">
                      <div class="SkuBody">
                        <div class="AppsInfo">
                          <div class="AppsLogo" style="position: relative; pointer-events: none;">
                            <img src="<?php echo $addonsdetail["pic"]; ?>" alt="<?php echo $addonsdetail["title"]; ?>">
                          </div>
                          <div>
                            <div class="Message-title">
                              <p class="title"><?php echo $addonsdetail["title"]; ?></p>
                              <p data-clipboard-text="<?php echo $addonsdetail["title"]; ?>" class="CopyDiv" style="margin-top: 20px; padding-left: 8px;">版本号：<span id="addons_ver"></span></p>
                            </div>
                            <!--   <span class="Message-Num">
             <p>应用评价
                <font>2</font></p>
              <p>安装
                <font>659</font></p>
              <p>付费安装
                <font>0</font></p>
            </span>-->
                          </div>
                        </div>
                        <!---->
                        <div id="Price">
                          <div class="Message-price">
                            <span>
                              <p class="name">价格：</p>
                              <p class="Money"><?php echo $addonsdetail['pricetype']; ?></p>
                            </span>
                            <span class="ServicePrice">
                              <p class="name">服务：</p>
                              <p class="period">(期限：永久)</p>
                            </span>
                          </div>
                          <span class="Message-app">
                            <font class="name">支持：</font>
                            <font style="margin-right: 10px;">php版本：<span id="addons_phpver"></span> &nbsp;&nbsp; mysql版本：<span id="addons_dbver"></span> </font>
                          </span>
                          <span>
                        </div>
                        <span class="Message-support pt-15">
                          <font class="name">适用：</font>
                          <font style="margin-right: 10px;"><span id="addons_fitver"></span></font>
                        </span>
                        <div class="btnbox pb-20" style="padding-left: 15px;">
                          <a target="_blank" href="<?php echo url('shop/orders/buy', array('catid' => $row['catid'], 'id' => $row['id'])); ?>" class="btn  btn-danger btn-flat"> <i class="icon-basket"> </i> 立即购买 </a> &nbsp;&nbsp;&nbsp;

                          <a target="_blank" href="<?php echo $row["downurl"]; ?>" class="btn btn-info btn-flat"><i class="fa fa-download" aria-hidden="true"></i> 点击下载 </a>&nbsp;&nbsp;

                        </div>
                      </div>
                    </div>
                    <div class="UserDiv">
                      <div class="TopInfo">
                        <div class="divFlex">
                          <img src="<?php echo $this->server; ?><?php echo YUNYECMS_PUBLIC; ?>img/logo.png">
                          <div>
                            <span class="develop-name">云业汇开发团队</span>
                            <span style="font-size: 12px; color: rgb(153, 153, 153);">官方自营</span>
                          </div>
                        </div>
                        <div class="UserQQ dev-qq-hover-box">
                          <div class="qq-list online">
                            <div>
                              <div class="qq-list-header">售前客服</div>
                              <ul>
                                <li>
                                  <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=15003219&amp;site=qq&amp;menu=yes" target="_blank" data-tippy-html="#tippy-1-0" class="qq" data-tippy="">
                                    <img src="http://wpa.qq.com/pa?p=2:15003219:52" alt="">客服</a>
                                  <div id="tippy-1-0" class="hidden hover-qq">
                                    <span class="hover-qq-text">15003219</span>
                                    <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=15003219&amp;site=qq&amp;menu=yes" class="hover-qq-link">立即咨询</a>
                                  </div>
                                </li>
                                <li>
                                  <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=527150978&amp;site=qq&amp;menu=yes" target="_blank" data-tippy-html="#tippy-1-1" class="qq" data-tippy="">
                                    <img src="http://wpa.qq.com/pa?p=2:527150978:52" alt="">技术</a>
                                  <div id="tippy-1-1" class="hidden hover-qq">
                                    <span class="hover-qq-text">527150978</span>
                                    <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=527150978&amp;site=qq&amp;menu=yes" class="hover-qq-link">立即咨询</a>
                                  </div>
                                </li>
                              </ul>
                            </div>
                          </div>
                          <div>周一至周五：09:00 - 18:30</div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="Details_body">
                    <div class="Tab_body">
                      <div class="TopHeaderMenu">
                        <div class="Tabs">
                          <span class="TabsOne active" id="appdetailmenu0" onmouseover="showDiv('appdetail',0,6,'TabsOne');">应用介绍</span>
                          <span class="TabsOne" id="appdetailmenu1" onmouseover="showDiv('appdetail',1,6,'TabsOne');">版本更新
                            <!-- <font>2</font>-->
                          </span>
                        </div>
                      </div>
                      <div class="introduce-body" style="" id="appdetail0">
                        <!---->
                        <div class="right-body">
                          <div class="introduce-head">
                            <span>
                              <p>发布时间：<?php echo udate($addonsdetail['addtime']); ?></p>
                              <p>最后更新时间：<?php echo udate($addonsdetail['updatetime']); ?></p>
                            </span>
                          </div>
                          <div id="app_body" class="item">
                            <div class="support-text"><?php echo $addonsdetail["title"]; ?></div>
                            <div class="bodys">
                              <?php echo $addonsdetail["content"]; ?>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="versionListBox" style=" display: none;" id="appdetail1">
                        <div class="versionList" id="addons_upgrade_versionbox">
                          <label class='text-blue' id='upgrade_loading' style="padding-top: 20px; font-size: 20px; font-weight: normal;">版本信息正在加载中... <i class='fa fa-spin fa-refresh'></i></label>
                        </div>
                      </div>

                    </div>
                    <div id="recommend" class="Hot_info">
                      <div class="AppInfoCard">
                        <p class="right_head">开发者推荐
                          <a href="<?php echo url_admin("init", "addons"); ?>">更多</a>
                        </p>
                        <div id="addons_recommendbox">
                          <label class='text-blue' style="padding-top: 20px; font-size: 16px; font-weight: normal;">正在加载中... <i class='fa fa-spin fa-refresh'></i></label>
                        </div>
                      </div>
                    </div>
                  </div>
                  <!---->
                </div>

              </div>
              <!-- /.box-body -->
              <div class="card-footer clearfix">

              </div>
            </div>
            <!-- /.box -->
          </div>
          <!--/.col (left) -->
        </div>
        <!-- /.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>
  <!-- AdminLTE for demo purposes -->
  <script src="<?php echo YUNYECMS_UI; ?>dist/js/admin.js"></script>
  <script src="<?php echo YUNYECMS_UI; ?>dist/js/modal.js"></script>

  <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);
    });
  </script>
  <script src="<?php echo YUNYECMS_PUBLIC; ?>plugins/bxslider/bxslider.min.js"></script>
  <script src="<?php echo YUNYECMS_PUBLIC; ?>plugins/lightbox/lightbox.js"></script>
  <script type="text/javascript">
    $(document).ready(function() {
      $('.showpic-mod').bxSlider({
        pagerCustom: '#smallpic-list',
        adaptiveHeight: true,
        infiniteLoop: true,
        hideControlOnEnd: true,
        controls: false,
        auto: true,
        pause: 6000
      });
    });
  </script>
  <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: "post",
        dataType: "text",
        data: {
          id: <?php echo $addonsdetail['id']; ?>,
          catid: <?php echo $addonsdetail['catid']; ?>,
          phpver: <?php echo $addonsdetail['phpver']; ?>,
          dbver: <?php echo $addonsdetail['dbver']; ?>,
          fitver: <?php echo $addonsdetail['fitver']; ?>,
          <?php echo $this->PostHash['ehashvar'] . ":'" . $this->PostHash['ehash'] . "'"; ?>,
          <?php echo $this->PostHash['rhashvar'] . ":'" . $this->PostHash['rhash'] . "'"; ?>
        },
        async: true,
        url: "<?php echo url_admin('getaddons_attrib', 'addons'); ?>",
        success: function(data) {
          console.log(data);
          var addons_attribdata = JSON.parse(data);
          $("#addons_ver").html(addons_attribdata.addons_ver);
          $("#addons_phpver").html(addons_attribdata.phpver + "以上");
          $("#addons_dbver").html(addons_attribdata.dbver + "以上");
          $("#addons_fitver").html(addons_attribdata.fitver + "以上版本");
        },
        error: function() {
          return false;
        }
      })

      var rehtml = "";
      $.ajax({
        type: "post",
        dataType: "text",
        data: {
          catid: <?php echo $addonsdetail['catid']; ?>,
          <?php echo $this->PostHash['ehashvar'] . ":'" . $this->PostHash['ehash'] . "'"; ?>,
          <?php echo $this->PostHash['rhashvar'] . ":'" . $this->PostHash['rhash'] . "'"; ?>
        },
        async: true,
        url: "<?php echo url_admin('getaddons_recommend', 'addons'); ?>",
        success: function(data) {
          var addons_recommenddata = JSON.parse(data);
          $.each(addons_recommenddata,
            function(i, n) {
              rehtml += "<a href=\"" + n.url + "\"  class=\"item\">\n";
              rehtml += "<img src=\"" + n.pic + "\" alt=\"" + n.title + "\">\n";
              rehtml += "<span>\n";
              rehtml += "<p class=\"title\">" + n.stitle + "</p>\n";
              rehtml += "<p class=\"info\">" + n.hits + "</p></span>\n";
              rehtml += "</a>\n";
            });
          $("#addons_recommendbox").html(rehtml);
        },
        error: function() {
          return false;
        }
      })


      var html = "";
      $.ajax({
        type: "post",
        dataType: "text",
        data: {
          id: <?php echo $addonsdetail['id']; ?>,
          <?php echo $this->PostHash['ehashvar'] . ":'" . $this->PostHash['ehash'] . "'"; ?>,
          <?php echo $this->PostHash['rhashvar'] . ":'" . $this->PostHash['rhash'] . "'"; ?>
        },
        async: true,
        url: "<?php echo url_admin('getaddons_upgrade', 'addons'); ?>",
        success: function(data) {
          var addons_upgradedata = JSON.parse(data);
          $.each(addons_upgradedata,
            function(i, n) {
              html += "<div class=\"version\">\n";
              html += "<div class=\"Time_Card\">\n";
              html += "<span>" + n.day + "</span>\n";
              html += "<p>" + n.year + "</p>\n";
              html += "</div>\n";
              html += "<span class=\"o_o\"></span>\n";
              html += "<div class=\"v_content\">\n";
              html += "<span class=\"HeaderInfo\">\n";
              html += "<p>版本号：" + n.vername + "</p>\n";
              html += "<p class=\"time\">" + n.time + "</p></span>\n";
              html += " <div class=\"contents\">\n";
              html += " <pre>" + n.content + "</pre></div>\n";
              html += "</div>\n";
              html += "</div>\n";
            });
          $("#addons_upgrade_versionbox").html(html);
        },
        error: function() {
          return false;
        }
      })







    });
  </script>




</body>

</html>