Welcome to mirror list, hosted at ThFree Co, Russian Federation.

html_report_body.tpl « templates « CoreHome « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a6b7a33b2bff386ca5a64dfb38ef946cd462aa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<a name="{$reportId}"/>
<h2 style="color: rgb({$reportTitleTextColor}); font-size: {$reportTitleTextSize}pt;">
    {$reportName|escape:"html"}
</h2>

{if empty($reportRows)}
    {'CoreHome_ThereIsNoDataForThisReport'|translate}
{else}
    {if $displayGraph}
        <img
                alt=""
                {if $renderImageInline}
                    src="data:image/png;base64,{$generatedImageGraph}"
                {else}
                    src="cid:{$reportId}"
                {/if}
                height="{$graphHeight}"
                width="{$graphWidth}"/>
    {/if}

    {if $displayGraph && $displayTable}
        <br/>
        <br/>
    {/if}

    {if $displayTable}
        <table style="border-collapse:collapse; margin-left: 5px">
            <thead style="background-color: rgb({$tableHeaderBgColor}); color: rgb({$tableHeaderTextColor}); font-size: {$reportTableHeaderTextSize}pt;">
            {foreach from=$reportColumns item=columnName}
                <th style="padding: 6px 0;">
                    &nbsp;{$columnName}&nbsp;&nbsp;
                </th>
            {/foreach}
            </thead>
            <tbody>
            {cycle name='tr-background-color' delimiter=';' values=";background-color: rgb(`$tableBgColor`)" print=false reset=true advance=false}
            {foreach from=$reportRows item=row key=rowId}

                {assign var=rowMetrics value=$row->getColumns()}

                {if isset($reportRowsMetadata[$rowId])}
                    {assign var=rowMetadata value=$reportRowsMetadata[$rowId]->getColumns()}
                {else}
                    {assign var=rowMetadata value=null}
                {/if}
                <tr style="{cycle name='tr-background-color'}">
                    {foreach from=$reportColumns key=columnId item=columnName}
                        <td style="font-size: {$reportTableRowTextSize}pt; border-bottom: 1px solid rgb({$tableCellBorderColor}); padding: 5px 0 5px 5px;">
                            {if $columnId eq 'label'}
                                {if isset($rowMetrics[$columnId])}
                                    {if isset($rowMetadata.logo)}
                                        <img src='{$currentPath}{$rowMetadata.logo}'>
                                        &nbsp;
                                    {/if}
                                    {if isset($rowMetadata.url)}
                                        <a style="color: rgb({$reportTextColor});" href='{if !in_array(substr($rowMetadata.url,0,4), array('http','ftp:'))}http://{/if}{$rowMetadata.url|escape:'html'}'>
                                    {/if}
                                    {$rowMetrics[$columnId]}
                                    {if isset($rowMetadata.url)}
                                        </a>
                                    {/if}
                                {/if}
                            {else}
                                {if empty($rowMetrics[$columnId])}
                                    0
                                {else}
                                    {$rowMetrics[$columnId]}
                                {/if}
                            {/if}
                        </td>
                    {/foreach}
                </tr>
            {/foreach}
            </tbody>
        </table>
    {/if}
    <br/>
    <a style="text-decoration:none; color: rgb({$reportTitleTextColor}); font-size: {$reportBackToTopTextSize}pt" href="#reportTop">
        {'PDFReports_TopOfReport'|translate}
    </a>
{/if}