多图上传

  <div class="form-item">
<label>相册<span>(图片)</span></label>
<input type="hidden" name="covers"  value="{$info.covers|default=""}" >
<div id="covers" class="container">
<div id="file_covers">你的浏览器不支持flash,Silverlight或者HTML5!</div>
<input type="hidden" name="covers"  value="{$info.covers|default=''}">
<a id="select_covers" href="javascript:void(0);" class='btn'>选择文件</a>
<a id="post_covers" href="javascript:void(0);" class='btn'>开始上传</a>
</div>
 <div class="uploader_preview">
   {notempty name="info['covers']"}
    {php}$list=explode(",",$info['covers']);{/php}
{foreach name="list" item="vo" }  
<div class="upload-pre-item"> <img src="{$vo|get_cover_path}" data-id="{$vo}"/>
  <span class="close"  onclick="delimage(this,'covers');"></span>
</div>
{/foreach}
{/notempty} 
  </div>
<script type="text/javascript">  
            var field="covers";
                uploads(field);
                                       </script>
</div>