export.word.html.hook.php 1.2 KB

123456789101112131415161718192021222324
  1. <?php namespace zin;?>
  2. <?php if($type == 'tree' or $type == 'calendar' or $type == 'kanban'):?>
  3. <?php
  4. global $app;
  5. $app->session->set('taskOnlyCondition', false, 'execution');
  6. $app->session->set('taskQueryCondition', false, 'execution');
  7. ?>
  8. <script>
  9. $(function()
  10. {
  11. $('#exportPanel .form-group[data-name=fileType]').remove();
  12. $('#exportPanel [name=fileType]').remove();
  13. $('#exportPanel .form-actions').after("<input type='hidden' name='fileType' id='fileType' value='<?php echo $type;?>' />");
  14. $('#exportPanel .form-actions').after("<input type='hidden' name='executionID' id='executionID' value='<?php echo $executionID;?>' />");
  15. $('#exportPanel .form-group, #exportPanel .form-row').addClass('hidden');
  16. $('#exportPanel .form-group[data-name=fileName], #exportPanel .form-row:last-child').removeClass('hidden');
  17. <?php if($type == 'kanban'):?>
  18. <?php list($kanbanType, $orderBy) = explode(',', $orderBy);?>
  19. $('#exportPanel .form-actions').after("<input type='hidden' name='type' id='type' value='<?php echo $kanbanType;?>' />");
  20. $('#exportPanel .form-actions').after("<input type='hidden' name='orderBy' id='orderBy' value='<?php echo $orderBy;?>' />");
  21. <?php endif;?>
  22. })
  23. </script>
  24. <?php endif;?>