日期:2014-05-17 浏览次数:20497 次
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?php
$i = 0;
foreach($info['list'] as $ent){
$ent = $ent['info'];
$checked = $ent['flag']==1?"checked='checked'":"";
echo '<td>';
echo '<input id="view_'.$i.'" class="Sedd" type="checkbox" value="'.$ent["code"].'" name="view[]" '.$checked.'>';
echo ' ';
echo '<label for="view_'.$i.'">'.$ent["name"].'</label>';
echo ' ';
echo '</td>';
$i ++;
}
?>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?php
$i=0;
foreach($info['list'] as $ent){
$ent = $ent['info'];
$checked = $ent['flag']==1?"checked='checked'":"";