Files
Phraseanet/templates/web/report/generate_tab.html.twig
Nicolas Le Goff e97ed2b3f1 Merge branch '3.8'
Conflicts:
	composer.json
	composer.lock
	lib/Alchemy/Phrasea/Application.php
	lib/Alchemy/Phrasea/Controller/Admin/Publications.php
	lib/Alchemy/Phrasea/Controller/Admin/Users.php
	lib/Alchemy/Phrasea/Controller/Client/Root.php
	lib/Alchemy/Phrasea/Controller/Prod/Feed.php
	lib/Alchemy/Phrasea/Controller/Prod/Root.php
	lib/Alchemy/Phrasea/Controller/Report/Activity.php
	lib/Alchemy/Phrasea/Controller/Report/Export.php
	lib/Alchemy/Phrasea/Controller/Report/Informations.php
	lib/Alchemy/Phrasea/Controller/Report/Root.php
	lib/classes/API/V1/adapter.php
	lib/classes/Feed/Aggregate.php
	lib/classes/Feed/Collection.php
	lib/classes/format.php
	tests/Alchemy/Tests/Phrasea/Controller/Admin/PublicationTest.php
	tests/Alchemy/Tests/Phrasea/Controller/Prod/FeedTest.php
	tests/Alchemy/Tests/Phrasea/Controller/Report/ExportTest.php
	tests/Alchemy/Tests/Phrasea/Controller/Root/RSSFeedTest.php
	tests/classes/Feed/Feed_CollectionTest.php
	tests/classes/api/v1/api_v1_adapterTest.php
2014-03-30 09:00:17 +02:00

118 lines
5.3 KiB
Twig

{% if result.result|length > 0 %}
<div class="report-table curfilter" style="color:#555555;">
{% if result.posting_filter|length > 0 %}
{% for filter in result.posting_filter %}
- <b>{{ filter.f }}</b> = <i>{{ filter.v }}</i> -
{% endfor %}
{% endif %}
</div>
<div class="report-table result-table" >
<table {% if is_plot %} class="plot" {% endif %} {% if is_nav %} class="{{index}}" {% endif %}>
<caption>
<div class="left titleleft">
<div class="title left">{{ result.title }}</div>
{% if result.config %}
<a href="#" class="config left"><img title="{{ 'report :: configurer le tableau' | trans }}" src="/skins/report/img/config.png"/></a>
{% endif %}
{% if result.print %}
<a href="#" class="jqprint left"><img title="{{ 'report :: imprimer le tableau' | trans }}" src="/skins/report/img/print.png"/></a>
{% endif %}
{% if result.csv %}
<a id="export_csv" class="left" href="#" style="display:inline-block; width: 20px;height:20px;margin-left: 10px;">
<img title="{{ 'CSV export' | trans }}" src="/skins/report/img/csv.gif">
</a>
{% endif %}
</div>
<div class="right">{{ result.periode }}</div>
<div style="clear:both;height:2px;"></div>
<div class="right" style="font-weight:lighter;font-size:10px;">
{% set total_count = result.total %}
{% if total_count > 0 and total_count != 0 %}
<i>
{% if total_count == 1 %}
{% trans %}1 result{% endtrans %}
{% else %}
{% trans with {'%total_count%' : total_count} %}%total_count% results{% endtrans %}
{% endif %}
</i>
{% endif %}
</div>
<div class="spacer"></div>
</caption>
<thead>
{% set colspan = "" %}
{% for key, value in result.display %}
<th class="{{ key }}" scope="col" >
{% if value.sort == 1 %}
<div class="orderby">
<img title="{{ "Trier" | trans }}" style="float:left;top:0;left:0;" class="asc" src="/skins/report/img/arrow_up.png" />
<img title="{{ "Trier" | trans }}" style="float:left;top:0;left:0;" class="desc" src="/skins/report/img/arrow_down.png" />
{% endif %}
<div class="title_th" style="clear:both;color:black;">{{ value.title }}</div>
{% if value.sort == 1 %}
</div>
{% endif %}
<div style="height:8px;">
{% if value.filter == 1 %}
<a href="#" title="{{ "Filtrer" | trans }}" style="float:left;bottom:0;left:0;font-size:8px;" class="{{ key }} filter ">{{ "report :: filtrer" | trans }}</a>
{% endif %}
{% if value.groupby == 1 %}
<a href="#" title="{{ "Grouper" | trans }}" style="float:right;bottom:0;right:0;font-size:8px;" class="{{ key }} groupby ">{{ "report :: grouper" | trans }}</a>
{% endif %}
</div>
</th>
{% set colspan = loop.length %}
{% endfor %}
</thead>
<tbody>
{% for tr, value in result.result %}
{% if loop.index is even %}
<tr class="even">
{% else %}
<tr class="odd">
{% endif %}
{% for class, config in result.display %}
<td class="{{ class }}">
{% for key , res in value %}
{% if key|lower == class %}
{% if config.bound == 1 and "</i>" not in res %}
{% if key == "user" and value.user == "<b>TOTAL</b>" %}
{{ res|raw }}
{% elseif is_nav or is_doc %}
<a href="#" rel ="" class="{{res}} bound">{{ res|raw }}</a>
{% else %}
<a href="#" rel ="" class="{{value.usrid}} bound">{{ res|raw }}</a>
{% endif %}
{% else %}
{{ res|raw }}
{% endif %}
{% endif %}
{% endfor %}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan="{{colspan}}"></td>
</tr>
</tfoot>
</table>
</div>
{% else %}
<div class="report-table center" style="margin-top:50px;" >
<b>{{ result.title }}</b>
<br />
<img src="/skins/report/img/noresults.png" />
<br />
<i>{{ "report :: aucun resultat trouve" | trans }}</i><br />
</div>
{% endif %}