settings.php 733 B

12345678910111213141516171819202122
  1. <form id="external">
  2. <fieldset class="personalblock">
  3. <strong>External Sites</strong><br />
  4. <ul class="external_sites">
  5. <?php
  6. $sites = OC_External::getSites();
  7. for($i = 0; $i < sizeof($sites); $i++) {
  8. echo '<li><input type="text" name="site_name[]" class="site_name" value="'.$sites[$i][0].'" placeholder="'.$l->t('Name').'" />
  9. <input type="text" class="site_url" name="site_url[]" value="'.$sites[$i][1].'" placeholder="'.$l->t('URL').'" />
  10. <img class="svg action delete_button" src="'.image_path("", "actions/delete.svg") .'" title="'.$l->t("Remove site").'" />
  11. </li>';
  12. }
  13. ?>
  14. </ul>
  15. <input type="button" id="add_external_site" value="Add" />
  16. <span class="msg"></span>
  17. </fieldset>
  18. </form>