127 lines
2.4 KiB
HTML
127 lines
2.4 KiB
HTML
#CACHE{0}
|
|
<h1>Tableau des Blockchaine</h1>
|
|
|
|
<style type="text/css" media="screen">
|
|
#blocklogs .selecteurs {
|
|
width: 800px;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
#blocklogs .selecteurs label{
|
|
display: block;
|
|
}
|
|
#blocklogs .selecteurs #objet{
|
|
width: 150px;
|
|
}
|
|
|
|
#blocklogs .charger{
|
|
width: 800px;
|
|
text-align: center;
|
|
}
|
|
|
|
#blocklogs .selecteurs > div{
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
#blocklogs table{
|
|
width: 100%;
|
|
max-width: 100%;
|
|
table-layout: fixed;
|
|
border-collapse: collapse;
|
|
vertical-align: top;
|
|
margin-bottom: 2rem;
|
|
display: table;
|
|
border: 1px solid rgb(172, 179, 194);
|
|
background: transparent;
|
|
}
|
|
#blocklogs th, #blocklogs td{
|
|
padding: 0.3rem 0.6rem;
|
|
min-width: 2rem;
|
|
vertical-align: top;
|
|
border: 1px rgb(172, 179, 194) dotted;
|
|
text-align: left;
|
|
cursor: default;
|
|
}
|
|
#blocklogs th.id{
|
|
width: 30px;
|
|
}
|
|
#blocklogs th.numero{
|
|
width: 50px;
|
|
}
|
|
#blocklogs th.date{
|
|
width: 90px;
|
|
}
|
|
#blocklogs th.validite{
|
|
width: 60px;
|
|
}
|
|
.valideTd_ok {
|
|
background-color: #6CE712;
|
|
}
|
|
.valideLigne_error {
|
|
background-color: #E25656;
|
|
font-weight: bold;
|
|
}
|
|
</style>
|
|
|
|
<div id="blocklogs">
|
|
<div class="selecteurs">
|
|
<div class="objet">
|
|
<div>
|
|
<label for="objet">Objet </label>
|
|
<select name="objet" id="objet">
|
|
<option></option>
|
|
<BOUCLE_objet(BLOCKLOGS){fusion objet}>
|
|
<option value="#OBJET">#OBJET</option>
|
|
</BOUCLE_objet>
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="date_debut">
|
|
<div>
|
|
<label for="date_debut">Date de debut</label>
|
|
<input type="date" value="#ENV{date_debut}" name="date_debut" id="date_debut"/>
|
|
</div>
|
|
</div>
|
|
<div class="date_fin">
|
|
<div>
|
|
<label for="date_fin">Date de fin</label>
|
|
<input type="date" value="#ENV{date_fin}" name="date_fin" id="date_fin"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="charger">
|
|
<button id="charger" type="button">Charger</button>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<INCLURE{fond=inclure/inc-tableau_blockchaines,env,ajax=blockchaines}>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
jQuery(function() {
|
|
$('#blocklogs').on('click','#charger', function(e){
|
|
e.preventDefault();
|
|
var objet = $('#objet').val();
|
|
var date_debut = $('#date_debut').val();
|
|
var date_fin = $('#date_fin').val();
|
|
if (objet && date_debut && date_fin) {
|
|
ajaxReload('blockchaines', {
|
|
args:{
|
|
objet:objet,
|
|
date_debut: date_debut,
|
|
date_fin: date_fin
|
|
},
|
|
callback: function(){}
|
|
});
|
|
}
|
|
})
|
|
});
|
|
|
|
</script>
|