123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- @extends('admin/layout')
- @section('header')
- <link href="{{asset('css/plugins/chosen/chosen.css')}}" rel="stylesheet">
- <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">
- <link rel="stylesheet"
- href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">
- @endsection
- @section('content')
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <form method="get" class="form-horizontal" id="form">
- <div class="form-group">
- <label class="col-sm-2 control-label" for="advertise_code"><span class="red">* </span>广告代码:</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" id="advertise_code" name="advertise_code"
- value="{{$info->advertise_code??''}}" autocomplete="off">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="name"><span
- class="red">* </span>广告位名称 :</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" id="advertise_name" name="advertise_name"
- autocomplete="off" value="{{$info->advertise_name??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="width"><span
- class="red">* </span>宽度:</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" id="width" name="width"
- value="{{$info->width??0}}" autocomplete="off">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="height"><span
- class="red">* </span>高度:</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" id="height" name="height"
- value="{{$info->height??0}}" autocomplete="off">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="limit"><span
- class="red">* </span>同时显示:</label>
- <div class="col-sm-6">
- <input type="text" class="form-control my-date deadline"
- name="limit" id="limit"
- value="{{$info->limit??0}}" autocomplete="off">
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-2">
- <button class="btn btn-primary" type="button" data-id="{{$info->id??0}}"
- id="save">
- 保存
- </button>
- <button class="btn btn-white" type="button" id="cancel">取消</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- @endsection
- @section('footer')
- <script>
- $(document).on('click', '#cancel', function () {
- tips.closeParentLayer();
- });
- $(document).on('click', '#save', function () {
- var data = tips.getFormValues('#form');
- var id = $(this).data('id');
- var ajaxConfig = {
- url: '/admin/advertise/advertise-edit/' + id + '/{{$siteId}}',
- type: 'post',
- data: data,
- success: function (result) {
- layer.msg(result.message, {icon: 6, time: 1500}, function () {
- tips.closeParentLayer();
- window.parent.tips.tableRefresh('#table');
- });
- }
- };
- tips.ajax(ajaxConfig);
- });
- </script>
- @endsection
|