| 12
 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
 
 | <? 
require_once ('../bdd/fonction.oracle.php');
 
function mise_en_forme($param){
if($param <= 9){
$param="0".$param;
}
return $param;
}
 
$query="SELECT nom_application, ps.nom_script, jour_intervalle, deb_h, deb_mn, fin_h, fin_mn 
FROM pilotage.import_plage_deploie pip, pilotage.script ps, pilotage.pilotage_application pa
where ps.nom_script = regexp_replace(pip.nom_script, '(_V.+-.+)?\.sce$', '') 
and ps.id_pilotage_application is not null
and ps.id_pilotage_application = pa.id_pilotage_application
and type='W'
GROUP BY nom_application, ps.nom_script, jour_intervalle, deb_h, deb_mn, fin_h, fin_mn
ORDER BY nom_application, nom_script, jour_intervalle ";
 
 
$Req=OraReq($query);
 
echo "<div id='affichage'><center>";
echo "<br><br><table border='1' style='font-size: 12px;' class='table'>\n";
echo "<b><tr>
<th>NOM APPLICATION</th>
<th>NOM SCRIPT</th>
<th id='lundi'>LUNDI</th>
<th id='mardi'>MARDI</th>
<th id='mercredi'>MERCREDI</th>
<th id='jeudi'>JEUDI</th>
<th id='vendredi'>VENDREDI</th>
<th id='samedi'>SAMEDI</th>
<th id='dimanche'>DIMANCHE</th>
</tr></b>
<TFOOT>
<b><tr>
<td class='tfoot'>NOM APPLICATION</td>
<td class='tfoot'>NOM SCRIPT</td>
<td id='lundi2' class='tfoot'>LUNDI</td>
<td id='mardi2' class='tfoot'>MARDI</td>
<td id='mercredi2' class='tfoot'>MERCREDI</td>
<td id='jeudi2' class='tfoot'>JEUDI</td>
<td id='vendredi2' class='tfoot'>VENDREDI</td>
<td id='samedi2' class='tfoot'>SAMEDI</td>
<td id='dimanche2' class='tfoot'>DIMANCHE</td>
</b></tr>
</TFOOT>
</b>\n";
 
while (oci_fetch($Req)) {
 
$plage=mise_en_forme(oci_result($Req,'DEB_H')).":".mise_en_forme(oci_result($Req,'DEB_MN'))." - ".mise_en_forme(oci_result($Req,'FIN_H')).":".mise_en_forme(oci_result($Req,'FIN_MN'));
 
echo "<tr><td>".oci_result($Req,'NOM_APPLICATION')."</td><td>".oci_result($Req,'NOM_SCRIPT')."</td>";
if(oci_result($Req,'JOUR_INTERVALLE')==1){ // LUNDI
echo "<td>".$plage."</td><td></td><td></td><td></td><td></td><td></td><td></td>";
}
 
if(oci_result($Req,'JOUR_INTERVALLE')==2){ // MARDI
echo "<td></td><td>".$plage."</td><td></td><td></td><td></td><td></td><td></td>";
}
 
if(oci_result($Req,'JOUR_INTERVALLE')==3){ // MERCREDI
echo "<td></td><td></td><td>".$plage."</td><td></td><td></td><td></td><td></td>";
}
 
if(oci_result($Req,'JOUR_INTERVALLE')==4){ // JEUDI
echo "<td></td><td></td><td></td><td>".$plage."</td><td></td><td></td><td></td>";
}
 
if(oci_result($Req,'JOUR_INTERVALLE')==5){ // VENDREDI
echo "<td></td><td></td><td></td><td></td><td>".$plage."</td><td></td><td></td>";
}
 
if(oci_result($Req,'JOUR_INTERVALLE')==6){ // SAMEDI 
echo "<td></td><td></td><td></td><td></td><td></td><td>".$plage."</td><td></td>";
}
if(oci_result($Req,'JOUR_INTERVALLE')==0){ // DIMANCHE
echo "<td></td><td></td><td></td><td></td><td></td><td></td><td>".$plage."</td>";
}
 
 
echo "</tr>";
 
}
oci_free_statement($Req);
 
echo "</tr>";
 
echo"<div id='curseur' class='infobulle'></div>";
echo "</table>\n"; 
echo "</center></div><br>";
 
?> | 
Partager