片段暂存

<tbody>
                <?php if (count($this->staff_data) > 0) {
                  foreach ($this->staff_data as $index => $staff) { ?>
                    <tr>
                      <td><?php echo $staff->id; ?></td>
                      <td><?php echo $staff->name; ?></td>
                      <td><?php echo $staff->gender; ?></td>
                      <td><?php echo $staff->department; ?></td>
                      <td><?php echo $staff->age; ?></td>
                      <td><?php echo $staff->phone; ?></td>
                      <td><?php echo $staff->idcard; ?></td>
                      <td><?php echo $staff->idaddress; ?></td>
                      <td><?php echo $staff->begin; ?></td>
                      <td><?php echo $staff->fcb; ?></td>
                      <td><?php echo $staff->fce; ?></td>
                      <td><?php echo $staff->ncb; ?></td>
                      <td><?php echo $staff->nce; ?></td>
                      
                        <td>
                          <i class="fas fa-2x fa-edit btn-edit" data-id="<?php echo $staff->id; ?>"></i>
                          <i class="fa-solid text-danger fa-2x fa-trash-can delete" data-id="<?php echo $staff->id; ?>"></i>
                        </td>
                      
                    </tr>
                    <?php 
                  }
                  
                } ?>
                
              </tbody>
Share :