checkupgrade.xuanxuan.html.hook.php 735 B

1234567891011121314151617181920
  1. <?php
  2. $this->app->loadLang('im');
  3. $html = '';
  4. $html .= '<li>' . html::a($this->createLink('admin', 'xuanxuan'), $this->lang->im->common) . '</li>';
  5. $html .= '<li>' . html::a($this->createLink('client', 'browse'), $this->lang->client->browse) . '</li>';
  6. $html .= '<li>' . $this->lang->client->checkUpgrade . '</li>';
  7. ?>
  8. <script>
  9. $(function()
  10. {
  11. $('#footer .breadcrumb').append(<?php echo json_encode($html);?>);
  12. for(i in serverVersions[0].xxcDownload)
  13. {
  14. var url = serverVersions[0].xxcDownload[i].url;
  15. url = url.replace('xuanxuan.' + serverVersions[0].xxcVersion, 'zentaoclient');
  16. url = url.replace('xuanxuan', 'zentaoclient');
  17. serverVersions[0].xxcDownload[i].url = url;
  18. }
  19. });
  20. </script>