m.footer.html.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * The footer mobile view of common module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2016 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Fei Chen <chenfei@cnezsoft.com>
  8. * @package common
  9. * @version $Id: header.lite.html.php 3299 2015-12-02 02:10:06Z daitingting $
  10. * @link http://www.zentao.net
  11. */
  12. if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}
  13. if(isset($pageJS)) js::execute($pageJS);
  14. /* Load hook files for current page. */
  15. $extPath = dirname(dirname(dirname(__FILE__))) . '/common/ext/view/';
  16. $extHookRule = $extPath . $config->devicePrefix['mhtml'] . 'footer.*.hook.php';
  17. $extHookFiles = glob($extHookRule);
  18. if($extHookFiles) foreach($extHookFiles as $extHookFile) include $extHookFile;
  19. ?>
  20. <script>
  21. $(document).ready(function()
  22. {
  23. $(document).on('click', 'button[type="button"]', function()
  24. {
  25. $('button[type="button"]').attr('disabled', 'disabled').addClass('disabled loading');
  26. setTimeout(function()
  27. {
  28. $('button[type="button"]').attr('disabled', null).removeClass('disabled loading');
  29. }, 2000)
  30. });
  31. $(document).on('submit', 'form', function()
  32. {
  33. var $submitButton = $('button[type="submit"]');
  34. $submitButton.attr('disabled', 'disabled').addClass('disabled loading');
  35. setTimeout(function()
  36. {
  37. $submitButton.attr('disabled', null).removeClass('disabled loading');
  38. }, 2000)
  39. });
  40. })
  41. </script>
  42. <?php if(isonlybody()):?>
  43. <script>
  44. href = location.href;
  45. if(href.indexOf('onlybody=yes') > 0)
  46. {
  47. href = href.replace('?onlybody=yes', '');
  48. location.href = href.replace('&onlybody=yes', '');
  49. }
  50. $(function()
  51. {
  52. $('.display.modal #page.list-with-actions').removeClass('list-with-actions');
  53. })
  54. </script>
  55. <?php return false;?>
  56. <?php endif;?>
  57. <iframe name="hiddenwin" id="hiddenwin" scrolling="no" class="debugwin hidden" frameborder="0"></iframe>
  58. </body>
  59. </html>