detail.html 2.9 KB
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">农场名称</label>
        <div class="col-xs-12 col-sm-8">
            {$data.farm_name}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">项目简介:</label>
        <div class="col-xs-12 col-sm-8">
            {$data.content}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">项目地址:</label>
        <div class="col-xs-12 col-sm-8">
            {$data.address}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">产品名称:</label>
        <div class="col-xs-12 col-sm-8">
            {$data.name}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <img src="{$data.image}" alt="" style="width:100px;height:100px;    ">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            {foreach name="$data.images" id="vo"}
            <img src="{$vo}" alt="" style="width:100px;height:100px;    ">
            {/foreach}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">项目状态:</label>
        <div class="col-xs-12 col-sm-8">
            {if condition="$data.status eq 0"}
            培育中
            {elseif condition="$data.status eq 1"/}
            将收获
            {elseif condition="$data.status eq 2"/}
            已收获
            {else /}
            错误
            {/if}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">预估产值:</label>
        <div class="col-xs-12 col-sm-8">
            {$data.estimate}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">预估成熟期:</label>
        <div class="col-xs-12 col-sm-8">
            {$data.estimate_time}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">浏览数:</label>
        <div class="col-xs-12 col-sm-8">
            {$data.look_num}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">点赞数:</label>
        <div class="col-xs-12 col-sm-8">
            {$data.good_num}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">创建时间:</label>
        <div class="col-xs-12 col-sm-8">
            {:date('Y-m-d H:i:s',$data.createtime)}
        </div>
    </div>
</form>