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
| <!---------------------------->
<!-- Restitution des infos -->
<!---------------------------->
<form name="Saisie_Informations" action="" method="POST" target="">
<table border="<?php echo $Border ?>" width="98%" cellpadding="<?php echo $paddingGen ?>" cellspacing="<?php echo $spacing ?>">
<tr>
<td width="80%" class="TitrePage">Entrée en relation des PM</td>
</tr>
</table>
<div class="general">
<div style="z-index:1000;" class="titre">
<table width=601 height=108 border=1>
<tr height="24">
<td colspan="8" class="Ligne_entete1"> RETOUR DU SI</td>
</tr>
<tr height="17">
<td width="24%"><img src="images/T.gif" height="1" /> </td>
<td width="10%"><img src="images/T.gif" height="1" /> </td>
<td width="8%"><img src="images/T.gif" height="1" /></td>
<td width="24%"><img src="images/T.gif" height="1" /></td>
<td width="9%"><img src="images/T.gif" height="1" /></td>
<td width="9%"><img src="images/T.gif" height="1" /></td>
<td width="5%"><img src="images/T.gif" height="1" /></td>
<td width="6%"><img src="images/T.gif" height="1" /></td>
</tr>
<tr height="50">
<td class="Ligne_entete1">AGENCE</td>
<td class="Ligne_entete1"> DAV</td>
<td class="Ligne_entete1"> Type PM</td>
<td class="Ligne_entete1">Intitulé</td>
<td class="Ligne_entete1"> Dte Ouv</td>
<td class="Ligne_entete1"> Date Valid</td>
<td class="Ligne_entete1" > Délai</td>
<td class="Ligne_entete1"> Conv <br>en<br> GED</td>
</tr>
<tr height="20"><td colspan="8" class="Ligne_entete1"> </td></tr>
</table>
</div>
<div style="z-index:100;" id="ligne" class="entete_l">
<table width=1000 height=111 border=1>
<tr height="24">
<td colspan="5" class="Ligne_entete2 ">INSTRUCTEUR</td>
<td colspan="4" class="Ligne_entete3 ">VALIDEUR</td>
<td colspan="8" class="Ligne_entete4 ">CONTROLE DE CONFORMITER</td>
</tr>
<tr height="17">
<td width="38" class="Ligne_entete2 "><img src="images/T.gif" height="1" /> </td>
<td width="38" class="Ligne_entete2 "><img src="images/T.gif" height="1" /> </td>
<td width="69" class="Ligne_entete2 "><img src="images/T.gif" height="1" /></td>
<td width="38" class="Ligne_entete2 "><img src="images/T.gif" height="1" /></td>
<td width="69" class="Ligne_entete2 "><img src="images/T.gif" height="1" /></td>
<td width="38" class="Ligne_entete3 "><img src="images/T.gif" height="1" /></td>
<td width="38" class="Ligne_entete3 "><img src="images/T.gif" height="1" /></td>
<td width="69" class="Ligne_entete3 "><img src="images/T.gif" height="1" /></td>
<td width="69" class="Ligne_entete3 "><img src="images/T.gif" height="1" /> </td>
<td width="69" class="Ligne_entete4 "><img src="images/T.gif" height="1" /> </td>
<td width="38" class="Ligne_entete4 "><img src="images/T.gif" height="1" /></td>
<td width="38" class="Ligne_entete4 "><img src="images/T.gif" height="1" /> </td>
<td width="69" class="Ligne_entete4 "><img src="images/T.gif" height="1" /> </td>
<td width="84" class="Ligne_entete4 "><img src="images/T.gif" height="1" /> </td>
<td width="69" class="Ligne_entete4 "><img src="images/T.gif" height="1" /> </td>
<td width="69" class="Ligne_entete4 "><img src="images/T.gif" height="1" /></td>
<td width="69" class="Ligne_entete4 "><img src="images/T.gif" height="1" /></td>
<td width="39" class="Ligne_entete5 "><img src="images/T.gif" height="1" /></td>
</tr>
<tr height="50">
<td class="Ligne_entete2 " colspan="2"> K social<br> à débloqué</td>
<td class="Ligne_entete2 " >Dérog<br>prov<br>jusqu'au</td>
<td class="Ligne_entete2 " colspan="2">Conformité <br> pièces,GED et<br>saisies</td>
<td class="Ligne_entete3 " colspan="3">Controle et Validation</td>
<td class="Ligne_entete3 "> Dérog prov<br>regularisée<br>le</td>
<td class="Ligne_entete4 "> Dérog prov<br>prolongée<br>jusqu au </td>
<td class="Ligne_entete4 ">OK</td>
<td class="Ligne_entete4 "> KO</td>
<td class="Ligne_entete4 "> Date</td>
<td class="Ligne_entete4 "> Motif</td>
<td class="Ligne_entete4 "> K social <br>débloqué</td>
<td class="Ligne_entete4 "> Blocage DAV</td>
<td class="Ligne_entete4 "> Déblocage<p> DAV</td>
<td class="Ligne_entete5 "> MAJ</td>
</tr>
<tr height="20">
<td class="Ligne_entete2 "> OUI </td>
<td class="Ligne_entete2 "> NON </td>
<td class="Ligne_entete2 "></td>
<td class="Ligne_entete2 ">OUI</td>
<td class="Ligne_entete2 ">Date</td>
<td class="Ligne_entete3 "> OK </td>
<td class="Ligne_entete3 "> KO </td>
<td class="Ligne_entete3 "> Date</td>
<td class="Ligne_entete3 "> </td>
<td class="Ligne_entete4 "> </td>
<td class="Ligne_entete4 "></td>
<td class="Ligne_entete4 "> </td>
<td class="Ligne_entete4 "> </td>
<td class="Ligne_entete4 "> </td>
<td class="Ligne_entete4 "> </td>
<td class="Ligne_entete4 "> </td>
<td class="Ligne_entete4 "> </td>
<td class="Ligne_entete5 "> </td>
</tr>
</table>
</div>
<?php
// lecture de la table des ouvertures de DAV des PM
$query = "SELECT * FROM PM_Ouverture_DAV ORDER BY dav_numDAV";
$result = sqlsrv_query( $conn, $query, $params, $options );
if( $result === false ) {
die( print_r( sqlsrv_errors(), true));
}
while( $rowPM = sqlsrv_fetch_array( $result ))
{
if ( $_GET['id'] == "" ){
$ID = $rowPM['dav_ID'];
}
$DateOuv = date_format($rowPM['dav_date_ouv'], 'd/m/Y');
$DateValidBoreal = date_format($rowPM['dav_Date_Valid_Boreal'], 'd/m/Y');
if ( $rowPM['DateDerogProv'] != NULL){
$DateDerogProv = date_format($rowPM['DateDerogProv'], 'd/m/Y');
}else{
$DateDerogProv = "";
}
if ( $rowPM['DateConformPiece'] != NULL){
$DateConformPiece = date_format($rowPM['DateConformPiece'], 'd/m/Y');
}else{
$DateConformPiece = "";
}
if ( $rowPM['DateValidation'] != NULL){
$DateValidation = date_format($rowPM['DateValidation'], 'd/m/Y');
}else{
$DateValidation = "";
}
if ( $rowPM['DateDerogProvRegularise'] != NULL){
$DateDerogProvRegularise = date_format($rowPM['DateDerogProvRegularise'], 'd/m/Y');
}else{
$DateDerogProvRegularise = "";
}
if ( $rowPM['DateDerogProvProlonge'] != NULL){
$DateDerogProvProlonge = date_format($rowPM['DateDerogProvProlonge'], 'd/m/Y');
}else{
$DateDerogProvProlonge = "";
}
// Selon la personne qui s'est connecté et l'état du DAV , vérifier si on affiche le DAV ou NON pour la première fois
// si Instructeur(cad CAE,CCAgri, CCpro) et eds = 1025,3580,3589
if ( $FonctionQuiConnecte == "CAE" || $FonctionQuiConnecte == "CAG" || $FonctionQuiConnecte == "CPR" || $FonctionQuiConnecte == "DDS" || $agentFichier == "OUI" ) {
if ( $rowPM['chkConformPiece'] === '1' && $rowPM['DateConformPiece'] == NULL ) {
$Affich = "OUI";
}
}
?>
<input type="hidden" name="ID" value="<?php echo $rowPM['ID'] ?>">
<div style="z-index:100;" id="colonne" class="entete_c">
<table width=601 height="350" border=1>
<tr height="20">
<td class="Ligne_entete1" width="24%"><img src="images/T.gif" height="1" /> </td>
<td class="Ligne_entete1" width="10%"><img src="images/T.gif" height="1" /> </td>
<td class="Ligne_entete1" width="8%"><img src="images/T.gif" height="1" /></td>
<td class="Ligne_entete1" width="24%"><img src="images/T.gif" height="1" /></td>
<td class="Ligne_entete1" width="9%"><img src="images/T.gif" height="1" /></td>
<td class="Ligne_entete1" width="9%"><img src="images/T.gif" height="1" /></td>
<td class="Ligne_entete1" width="5%"><img src="images/T.gif" height="1" /></td>
<td class="Ligne_entete1" width="6%"><img src="images/T.gif" height="1" /></td>
</tr>
<tr height=20>
<td class="Ligne_detail1"><?php echo getNomAgence($rowPM['dav_eds']).$rowPM['dav_eds']?></td>
<td class="Ligne_detail1"><?php echo $rowPM['dav_numDAV']?></td>
<td class="Ligne_detail1"><?php echo $rowPM['dav_type_PM']?></td>
<td class="Ligne_detail1"><?php echo $rowPM['dav_Intitule_DAV']?></td>
<td class="Ligne_detail1"><?php echo $DateOuv?></td>
<td class="Ligne_detail1"><?php echo $DateValidBoreal?></td>
<td class="Ligne_detail1"><?php echo $delai ?></td>
<td class="Ligne_detail1"> </td>
</tr>
</table>
</div>
<div style="z-index:100;" class="donnees" onscroll="doOnScroll(this);">
<table width=1000 height="230" border=1>
<tr height="17">
<td width="38" class="Ligne_entete2 "><img src="images/T.gif" height="1" /> </td>
<td width="38" class="Ligne_entete2 "><img src="images/T.gif" height="1" /> </td>
<td width="69" class="Ligne_entete2 "><img src="images/T.gif" height="1" /></td>
<td width="38" class="Ligne_entete2 "><img src="images/T.gif" height="1" /></td>
<td width="69" class="Ligne_entete2 "><img src="images/T.gif" height="1" /></td>
<td width="38" class="Ligne_entete3 "><img src="images/T.gif" height="1" /></td>
<td width="38" class="Ligne_entete3 "><img src="images/T.gif" height="1" /></td>
<td width="69" class="Ligne_entete3 "><img src="images/T.gif" height="1" /></td>
<td width="69" class="Ligne_entete3 "><img src="images/T.gif" height="1" /> </td>
<td width="69" class="Ligne_entete4 "><img src="images/T.gif" height="1" /> </td>
<td width="38" class="Ligne_entete4 "><img src="images/T.gif" height="1" /></td>
<td width="38" class="Ligne_entete4 "><img src="images/T.gif" height="1" /> </td>
<td width="69" class="Ligne_entete4 "><img src="images/T.gif" height="1" /> </td>
<td width="84" class="Ligne_entete4 "><img src="images/T.gif" height="1" /> </td>
<td width="69" class="Ligne_entete4 "><img src="images/T.gif" height="1" /> </td>
<td width="69" class="Ligne_entete4 "><img src="images/T.gif" height="1" /></td>
<td width="69" class="Ligne_entete4 "><img src="images/T.gif" height="1" /></td>
<td width="39" class="Ligne_entete5 "><img src="images/T.gif" height="1" /></td>
</tr>
<tr height=20>
<td class="Ligne_detail2 " > <input type="radio" name="btnKSocialDebloque(<?php echo $ID ?>)" value="1" <?php if ( $rowPM['btnKSocialDebloque'] == '1') {?> checked <?php }?>></td>
<td class="Ligne_detail2 " > <input type="radio" name="btnKSocialDebloque(<?php echo $ID ?>)" value="0" <?php if ( $rowPM['btnKSocialDebloque'] == '0') {?> checked <?php }?>></td>
<td class="Ligne_detail2 " ><input type="text" name="DateDerogProv(<?php echo $ID ?>)" size="8" value="<?php echo $DateDerogProv; ?>"></td>
<td class="Ligne_detail2 " > <input type="checkbox" name="chkConformPiece(<?php echo $ID ?>)" value="1" <?php if ( $rowPM['chkConformPiece'] == '1') {?> checked <?php }?>> </td>
<td class="Ligne_detail2 " > <input type="text" name="strDateConformPieces(<?php echo $ID ?>)" size="8" value="<?php echo $DateConformPiece ?>"></td>
<td class="Ligne_detail3 " > <input type="radio" name="btnCtrlValideur(<?php echo $ID ?>)" value="1" <?php if ( $rowPM['btnCtrlValideur'] == '1') {?> checked <?php }?>></td>
<td class="Ligne_detail3 " > <input type="radio" name="btnCtrlValideur(<?php echo $ID ?>)" value="0" <?php if ( $rowPM['btnCtrlValideur'] == '0') {?> checked <?php }?>></td>
<td class="Ligne_detail3 " > <input type="text" name="strDateValidation(<?php echo $ID ?>)" size="8" value="<?php echo $DateValidation ?>"></td>
<td class="Ligne_detail3 " > <input type="text" name="strDateDerogProvRegularise(<?php echo $ID ?>)" size="8" value="<?php echo $DateDerogProvRegularise ?>"></td>
<td class="Ligne_detail4 " > <input type="text" name="strDateDerogProvProlonge(<?php echo $ID ?>)" size="8" value="<?php echo $DateDerogProvProlonge ?>"></td>
<td class="Ligne_detail4 " > <input type="radio" name="btnCtrlConformite(<?php echo $ID ?>)" value="1" <?php if ( $rowPM['btnCtrlConformite'] == '1') {?> checked <?php }?>></td>
<td class="Ligne_detail4 " > <input type="radio" name="btnCtrlConformite(<?php echo $ID ?>)" value="0" <?php if ( $rowPM['btnCtrlConformite'] == '0') {?> checked <?php }?>></td>
<td class="Ligne_detail4 " > <input type="text" name="strDateCtrlConform(<?php echo $ID ?>)" size="8" value=""></td>
<td class="Ligne_detail4 " > Motif</td>
<td class="Ligne_detail4 " > <input type="text" name="strDateKSocialDebloque(<?php echo $ID ?>)" size="8" value=""></td>
<td class="Ligne_detail4 " ><input type="text" name="strDateBlocageDAV(<?php echo $ID ?>)" size="8" value=""></td>
<td class="Ligne_detail4 " > <input type="text" name="strDateDeblocageDAV(<?php echo $ID ?>)" size="8" value=""></td>
<td class="Ligne_detail4 " > <input type="button" class="petit_bouton_gris" onclick="MAJ('<?php echo $ID; ?>')" name="BtnMAJ" value="maj"></td>
</tr>
</table>
</div>
<?php
} // fin du while( $rowAge = sqlsrv_fetch_array( $result ))
// récupérer les données du select
for ($i=0; isset($_POST['ListMotif'][$i]); $i++)
echo $_POST['ListMotif'][$i];
?>
</div>
</form> |
Partager