footer.modal.html.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * The common modal footer view file of RanZhi.
  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 Xiying Guan <guanxiying@xirangit.com>
  8. * @package RanZhi
  9. * @version $Id$
  10. * @link http://www.ranzhico.com
  11. */
  12. ?>
  13. <?php if(helper::isAjaxRequest()):?>
  14. </div>
  15. </div>
  16. </div>
  17. <?php if(isset($pageJS)) js::execute($pageJS);?>
  18. <script>
  19. $(function()
  20. {
  21. var options =
  22. {
  23. language: '<?php echo $this->app->getClientLang(); ?>',
  24. weekStart: 1,
  25. todayBtn: 1,
  26. autoclose: 1,
  27. todayHighlight: 1,
  28. startView: 2,
  29. forceParse: 0,
  30. showMeridian: 1,
  31. format: 'yyyy-mm-dd hh:ii'
  32. }
  33. $('.form-datetime').datetimepicker(options);
  34. $('.form-date').datetimepicker($.extend(options, {minView: 2, format: 'yyyy-mm-dd'}));
  35. $('.form-time').datetimepicker($.extend(options, {eleClass: 'only-pick-time', startView: 1, minView: 0, maxView: 1, format: 'hh:ii'}));
  36. $('.form-month').datetimepicker($.extend(options, {startView: 3, minView: 3, format: 'yyyy-mm'}));
  37. $('.chosen').chosen();
  38. $.ajaxForm('#ajaxForm');
  39. });
  40. </script>
  41. <?php else:?>
  42. <?php include $this->app->getAppRoot() . 'module/common/view/footer.html.php'; ?>
  43. <?php endif;?>