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/database/a-index-search.php

122 lines
5.9 KiB

5 years ago
<?php
use \common\libs\MyLib;
?>
<?php $this->beginBlock('header_css'); ?>
<?php $this->endBlock(); ?>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-content">
<form role="form" class="form-horizontal" id="searchFrm" onsubmit="return search();">
<div class="form-group">
<label class="control-label col-sm-1">车牌</label>
<div class="col-sm-3">
<input type="text" id="car_no" name="car_no" class="form-control">
</div>
<label class="control-label col-sm-1">发动机号</label>
<div class="col-sm-3">
<input type="text" id="engine_no" name="engine_no" class="form-control">
</div>
<label class="control-label col-sm-1">车架号</label>
<div class="col-sm-3">
<input type="text" id="car_frame_no" name="car_frame_no" class="form-control">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-1">车主</label>
<div class="col-sm-3">
<input type="text" id="car_man" name="car_man" class="form-control">
</div>
<label class="control-label col-sm-1">联系电话</label>
<div class="col-sm-3">
<input type="text" id="phone" name="phone" class="form-control">
</div>
<label class="control-label col-sm-1">保险公司</label>
<div class="col-sm-3">
<input type="text" id="company" name="company" class="form-control">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-1">初登日期</label>
<div class="col-sm-3">
<div class="input-daterange input-group" id="datepicker">
<input type="text" class="input-sm form-control" name="register_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" name="register_end" value="" autocomplete="off" />
</div>
</div>
<label class="control-label col-sm-1">保险日期</label>
<div class="col-sm-3">
<div class="input-daterange input-group" id="datepicker">
<input type="text" class="input-sm form-control" name="insurer1_begin" value="" autocomplete="off" />
<span class="input-group-addon"></span>
<input type="text" class="input-sm form-control" name="insurer1_end" value="" autocomplete="off" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-1">范围</label>
<div class="col-sm-11">
<div class="checkbox checkbox-inline">
<input type="checkbox" name="b_lib" id="b_lib" value="1">
<label for="b_lib">B库</label>
</div>
<div class="checkbox checkbox-inline">
<input type="checkbox" name="c_lib" id="c_lib" value="1">
<label for="c_lib">C库</label>
</div>
<div class="checkbox checkbox-inline">
<input type="checkbox" name="d_lib" id="d_lib" value="1">
<label for="d_lib">D库</label>
</div>
<div class="checkbox checkbox-inline">
<input type="checkbox" name="e_lib" id="e_lib" value="1">
<label for="e_lib">E库</label>
</div>
<div class="checkbox checkbox-inline">
<input type="checkbox" name="invalid_lib" id="invalid_lib" value="1">
<label for="invalid_lib">无效库</label>
</div>
<div class="checkbox checkbox-inline">
<input type="checkbox" name="unsel_lib" id="unsel_lib" value="1">
<label for="unsel_lib">未分配</label>
</div>
<div class="checkbox checkbox-inline">
<input type="checkbox" name="has_phone" id="has_phone" value="1">
<label for="has_phone">有电话号码</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-3 col-sm-offset-5">
<button type="submit" class="btn btn-primary">搜索</button>
</div>
</div>
</form>
</div>
</div>
</div>
<?php $this->beginBlock('footer_js'); ?>
<script type="text/javascript" language="javascript">
function search() {
var o = {};
var params = $("#searchFrm").serializeArray();
$.each(params, function(index) {
o[this['name']] = this['value'];
});
parent.o = o;
parent.refreshList();
layer_close();
}
$(function () {
$('.input-daterange').datepicker({
keyboardNavigation: false,
forceParse: false,
autoclose: true
});
})
</script>
<?php $this->endBlock('footer_js'); ?>