<?php foreach ($rs as $row):?>
<?php
print "\t<tr>";
print "\t\t<td>" . $row->id ."</td>";
print "\t\t<td>" . $row->name ."</td>";
print "\t</tr>";
?>
<form action="http://127.0.0.1/index.php/deletecourse" method='POST'>
<input type=checkbox name="to_delete">
<input type=submit value="删除" size="10">
</form>
<?php endforeach; ?>
<?php print "</table>\n";?>