我需要它,这样额外的信息就会在点击时弹出,否则会被隐藏。我试过使用 show() 和 hide() 但我不确定我在做什么。谢谢大家,基兰
看法:
<table class="table table-striped">
<thead>
<tr><th>Last name</th><th>First name</th><th>Practice</th><th>County</th><th>Email</th><th></th></tr>
</thead>
<tbody>
<?php foreach ($health_professional as $hp): ?>
<tr>
<td><?php echo $hp['last_name'] ?></td>
<td><?php echo $hp['first_name'] ?></td>
<td><?php echo $hp['practice'] ?></td>
<td><?php echo $hp['county'] ?></td>
<td><?php echo $hp['email'] ?></td>
<td><a class="btn btn-info" href="hp/view/<?php echo $hp['hpid'];?>">Expand</a></td>
</tr>
<thead>
<tr><th>Permission to send info?</th><th>Registered</th><th>Attendance</th><th>Date of last update</th></tr>
</thead>
<tr id ="trid">
<td><?php echo $hp['send_info']; ?></td>
<td><?php echo $registration_count; ?></td>
<td><?php echo $attendance_count; ?></td>
<td><?php echo $hp['send_info_last_update']; ?></td>
</tr>
<?php endforeach ?>
</tbody>
</table>