PHP 页面循环显示tr td 里面放值
<br /> <table width="100%" border="0" cellspacing="0" cellpadding="0"><br /> <tr><br /> <?php<br /> $i = 0;<br /> foreach($info['list'] as $ent){<br /> $ent = $ent['info'];<br /> $checked = $ent['flag']==1?"checked='checked'":"";<br /> echo '<td>';<br /> echo '<input id="view_'.$i.'" class="Sedd" type="checkbox" value="'.$ent["code"].'" name="view[]" '.$checked.'>';<br /> echo ' ';<br /> echo '<label for="view_'.$i.'">'.$ent["name"].'</label>';<br /> echo ' ';<br /> echo '</td>';<br /> $i ++;<br /> }<br /> ?><br /> </tr><br /></table><br /><br />