getclientlinks.html.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php include '../../common/view/header.lite.html.php';?>
  2. <div id='' class='modal-content'>
  3. <div class='modal-body'>
  4. <?php if($links === false): ?>
  5. <?php js::set('hangWarning', $hangWarning); ?>
  6. <form method='post'>
  7. <table class='table table-form'>
  8. <tr>
  9. <th class='w-80px'><?php echo $lang->client->version;?></th>
  10. <td><?php echo $config->xuanxuan->version;?></td>
  11. </tr>
  12. <tr>
  13. <th><?php echo $lang->client->os;?></th>
  14. <td><?php echo html::checkbox('os', $lang->client->osList, $os);?></td>
  15. </tr>
  16. <tr class='text-center'>
  17. <td colspan='2'><?php echo html::submitButton($lang->client->generate, 'btn btn-primary generate-btn', 'formTarget="iframe-ajaxModal" data-loading-text="' . $this->lang->loading . '"');?></td>
  18. </tr>
  19. </table>
  20. <script>
  21. $(function()
  22. {
  23. $('.generate-btn').click(function()
  24. {
  25. alert(v.hangWarning);
  26. var $btn = $(this);
  27. $btn.button('loading');
  28. });
  29. });
  30. </script>
  31. </form>
  32. <?php else: ?>
  33. <table class='table table-form'>
  34. <tr>
  35. <th class='w-80px'><?php echo $lang->client->version;?></th>
  36. <td><?php echo $config->xuanxuan->version;?></td>
  37. </tr>
  38. <tr>
  39. <th><?php echo $lang->client->links;?></th>
  40. <td><?php echo html::textarea('downloadLinks', $links, 'style="width:100%;height:150px;"');?></td>
  41. </tr>
  42. <tr class='text-center'>
  43. <td colspan='2'><?php echo html::commonButton($lang->client->copy, 'btn btn-primary', 'id="copy-btn"');?></td>
  44. </tr>
  45. </table>
  46. <script>
  47. $(function()
  48. {
  49. $('#copy-btn').click(function()
  50. {
  51. $('#downloadLinks').select();
  52. document.execCommand('copy');
  53. $('#copy-btn').removeClass('btn-primary').addClass('btn-success');
  54. setTimeout(function(){$('#copy-btn').removeClass('btn-success').addClass('btn-primary');}, 1000);
  55. });
  56. });
  57. </script>
  58. <?php endif; ?>
  59. </div>
  60. </div>
  61. <?php include '../../common/view/footer.modal.html.php';?>