1 |
9791e4f3
|
Marc Nicolas
|
<head>
|
2 |
|
|
{% load staticfiles %}
|
3 |
|
|
<link rel="stylesheet" href="{% static 'forms.css' %}" />
|
4 |
|
|
<script type="text/javascript" src="{% static 'forms.js'%}"></script>
|
5 |
|
|
<meta charset="UTF-8">
|
6 |
|
|
<title>Sitools2 Webstat</title>
|
7 |
|
|
</head>
|
8 |
|
|
<body onload="checkIfAll();onLoad();">
|
9 |
|
|
<div id="header" style="text-align: center; font-size: 27px;font-weight: bold">SiTools2 Webstats</div>
|
10 |
|
|
<div id="formulaire" style="width:25%; float:left;">
|
11 |
|
|
<form action="{% url 'webstat:accueil' %}" method="post">
|
12 |
|
|
{% csrf_token %}
|
13 |
|
|
<label id="app_label_id">{{ form.application.label }} : </label> {{ form.application }}<br><br>
|
14 |
|
|
<span style="font-size: large;font-weight: bold">Fichiers de log à analyser</span><br>
|
15 |
|
|
{{ form.all_date }}<label> {{ form.all_date.label }}</label><br>
|
16 |
|
|
{{ form.period_date }}<label> {{ form.period_date.label }}</label><br>
|
17 |
|
|
<div id="dateWebstat">
|
18 |
|
|
<span class="date_span"><label>{{ form.start_date.label }} : </label> {{ form.start_date }}</span><br>
|
19 |
|
|
<span class="date_span"><label>{{ form.end_date.label }} : </label> {{ form.end_date }}</span>
|
20 |
|
|
</div>
|
21 |
|
|
<br>
|
22 |
|
|
<span style="font-size: large; font-weight: bold">Statistiques à calculer</span><br>
|
23 |
|
|
<ul>
|
24 |
|
|
<div id="downStatDiv">
|
25 |
|
|
<li><label>Statistiques de téléchargement :</label></li>
|
26 |
|
|
<div id="downStatChoice">
|
27 |
|
|
<span class="date_span"> {{ form.is_just_down_stat }} <label>{{ form.is_just_down_stat.label }}</label></span><br>
|
28 |
|
|
<span class="date_span"> {{ form.is_down_stat_by_user }} <label>{{ form.is_down_stat_by_user.label }}</label></span><br>
|
29 |
|
|
<span class="date_span"> {{ form.is_down_stat_by_ip }} <label>{{ form.is_down_stat_by_ip.label }}</label></span><br>
|
30 |
|
|
<span class="date_span"> {{ form.is_down_stat_by_country }} <label>{{ form.is_down_stat_by_country.label }}</label></span><br>
|
31 |
|
|
<span class="date_span"> {{ form.is_down_stat_by_months }} <label>{{ form.is_down_stat_by_months.label }}</label></span><br>
|
32 |
|
|
<span class="date_span"> {{ form.is_down_stat_by_project }} <label>{{ form.is_down_stat_by_project.label }}</label></span>
|
33 |
|
|
</div>
|
34 |
|
|
</div>
|
35 |
|
|
<br>
|
36 |
|
|
<div id="accessStatDiv">
|
37 |
|
|
<li><label>Statistiques d'accès :</label></li>
|
38 |
|
|
<div id="accessStatChoice">
|
39 |
|
|
<span class="date_span"> {{ form.is_access_access_by_ip }} <label>{{ form.is_access_access_by_ip.label }}</label></span><br>
|
40 |
|
|
<span class="date_span"> {{ form.is_access_access_by_months }} <label>{{ form.is_access_access_by_months.label }}</label></span><br>
|
41 |
|
|
<span class="date_span"> {{ form.is_access_access_by_country }} <label>{{ form.is_access_access_by_country.label }}</label></span><br>
|
42 |
|
|
<span class="date_span"> {{ form.is_access_vo_by_ip }} <label>{{ form.is_access_vo_by_ip.label }}</label></span><br>
|
43 |
|
|
<span class="date_span"> {{ form.is_access_vo_by_months }} <label>{{ form.is_access_vo_by_months.label }}</label></span><br>
|
44 |
|
|
<span class="date_span"> {{ form.is_access_vo_by_country }} <label>{{ form.is_access_vo_by_country.label }}</label></span><br>
|
45 |
|
|
</div>
|
46 |
|
|
</div>
|
47 |
|
|
</ul>
|
48 |
|
|
<div id="class_errors">
|
49 |
|
|
{% if form.errors %}
|
50 |
|
|
{% for field in form %}
|
51 |
|
|
{% for error in field.errors %}
|
52 |
|
|
<li> {{ field.label }} : {{ error }} </li>
|
53 |
|
|
{% endfor %}
|
54 |
|
|
{% endfor %}
|
55 |
|
|
{% endif %}
|
56 |
|
|
</div>
|
57 |
|
|
<input type="submit" value="Go !" />
|
58 |
|
|
</form>
|
59 |
|
|
</div>
|
60 |
|
|
<div id="chart" style="float:clear;"><img src="{% static 'access_by_month.png'%}"></div>
|
61 |
|
|
<div id="footer"></div>
|
62 |
|
|
</body> |