{template '_header'}

{if !empty($item)}{if empty($item['virtual'])}回复{else}编辑{/if}{else}添加{/if}评价 {if !empty($item)}评价ID: {$item['id']}{/if}

{if !empty($item) && empty($item['virtual'])}
{/if}
{if empty($item) || (!empty($item) && !empty($item['virtual']))} false, 'preview'=>true, 'url'=>webUrl('goods/query'), 'items'=>$goods ,'readonly'=>true, 'buttontext'=>'选择商品', 'placeholder'=>'请选择商品'))?> {else}
{$goods['title']}
{/if}
{if !empty($item) && empty($item['virtual'])}
{$item['nickname']}
{else}
用户昵称,如果不选择,默认从粉丝表中随机读取
{php echo tpl_form_field_image('headimg',$item['headimg'])} 用户头像,如果不选择,默认从粉丝表中随机读取
{/if}
{if !empty($item) && empty($item['virtual'])}
{else} {/if}
{if !empty($item) && empty($item['virtual'])} {if !empty($item['images'])}
{loop $item['images'] $images}
{/loop}
{/if} {else}
{php echo tpl_form_field_multi_image('images',iunserializer($item['images']))}
{/if}
{if !empty($item) && empty($item['virtual'])}
{php echo date('Y-m-d H:i', $item['time'])}
{else} {php echo tpl_form_field_date('time', !empty($item['time']) ? date('Y-m-d H:i',$item['time']) : date('Y-m-d H:i'),true)} 如果不选择默认当前时间 {/if}
{if !empty($item) && empty($item['virtual'])}
{/if}
{php echo tpl_form_field_multi_image('reply_images',iunserializer($item['reply_images']))}
{if !empty($item['append_content']) || empty($item) || !empty($item['virtual'])}
{if !empty($item) && empty($item['virtual'])} {if !empty($item['append_images'])}
{loop $item['append_images'] $images}
{/loop}
{/if} {else}
{php echo tpl_form_field_multi_image('append_images',iunserializer($item['append_images']))}
{/if}
{if !empty($item) && empty($item['virtual'])}
{php echo date('Y-m-d H:i', $item['append_time'])}
{else} {php echo tpl_form_field_date('append_time', !empty($item['append_time']) ? date('Y-m-d H:i',$item['append_time']) : date('Y-m-d H:i'),true)} 如果不选择默认当前时间 {/if}
{if !empty($item) && empty($item['virtual'])}
{/if}
{php echo tpl_form_field_multi_image('append_reply_images',iunserializer($item['append_reply_images']))}
{/if}
{template '_footer'}