<?php foreach($attachment as $v): ?>
<li id="attachment_
<?php echo $v['aid']; ?>">
<!--将附件显示地址由相对路径改为绝对路径,base_url()最后有斜杆"/"所以截取掉-->
<span class="title"><input type="text" class="normal" value="
<?php echo $v_url = substr(base_url
(),0,strlen(base_url
())-1). $this->platform->file_url($v['folder'].'/'.$v['name'].'.'.$v['type']); ?>" /></span>
<?php if($v['image'] == 1): ?>
<a href="
<?php echo $v_url; ?>" target="_blank">预览</a>
<?php endif;?>
<a href="javascript:void(0);">删除</a>
</li>
<?php endforeach; ?>