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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
| <html>
<head>
{% block meta %}
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="author" content="Sergey Pimenov and Metro UI CSS contributors">
{% endblock %}
{% block favicon %}
<link rel='shortcut icon' type='image/x-icon' href='{{ asset ('favicon.ico') }}'/>
{% endblock %}
{% block title %}
<title>Template :: Metro UI CSS - The front-end framework for developing projects on the web in Windows Metro
Style</title>
{% endblock %}
{% block stylsheets %}
<link href="{{ asset('bundles/metro/build/css/metro.css') }}" rel="stylesheet">
<link href="{{ asset('bundles/metro/build/css/metro-icons.min.css') }}" rel="stylesheet">
<link href="{{ asset('bundles/metro/build/css/metro-responsive.min.css') }}" rel="stylesheet">
{% endblock %}
{% block javascript %}
<script src="{{ asset('bundles/metro/js/jquery-2.1.3.min.js') }}"></script>
<script src="{{ asset('bundles/metro/docs/js/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('bundles/metro/js/metro.js') }}"></script>
{% endblock %}
{% block script %}
<script>
function pushMessage(t) {
var mes = 'Info|Implement independently';
$.Notify({
caption: mes.split("|")[0],
content: mes.split("|")[1],
type: t
});
}
$(function () {
$('.sidebar').on('click', 'li', function () {
if (!$(this).hasClass('active')) {
$('.sidebar li').removeClass('active');
$(this).addClass('active');
}
})
})
</script>
<script>
if($.fn.dataTable.isDataTable("#tableDataClefs"))
$("#tableDataClefs").DataTable().destroy();
$("#tbodyDataClefs").remove();
var element;
var row;
var col;
var tbody = document.createElement("tbody");
tbody.id = "tbodyDataAgents"; /* creation element du tableau */
for (var i = 0; i < clef.length; i++) {
element = document.createElement('div');
row = document.createElement('tr');
col = document.createElement('td');
element.setAttribute('id', clef[i]['id']);
element.setAttribute('Site', clef[i]['cle_eam_site']);
element.setAttribute('numsite', clef[i]["cle_eam_palier"]);
element.setAttribute('type site', clef[i]['cle_sigma']);
element.setAttribute('type site', clef[i]['cle_sigma']);
element.setAttribute("style", "z-index : 3");
// element.className = "agent ui-widget-content ui-draggable ui-draggable-handle draggable";
//Ajout nom + prenom dans la case du tableau
$(element).append(document.createTextNode(
clef[i]["id"] + ' ' +
clef[i]['cle_eam_site'] + ' ' +
clef[i]["cle_eam_palier"] + ' ' +
clef[i]["Sigma"]));
row.appendChild(col);
col.appendChild(element);
tbody.appendChild(row);
}
$("#tableDataAgents").append(tbody);
//Mise en place du tableau DataTable avec champs recherche
$('#tableDataClefs').DataTable({
"paging": false,
"lengthChange": false,
"searching": true,
"ordering": false,
"info": false,
"autoWidth": false,
"scrollY": 350,
"language":{
"url": "{{ asset("bundles/datatables/plugins/dataTables.french.json") }}"
}
});
}
$(document).ready(function() {
$('#clef').DataTable({
"processing": true,
"serverSide": true,
"paging": false,
"searching": false,
"language":{
"url":"{{ asset("bundles/datatables/plugins/dataTables.french.json") }}",
},
"ajax" : "{{ path('sdin_obj_list') }}",
"columns":[
{"data":"site"},
{"data":"numsite"},
{"data":"type"},
{"data":"code site"},
{"data":"composant"}
]
});
});
</script>
{% endblock %}
</head>
{% block body %}
<body class="bg-steel">
{% block header %}
{#fixed top bar#}
<div class="app-bar fixed-top darcula" data-role="appbar">
{#Bouton vers l'acceuil#}
<a href="{{ path('sdin_accueil_homepage') }}" class="app-bar-element branding">Accueil</a>
<span class="app-bar-divider"></span>
{#Items du menu#}
<ul class="app-bar-menu">
<li><a href="{{ path('chemin') }}">Controle des Données</a></li>
<li><a href="{{ path('edata',{'ctrlid':4}) }}">Gestion des données</a></li>
<li>
<a href="" class="dropdown-toggle">Aide</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">Usage</a></li>
<li>
<a href="" class="dropdown-toggle">Support</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">ChatOn</a></li>
<li><a href="">Comunautaire</a></li>
</ul>
</li>
<li class="divider"></li>
<li><a href="">A propos</a></li>
</ul>
</li>
</ul>
{#Items uttilisateurs#}
<div class="app-bar-element place-right">
<span class="dropdown-toggle"><span class="mif-cog"></span> User Name</span>
<div class="app-bar-drop-container padding10 place-right no-margin-top block-shadow fg-dark"
data-role="dropdown" data-no-close="true" style="width: 220px">
<h2 class="text-light">Quick settings</h2>
<ul class="unstyled-list fg-dark">
<li><a href="" class="fg-white1 fg-hover-yellow">Profile</a></li>
<li><a href="" class="fg-white2 fg-hover-yellow">Security</a></li>
<li><a href="" class="fg-white3 fg-hover-red">Exit</a></li>
</ul>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div class="page-content">
<div class="flex-grid no-responsive-future" style="height: 100%;">
<div class="row" style="height: 100%">
{% block aside %}
<div class="cell size-x200" id="cell-sidebar" style="background-color: #71b1d1; height: 100%">
<ul class="sidebar">
{# changer class="counter" mettre en paramètre#}
{#ajouter la liaison ou l'action de l'icone cf controller#}
<li><a href="{{ path('sdin_syam_del') }}">
<span class="mif-apps icon"></span>
<span class="title">Tous</span>
<span class="counter">0</span>
</a></li>
<li class="active">
{#ajouter la liaison ou l'action de l'icone cf controller#}
<a href="#">
<span class="mif-cogs icon"></span>
<span class="title">Equipements</span>
<span class="counter">0</span>
</a>
</li>
<li>{#ajouter la liaison ou l'action de l'icone cf controller#}
<a href="#">
<span class="mif-location-city icon"></span>
<span class="title">Locaux</span>
<span class="counter">2</span>
</a>
</li>
<li>{#ajouter la liaison ou l'action de l'icone cf controller#}
<a href="#">
<span class="mif-cloud icon"></span>
<span class="title">PMRQ</span>
<span class="counter">0</span>
</a>
</li>
<li>
<a href="#">
<span class="mif-database icon"></span>
<span class="title">OIS/PPE</span>
<span class="counter">0</span>
</a>
</li>
<li>
{#ajouter la liaison ou l'action de l'icone cf controller#}
<a href="#">
<span class="mif-chart-bars icon"></span>
<span class="title">Statistiques</span>
</a>
</li>
</ul>
</div>
{% endblock %}
{% block main %}
{# récupérer en paramètre les bouttons REQUEST #}
<div class="cell auto-size padding20 bg-white" id="cell-content">
<h1 class="text-light">Contrôle des Equipements<span class="mif-cogs place-right"></span></h1>
<hr class="thin bg-grayLighter">
{# afficher la totalité #}
<button class="button primary" onclick="pushMessage('info')"><span class="mif-plus"></span>
Tous...
</button>
{# afficher nepasmignrer OK #}
<button class="button success" onclick="pushMessage('success')"><span
class="mif-play"></span> Cochés
</button>
{# Actualiser la donnée #}
<a href="{{ path('sdin_syam_del') }}"><button class="button warning" onclick="pushMessage('warning')"><span
class="mif-loop2"></span> Restart
</button></a>
{# quitter ou arrêt#}
<button class="button alert" onclick="pushMessage('alert')">Stoper</button>
<hr class="thin bg-grayLighter">
{% block table %}
<table id="clef" class="dataTable border bordered" data-role="datatable" data-auto-width="false">
{# en tête du tableau #}
<thead>
<tr>
{# <td style="width: 20px">
</td>#}
{# tableau intéractif #}
<th class="sortable-column">site</th>
<th class="sortable-column">numsite</th>
<th class="sortable-column">type site</th>
<th class="sortable-column">code site</th>
<th class="sortable-column">composantR</th>
</tr>
</thead>
{% block tbody %}
<tbody>
</tbody>
{% endblock %}
</table>
{% endblock %}
</div>
{% endblock %}
</div>
</div>
</div>
{% endblock %}
{% block footer %}
{% endblock %}
</body>
{% endblock %}
{% block lastjs %}{% endblock %}
</html> |
Partager