export.excel.html.hook.php 1.2 KB

123456789101112131415161718192021
  1. <?php if($type == 'group'):?>
  2. <script>
  3. $(function()
  4. {
  5. $('.main-form .table tr').addClass('hidden');
  6. $('.main-form .table tr:first').removeClass('hidden');
  7. $('.main-form .table tr:last').removeClass('hidden');
  8. $('.main-form .table #submit').closest('tr').removeClass('hidden');
  9. $('.main-form .table #fileType').remove();
  10. $('.main-form .table #submit').after("<input type='hidden' name='fileType' id='fileType' value='<?php echo $type;?>' />");
  11. $('.main-form .table #submit').after("<input type='hidden' name='executionID' id='executionID' value='<?php echo $executionID;?>' />");
  12. $('.main-form .table #submit').after("<input type='hidden' name='orderBy' id='orderBy' value='<?php echo $orderBy;?>' />");
  13. })
  14. </script>
  15. <?php endif;?>
  16. <?php if($type == 'tree'):?>
  17. <script>
  18. $('.main-form .table').find('tr').eq(0).find('td').eq(1).remove();
  19. $('.main-form .table tr:first').append("<td><input type='radio' name='excel' value='0' checked style='vertical-align:text-bottom; margin-bottom:1px;'/> word <input type='radio' name='excel' value='excel' style='vertical-align:text-bottom; margin-bottom:1px;'/> excel</td>");
  20. </script>
  21. <?php endif;?>