| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * The common modal footer view file of RanZhi.
- *
- * @copyright Copyright 2009-2016 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
- * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
- * @author Xiying Guan <guanxiying@xirangit.com>
- * @package RanZhi
- * @version $Id$
- * @link http://www.ranzhico.com
- */
- ?>
- <?php if(helper::isAjaxRequest()):?>
- </div>
- </div>
- </div>
- <?php if(isset($pageJS)) js::execute($pageJS);?>
- <script>
- $(function()
- {
- var options =
- {
- language: '<?php echo $this->app->getClientLang(); ?>',
- weekStart: 1,
- todayBtn: 1,
- autoclose: 1,
- todayHighlight: 1,
- startView: 2,
- forceParse: 0,
- showMeridian: 1,
- format: 'yyyy-mm-dd hh:ii'
- }
- $('.form-datetime').datetimepicker(options);
- $('.form-date').datetimepicker($.extend(options, {minView: 2, format: 'yyyy-mm-dd'}));
- $('.form-time').datetimepicker($.extend(options, {eleClass: 'only-pick-time', startView: 1, minView: 0, maxView: 1, format: 'hh:ii'}));
- $('.form-month').datetimepicker($.extend(options, {startView: 3, minView: 3, format: 'yyyy-mm'}));
- $('.chosen').chosen();
- $.ajaxForm('#ajaxForm');
- });
- </script>
- <?php else:?>
- <?php include $this->app->getAppRoot() . 'module/common/view/footer.html.php'; ?>
- <?php endif;?>
|