renovationadd.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/6
  6. * Time: 下午5:49
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/dictionarya/renovation.js");
  10. ?>
  11. <form class="layui-form" action="" style="margin-top: 50px">
  12. <div class="layui-form-item">
  13. <label class="layui-form-label">品鉴名称</label>
  14. <div class="layui-input-block" style="width: 200px;">
  15. <input type="text" name="name" required lay-verify="required" placeholder="请输入品鉴名称" autocomplete="off" class="layui-input">
  16. </div>
  17. </div>
  18. <div class="layui-form-item xm_pr">
  19. <div class="layui-inline">
  20. <label class="layui-form-label"><span style="color:red">*</span>图片1:</label>
  21. <div class="layui-inline">
  22. <div class="layui-upload">
  23. <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  24. <img class="layui-upload-img layui_magnify" name="advertising_img" src="" id="breviary_img" style="width:280px;height:90px;margin-left:10px;border:1px solid #ccc;">
  25. <p id="demoText"></p>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test1">选择图片</button>
  31. </div>
  32. <div class="layui-form-item xm_pr">
  33. <div class="layui-inline">
  34. <label class="layui-form-label"><span style="color:red">*</span>图片2:</label>
  35. <div class="layui-inline">
  36. <div class="layui-upload">
  37. <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  38. <img class="layui-upload-img layui_magnify" name="advertising_img" src="" id="breviary_img1" style="width:280px;height:90px;margin-left:10px;border:1px solid #ccc;">
  39. <p id="demoText"></p>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test2">选择图片</button>
  45. </div>
  46. <div class="layui-form-item">
  47. <label class="layui-form-label">排序</label>
  48. <div class="layui-input-block" style="width: 200px;">
  49. <input type="text" name="sort" autocomplete="off" class="layui-input">
  50. </div>
  51. </div>
  52. <div class="layui-form-item">
  53. <div class="layui-input-block">
  54. <input type="hidden" name="type" value="4">
  55. <button class="layui-btn" lay-submit lay-filter="addtheme">立即提交</button>
  56. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  57. </div>
  58. </div>
  59. </form>