{loop $diyitem['data'] $menuitem}
<li style="width:90%;height:320px;margin:0px;list-style:none;display:block;">
<div style="height:55%;background:#fff;">
<a href="{php echo $menuitem['linkurl']}" style="display:inline;">
<div style="background:url('{php echo tomedia($menuitem['imgurl'])}') no-repeat center;width:100%;height:100%;">
</div>
</a>
</div>