Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

31 řádky
1.8 KiB

  1. <?php if(empty($plugins)): ?>
  2. <p>There are no plugins installed, [<a href="http://rockmongo.com/plugins" target="_blank">Go and download plugins here</a>] &nbsp; [<a href="http://rockmongo.com/wiki/pluginUsage?lang=en_us" target="_blank">How to install plugins?</a>] &nbsp; [<a href="http://rockmongo.com/wiki/pluginDevelop?lang=en_us" target="_blank">Develop New plugins</a>]</p>
  3. <?php else: ?>
  4. <div style="margin-top:20px"></div>
  5. <p>[<a href="http://rockmongo.com/plugins" target="_blank">Go and download more plugins here</a>] &nbsp; [<a href="http://rockmongo.com/wiki/pluginUsage?lang=en_us" target="_blank">How to install plugins?</a>] &nbsp; [<a href="http://rockmongo.com/wiki/pluginDevelop?lang=en_us" target="_blank">Develop New plugins</a>]</p>
  6. <table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="90%">
  7. <tr>
  8. <th>Dir</th>
  9. <th>Name</th>
  10. <th>Code</th>
  11. <th width="200">Author</th>
  12. <th width="300">Description</th>
  13. <th>Version</th>
  14. <th>Enabled</th>
  15. </tr>
  16. <?php foreach ($plugins as $plugin): ?>
  17. <tr bgcolor="#ffffff">
  18. <td align="center"><?php echo ($plugin["dir"]) ?></td>
  19. <td align="center"><?php if($plugin["url"]): ?><a href="<?php h($plugin["url"]) ?>" target="_blank"><?php endif; ?><?php echo ($plugin["name"]) ?><?php if($plugin["url"]): ?></a><?php endif; ?></td>
  20. <td align="center"><?php echo ($plugin["code"]) ?></td>
  21. <td style="word-break:break-all;" align="center"><?php echo htmlspecialchars($plugin["author"]) ?></td>
  22. <td style="word-break:break-all;"><?php echo nl2br($plugin["description"]) ?></td>
  23. <td align="center"><?php echo ($plugin["version"]) ?></td>
  24. <td align="center"><?php $plugin["enabled"] ? h("<span style=\"color:green\">Y</span>") : h("N") ?></td>
  25. </tr>
  26. <?php endforeach; ?>
  27. </table>
  28. <?php endif; ?>