Subversion Repositories Applications.referentiel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 5 → Rev 6

/trunk/squelettes/test.tpl.html
New file
0,0 → 1,58
<!-- REF - DEBUT TEST -->
<script type="text/javascript">
// Function pour cacher / afficher les options de recherche
$(document).ready(function(){
//Hide (Collapse) the toggle containers on load
$(".test .info").hide();
//Switch the "Open" and "Close" state per click
$(".test h2").toggle(function(){
$(this).addClass("active");
}, function () {
$(this).removeClass("active");
});
//Slide up and down on click
$(".test h2").click(function(){
$(this).next(".test .info").slideToggle("slow");
});
});
</script>
<h1>Tests</h1>
 
<?php foreach ($tests as $test) : ?>
<div class="test">
<h2 class="<?=$test['resultat'] ? 'ok' : 'ko';?>"><a href="#"><?=$test['titre']?></a> <span class="resultat"><?=$test['resultat'] ? 'ok' : 'ko';?></span></h2>
<div class="info">
<p class="description"><?=$test['description']?></p>
<?php if (isset($test['message'])) : ?>
<?php if (is_array($test['message'])) : ?>
<table>
<caption><?=count($test['message']['lignes'])?> lignes en erreur</caption>
<thead>
<tr>
<?php foreach ($test['message']['entete'] as $entete) : ?>
<th><?=$entete?></th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<?php foreach ($test['message']['lignes'] as $ligne) : ?>
<tr>
<?php foreach ($ligne as $info) : ?>
<td><?=$info?></td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else : ?>
<p class="message"><?=$test['message']?></p>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<?php endforeach; ?>
<!-- REF - FIN TEST -->
/trunk/squelettes/css/referentiel/debogage.css
New file
0,0 → 1,40
/*--------------------------------------------------------------------------------------------------------------*/
/* Débogage */
.debogage{
color:black;
border:3px solid #6495ed;}
.debogage_fichier, .debogage_ligne{
font-size:10px;
color:#A9A9A9;}
 
/*--------------------------------------------------------------------------------------------------------------*/
/* Tableau du chronométrage du programme */
table#chrono{
display:block;
border:3px solid #6495ed;
border-collapse:collapse;
text-align: center;
margin:0 auto;}
#chrono thead, tfoot{
background-color:#D0E3FA;
border:1px solid #6495ed;}
#chrono tbody{
background-color:#FFFFFF;
border:1px solid #6495ed;}
#chrono th{
font-family:monospace;
border:1px dotted #6495ed;
padding:5px;
background-color:#EFF6FF;
width:25%;}
#chrono td{
font-family:sans-serif;
font-size:80%;
border:1px solid #6495ed;
padding:5px;
text-align:center;}
#chrono caption{
font-family:sans-serif;
text-align: center;
width:90%;
margin:auto;}
/trunk/squelettes/css/referentiel/images/fermer.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/trunk/squelettes/css/referentiel/images/fermer.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/trunk/squelettes/css/referentiel/images/ouvrir.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/trunk/squelettes/css/referentiel/images/ouvrir.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/trunk/squelettes/css/referentiel/referentiel.css
New file
0,0 → 1,39
@CHARSET "UTF-8";
/*--------------------------------------------------------------------------------------------------------------*/
/* Général */
 
/*--------------------------------------------------------------------------------------------------------------*/
/* Tests */
.test {
width:800px;}
.test h2{
padding:5px 5px 5px 20px;
background:white url(images/ouvrir.png) no-repeat center left;
font-size:1em;
font-weight:bold;
text-transform:none;
width:775px;}
.test h2.active{ /*--When toggle is triggered, it will shift the image to the bottom to show its "opened" state--*/
background:white url(images/fermer.png) no-repeat center left;}
.test .message, .test .description{
margin:0 0 5px;
padding:5px;
overflow:hidden;
font-size:1em;
width:790px;
clear:both;}
.test .description{
background-color:#f0f0f0;
white-space:pre-wrap;}
.test .message p{
background-color:#FFFFDD;
border:1px solid #FFD700;}
.test .resultat{
text-transform:uppercase;
float:right;}
.test .ok{
background-color:#9ED30D !important;}
.test .ko{
background-color:#E9584C !important;}
.test .espace{
background-color:yellow !important;}