list.php 636 B

123456789101112131415161718192021222324
  1. #!/usr/bin/php
  2. <?php
  3. require_once dirname(__FILE__) . '/../../common.php';
  4. system('clear');
  5. print(Demos_Zend_Service_LiveDocx_Helper::wrapLine(
  6. PHP_EOL . 'Remotely Stored Templates' .
  7. PHP_EOL .
  8. PHP_EOL . 'The following templates are currently stored on the LiveDocx server:' .
  9. PHP_EOL .
  10. PHP_EOL)
  11. );
  12. $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
  13. $phpLiveDocx->setUsername(Demos_Zend_Service_LiveDocx_Helper::USERNAME)
  14. ->setPassword(Demos_Zend_Service_LiveDocx_Helper::PASSWORD);
  15. print(Demos_Zend_Service_LiveDocx_Helper::listDecorator($phpLiveDocx->listTemplates()));
  16. unset($phpLiveDocx);