Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.39 KB | None | 0 0
  1. <title>ScrumIT - Tâches</title>
  2.  
  3. <?php
  4. $this->load->view("template/header_view");
  5. $this->load->view("template/nav_view");
  6. ?>
  7.  
  8. <div id="page-wrapper">
  9.     <div class="row">
  10.         <div style="width:800px; margin:0 auto;" class="col-lg-12">
  11.             <h1 class = "page-header">Tâches du Sprint <?php echo $idSprint; ?></small></h1>
  12.         </div>
  13.     </div><!-- /.row -->
  14.  
  15.         <div style="width:800px; margin:0 auto;" class="col-lg-12">
  16.             <div class="table-responsive">
  17.                 <table class="table table-hover tablesorter">
  18.                     <thead>
  19.                     <tr>
  20.                         <th class="header">Nom <i class="fa fa-sort"></i></th>
  21.                         <th class="header">Description <i class="fa fa-sort"></i></th>
  22.                         <th class="header">Dépendance <i class="fa fa-sort"></i></th>
  23.                         <th class="header">coût <i class="fa fa-sort"></i></th>
  24.                         <th class="header">us <i class="fa fa-sort"></i></th>
  25.                         <th class="header">test <i class="fa fa-sort"></i></th>
  26.  
  27.  
  28.                     </tr>
  29.                     </thead>
  30.  
  31.                     <tbody>
  32.                         <?php
  33.  
  34.                        //$hidden1 = array('url' => 'backlog/updateUS', 'idPro' => $idPro, 'idUS' => null);
  35.                         foreach ($tasksInfo as $row) {
  36.  
  37.                             echo '<tr><td>'.$row['nameTask'] .
  38.                                 '</td><td>' . $row['descriptionTask'];
  39.  
  40.  
  41.                             if($row['tasksDepend'] != null) {
  42.                                 echo '</td><td>';
  43.                                 foreach ($row['tasksDepend'] as $row2) {
  44.                                     echo  $row2['nameTaskDepend'] . ', ';
  45.                                 }
  46.                             }
  47.                             else
  48.                                 echo '</td><td>' . '-';
  49.                             echo
  50.                                 '</td><td>' . $row['costTask'];
  51.  
  52.                             if($row['usDepend'] != null) {
  53.                                 echo '</td><td>';
  54.                                 foreach ($row['usDepend'] as $row2) {
  55.                                     echo $row2['nameUS'] . ', ';
  56.                                 }
  57.                             }
  58.                             else
  59.                                 echo '</td><td>' . '-';
  60.  
  61.                             echo '</td><td>'.$row['is_test'];
  62.  
  63.                             echo
  64.                                 '</td><td> <a href='. base_url().'tasks/setTask/' .$idPro. '/' .$idSprint. '/' . '/' .$row['idTask']. ' class="btn btn-primary btn-xs"> Modifier</a> '.
  65.                                 '<a href='. base_url().'tasks/deleteTask/' .$idPro. '/' .$idSprint. '/' .$row['idTask']. ' class="btn btn-danger btn-xs"> Supprimer</a>'.
  66.                                 '</td></tr>';
  67.                         }
  68.                         ?>
  69.  
  70.                     </tbody>
  71.                 </table>
  72.                                            
  73.                     <?php
  74.  
  75.                echo form_open('tasks/setTask/' .$idPro. '/' .$idSprint. '/0');
  76.                echo form_submit('addB', "Ajouter une Tache", 'class="btn btn-primary btn-xs');
  77.  
  78.                ?>
  79.  
  80.  
  81.             </div>
  82.         </div>
  83.  
  84. </div>
  85.  
  86. <?php $this->load->view("template/footer_view");?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement