Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. <?php
  2. echo '<table width="100%" class="table table-hover" cellpadding="0" cellspacing="0" id="docList">';
  3. echo '<tbody>';
  4. $nombreDossier = "";
  5. $iDossiers = 0;
  6. while($iDossiers < count($listDocPourProjet))
  7. {
  8. $nombreDossier = $listDocPourProjet[$iDossiers]['DOC_NUM'];
  9. $iDos = 0;
  10. while($iDos < $nombreDossier)
  11. {
  12. $counte = $iDos+1;
  13. echo '<tr>';
  14. echo '<td>';
  15. echo $listDocPourProjet[$iDossiers]['DOC_NAME'].' '.$counte;
  16. echo "<br>";
  17. ?>
  18. <input type="text" id="docUpload" name="docfile[]" >
  19. <input type="file" id="docUpload" name="docUpload[]" >
  20. <?php
  21. echo '</td>';
  22. echo '</tr>';
  23. $iDos ++;
  24. }
  25. $iDossiers ++;
  26. }
  27. echo '</tbody>';
  28. echo '</table>';
  29.  
  30. ?>
  31.  
  32. <?php
  33. echo '<table width="100%" class="table table-hover" cellpadding="0" cellspacing="0" id="docList">';
  34. echo '<tbody>';
  35.  
  36. $listDocPourProjet = clients::recupereListDocPourProjet($PROJET_ID);
  37.  
  38. $doc_list_terminer = clients::recupereListDocClientTerminerPourProjet($CLIENT_PROJET_ID);
  39.  
  40. $nombreDossier = "";
  41. $iDossiers = 0;
  42. while($iDossiers < count($listDocPourProjet))
  43. {
  44. foreach($doc_list_terminer as $eachDocTerminer)
  45. {
  46. echo $eachDocTerminer['DOC_CLIENT_ID'];
  47. echo '<br>';
  48.  
  49. if($eachDocTerminer['DOC_CLIENT_ID']==$listDocPourProjet[$iDossiers]['DOC_CLIENT_ID'])
  50. {
  51. echo $listDocPourProjet[$iDossiers]['DOC_CLIENT_NOM'];
  52.  
  53. ??
  54. ??
  55.  
  56. }
  57. }
  58.  
  59. $nombreDossier = $listDocPourProjet[$iDossiers]['DOC_CLIENT_NUM'];
  60. $iDos = 0;
  61. while($iDos < $nombreDossier)
  62. {
  63. $counte = $iDos+1;
  64. ?>
  65. <tr>
  66. <td>
  67. <?php
  68. echo $listDocPourProjet[$iDossiers]['DOC_CLIENT_NOM'].' '.$counte;
  69. echo "<br>";
  70. ?>
  71. <input type="text" id="docUpload" name="docfile[<?php echo $listDocPourProjet[$iDossiers]['DOC_CLIENT_ID'] ?>]['doc_id']" style="width:100%;">
  72. <input type="file" id="docUpload" name="docUpload[<?php echo $listDocPourProjet[$iDossiers]['DOC_CLIENT_ID'] ?>]['uploadedfile_id']" >
  73. <?php
  74. echo '</td>';
  75. echo '</tr>';
  76. $iDos ++;
  77. }
  78. $iDossiers ++;
  79. }
  80. echo '</tbody>';
  81. echo '</table>';
  82.  
  83. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement