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.
 
 
 

39 regels
1.5 KiB

  1. <h3><?php render_navigation($db,$collection,false); ?> &raquo; <?php hm("indexes");?> [<a href="<?php h($_SERVER["REQUEST_URI"]);?>"><?php hm("refresh"); ?></a>]</h3>
  2. <div class="operation">
  3. [<a href="<?php
  4. h(url("collection.createIndex", array(
  5. "db" => $db,
  6. "collection" => $collection
  7. )));
  8. ?>"><?php hm("createindex"); ?></a>]
  9. [<a href="<?php
  10. h(url("collection.create2dIndex", array(
  11. "db" => $db,
  12. "collection" => $collection
  13. )));
  14. ?>"><?php hm("create_2d_index"); ?></a>]
  15. </div>
  16. <table width="600" cellpadding="2" cellspacing="1" bgcolor="#cccccc">
  17. <tr bgcolor="#eeefff" align="center">
  18. <td width="150"><?php hm("name"); ?></td>
  19. <td><?php hm("key"); ?></td>
  20. <td><?php hm("unique"); ?></td>
  21. <td width="100"><?php hm("operation"); ?></td>
  22. </tr>
  23. <?php foreach ($indexes as $index): ?>
  24. <tr bgcolor="#ffffff">
  25. <td valign="top" align="center"><?php h($index["name"]);?></td>
  26. <td><?php h($index["data"]);?></td>
  27. <td align="center" valign="top"><?php if (isset($index["unique"]) && $index["unique"]):?>Y<?php endif;?></td>
  28. <td align="center" valign="top"><?php if (!isset($index["key"]["_id"]) || count($index["key"]) != 1):?> <a href="<?php
  29. h(url("collection.deleteIndex", array(
  30. "db" => $db,
  31. "collection" => $collection,
  32. "index" => $index["name"]
  33. )));
  34. ?>" onclick="return window.confirm('<?php hm("warningindex"); ?> \'<?php h($index["name"]);?>\'?');"><?php hm("drop"); ?></a><?php endif;?></td>
  35. </tr>
  36. <?php endforeach; ?>
  37. </table>