part.import.php 1.4 KB

123456789101112131415161718192021222324252627
  1. <div id="contacts_import_dialog" title="<?php echo $l->t("Import a contacts file"); ?>">
  2. <div id="form_container">
  3. <input type="hidden" id="filename" value="<?php echo $_['filename'];?>">
  4. <input type="hidden" id="path" value="<?php echo $_['path'];?>">
  5. <input type="hidden" id="progresskey" value="<?php echo rand() ?>">
  6. <p class="bold" style="text-align:center;"><?php echo $l->t('Please choose the addressbook'); ?></p>
  7. <select style="width:100%;" id="contacts" name="contacts">
  8. <?php
  9. $contacts_options = OC_Contacts_Addressbook::all(OCP\USER::getUser());
  10. $contacts_options[] = array('id'=>'newaddressbook', 'displayname'=>$l->t('create a new addressbook'));
  11. echo OCP\html_select_options($contacts_options, $contacts_options[0]['id'], array('value'=>'id', 'label'=>'displayname'));
  12. ?>
  13. </select>
  14. <div id="newaddressbookform" style="display: none;">
  15. <input type="text" style="width: 97%;" placeholder="<?php echo $l->t('Name of new addressbook'); ?>" id="newaddressbook" name="newaddressbook">
  16. </div>
  17. <input type="button" value="<?php echo $l->t("Import");?>!" id="startimport">
  18. </div>
  19. <div id="progressbar_container" style="display: none">
  20. <p style="text-align:center;"><?php echo $l->t('Importing contacts'); ?></p>
  21. <div id="progressbar"></div>
  22. <div id="import_done" style="display: none;">
  23. <p style="text-align:center;"></p>
  24. <input type="button" value="<?php echo $l->t('Close'); ?>" id="import_done_button">
  25. </div>
  26. </div>
  27. </div>