list.php 605 B

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