You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dbTransfer.php 2.5 KiB

3 vuotta sitten
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <script language="javascript">
  2. function checkAll(obj) {
  3. $(".check_collection").attr("checked", obj.checked);
  4. }
  5. </script>
  6. <h3><?php render_navigation($db); ?> &raquo; <?php hm("transfer");?></h3>
  7. <?php if (isset($error)):?>
  8. <p class="error">
  9. <?php h($error);?>
  10. </p>
  11. <?php endif;?>
  12. <?php if (isset($message)):?>
  13. <p class="message">
  14. <?php h($message);?>
  15. </p>
  16. <script language="javascript">
  17. window.parent.frames["left"].location.reload();
  18. </script>
  19. <?php endif;?>
  20. <form method="post">
  21. <div>
  22. <h3><?php hm("collections"); ?> [<label><?php hm("all"); ?> <input type="checkbox" name="check_all" value="1" onclick="checkAll(this)"/></label>]</h3>
  23. <ul class="list">
  24. <?php if(empty($collections)):?>
  25. <?php hm("nocollections"); ?>
  26. <?php else: ?>
  27. <?php foreach ($collections as $collection):?>
  28. <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>
  29. <?php endforeach; ?>
  30. <?php endif; ?>
  31. </ul>
  32. <div class="clear"></div>
  33. <br/>
  34. </div>
  35. <div>
  36. <h3><?php hm("target"); ?></h3>
  37. <table>
  38. <tr>
  39. <td width="100"><?php hm("sock"); ?>:</td>
  40. <td><input type="text" name="target_sock" value="<?php h($target_sock); ?>" style="width:120px"/></td>
  41. </tr>
  42. <tr>
  43. <td width="100"><?php hm("host"); ?>:</td>
  44. <td><input type="text" name="target_host" value="<?php h($target_host); ?>" style="width:120px"/></td>
  45. </tr>
  46. <tr>
  47. <td><?php hm("port"); ?>:</td>
  48. <td><input type="text" name="target_port" value="<?php h($target_port); ?>" style="width:50px"/></td>
  49. </tr>
  50. <tr>
  51. <td><?php hm("authenticate"); ?>?</td>
  52. <td><input type="checkbox" name="target_auth" <?php if($target_auth==1): ?>checked="checked"<?php endif; ?> value="1"/></td>
  53. </tr>
  54. <tr>
  55. <td><?php hm("username"); ?>:</td>
  56. <td><input type="text" name="target_username" value="<?php h($target_username); ?>" style="width:120px"/></td>
  57. </tr>
  58. <tr>
  59. <td><?php hm("password"); ?>:</td>
  60. <td><input type="password" name="target_password" style="width:120px"/></td>
  61. </tr>
  62. </table>
  63. <br/>
  64. </div>
  65. <div>
  66. <h3><?php hm("indexes"); ?></h3>
  67. <?php hm("copyindexes"); ?> <input type="checkbox" name="copy_indexes" value="1" <?php if(x("copy_indexes")): ?>checked="checked"<?php endif;?>/>
  68. <br/><br/>
  69. </div>
  70. <div>
  71. <h3><?php hm("confirm"); ?></h3>
  72. <input type="submit" value="<?php hm("transfer"); ?>"/>
  73. </div>
  74. </form>