| templateemployeelist |
| 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: |
| |
| ##COUNT## - Replaced with a counter starting at 0 |
| ##FNAME## - Replaced with First Name of employee |
| ##MNAME## - Replaced with Middle Name of employee |
| ##LNAME## - Replaced with Last Name of employee |
| ##CLI_ID## - Replaced with employee ID |
| ##CLI_NAME## - Replaced with Client Name |
| ##EMP_ID## - Replaced with employee main employee ID |
| ##OWNER_ID## - Replaced with owner ID |
| ##ADDR1## - Replaced with employee main employee address line 1 |
| ##ADDR2## - Replaced with employee main employee address line 2 |
| ##CITY## - Replaced with employee main employee city |
| ##STATE## - Replaced with employee main employee state |
| ##ZIP## - Replaced with employee main employee zip |
| ##PHONE## - Replaced with employee main employee phone # |
| ##FAX## - Replaced with employee main employee fax # |
| ##EMAIL## - Replaced with employee main employee email |
| ##EMP_STATUS## - Replaced with employee status |
| ##EMP_PERM## - Replaced with the employee permission level |
| ##PREF(count)## - (count) value found in EMP_PREFERENCES properties field |
| |
| Arguments: |
| counterstartsat - ##COUNT## will start at this value (default=0) |
| itemcount - Number of items to display (default=10) |
| template - The main HTML template as described above (required) |
| jsescape -Wheather to jsEscape the results (default=no) |
| |
| Returns how many employees were actually printed or "error:..." if an error occurred. |