<script src="/static/layDate-v5.0.9/laydate/laydate.js" type="text/javascript"></script>
<div class="form-group col-md-6" style="margin-bottom:10px;">
<label for="opening_time">开始时间</label>
<input type="text" class="form-control" id="opening_time" name="opening_time" value="{if !empty($dataInfo['opening_time'])}{date('Y-m-d',$dataInfo['opening_time'])}{/if}" placeholder="开课时间" style="width: 70%;" />
</div>
<div class="form-group col-md-6" style="margin-bottom:10px;">
<label for="closing_time">结束时间</label>
<input type="text" class="form-control" id="closing_time" name="closing_time" value="{if !empty($dataInfo['closing_time'])}{date('Y-m-d',$dataInfo['closing_time'])}{/if}" placeholder="结束时间" style="width: 70%;" />
</div>
<script>
laydate.render({
elem: '#opening_time'
,type: 'date'
,format: 'yyyy-MM-dd'
});
laydate.render({
elem: '#closing_time'
,type: 'date'
,format: 'yyyy-MM-dd'
});
</script>