adviseredit.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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/dictionaryb/adviser.js");
  10. ?>
  11. <style>
  12. .layui_box {width:60%;margin:0 auto;margin-top:25px;}
  13. .layui-code, .layui-upload-list {margin-top:0;}
  14. hr {width:100%;margin:0 auto;}
  15. .mt {text-align:center;margin-top:15px;}
  16. </style>
  17. <form class="layui-form layui-form-pane" action="" >
  18. <div class="layui_box">
  19. <div class="layui-form-item">
  20. <label class="layui-form-label">姓名:</label>
  21. <div class="layui-input-inline">
  22. <input type="text" name="name" value="<?php echo $model['name']?>" lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input">
  23. </div>
  24. </div>
  25. <div class="layui-form-item">
  26. <label class="layui-form-label">经验:</label>
  27. <div class="layui-input-block xm_qytc_input">
  28. <input type="text" name="experience" value="<?php echo $model['experience']?>" required autocomplete="off" placeholder="请输入工作年限" class="layui-input" style="width:65%">
  29. </div>
  30. </div>
  31. <div class="layui-form-item" style="margin-top:30px">
  32. <label class="layui-form-label">顾问头像:</label>
  33. <div class="layui-inline">
  34. <div class="layui-upload">
  35. <div class="layui-upload-list">
  36. <img class="layui-upload-img" id="demo1" style="width:100px;height:80px;margin-left:10px;" src="<?php echo $model['photo']?>">
  37. </div>
  38. </div>
  39. </div>
  40. <div class="layui-inline">
  41. <div class="layui-upload">
  42. <button type="button" field="aaa" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test1">上传图片</button>
  43. </div>
  44. </div>
  45. </div>
  46. <hr>
  47. <div class="layui-form-item mt">
  48. <input type="hidden" name="id" id="editimgId" value="<?php echo $model['id']?>">
  49. <button class="layui-btn" lay-submit="" lay-filter="editadviser">提交</button>
  50. </div>
  51. </div>
  52. </form>