{if $mimetype!='' && (isset($mimetype[-1]) && $mimetype[-1] != '/') && stristr($mimetype, '/')!==false} {elseif ($mimetype!='' && isset($mimetype[-1]) && $mimetype[-1]=='/')}
{php}$mimetype = $mimetype."*";{/php} {elseif ($mimetype=='')}
{else /} {/if} {if !empty($size)} {else /}
{/if}

{if has_rule('common/upload')}
{/if} {if has_rule('del')} {/if}
{block:script} {/block:script}