{if $list.0.status eq 0 && $list.0.admin_id==$user_id && $list.0.api_id==0} {/if}