标签:
<?php if ($this->books): ?> <!-- 包含几本书信息的HTML表格. --> <table> <tr> <th>Author</th> <th>Title</th> </tr> <?php foreach ($this->books as $key => $val): ?> <tr> <td><?php echo $this->escape($val[‘author‘]) ?></td> <td><?php echo $this->escape($val[‘title‘]) ?></td> </tr> <?php endforeach; ?> </table> <?php else: ?> <p>There are no books to display.</p> <?php endif; ?>
标签:
原文地址:http://www.cnblogs.com/doubilaile/p/4815848.html