pestFormModal.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!-- Button trigger modal -->
  2. <button style="padding: 5px 29px !important;" type="button" class="btn btn-success btn-lg" data-toggle="modal"
  3. data-target="#gsmmModal">
  4. 增加病虫害信息
  5. </button>
  6. <!-- Employee Form Modal -->
  7. <form id="gsmmForm" role="form" class="form-horizontal col-lg-12" enctype="multipart/form-data">
  8. <div class="modal fade" id="gsmmModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  9. <div class="modal-dialog" role="document">
  10. <div class="modal-content">
  11. <div class="modal-header">
  12. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
  13. style="font-size:28px" aria-hidden="true">&times;</span></button>
  14. <h4 class="modal-title" id="myModalLabel">病虫害数据录入</h4>
  15. </div>
  16. <div class="modal-body">
  17. <input type="hidden" id="id" name="id">
  18. <div class="form-group">
  19. <label class="col-lg-2 control-label" for="date">调查日期:</label>
  20. <div class="col-lg-4"><input type="text" class="form-control" id="date" name="date"
  21. placeholder="必填" required></div>
  22. <label class="col-lg-2 control-label" for="adressid">区域编号:</label>
  23. <div class="col-lg-4"><input type="text" class="form-control" id="adressid" name="adressid"
  24. placeholder="必填" required></div>
  25. </div>
  26. <div class="form-group">
  27. <label class="col-lg-2 control-label" for="pestname">虫种:</label>
  28. <div class="col-lg-4">
  29. <select id="pestname" name="pestname" class="form-control">
  30. <option value=0>-请选择-</option>
  31. </select>
  32. </div>
  33. <label class="col-lg-2 control-label" for="pestfirstgrade">害虫时期:</label>
  34. <div class="col-lg-4">
  35. <select id="pestfirstgrade" name="pestfirstgrade" class="form-control">
  36. <option value=0>-请选择-</option>
  37. </select>
  38. <select id="pestsecondgrade" name="pestsecondgrade" class="form-control">
  39. <option value=0>-请选择-</option>
  40. </select>
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label class="col-lg-2 control-label" for="longitude">经度:</label>
  45. <div class="col-lg-4"><input type="text" class="form-control" id="longitude"
  46. name="longitude" placeholder="必填" required></div>
  47. <label class="col-lg-2 control-label" for="latitude">纬度:</label>
  48. <div class="col-lg-4"><input type="text" class="form-control" id="latitude" name="latitude"
  49. placeholder="必填" required></div>
  50. </div>
  51. <div class="form-group">
  52. <label class="col-lg-2 control-label" for="researchperson">调查者:</label>
  53. <div class="col-lg-4">
  54. <select id="researchperson" name="researchperson" class="form-control">
  55. <option value=0>-请选择-</option>
  56. </select>
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <label class="col-lg-2 control-label" for="remark">备注:</label>
  61. <div class="col-lg-10"><textarea type="text" class="form-control" id="remark"
  62. name="remark"></textarea></div>
  63. </div>
  64. <div class="form-group">
  65. <label class="col-lg-2 control-label">害虫图片:</label>
  66. <div class="col-lg-5">
  67. <input type="file" id="file" name="file"/>
  68. </div>
  69. <div class="col-lg-5">
  70. <input type="button" id="picupload1" value="上传图片1"/>
  71. <input type="button" id="picupload2" value="上传图片2"/>
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="col-lg-2 control-label" for="pestpicurl1">图片1:</label>
  76. <div class="col-lg-10"><input type="text" class="form-control" id="pestpicurl1"
  77. name="pestpicurl1" placeholder="上传图片外链"></div>
  78. </div>
  79. <div class="form-group">
  80. <label class="col-lg-2 control-label" for="pestpicurl2">图片2:</label>
  81. <div class="col-lg-10"><input type="text" class="form-control" id="pestpicurl2"
  82. name="pestpicurl2" placeholder="上传图片外链"></div>
  83. </div>
  84. <div class="form-group">
  85. <label class="col-lg-2 control-label">图片预览:</label>
  86. <div class="col-lg-10">
  87. <img id="pestpic1" src="" style="width:220px;height:150px"/>
  88. <img id="pestpic2" src="" style="width:220px;height:150px"/>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="modal-footer">
  93. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  94. <button id="submit" type="submit" class="btn btn-primary">Save</button>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </form>