Bez popisu

totaledit.blade.php 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. @if(count($errors) > 0)
  5. <div class="Huialert Huialert-info" id="error">
  6. @foreach($errors->all() as $error)
  7. <li>{{$error}}</li>
  8. @endforeach
  9. </div>
  10. @endif
  11. <div class="page-container">
  12. <form action="/admin/custreport/totalupdate" method="post" class="form form-horizontal" enctype="multipart/form-data">
  13. <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  14. @if($custreport)
  15. <input type="hidden" name="id" value="{{$custreport['id']}}" />
  16. <div class="row cl">
  17. <label class="form-label col-xs-4 col-sm-2">
  18. 总加粉数:</label>
  19. <div class="formControls col-xs-6 col-sm-6">
  20. <input type="text" class="input-text" value="{{$custreport['total_fan_add']}}" placeholder="请输入加粉数" name="total_fan_add">
  21. </div>
  22. </div>
  23. <div class="row cl">
  24. <label class="form-label col-xs-4 col-sm-2">
  25. 总投入成本:</label>
  26. <div class="formControls col-xs-6 col-sm-6">
  27. <input type="text" class="input-text" value="{{$custreport['total_cost']}}" placeholder="" name="total_cost">
  28. </div>
  29. </div>
  30. <div class="row cl">
  31. <label class="form-label col-xs-4 col-sm-2">
  32. 日期:</label>
  33. <div class="formControls col-xs-6 col-sm-6">
  34. <input id="dtime" type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })" class="input-text Wdate" style="width:22%;text-align:center;" name="dtime" value="{{$custreport['dtime']}}">
  35. </div>
  36. </div>
  37. <div class="row cl">
  38. <label class="form-label col-xs-4 col-sm-2">
  39. 选择团队:</label>
  40. <div class="formControls col-xs-6 col-sm-6">
  41. <span class="select-box">
  42. <select size="1" name="team_id" id='team'>
  43. <option value="0" @if($custreport['team_id']=='') selected @endif>- 请选择 -</option>
  44. @foreach($teamlist as $v)
  45. <option value="{{$v['id']}}" @if($custreport['team_id']==$v['id']) selected @endif>{{$v['name']}}</option>
  46. @endforeach
  47. </select>
  48. </span>
  49. </div>
  50. </div>
  51. @endif
  52. <div class="row cl">
  53. <div class="col-9 col-offset-2">
  54. <button class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">&nbsp;&nbsp;提交&nbsp;&nbsp;</button>&nbsp;
  55. <button class="btn btn-default" type="reset" onclick="return_index();">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>&nbsp;
  56. </div>
  57. </div>
  58. </form>
  59. </div>
  60. <!--_footer 作为公共模版分离出去-->
  61. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  62. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  63. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  64. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  65. <!--/_footer 作为公共模版分离出去-->
  66. <!--请在下方写此页面业务相关的脚本-->
  67. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  68. <script type="text/javascript">
  69. $(function(){
  70. setTimeout("$('#error').hide()",3000);
  71. });
  72. /*返回*/
  73. function return_index(){
  74. location.href='/admin/custreport/totalindex';
  75. }
  76. </script>
  77. </body>
  78. @endsection