Skip to content

tttp/civiview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This module offers a simple way to create reports by leveraging smarty and civicrm api {crmAPI}

Usage:
place a whatever.tpl into templates/common that contains template that generates an html array

you have 
/civiview/html/whatever that displays it
/civiview/xls/whatever that generates an excel compatible one
/civiview/doc/whatever that generates a word compatible one

@TODOCUMENT

some examples of syntax.

templates/common/staff.tpl

{crmAPI entity="contact" action="Get" var="contacts" contact_sub_type="staff" return="gender,last_name,first_name"}
<!--here comes the list -->
<table border=1>
{foreach from=$contacts item=contact}
<tr>
<td>
{$contact.type}
</td>
<td>{$contact.gender}</td><td>{$contact.last_name} {$contact.first_name}</td><td>
</tr>
{/foreach}
</table>
{/if}
</body>
<html>

X+

.

About

Tool to easily create custom report/views

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published