<?php foreach($rows as $row):?> <tr> <td><input type="checkbox" id="c1" class="check"><label for="c1" class="label"><?php echo $rows['id'];?></label></td> <td align="center"><?php echo $rows['adminname'];?></td> <td align="center"><?php echo $rows['adminphone'];?></td> <td align="center"><input type="button" value="修改" class="btn" onclick="editAdmin(<?php echo $rows['id'];?>)"> <input type="button" value="删除" class="btn" onclick="delAdmin(<?php echo $rows['id'];?>)"></td> </tr> <?php endforeach;?>