diff options
Diffstat (limited to 'apps/contacts/templates/part.addcardform.php')
-rw-r--r-- | apps/contacts/templates/part.addcardform.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/contacts/templates/part.addcardform.php b/apps/contacts/templates/part.addcardform.php new file mode 100644 index 00000000000..94a59fe097c --- /dev/null +++ b/apps/contacts/templates/part.addcardform.php @@ -0,0 +1,13 @@ +<form id="contacts_addcardform"> + <?php if(count($_['addressbooks'])==1): ?> + <input type="hidden" name="id" value="<?php echo $_['addressbooks'][0]['id']; ?>"> + <?php else: ?> + <select name="id" size="1"> + <?php foreach($_['addressbooks'] as $addressbook): ?> + <option value="<?php echo $addressbook['id']; ?>"><?php echo $addressbook['displayname']; ?></option> + <?php endforeach; ?> + </select> + <?php endif; ?> + <input type="text" name="fn" value=""><br> + <input type="submit"> +</form> |