export.word.html.hook.php 1.1 KB

12345678910111213141516171819202122
  1. <?php if($type == 'tree' or $type == 'calendar' or $type == 'kanban'):?>
  2. <?php
  3. $this->session->set('taskOnlyCondition', false, 'execution');
  4. $this->session->set('taskQueryCondition', false, 'execution');
  5. ?>
  6. <script>
  7. $(function()
  8. {
  9. $('.main-form .table tr').addClass('hidden');
  10. $('.main-form .table tr:first').removeClass('hidden');
  11. $('.main-form .table tr:last').removeClass('hidden');
  12. $('.main-form .table #fileType').remove();
  13. $('.main-form .table #submit').after("<input type='hidden' name='fileType' id='fileType' value='<?php echo $type;?>' />");
  14. $('.main-form .table #submit').after("<input type='hidden' name='executionID' id='executionID' value='<?php echo $executionID;?>' />");
  15. <?php if($type == 'kanban'):?>
  16. <?php list($kanbanType, $orderBy) = explode(',', $orderBy);?>
  17. $('.main-form .table #submit').after("<input type='hidden' name='type' id='type' value='<?php echo $kanbanType;?>' />");
  18. $('.main-form .table #submit').after("<input type='hidden' name='orderBy' id='orderBy' value='<?php echo $orderBy;?>' />");
  19. <?php endif;?>
  20. })
  21. </script>
  22. <?php endif;?>