addmatchcode.blade.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @extends('vip.layouts')
  2. @section('content')
  3. <form class="layui-form" action="{{ url()->full() }}" id="submitForm" name="submitForm" method="post" eventType=eventAjaxForm>
  4. {!! csrf_field() !!}
  5. <div class="layui-form-item">
  6. <label class="layui-form-label">{{ trans('matchcode.game_type') }}:</label>
  7. <div class="layui-input-block">
  8. <input type="text" name="game_type" id="game_type" required lay-verify="" placeholder="" autocomplete="off" value="@isset($game_type) {{ $matchcode['game_type'] }} @endisset" class="layui-input">
  9. </div>
  10. </div>
  11. <div class="layui-form-item">
  12. <label class="layui-form-label">{{ trans('matchcode.odds_code') }}:</label>
  13. <div class="layui-input-block">
  14. <input type="text" name="odds_code" id="odds_code" required lay-verify="" placeholder="" autocomplete="off" value="@isset($matchcode) {{ $matchcode['odds_code'] }} @endisset" class="layui-input">
  15. </div>
  16. </div>
  17. <div class="layui-form-item">
  18. <label class="layui-form-label">{{ trans('matchcode.odds_name') }}:</label>
  19. <div class="layui-input-block">
  20. <textarea name="odds_name" id="odds_name" lay-verify="" placeholder="" autocomplete="off" class="layui-input" >@isset($matchcode) {{ $matchcode['odds_name'] }} @endisset </textarea>
  21. </div>
  22. </div>
  23. <div class="layui-form-item layui-form">
  24. <label class="layui-form-label">{{ trans('matchcode.p_id') }}:</label>
  25. <div class="layui-input-block">
  26. <select name="p_id" id="p_id" lay-filter = 'sect' lay-verify="" autocomplete="off" class="layui-input" eventType=event-query>
  27. <option value="">{{ trans('matchcode.choice') }}</option>
  28. @foreach($data as $k=>$v)
  29. <option value="{{$v['id']}}">{{$v['odds_name']}}</option>
  30. @endforeach
  31. </select>
  32. </div>
  33. </div>
  34. @if(S('ACTION')!='view')
  35. <div class="layui-form-item">
  36. <div class="layui-input-block">
  37. <button class="layui-btn" lay-submit lay-filter="submitForm">立即提交</button>
  38. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  39. </div>
  40. </div>
  41. @endif
  42. </form>
  43. <script>
  44. // function cbFormSuccess(data){
  45. // layer.msg(data.msg);
  46. // setTimeout(function(){
  47. // window.location.href='/admin/Sportsfoot/index';
  48. // // parent.window.location.reload();
  49. // },2500);
  50. // }
  51. // lay('.test-item').each(function(){
  52. // laydate.render({
  53. // elem: this
  54. // ,type: 'datetime'
  55. // ,trigger: 'click'
  56. // });
  57. // });
  58. </script>
  59. @endsection