1. 程式人生 > >thinkphp控制器變數在模板中顯示

thinkphp控制器變數在模板中顯示

<if condition="$type neq 4"> <div class="form-group"> <label for="" class="control-label col-sm-3">一級部門: <span class="text-danger">*</span></label> <div class="col-sm-9"> <select name="depart1_id" id="depart1_id" onchange="depart1change
()" class="form-control input-sm"> <option value="-1">-----請選擇一級部門-----</option> <foreach name="depart1" item="vo"> <option value="{$vo.id}">{$vo.name}</option> </foreach> </select>
</div> </div> <div class="form-group"> <label for="" class="control-label col-sm-3">二級部門: <span class="text-danger">*</span></label> <div class="col-sm-9"> <select name="depart2_id" id="depart2_id" onchange="depart2change
()" class="form-control input-sm"> <option selected='selected'>-----請先選擇一級部門-----</option> </select> </div> </div> <div class="form-group"> <label for="" class="control-label col-sm-3">三級部門: <span class="text-danger">*</span></label> <div class="col-sm-9"> <select name="depart3_id" id="depart3_id" class="form-control input-sm"> <option selected='selected'>-----請先選擇二級部門-----</option> </select> </div> </div> </if>