Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

37 рядки
1.4 KiB

  1. <script type="text/javascript">
  2. function checkAll(obj) {
  3. $(".check_collection").attr("checked", obj.checked);
  4. }
  5. </script>
  6. <h3><?php render_navigation($db); ?> &raquo; <?php hm("export"); ?></h3>
  7. <form method="post">
  8. <input type="hidden" name="can_download" value="0"/>
  9. <?php hm("collections"); ?> [<label><?php hm("all"); ?> <input type="checkbox" name="check_all" value="1" onclick="checkAll(this)"/></label>]
  10. <ul class="list">
  11. <?php if(empty($collections)):?>
  12. <?php hm("nocollections"); ?>
  13. <?php else: ?>
  14. <?php foreach ($collections as $collection):?>
  15. <li><label><input type="checkbox" class="check_collection" name="checked[<?php h($collection->getName()); ?>]" value="1" <?php if (in_array($collection->getName(), $selectedCollections)): ?>checked="checked"<?php endif;?>/> <?php h($collection->getName()); ?></label></li>
  16. <?php endforeach; ?>
  17. <?php endif; ?>
  18. </ul>
  19. <div class="clear"></div>
  20. <br/>
  21. <?php hm("download"); ?><br/>
  22. <input type="checkbox" name="can_download" value="1" <?php if(x("can_download")):?>checked="checked"<?php endif;?> /><br/>
  23. <?php hm("compressed"); ?>:<br/>
  24. <label><input type="checkbox" name="gzip" value="1"/> GZIP</label>
  25. <br/><br/>
  26. <input type="submit" value="<?php hm("export"); ?>"/>
  27. </form>
  28. <?php if(!x("can_download")&&isset($contents)):?>
  29. <?php h($countRows);?> <?php hm("rowsexported"); ?>:<br/>
  30. <textarea rows="30" cols="70"><?php h($contents);?></textarea>
  31. <?php endif;?>