| templateclientlist |
| This command allows a different approach to the listing of items. It
loops 'itemcount' times and uses 'template' to create the HTML to list.
'template' contains HTML and can contain a series of special macros that
will be replaced with specific info about the item. The item list also
stops if no more items are available. |
| |
| Here are the macros that can be included in the template: |
| |
| ##NAME## - Name of client |
| ##CLI_ID## - Replaced with client ID |
| ##EMP_ID## - Replaced with client main employee ID |
| ##OWNER_ID## - Replaced with owner ID |
| ##ADDR1## - Replaced with client main employee address line 1 |
| ##ADDR2## - Replaced with client main employee address line 2 |
| ##CITY## - Replaced with client main employee city |
| ##STATE## - Replaced with client main employee state |
| ##ZIP## - Replaced with client main employee zip |
| ##PHONE## - Replaced with client main employee phone # |
| ##FAX## - Replaced with client main employee fax # |
| ##EMAIL## - Replaced with client main employee email |
| ##EMP_PERM## - Replaced with employee permission level |
| |
| Arguments: |
| itemcount - Number of items to display (default=10) |
| template - The main HTML template as described above (required) |
| |
| Returns how many clients were actually printed or "error:..." if an error occurred. |