Contact_AddressBook
[ class tree: Contact_AddressBook ] [ index: Contact_AddressBook ] [ all elements ]

Source for file export.php

Documentation is available at export.php

  1. <?php
  2. include_once 'include/head.php';
  3. include_once 'include/header.php';
  4. include_once 'include/records.php';
  5. ?>
  6. <div class="nav"><a href="index.php">Home</a></div>
  7. <h2>Options</h2>
  8. <dl>
  9. <dt><b>Here the options to import the address book:</b></dt>
  10. <dt>1. <i>defs_dir</i>, Definition directory (default is PEAR data directory)</dt>
  11. <dt>2. <i>language</i>, Address book language in code (required only if the format is the selectable fields such as WAB, default is "en" english)</dt>
  12. </dl>
  13. <h2>In Action</h2>
  14. <b>Here an Array we have:</b>
  15. <div class="code">
  16. <?php
  17. print '<pre>';
  18. var_export($GLOBALS['_Contact_AddressBook_records']);
  19. print '</pre>';
  20. ?>
  21. </div>
  22. <form method="post" action="action-export.php" target="_blank">
  23. <b>Select the export format:</b><br /> 
  24. <select name="format" id="format">
  25. <option value="" selected="selected">Select ...</option>
  26. <option value="eudora">Eudora</option>
  27. <option value="csv_kmail">KMail (KDE Mailer) CSV</option>
  28. <option value="csv_mozilla">Mozilla/Thunderbird/Netscape CSV</option>
  29. <option value="csv_outlook">Microsoft Outlook CSV</option>
  30. <option value="csv_wab">Microsoft Windows Address Book (WAB)/Outlook Express CSV</option>
  31. <option value="csv_palm">Palm Pilot CSV</option>
  32. <option value="csv_yahoo">Yahoo! Mail Address Book</option>
  33. <option value="csv_gmail">Gmail Address Book</option>
  34. </select><br />
  35. <b>Output options:</b><br />
  36. <input name="mode" type="radio" value="print" id="mode_print" checked><label for="mode_print">Print it</label>
  37. <input name="mode" type="radio" value="send" id="mode_send"><label for="mode_send">Donwload it</label><br />
  38. <input name="submit" type="submit" id="submit" value="Export" />
  39. </form>
  40. <h2>Source</h2>
  41. <div class="code">
  42. <?php
  43. highlight_file(dirname(__FILE__'/action-export.php');
  44. ?>
  45. </div>
  46. <?php
  47. include_once 'include/footer.php';
  48. ?>

Documentation generated on Mon, 11 Mar 2019 15:40:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.