Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo '<table width="100%" class="table table-hover" cellpadding="0" cellspacing="0" id="docList">';
- echo '<tbody>';
- $nombreDossier = "";
- $iDossiers = 0;
- while($iDossiers < count($listDocPourProjet))
- {
- $nombreDossier = $listDocPourProjet[$iDossiers]['DOC_NUM'];
- $iDos = 0;
- while($iDos < $nombreDossier)
- {
- $counte = $iDos+1;
- echo '<tr>';
- echo '<td>';
- echo $listDocPourProjet[$iDossiers]['DOC_NAME'].' '.$counte;
- echo "<br>";
- ?>
- <input type="text" id="docUpload" name="docfile[]" >
- <input type="file" id="docUpload" name="docUpload[]" >
- <?php
- echo '</td>';
- echo '</tr>';
- $iDos ++;
- }
- $iDossiers ++;
- }
- echo '</tbody>';
- echo '</table>';
- ?>
- <?php
- echo '<table width="100%" class="table table-hover" cellpadding="0" cellspacing="0" id="docList">';
- echo '<tbody>';
- $listDocPourProjet = clients::recupereListDocPourProjet($PROJET_ID);
- $doc_list_terminer = clients::recupereListDocClientTerminerPourProjet($CLIENT_PROJET_ID);
- $nombreDossier = "";
- $iDossiers = 0;
- while($iDossiers < count($listDocPourProjet))
- {
- foreach($doc_list_terminer as $eachDocTerminer)
- {
- echo $eachDocTerminer['DOC_CLIENT_ID'];
- echo '<br>';
- if($eachDocTerminer['DOC_CLIENT_ID']==$listDocPourProjet[$iDossiers]['DOC_CLIENT_ID'])
- {
- echo $listDocPourProjet[$iDossiers]['DOC_CLIENT_NOM'];
- ??
- ??
- }
- }
- $nombreDossier = $listDocPourProjet[$iDossiers]['DOC_CLIENT_NUM'];
- $iDos = 0;
- while($iDos < $nombreDossier)
- {
- $counte = $iDos+1;
- ?>
- <tr>
- <td>
- <?php
- echo $listDocPourProjet[$iDossiers]['DOC_CLIENT_NOM'].' '.$counte;
- echo "<br>";
- ?>
- <input type="text" id="docUpload" name="docfile[<?php echo $listDocPourProjet[$iDossiers]['DOC_CLIENT_ID'] ?>]['doc_id']" style="width:100%;">
- <input type="file" id="docUpload" name="docUpload[<?php echo $listDocPourProjet[$iDossiers]['DOC_CLIENT_ID'] ?>]['uploadedfile_id']" >
- <?php
- echo '</td>';
- echo '</tr>';
- $iDos ++;
- }
- $iDossiers ++;
- }
- echo '</tbody>';
- echo '</table>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement