PageRenderTime 24ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/cache/smarty/compile/4f/14/d8/4f14d81d2871c84464c65035eec87003ba174314.file.calendar.tpl.php

https://gitlab.com/ivandevp/petshop
PHP | 220 lines | 215 code | 5 blank | 0 comment | 21 complexity | be3356f699399bbee5daebc398586cf5 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-05-16 09:44:52
  2. compiled from "/var/www/html/admin7501/themes/default/template/helpers/calendar/calendar.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:18970828805739dce432ec92-59839358%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '4f14d81d2871c84464c65035eec87003ba174314' =>
  8. array (
  9. 0 => '/var/www/html/admin7501/themes/default/template/helpers/calendar/calendar.tpl',
  10. 1 => 1463364429,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '18970828805739dce432ec92-59839358',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'is_rtl' => 0,
  21. 'date_to' => 0,
  22. 'date_format' => 0,
  23. 'date_from' => 0,
  24. 'actions' => 0,
  25. 'action' => 0,
  26. 'compare_date_from' => 0,
  27. 'compare_date_to' => 0,
  28. 'compare_option' => 0,
  29. ),
  30. 'has_nocache_code' => false,
  31. 'version' => 'Smarty-3.1.19',
  32. 'unifunc' => 'content_5739dce43cf6e5_28460377',
  33. ),false); /*/%%SmartyHeaderCode%%*/?>
  34. <?php if ($_valid && !is_callable('content_5739dce43cf6e5_28460377')) {function content_5739dce43cf6e5_28460377($_smarty_tpl) {?><div id="datepicker" class="row row-padding-top hide">
  35. <div class="col-lg-12">
  36. <div class="daterangepicker-days">
  37. <div class="row">
  38. <?php if ($_smarty_tpl->tpl_vars['is_rtl']->value) {?>
  39. <div class="col-sm-6 col-lg-4">
  40. <div class="datepicker2" data-date="<?php echo $_smarty_tpl->tpl_vars['date_to']->value;?>
  41. " data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
  42. "></div>
  43. </div>
  44. <div class="col-sm-6 col-lg-4">
  45. <div class="datepicker1" data-date="<?php echo $_smarty_tpl->tpl_vars['date_from']->value;?>
  46. " data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
  47. "></div>
  48. </div>
  49. <?php } else { ?>
  50. <div class="col-sm-6 col-lg-4">
  51. <div class="datepicker1" data-date="<?php echo $_smarty_tpl->tpl_vars['date_from']->value;?>
  52. " data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
  53. "></div>
  54. </div>
  55. <div class="col-sm-6 col-lg-4">
  56. <div class="datepicker2" data-date="<?php echo $_smarty_tpl->tpl_vars['date_to']->value;?>
  57. " data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
  58. "></div>
  59. </div>
  60. <?php }?>
  61. <div class="col-xs-12 col-sm-6 col-lg-4 pull-right">
  62. <div id='datepicker-form' class='form-inline'>
  63. <div id='date-range' class='form-date-group'>
  64. <div class='form-date-heading'>
  65. <span class="title"><?php echo smartyTranslate(array('s'=>'Date range'),$_smarty_tpl);?>
  66. </span>
  67. <?php if (isset($_smarty_tpl->tpl_vars['actions']->value)&&count($_smarty_tpl->tpl_vars['actions']->value)>0) {?>
  68. <?php if (count($_smarty_tpl->tpl_vars['actions']->value)>1) {?>
  69. <button class='btn btn-default btn-xs pull-right dropdown-toggle' data-toggle='dropdown' type="button">
  70. <?php echo smartyTranslate(array('s'=>'Custom'),$_smarty_tpl);?>
  71. <i class='icon-angle-down'></i>
  72. </button>
  73. <ul class='dropdown-menu'>
  74. <?php $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['action']->_loop = false;
  75. $_from = $_smarty_tpl->tpl_vars['actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  76. foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) {
  77. $_smarty_tpl->tpl_vars['action']->_loop = true;
  78. ?>
  79. <li><a<?php if (isset($_smarty_tpl->tpl_vars['action']->value['href'])) {?> href="<?php echo $_smarty_tpl->tpl_vars['action']->value['href'];?>
  80. "<?php }?><?php if (isset($_smarty_tpl->tpl_vars['action']->value['class'])) {?> class="<?php echo $_smarty_tpl->tpl_vars['action']->value['class'];?>
  81. "<?php }?>><?php if (isset($_smarty_tpl->tpl_vars['action']->value['icon'])) {?><i class="<?php echo $_smarty_tpl->tpl_vars['action']->value['icon'];?>
  82. "></i> <?php }?><?php echo $_smarty_tpl->tpl_vars['action']->value['label'];?>
  83. </a></li>
  84. <?php } ?>
  85. </ul>
  86. <?php } else { ?>
  87. <a<?php if (isset($_smarty_tpl->tpl_vars['actions']->value[0]['href'])) {?> href="<?php echo $_smarty_tpl->tpl_vars['actions']->value[0]['href'];?>
  88. "<?php }?> class="btn btn-default btn-xs pull-right<?php if (isset($_smarty_tpl->tpl_vars['actions']->value[0]['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['actions']->value[0]['class'];?>
  89. <?php }?>"><?php if (isset($_smarty_tpl->tpl_vars['actions']->value[0]['icon'])) {?><i class="<?php echo $_smarty_tpl->tpl_vars['actions']->value[0]['icon'];?>
  90. "></i> <?php }?><?php echo $_smarty_tpl->tpl_vars['actions']->value[0]['label'];?>
  91. </a>
  92. <?php }?>
  93. <?php }?>
  94. </div>
  95. <div class='form-date-body'>
  96. <label><?php echo smartyTranslate(array('s'=>'From'),$_smarty_tpl);?>
  97. </label>
  98. <input class='date-input form-control' id='date-start' placeholder='Start' type='text' name="date_from" value="<?php echo $_smarty_tpl->tpl_vars['date_from']->value;?>
  99. " data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
  100. " tabindex="1" />
  101. <label><?php echo smartyTranslate(array('s'=>'to'),$_smarty_tpl);?>
  102. </label>
  103. <input class='date-input form-control' id='date-end' placeholder='End' type='text' name="date_to" value="<?php echo $_smarty_tpl->tpl_vars['date_to']->value;?>
  104. " data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
  105. " tabindex="2" />
  106. </div>
  107. </div>
  108. <div id="date-compare" class='form-date-group'>
  109. <div class='form-date-heading'>
  110. <span class="checkbox-title">
  111. <label >
  112. <input type='checkbox' id="datepicker-compare" name="datepicker_compare"<?php if (isset($_smarty_tpl->tpl_vars['compare_date_from']->value)&&isset($_smarty_tpl->tpl_vars['compare_date_to']->value)) {?> checked="checked"<?php }?> tabindex="3">
  113. <?php echo smartyTranslate(array('s'=>'Compare to'),$_smarty_tpl);?>
  114. </label>
  115. </span>
  116. <select id="compare-options" class="form-control fixed-width-lg pull-right" name="compare_date_option"<?php if (is_null($_smarty_tpl->tpl_vars['compare_date_from']->value)||is_null($_smarty_tpl->tpl_vars['compare_date_to']->value)) {?> disabled="disabled"<?php }?>>
  117. <option value="1" <?php if ($_smarty_tpl->tpl_vars['compare_option']->value==1) {?>selected="selected"<?php }?> label="<?php echo smartyTranslate(array('s'=>'Previous period'),$_smarty_tpl);?>
  118. "><?php echo smartyTranslate(array('s'=>'Previous period'),$_smarty_tpl);?>
  119. </option>
  120. <option value="2" <?php if ($_smarty_tpl->tpl_vars['compare_option']->value==2) {?>selected="selected"<?php }?> label="<?php echo smartyTranslate(array('s'=>'Previous Year'),$_smarty_tpl);?>
  121. "><?php echo smartyTranslate(array('s'=>'Previous year'),$_smarty_tpl);?>
  122. </option>
  123. <option value="3" <?php if ($_smarty_tpl->tpl_vars['compare_option']->value==3) {?>selected="selected"<?php }?> label="<?php echo smartyTranslate(array('s'=>'Custom'),$_smarty_tpl);?>
  124. "><?php echo smartyTranslate(array('s'=>'Custom'),$_smarty_tpl);?>
  125. </option>
  126. </select>
  127. </div>
  128. <div class="form-date-body" id="form-date-body-compare"<?php if (is_null($_smarty_tpl->tpl_vars['compare_date_from']->value)||is_null($_smarty_tpl->tpl_vars['compare_date_to']->value)) {?> style="display: none;"<?php }?>>
  129. <label><?php echo smartyTranslate(array('s'=>'From'),$_smarty_tpl);?>
  130. </label>
  131. <input id="date-start-compare" class="date-input form-control" type="text" placeholder="Start" name="compare_date_from" value="<?php echo $_smarty_tpl->tpl_vars['compare_date_from']->value;?>
  132. " data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
  133. " tabindex="4" />
  134. <label><?php echo smartyTranslate(array('s'=>'to'),$_smarty_tpl);?>
  135. </label>
  136. <input id="date-end-compare" class="date-input form-control" type="text" placeholder="End" name="compare_date_to" value="<?php echo $_smarty_tpl->tpl_vars['compare_date_to']->value;?>
  137. " data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
  138. "
  139. tabindex="5" />
  140. </div>
  141. </div>
  142. <div class='form-date-actions'>
  143. <button class='btn btn-link' type='button' id="datepicker-cancel" tabindex="7">
  144. <i class='icon-remove'></i>
  145. <?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
  146. </button>
  147. <button class='btn btn-default pull-right' type='submit' name="submitDateRange" tabindex="6">
  148. <i class='icon-ok text-success'></i>
  149. <?php echo smartyTranslate(array('s'=>'Apply'),$_smarty_tpl);?>
  150. </button>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. <script type="text/javascript">
  159. translated_dates = {
  160. days: ['<?php echo smartyTranslate(array('s'=>'Sunday','js'=>1),$_smarty_tpl);?>
  161. ', '<?php echo smartyTranslate(array('s'=>'Monday','js'=>1),$_smarty_tpl);?>
  162. ', '<?php echo smartyTranslate(array('s'=>'Tuesday','js'=>1),$_smarty_tpl);?>
  163. ', '<?php echo smartyTranslate(array('s'=>'Wednesday','js'=>1),$_smarty_tpl);?>
  164. ', '<?php echo smartyTranslate(array('s'=>'Thursday','js'=>1),$_smarty_tpl);?>
  165. ', '<?php echo smartyTranslate(array('s'=>'Friday','js'=>1),$_smarty_tpl);?>
  166. ', '<?php echo smartyTranslate(array('s'=>'Saturday','js'=>1),$_smarty_tpl);?>
  167. ', '<?php echo smartyTranslate(array('s'=>'Sunday','js'=>1),$_smarty_tpl);?>
  168. '],
  169. daysShort: ['<?php echo smartyTranslate(array('s'=>'Sun','js'=>1),$_smarty_tpl);?>
  170. ', '<?php echo smartyTranslate(array('s'=>'Mon','js'=>1),$_smarty_tpl);?>
  171. ', '<?php echo smartyTranslate(array('s'=>'Tue','js'=>1),$_smarty_tpl);?>
  172. ', '<?php echo smartyTranslate(array('s'=>'Wed','js'=>1),$_smarty_tpl);?>
  173. ', '<?php echo smartyTranslate(array('s'=>'Thu','js'=>1),$_smarty_tpl);?>
  174. ', '<?php echo smartyTranslate(array('s'=>'Fri','js'=>1),$_smarty_tpl);?>
  175. ', '<?php echo smartyTranslate(array('s'=>'Sat','js'=>1),$_smarty_tpl);?>
  176. ', '<?php echo smartyTranslate(array('s'=>'Sun','js'=>1),$_smarty_tpl);?>
  177. '],
  178. daysMin: ['<?php echo smartyTranslate(array('s'=>'Su','js'=>1),$_smarty_tpl);?>
  179. ', '<?php echo smartyTranslate(array('s'=>'Mo','js'=>1),$_smarty_tpl);?>
  180. ', '<?php echo smartyTranslate(array('s'=>'Tu','js'=>1),$_smarty_tpl);?>
  181. ', '<?php echo smartyTranslate(array('s'=>'We','js'=>1),$_smarty_tpl);?>
  182. ', '<?php echo smartyTranslate(array('s'=>'Th','js'=>1),$_smarty_tpl);?>
  183. ', '<?php echo smartyTranslate(array('s'=>'Fr','js'=>1),$_smarty_tpl);?>
  184. ', '<?php echo smartyTranslate(array('s'=>'Sa','js'=>1),$_smarty_tpl);?>
  185. ', '<?php echo smartyTranslate(array('s'=>'Su','js'=>1),$_smarty_tpl);?>
  186. '],
  187. months: ['<?php echo smartyTranslate(array('s'=>'January','js'=>1),$_smarty_tpl);?>
  188. ', '<?php echo smartyTranslate(array('s'=>'February','js'=>1),$_smarty_tpl);?>
  189. ', '<?php echo smartyTranslate(array('s'=>'March','js'=>1),$_smarty_tpl);?>
  190. ', '<?php echo smartyTranslate(array('s'=>'April','js'=>1),$_smarty_tpl);?>
  191. ', '<?php echo smartyTranslate(array('s'=>'May','js'=>1),$_smarty_tpl);?>
  192. ', '<?php echo smartyTranslate(array('s'=>'June','js'=>1),$_smarty_tpl);?>
  193. ', '<?php echo smartyTranslate(array('s'=>'July','js'=>1),$_smarty_tpl);?>
  194. ', '<?php echo smartyTranslate(array('s'=>'August','js'=>1),$_smarty_tpl);?>
  195. ', '<?php echo smartyTranslate(array('s'=>'September','js'=>1),$_smarty_tpl);?>
  196. ', '<?php echo smartyTranslate(array('s'=>'October','js'=>1),$_smarty_tpl);?>
  197. ', '<?php echo smartyTranslate(array('s'=>'November','js'=>1),$_smarty_tpl);?>
  198. ', '<?php echo smartyTranslate(array('s'=>'December','js'=>1),$_smarty_tpl);?>
  199. '],
  200. monthsShort: ['<?php echo smartyTranslate(array('s'=>'Jan','js'=>1),$_smarty_tpl);?>
  201. ', '<?php echo smartyTranslate(array('s'=>'Feb','js'=>1),$_smarty_tpl);?>
  202. ', '<?php echo smartyTranslate(array('s'=>'Mar','js'=>1),$_smarty_tpl);?>
  203. ', '<?php echo smartyTranslate(array('s'=>'Apr','js'=>1),$_smarty_tpl);?>
  204. ', '<?php echo smartyTranslate(array('s'=>'May ','js'=>1),$_smarty_tpl);?>
  205. ', '<?php echo smartyTranslate(array('s'=>'Jun','js'=>1),$_smarty_tpl);?>
  206. ', '<?php echo smartyTranslate(array('s'=>'Jul','js'=>1),$_smarty_tpl);?>
  207. ', '<?php echo smartyTranslate(array('s'=>'Aug','js'=>1),$_smarty_tpl);?>
  208. ', '<?php echo smartyTranslate(array('s'=>'Sep','js'=>1),$_smarty_tpl);?>
  209. ', '<?php echo smartyTranslate(array('s'=>'Oct','js'=>1),$_smarty_tpl);?>
  210. ', '<?php echo smartyTranslate(array('s'=>'Nov','js'=>1),$_smarty_tpl);?>
  211. ', '<?php echo smartyTranslate(array('s'=>'Dec','js'=>1),$_smarty_tpl);?>
  212. ']
  213. };
  214. </script>
  215. <?php }} ?>