<?php
if ( is_array( $forminfos_data ) ) {
foreach($forminfos_data as $key => $form){
?>
<tr>
<?php if(is_array($key) && $key === 'imgs') { //判断多图字段,其中imgs为字段名 ?>
<td><?php echo $fields[$key]['name']?>:</td>
<td>
<?php foreach( $form as $v ){ ?>
<a href="<?php echo $v['url'] ;?>" target="_blank"><img src="<?php echo $v['url'] ;?>" ></a>
<?php } ?>
</td>
<?php }else{ ?>
<td><?php echo $fields[$key]['name']?>:</td>
<td><?php echo $form?></td>
<?php } ?>
</tr>
<?php
}
}
?>
附件:http://down.51cto.com/data/2366728