developeredit.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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/developer.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. </style>
  15. <form class="layui-form layui-form-pane" >
  16. <div class="layui_box">
  17. <div class="layui-form-item">
  18. <label class="layui-form-label"><span style="color:red">*</span>公司名称</label>
  19. <div class="layui-input-inline" style="width:270px;">
  20. <input type="text" name="name" lay-verify="required" value="<?php echo $model['name']?>" placeholder="请输入开发商名称" autocomplete="off" class="layui-input">
  21. </div>
  22. </div>
  23. <div class="layui-form-item">
  24. <label class="layui-form-label">简介</label>
  25. <div class="layui-input-inline" style="width:100%">
  26. <textarea name="info" placeholder="请输入简介" class="layui-textarea"><?php echo $model['info']?></textarea>
  27. </div>
  28. </div>
  29. <div class="layui-form-item xm_pr">
  30. <div class="layui-inline">
  31. <label class="layui-form-label">公司logo:</label>
  32. <!-- <div class="layui-input-inline" style="width:270px;">
  33. <input type="text" name="thumbnail" value="" autocomplete="off" class="layui-input">
  34. </div> -->
  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="img" src="<?php echo $model['logo']?>" id="breviary_img" style="width:100px;height:80px;margin-left:10px;">
  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="test1">选择图片</button>
  45. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
  46. </div>
  47. <div class="layui-form-item" pane="">
  48. <label class="layui-form-label">是否推荐</label>
  49. <div class="layui-input-block">
  50. <input type="radio" name="allow" value="1" title="不推荐" <?php if($model['allow'] == 1) echo 'checked'?>>
  51. <input type="radio" name="allow" value="2" title="推荐" <?php if($model['allow'] == 2) echo 'checked'?>>
  52. </div>
  53. </div>
  54. <div class="layui-form-item">
  55. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  56. <input type="hidden" id="editimgId" name="id" value="<?php echo $model['id']?>">
  57. <button class="layui-btn" lay-submit="" lay-filter="editdeveloper">修改</button>
  58. </div>
  59. </div>
  60. </div>
  61. </form>