<?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-title">
            <h5>维修提单 - 新增</h5>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-12">
                    <form role="form" class="form-horizontal" id="theFrm">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">车牌号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="car_no" id="car_no">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">发动机号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="engine_no" id="engine_no">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">车架号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="car_frame_no" id="car_frame_no">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">车主</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="car_man" id="car_man">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">手机</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="car_phone" id="car_phone">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary btn-save" type="button" onclick="saveInfo()">搜索</button>
                                <button class="btn btn-primary btn-save" type="button" onclick="goBack()">返回</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<?php $this->beginBlock('footer_js'); ?>
<script type="text/javascript" language="javascript">
    function saveInfo(){
        var params = $("#theFrm").serialize();
        window.location.href = '/fix-car/my-search-result?' + params;
    }

    function goBack(){
        window.location.href='/fix-car/my-list';
    }
</script>
<?php $this->endBlock('footer_js'); ?>