You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simple-yewu/frontend/views/marketing-strategy/select-fanxian.php

55 lines
2.2 KiB

<?php
use \common\libs\MyLib;
?>
<?php $this->beginBlock('header_css'); ?>
<link href="/assets/css/plugins/clockpicker/clockpicker.css" rel="stylesheet">
<?php $this->endBlock(); ?>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-content">
<div class="row">
<div class="col-md-12">
<form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="op" value="add" />
<div class="form-group">
<label class="col-sm-2 control-label">选择返现</label>
<div class="col-sm-6">
<select name="fanxian_id" id="fanxian_id" class="form-control">
<?php
foreach($items as $item) {
echo '<option value="'.$item->id.'">客户返现:'.$item->fanxian_rate.'%,最高返现:'.$item->max_cashback.',保费:'.$item->baofei.'</option>';
}
?>
</select>
</div>
</div>
<div>
<div class="row">
<div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button">
<strong>选 择</strong>
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php $this->beginBlock('footer_js'); ?>
<script src="/assets/js/plugins/layer/laydate/laydate.js"></script>
<script type="text/javascript" language="javascript">
$(function () {
//提交按钮
$(".btn-save").click(function(){
parent.selectFanxian($('#fanxian_id').val());
layer_close();
});
})
</script>
<?php $this->endBlock('footer_js'); ?>