|
|
<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">{:__('Company_id')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Course_id')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-course_id" data-rule="required" data-source="course/index" class="form-control selectpage" name="row[course_id]" type="text" value="{$row.course_id|htmlentities}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Course_spec_id')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-course_spec_id" data-rule="required" data-source="course/spec/index" class="form-control selectpage" name="row[course_spec_id]" type="text" value="{$row.course_spec_id|htmlentities}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Pay_price')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-pay_price" data-rule="required" class="form-control" step="0.01" name="row[pay_price]" type="number" value="{$row.pay_price|htmlentities}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
|
|
|
<select id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]">
|
|
|
{foreach name="payTypeList" item="vo"}
|
|
|
<option value="{$key}" {in name="key" value="$row.pay_type"}selected{/in}>{$vo}</option>
|
|
|
{/foreach}
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
|
|
|
<div class="radio">
|
|
|
{foreach name="payStatusList" item="vo"}
|
|
|
<label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="$row.pay_status"}checked{/in} /> {$vo}</label>
|
|
|
{/foreach}
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-pay_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Course_price')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-course_price" data-rule="required" class="form-control" step="0.01" name="row[course_price]" type="number" value="{$row.course_price|htmlentities}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number" value="{$row.score|htmlentities}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Score_price')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-score_price" data-rule="required" class="form-control" step="0.01" name="row[score_price]" type="number" value="{$row.score_price|htmlentities}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('People_num')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-people_num" data-rule="required" class="form-control" name="row[people_num]" type="number" value="{$row.people_num|htmlentities}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Is_top')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
|
|
|
<select id="c-is_top" data-rule="required" class="form-control selectpicker" name="row[is_top]">
|
|
|
{foreach name="isTopList" item="vo"}
|
|
|
<option value="{$key}" {in name="key" value="$row.is_top"}selected{/in}>{$vo}</option>
|
|
|
{/foreach}
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group layer-footer">
|
|
|
<label class="control-label col-xs-12 col-sm-2"></label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
|
|
|
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</form> |
...
|
...
|
|