Remove mobile report

This commit is contained in:
Romain Neutron
2012-07-20 16:21:39 +02:00
parent 5bff45b08d
commit 53569f5087
62 changed files with 0 additions and 3844 deletions

View File

@@ -1,159 +0,0 @@
{# MAIN MENU #}
<div id="menu_liste_base">
{# TITLE #}
<div class="toolbar"><h1>Liste des bases</h1><a class="button back" href="#">Back</a></div>
{# CONTENT #}
<ul class="plastic rounded">
{% for key in selection|keys %}
<li class ="number_{{ key }} arrow"><a href="#tab-{{ key }}-{{ param.tbl }}">{{ key|sbas_names}}</a></li>
{% endfor %}
</ul>
</div>
<script type="text/javascript">
function update(divResult,form, i)
{
//a supprimer pour la production
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)))
{
var isTouchScreen = 1;
}
else
{
var isTouchScreen = 0;
}
$.ajax({
type: "POST",
url: "./ajax_table_content.php",
dataType: "json",
data:form.serializeArray(),
beforeSend:function()
{
divResult.empty();
divResult.addClass('loading');
},
success: function(data)
{
divResult.empty().append(data.rs);
form.find("input[name=page]").attr("value", data.page);
divResult.unbind('mousedown touchstart').bind('mousedown touchstart',function(e)
{
if(isTouchScreen)
{
e = e.originalEvent.touches[0];
}
var initX = e.pageX;
var sX = e.pageX;
divResult.unbind('mousemove touchmove').bind('mousemove touchmove ',function(ev)
{
if(isTouchScreen)
{
ev = ev.originalEvent.touches[0];
}
sX = ev.pageX;
});
divResult.unbind('mouseup touchend').bind('mouseup touchend',function(ev)
{
divResult.unbind('mousemove touchmove mouseup touchend mousedown mousestart');
if(isTouchScreen)
{
ev = ev.originalEvent.touches[0];
}
if(initX>sX)
{
if( (initX-sX > 0.4*320) && data.next != false && data.next != "undefined" && data.next > 0)//$(document).width()
{
form.find("input[name=page]").attr("value", data.next);
update(divResult,form);
}
}
else
{
if( (sX-initX > (0.4)*320) && data.prev > 0 && data.prev != "undefined" && data.prev != false )//$(document).width()
{
form.find("input[name=page]").attr("value", data.prev);
update(divResult,form);
}
}
});
});
}
});
}
$(document).ready(function(){
//load report
$("#menu_liste_base li").unbind("click").bind("click", function(){
i = 1;
$this = $(this);
$ref = $this.find("a").attr("href").replace("#", "");
var div = $("#" + $ref);
var form = div.find("form");
var divResult = div.find(".result");
update(divResult,form);
});
});
</script>
{% for key, value in selection %}
<div id="tab-{{ key }}-{{ param.tbl }}" >
<div class="toolbar"><h1>{{ key|sbas_names}}</h1><a class="button back" href="#menu_liste_base">{% trans 'Back' %}</a></div>
<div class="result">
{% block ajax_data_content %}{% endblock %}
</div>
<form onsubmit="return false;">
<input type="hidden" name="page" value="1" size ="2"/>
<input type="hidden" name="limit" value="30" size="2" />
<input type="hidden" name="tbl" value ="{{ param['tbl'] }}"/>
<input type="hidden" name="dmin" value ="{{ param['dmin'] }}"/>
<input type="hidden" name="dmax" value ="{{ param['dmax'] }}"/>
<input type="hidden" name="sbasid" value ="{{ key }}"/>
<input type="hidden" name="collection" value ="{{ value.liste }}"/>
<input type="hidden" name="user" value ="{{ param['preciseUser'] }}"/>
<input type="hidden" name="word" value ="{{ param['preciseWord'] }}"/>
<input type="hidden" name="precise" value ="{{ param['precise'] }}"/>
<input type="hidden" name="order" value =""/>
<input type="hidden" name="champ" value =""/>
<input type="hidden" name="rid" value =""/>
<input type="hidden" name="filter_column" value =""/>
<input type="hidden" name="filter_value" value =""/>
<input type="hidden" name="liste" value ="off"/>
<input type="hidden" name="liste_filter" value =""/>
<input type="hidden" name="conf" value ="off"/>
<input type="hidden" name="list_column" value =""/>
<input type="hidden" name="groupby" value =""/>
<input type="hidden" name="societe" value ="{{ param['societe'] }}"/>
<input type="hidden" name="pays" value ="{{ param['pays'] }}"/>
<input type="hidden" name="fonction" value ="{{ param['fonction'] }}"/>
<input type="hidden" name="activite" value ="{{ param['activite'] }}"/>
<input type="hidden" name="on" value ="{{ param['on'] }}"/>
<input type="hidden" name="from" value =""/>
</form>
</div>
<div id="settings-tab-{{ key }}-{{ param.tbl }}" >
<div class="toolbar"><h1>settings - {{ key|sbas_names }}</h1><a class="button back" href="#">{% trans 'Back' %}</a></div>
</div>
<div id="groupby-{{ key }}-{{ param.tbl }}">
<div class="toolbar"><h1></h1></div>
<div class="result">
{{ block('ajax_data_content') }}
</div>
</div>
{% endfor %}

View File

@@ -1,9 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="{{ session.get_I18n }}">
<head>
{% include "report/header.twig" %}
</head>
<body>
{% block all_content %}{% endblock %}
</body>
</html>

View File

@@ -1,64 +0,0 @@
{% if result.result|length > 0 %}
<div class="report-table" style="margin:0;padding:0;width:320px;">
<table style="width:320px;">
<caption>
<div class="title">{{ result.title }}</div>
<div class="periode">{{ result.periode }}</div>
{% if result.total|length > 0 and result.total != 0 %}
<div class="nb_result"> rs : {{ result.total }} </div>
{% endif %}
{% if report.rs.page|length > 0 %}
<div class="page"> p : {{report.rs.page}}</div>
{% endif %}
</caption>
<thead>
{% set colspan = "" %}
{% for key, value in result.display %}
<th class="{{ key }}" scope="col">
{% if value.title == "ddate" and value.title != 0 %}
<div class="title_th"> date </div>
{% else %}
<div class="title_th">{{ value.title }}</div>
{% endif %}
</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 , result in value %}
{% if key == class %}
{{ result }}
{% endif %}
{% endfor %}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan="{{colspan}}"></td>
</tr>
</tfoot>
</table>
</div>
{% else %}
<div class="center no_results">
<b>{{ array.title }}</b>
<br />
<img src="skins/images/noresults.png" />
<br />
<i>{% trans "report :: aucun resultat trouve" %}</i><br />
</div>
{% endif %}

View File

@@ -1,219 +0,0 @@
{% block head %}
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>{{ home_title }} - Reports </title>
{% block stylesheet %}
<link type="text/css" rel="stylesheet" href="/include/minify/f=skins/report/jqt/jqtouch.css,skins/report/jqt/theme.css,skins/report/mycss.css,skins/report/datepicker/datepicker.css" media="screen" />
{% endblock %}
{% block icon %}
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
{% endblock %}
{% block javascript %}
<script type="text/javascript" charset="utf-8">
var usrId = '{{ usr_id }}' ;
var language = {
valider : '{% trans "boutton::valider" %}',
choix_collection : '{% trans "veuillez choisir au minimum une collection" %}',
annuler : '{% trans "boutton::annuler" %}',
fermer : '{% trans "boutton::fermer" %}'
};
var date = {
dmin : '{{ dashboard_array.dmin_req }}',
dmax : '{{ dashboard_array.dmax_req }}'
};
</script>
<script type="text/javascript" src="http{{ request.is_secure() ? 's' : '' }}://www.google.com/jsapi"></script>
<script type="text/javascript" src="/include/jslibs/jquery-1.7.1.js"></script>
<script type="text/javascript" src="/include/jslibs/jquery-ui-1.8.17/js/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript" src="/include/minify/g=reportmobile"></script>
<script type="text/javascript" src="/include/minify/f=include/jslibs/datepicker-mobile/datepicker.js"></script>
<script type="text/javascript" src="/include/minify/f=include/jslibs/jquery.gvChart-0.1.js"></script>
<script type="text/javascript" charset="utf-8">
var jQT = new $.jQTouch({
addGlossToIcon: false,
statusBar: 'white'
});
</script>
<script type="text/javascript">
gvChartInit();
</script>
<script type="text/javascript">
$(document).ready(function(){
$('#mytableday').gvChart({
chartType: 'LineChart',
gvSettings: {
colors:['white', '#FFFFFF'],
titleTextStyle:{
color: '#FF8D1C',
fontSize: '20'
},
vAxis: {
title: '{% trans "report::Nombre de connexions" %}',
textStyle: {
fontSize: '10',
color: '#AAAAAA'
}
},
hAxis: {
title: '{% trans "report:: jour" %}',
textStyle: {
fontSize: '10',
color: '#AAAAAA'
},
tooltipTextStyle: {
fontSize: 4
},
slantedTex: true,
slantedTextAngle: 60,
maxAlternation: 3,
showTextEvery: 3
},
legend: 'none',
lineWidth: 1,
pointSize: 3,
backgroundColor: '#555555',
width: 320,
height: 480,
}
});
$('#mytablehour').gvChart({
chartType: 'LineChart',
gvSettings: {
colors:['white', '#FFFFFF'],
titleTextStyle:{
color: '#FF8D1C',
fontSize: '20'
},
vAxis: {
title: '{% trans "report::Nombre de connexions" %}',
textStyle: {
fontSize: '10',
color: '#AAAAAA'
}
},
hAxis: {
title: '{% trans "report:: jour" %}',
textStyle: {
fontSize: '10',
color: '#AAAAAA'
},
tooltipTextStyle: {
fontSize: 4
},
slantedTex: true,
slantedTextAngle: 90,
maxAlternation: 1,
showTextEvery: 1
},
legend: 'none',
lineWidth: 1,
pointSize: 3,
backgroundColor: '#555555',
width: 320,
height: 480,
}
});
$('#mytableadded').gvChart({
chartType: 'ColumnChart',
gvSettings: {
colors:['white', '#FFFFFF'],
titleTextStyle:{
color: '#FF8D1C',
fontSize: '20'
},
vAxis: {
title: '{% trans "report::Nombre de document ajoute" %}',
textStyle: {
fontSize: '10',
color: '#AAAAAA'
}
},
hAxis: {
title: '{% trans "report:: jour" %}',
textStyle: {
fontSize: '10',
color: '#AAAAAA'
},
tooltipTextStyle: {
fontSize: 4
},
slantedTex: true,
slantedTextAngle: 60,
},
legend: 'none',
lineWidth: 1,
pointSize: 3,
backgroundColor: '#555555',
width: 320,
height: 480,
}
});
$('#mytableedited').gvChart({
chartType: 'ColumnChart',
gvSettings: {
colors:['white', '#FFFFFF'],
titleTextStyle:{
color: '#FF8D1C',
fontSize: '20'
},
vAxis: {
title: '{% trans "report::Nombre de document edite" %}',
textStyle: {
fontSize: '10',
color: '#AAAAAA'
}
},
hAxis: {
title: '{% trans "report:: jour" %}',
textStyle: {
fontSize: '10',
color: '#AAAAAA'
},
tooltipTextStyle: {
fontSize: 4
},
slantedTex: true,
slantedTextAngle: 60,
},
legend: 'none',
lineWidth: 1,
pointSize: 3,
backgroundColor: '#555555',
width: 320,
height: 480,
}
});
});
</script>
{% for key, value in dashboard_array.all_sbas_desc %}
<script>
$(document).ready(function(){
$(".base_{{key}}").data("info", {
id : "{{key}}",
coll : "{{value.server_coll_list}}",
dmin : "{{ dashboard_array.dmin_req }}",
dmax : "{{dashboard_array.dmax_req }}"
}
);
});
</script>
{% endfor %}
{% endblock %}
{% endblock %}

View File

@@ -1,27 +0,0 @@
{% if result.result|length > 0 %}
<div class="phone">
{% for tr, value in result.result %}
<ul>
{% for class, config in result.display %}
<li class="{{ class }}">
{% for key , result in value %}
{% if key == class %}
<div class="center key">{{ class }}</div>
<div class="center value">{{ result }}</div>
{% endif %}
{% endfor %}
</li>
{% endfor %}
</ul>
{% endfor %}
{% else %}
<div class="center no_results">
<b>{{ array.title }}</b>
<br />
<img src="skins/images/noresults.png" />
<br />
<i>{% trans "report :: aucun resultat trouve" %}</i><br />
</div>
{% endif %}

View File

@@ -1,40 +0,0 @@
{% extends "report/base.twig" %}
{% block all_content %}
{# MAIN MENU #}
<div id="dashboard-table" >
<div style="width:320px;">
<div id="periode_dash" class="center" >{{ dashboard_array.dmin }} au {{ dashboard_array.dmax }}</div>
<div id="liste_dash" class="center">{{ dashboard_array.liste_base }}</div>
<ul class="edgetoedge">
{% for key, value in dashboard_array.all_sbas_desc %}
<li class="arrow base_{{key}}"><a href="#">{{ value.name }}</a></li>
{% endfor %}
</ul>
{% for key, value in dashboard_array.base %}
{% endfor %}
</div>
{%block dashboard_content %}
{% block connexions_downloads_table %}{% endblock %}
{% block top_ten_nb_docs %}{% endblock %}
{% block top_ten_nb_prev %}{% endblock %}
{% block top_ten_dl_doc %}{% endblock %}
{% block top_ten_dl_prev %}{% endblock %}
{% block top_ten_site %}{% endblock %}
{% block top_ten_weight_doc %}{% endblock %}
{% block top_ten_weight_prev %}{% endblock %}
{% block top_ten_asked_question %}{% endblock %}
{% block top_ten_user_question %}{% endblock %}
{% block draw_activity_hour %}{% endblock %}
{% block draw_activity_day %}{% endblock %}
{% block draw_activity_added %}{% endblock %}
{% block draw_activity_edited %}{% endblock %}
{% endblock %}
</div>
{%block content %}{% endblock %}
{% endblock %}

View File

@@ -1,28 +0,0 @@
{% block ajax_data_content %}
<script type="text/javascript">
</script>
{% if filters|length > 0 %}
<div class='current_filter'>{{ currentfilter }}</div>
{% endif %}
{% if is_nav %}
{% for result in result %}
<div class="graph">
{% include "report/generate_tab.twig" %}
{% if result.legend|length > 1 %}
<div class='center' ><img src='charts/draw_pie.php?value={{ result.value|serialize|urlencode }}&legend={{ result.legend|serialize|urlencode }}&title={{ result.title|serialize|urlencode }}' ></img></div>
{% endif %}
</div>
{% endfor %}
{% elseif is_plot %}
{% include "report/generate_tab.twig" %}
{% set heures = "heures" %}
<div class='center'>
<img src='charts/drawLinePlotWithLegend.php?legend={{ result.legend|serialize|urlencode }}&value={{ result.result.0|serialize|urlencode }}&absc={{ heures|urlencode }}'></img>
</div>
{% else %}
{% include "report/generate_tab.twig" %}
{% endif %}
{% endblock %}

View File

@@ -1,22 +0,0 @@
{% block setting_activity %}
<div class="setting_title">{% trans "report:: 3 - Type de report" %}</div>
<ul class="rounded">
<li>
<input name="tbl" type="radio" value="ASK" id="ASK-input" />
<label for="ASK-input">{% trans "report:: toutes les questions" %}</label>
</li>
<li>
<input name="tbl" type="radio" value="BESTOF" id="BESTOF-input" />
<label for="BESTOF-input">{% trans "report:: Les questions les plus posees" %}</label>
</li>
<li>
<input name="tbl" type="radio" value="NOBESTOF" id="NOBESTOF-input" />
<label for="NOBESTOF-input">{% trans "report:: questions sans reponses" %}</label>
</li>
<li>
<input name="tbl" type="radio" value="SITEACTIVITY" id="SITEACTIVITY-input" />
<label for="SITEACTIVITY-input">{% trans "report:: activite du site" %}</label>
</li>
<input name="what" type="hidden" value="ACT" id="ACT-what" />
</ul>
{% endblock %}

View File

@@ -1,16 +0,0 @@
{% block setting_base %}
<div class="setting_title">{% trans "report:: 2 - Bases" %}</div>
<ul class="rounded">
<li>
<select name="popbases[]" class="multiselect" multiple="multiple" id="popbases">
{% for the_base_coll in all_coll %}
<optgroup label="{{ the_base_coll.name_sbas }}">
{% for a_coll in the_base_coll.sbas_collections %}
<option value="{{ a_coll.sbas_id}}_{{ a_coll.coll_id }}">{{ a_coll.name }}</option>
{% endfor %}
</optgroup>
{% endfor %}
</select>
</li>
</ul>
{% endblock %}

View File

@@ -1,32 +0,0 @@
{% block setting_connexion %}
<div class="setting_title">{% trans "report:: 3 - Type de report" %}</div>
{% if not anonymous %}
<ul class="rounded">
<li class="formsubmiter CNXU submit">
{% trans "report:: (connexions) Par utilisateurs" %}
</li>
{% else %}
<ul class="rounded">
<li>
<label for="list-select">{% trans "report:: (connexions) Par utilisateurs" %}</label>
<select class="options" id="list-select" name="on" >
<option selected ="selected" value="fonction" >{% trans "report:: fonction" %}</option>
<option value="societe" >{% trans "report:: societe" %}</option>
<option value="activite" >{% trans "report:: activite" %}</option>
<option value="pays" >{% trans "report:: pays" %}</option>
</select>
</li>
<li class="formsubmiter CNXU submit fonction" style="display:none;"></li>
</ul>
<ul class="rounded">
{% endif %}
<li class="formsubmiter CNX submit">
{% trans "report:: (connexions) Globales" %}
</li>
<li class="formsubmiter CNXB submit">
{% trans "report:: (connexions) OS et navigateurs" %}
</li>
<input name="what" type="hidden" value="CNX" id="CNX-what" />
<input name="tbl" type="hidden" value="" id="tbl" />
</ul>
{% endblock %}

View File

@@ -1,11 +0,0 @@
{% block setting_date %}
<div class="setting_title">{% trans "report:: 1 - Periode" %}</div>
<ul class="rounded">
<li>
<input type="text" class="format-d-m-y divider-dash highlight-days-12 no-fade add_date" name="dmin" value="{{ date.dmin }}" size="10" readonly="readonly"/>
</li>
<li>
<input type="text" class="format-d-m-y divider-dash highlight-days-12 no-fade add_date" name="dmax" value="{{ date.dmax }}" size="10" readonly="readonly"/>
</li>
</ul>
{% endblock %}

View File

@@ -1,41 +0,0 @@
{% block setting_download %}
<div class="setting_title">{% trans "report:: 3 - Type de report" %}</div>
<ul class="rounded">
{% if anonymous %}
<li>
<input name="tbl" type="radio" value="USR" id="USR-dl" class="formsubmiter" />
<label for="USR-dl">{% trans "report:: Grouper par" %}</label>
<select class="options" style="display:inline;display:none;" id="list-select2" name="on" >
<option selected ="selected" value="fonction" class="formsubmiter">{% trans "report:: fonction" %}</option>
<option value="societe" class="formsubmiter">{% trans "report:: societe" %}</option>
<option value="activite" class="formsubmiter">{% trans "report:: societe" %}</option>
<option value="pays" class="formsubmiter">{% trans "report:: pays" %}</option>
</select>
</li>
{% else %}
<li>
<input name="tbl" type="radio" value="USR" id="USR-input" class="formsubmiter" />
<label for="USR-input">{% trans "report:: par utilisateurs" %}</label>
</li>
{% endif %}
<li>
<input name="tbl" type="radio" value="GEN" id="GEN-input" class="formsubmiter" />
<label for="GEN-input">{% trans "report:: (telechargement) Global" %}</label>
</li>
<li>
<input name="tbl" type="radio" value="DAY" id="DAY-input" class="formsubmiter" />
<label for="DAY-input">{% trans "report:: (telechargement) Par jours base par base" %}</label>
</li>
<li>
<input name="tbl" type="radio" value="DOC" id="DOC-input" class="formsubmiter" />
<label for="DOC-input">{% trans "report:: (telechargement) Par documents sur la base" %}</label>
<select class="options" id="precise" name="precise" style="display:none;">
<option value="0">{% trans "report::aucune precision" %}</option>
<option value="1">{% trans "report::la description contient" %}</option>
<option value="2">{% trans "report:: recordid" %}</option>
</select>
<input name="preciseWord" type="text" value="" class="options entersubmiter" />
</li>
<input name="what" type="hidden" value="DWLD" id="DWLD-what"/>
</ul>
{% endblock %}

View File

@@ -1,494 +0,0 @@
{% extends "report/main.twig" %}
{% block connexions_downloads_table %}
<div id="div_one">
<div class="toolbar"><a href="#settings" class="bbutton flip"{% trans 'menu' %}/a><a href="#whattoclick" class="button flip">{% trans 'Details' %}</a></div>
<ul class="edgetoedge center"><li>{% trans "report:: Cumul telechargements & connexions" %}</li></ul>
<table >
<thead>
<tr>
<th>{% trans "report:: telechargements" %}</th>
<th>{% trans "report::Connexion" %}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ dashboard_array.dashboard.nb_dl }}</td>
<td>{{ dashboard_array.dashboard.nb_conn }}</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmaxv }}</td>
</tr>
</tfoot>
</table>
<div>&nbsp;</div>
</div>
{% endblock %}
{% block top_ten_nb_docs %}
{% if dashboard_array.dashboard.top_ten_user.nbdoc|length > 0 %}
<div id="div_two">
<div class="toolbar"><a href="#settings" class="button flip">{% trans 'menu' %}</a></div>
<ul class="edgetoedge center"><li>{% trans "report:: Utilisateurs les plus actifs" %}</li></ul>
<table >
<thead>
<tr>
<th>{% trans "report:: utilisateurs" %}</th>
<th>{% trans "report:: telechargements document" %}</th>
</tr>
</thead>
<tbody>
{% for key, value in dashboard_array.dashboard.top_ten_user.nbdoc %}
<tr>
<td>{{ value.user|e }}</td>
<td>{{ value.nbdoc }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{dashboard_array.dmaxv }}</td>
</tr>
</tfoot>
</table>
</div>
{% endif %}
{% endblock %}
{% block top_ten_nb_prev %}
{% if dashboard_array.dashboard.top_ten_user.nbprev|length > 0 %}
<div id="div_three">
<div class="toolbar"><a href="#settings" class="button flip">{% trans 'menu' %}</a></div>
<ul class="edgetoedge center"><li>{% trans "report:: Utilisateurs les plus actifs" %}</li></ul>
<table >
<thead>
<tr>
<th>{% trans "report:: utilisateurs" %}</th>
<th>{% trans "report:: telechargements preview" %}</th>
</tr>
</thead>
<tbody>
{% for key, value in dashboard_array.dashboard.top_ten_user.nbprev %}
<tr>
<td>{{ value.user|e }}</td>
<td>{{ value.nbprev }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmaxv}}</td>
</tr>
</tfoot>
</table>
</div>
{% endif %}
{% endblock %}
{% block top_ten_dl_doc %}
{% if dashboard_array.dashboard.top_dl.document|length > 0 %}
<div id="div_for">
<div class="toolbar"><a href="#settings" class="button flip">{% trans 'menu' %}</a></div>
<ul class="edgetoedge center"><li>{% trans "report:: documents les plus telecharges" %}</li></ul>
<table >
<thead>
<tr>
<th>{% trans "report:: document" %}</th>
<th>{% trans "report:: telechargements" %}</th>
</tr>
</thead>
<tbody>
{% for key, value in dashboard_array.dashboard.top_dl.document %}
<tr>
<td class="{{ key }} link" style="color:white;cursor:pointer"><a href="#dashboard-info" class ="pop">{{ value.user|e }}</a></td>
<td>{{ value.nbdoc }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmax }}</td>
</tr>
</tfoot>
</table>
</div>
{% endif %}
{% endblock %}
{% block top_ten_dl_prev %}
{% if dashboard_array.dashboard.top_dl.preview|length > 0 %}
<div id="div_five">
<div class="toolbar"><a href="#settings" class="button flip">{% trans 'menu' %}</a></div>
<ul class="edgetoedge center">
<li>{% trans "report:: preview les plus telecharges" %}</li>
</ul>
<table class="fleft">
<thead>
<tr>
<th>{% trans "report:: document" %}</th>
<th>{% trans "report:: telechargements" %}</th>
</tr>
</thead>
<tbody>
{% for key, value in dashboard_array.dashboard.top_dl.preview %}
<tr>
<td class="{{ key }} link" style="color:white;cursor:pointer"><a href="#dashboard-info" class ="pop">{{ value.user|e }}</a></td>
<td>{{ value.nbdoc }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmaxv }}</td>
</tr>
</tfoot>
</table>
<div class="center"><em style="font-size:9px;">{% trans "report:: site" %}></em></div>
<div class="center"><em style="font-size:9px;">< {% trans "report:: documents les plus telecharges" %}</em></div>
</div>
{% endif %}
{% endblock %}
{% block top_ten_site %}
{% if dashboard_array.dashboard.top_ten_site|length > 0 %}
<div id="div_six">
<div class="toolbar"><a href="#settings" class="button flip">{% trans 'menu' %}</a></div>
<ul class="edgetoedge center"><li>{% trans "report:: site d\'ou les photo sont les plus consultees" %}</li></ul>
<table >
<thead>
<tr>
<th>{% trans "report:: site" %}</th>
<th>{% trans "report:: nombre de vue" %}</th>
</tr>
</thead>
<tbody>
{% for key, value in dashboard_array.dashboard.top_ten_site %}
<tr>
<td>{{ key }}</td>
<td>{{ value }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmaxv }}</td>
</tr>
</tfoot>
</table>
</div>
{% endif %}
{% endblock %}
{% block top_ten_weight_doc %}
{% if dashboard_array.dashboard.top_ten_user.poiddoc|length > 0 %}
<div id="div_seven">
<div class="toolbar"><a href="#settings" class="button flip"{% trans 'menu' %}/a></div>
<ul class="edgetoedge center"><li>{% trans "report:: Utilisateurs les plus actifs" %}</li></ul>
<table >
<thead>
<tr>
<th>{% trans "report:: telechargements" %}</th>
<th>{% trans "report:: poids document" %}</th>
</tr>
</thead>
<tbody>
{% for key, value in dashboard_array.dashboard.top_ten_user.poiddoc %}
<tr>
<td>{{ value.user|e }}</td>
<td>{{ value.poiddoc | formatOctets }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmaxv }}</td>
</tr>
</tfoot>
</table>
</div>
{% endif %}
{% endblock %}
{% block top_ten_weight_prev %}
{% if dashboard_array.dashboard.top_ten_user.poidprev|length > 0 %}
<div id="div_eights">
<div class="toolbar"><a href="#settings" class="button flip"{% trans 'menu' %}/a></div>
<ul class="edgetoedge center"><li>{% trans "report:: Utilisateurs les plus actifs" %}</li></ul>
<table >
<thead>
<tr>
<th>{% trans "report:: telechargements" %}</th>
<th>{% trans "report:: poids preview" %}</th>
</tr>
</thead>
<tbody>
{% for key, value in dashboard_array.dashboard.top_ten_user.poidprev %}
<tr>
<td>{{ value.user|e }}</td>
<td>{{ value.poidprev | formatOctets }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmaxv }}</td>
</tr>
</tfoot>
</table>
</div>
{% endif %}
{% endblock %}
{% block top_ten_user_question %}
{% if dashboard_array.dashboard.ask|length > 0 %}
<div id="div_ten">
<div class="toolbar"><a href="#settings" class="button flip"{% trans 'menu' %}/a></div>
<ul class="edgetoedge center"><li>{% trans "report:: Les questions les plus posees" %}</li></ul>
<table >
<thead>
<tr>
<th>{% trans "report:: utilisateurs" %}</th>
<th>{% trans "report:: question" %}</th>
</tr>
</thead>
<tbody>
{% for key, value in dashboard_array.dashboard.ask %}
<tr>
<td>{{ value.user|e }}</td>
<td>{{ value.question|e }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmaxv }}</td>
</tr>
</tfoot>
</table>
</div>
{% endif %}
{% endblock %}
{% block draw_activity_hour %}
{% if dashboard_array.dashboard.activity|length > 0 %}
<div id="div_eleven">
<div class="toolbar"><a href="#settings" class="button flip"{% trans 'menu' %}/a></div>
<ul class="edgetoedge center"><li>{% trans "report:: activite par heure" %}</li></ul>
<table id = "mytablehour">
<thead>
<tr>
<th></th>
{% for key, value in dashboard_array.legendHour %}
<th>{{ value }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
<th></th>
{% for key, value in dashboard_array.dashboard.activity.0 %}
<td>{{ value }}</td>
{% endfor %}
</tr>
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmaxv }}</td>
</tr>
</tfoot>
</table>
</div>
{% endif %}
{% endblock %}
{% block draw_activity_day %}
{% if dashboard_array.dashboard.activity_day|length > 0 %}
<div id="div_twelve">
<div class="toolbar"><a href="#settings" class="button flip"{% trans 'menu' %}/a></div>
<ul class="edgetoedge center"><li>{% trans "report:: activite par jour" %}</li></ul>
<table id="mytableday">
<thead>
<tr>
<th></th>
{% for key, value in dashboard_array.legendDay %}
<th>{{ value }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
<th></th>
{% for key, value in dashboard_array.dashboard.activity_day.value %}
<td>{{ value }}</td>
{% endfor %}
</tr>
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmaxv }}</td>
</tr>
</tfoot>
</table>
</div>
{% endif %}
{% endblock %}
{% block draw_activity_added %}
{% if dashboard_array.dashboard.activity_added|length > 0 %}
<div id="div_thirteen">
<div class="toolbar"><a href="#settings" class="button flip"{% trans 'menu' %}/a></div>
<ul class="edgetoedge center"><li>{% trans "report:: activite document ajoute" %}</li></ul>
<table id="mytableadded">
<thead>
<tr>
<th></th>
{% for key, value in dashboard_array.legendDay %}
<th>{{ value }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
<th></th>
{% for key, value in dashboard_array.dashboard.activity_added.value %}
<td>{{ value }}</td>
{% endfor %}
</tr>
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmaxv }}</td>
</tr>
</tfoot>
</table>
</div>
{% endif %}
{% endblock %}
{% block draw_activity_edited %}
{% if dashboard_array.dashboard.activity_edited|length > 0 %}
<div id="div_forteen">
<div class="toolbar"><a href="#settings" class="button flip"{% trans 'menu' %}/a></div>
<ul class="edgetoedge center"><li>{% trans "report:: activite document edite" %}</li></ul>
<table id="mytableedited">
<thead>
<tr>
<th></th>
{% for key, value in dashboard_array.legendDay %}
<th>{{ value }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
<th></th>
{% for key, value in dashboard_array.dashboard.activity_edited.value %}
<td>{{ value }}</td>
{% endfor %}
</tr>
</tbody>
<tfoot>
<tr>
<td colspan='2'>{{ dashboard_array.dminv }} à {{ dashboard_array.dmaxv }}</td>
</tr>
</tfoot>
</table>
</div>
{% endif %}
{% endblock %}
{% block content %}
<div id="settings">
<div class="toolbar"><a href="#" class="button back flip">{% trans 'Back' %}</a></div>
<ul class="center edgetoedge">
<li class = "arrow"><a href="#dashboard-table" class="div_one">{% trans "report:: Cumul telechargements & connexions" %}</a></li>
<li class = "arrow"><a href="#dashboard-table" class="div_two">{% trans "report:: Utilisateurs les plus actifs" %} (documents)</a></li>
<li class = "arrow"><a href="#dashboard-table" class="div_three">{% trans "report:: Utilisateurs les plus actifs" %} (previews)</a></li>
<li class = "arrow"><a href="#dashboard-table" class="div_for">{% trans "report:: Les questions les plus posees" %}</a></li>
<li class = "arrow"><a href="#dashboard-table" class="div_five">{% trans "report:: Les questions les plus posees" %}(users)</a></li>
<li class = "arrow"><a href="#dashboard-table" class="div_six">{% trans "report:: documents les plus telecharges" %}</a></li>
<li class = "arrow"><a href="#dashboard-table" class="div_seven">{% trans "report:: Utilisateurs les plus actifs" %} (weight)</a></li>
<li class = "arrow"><a href="#dashboard-table" class="div_eight">{% trans "report:: preview les plus telecharges" %}</a></li>
<li class = "arrow"><a href="#dashboard-table" class="div_nine">{% trans "report:: Utilisateurs les plus actifs" %} (weight)</a></li>
<li class = "arrow"><a href="#dashboard-table" class="div_ten">{% trans "report:: site d\'ou les photo sont les plus consultees" %}</a></li>
<li class = "arrow"><a href="#dashboard-table" class="div_eleven">aaaa</a></li>
<li class = "arrow"><a href="#dashboard-table" class="div_twelwe">aaaa</a></li>
</ul>
</div>
<div id="whattoclick">
<div class="toolbar"><a class="button back" href="#">{% trans 'Back' %}</a><h1>{% trans 'Details' %}</h1></div>
<ul class="edgetoedge center">
<li><a href="#report-connexions-settings" class="flip">{% trans "report:: Connexion" %}</a></li>
<li><a href="#report-telechargement-settings" class="flip">{% trans "report:: telechargements" %}</a></li>
</ul>
</div>
{# SETTING CONNEXION #}
<form id="report-connexions-settings" action="ajax_liste_base.php" method="POST" class="form">
{# TITLE #}
<div class="toolbar"><h1>{% trans "report:: Connexion" %}</h1></div>
<a class="button back" href="#">{% trans 'Back' %}</a>
{# CONTENT #}
{% include "report/settings/setting_date.twig" %}
{% include "report/settings/setting_base.twig" %}
{% include "report/settings/setting_connexion.twig" %}
<a href="#" class="submit whiteButton">Submit</a>
</form>
{# SETTING TELECHARGEMENT #}
<form id="report-telechargement-settings" action="ajax_liste_base.php" method="POST" class="form">
{# TITLE #}
<div class="toolbar"><h1>{% trans "report:: telechargements" %}</h1></div>
<a class="button back" href="#">{% trans 'Back' %}</a>
{# CONTENT #}
{% include "report/settings/setting_date.twig" %}
{% include "report/settings/setting_base.twig" %}
{% include "report/settings/setting_download.twig" %}
</form>
{# SETTING ACTIVITY #}
<form id="report-activite-settings" action="ajax_liste_base.php" method="POST" class="form">
{# TITLE #}
<div class="toolbar"><h1>{% trans "report:: activite du site" %}</h1></div>
<a class="button back" href="#">{% trans 'Back' %}</a>
{# CONTENT #}
{% include "report/settings/setting_date.twig" %}
{% include "report/settings/setting_base.twig" %}
{% include "report/settings/setting_activity.twig" %}
</form>
{% for key, value in dashboard_array.base %}
<div id="#base_{{key}}">
<div class="toolbar"><a class="button back" href="#">{% trans 'Back' %}</a><h1>{{ value }}</h1></div>
</div>
{% endfor %}
<div id="mask"></div>
<div id="dashboard-info">
<div class="toolbar"><a class="button back" href="#">{% trans 'Back' %}</a><h1>{% trans "report:: Dashboard" %}</h1></div>
<div class="result">
{% include 'report/info.twig' %}
</div>
</div>
{% endblock %}