contedit.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/24
  6. * Time: 上午10:01
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/ueditor/1.4.3/ueditor.config.js");
  10. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/ueditor/1.4.3/ueditor.all.min.js");
  11. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/ueditor/1.4.3/lang/zh-cn/zh-cn.js");
  12. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/jquery-3.2.1.min.js");
  13. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/routine/decorationcont.js");
  14. ?>
  15. <style>
  16. .xm_qytc_box{width:920px;margin:auto;margin-top:20px;}
  17. .xm_xcxqTc_img{margin:0;}
  18. .xm_xcxqTc_button{position:absolute;bottom:0;left:0;}
  19. .xm_pr{position:relative;}
  20. .ml{margin-left:18px}
  21. /*.layui-form-pane .layui-form-checkbox{position:absolute;bottom:0;left:100px;}*/
  22. .layui-upload-img{display: inline-block;height:155px;width: 120px;border: 1px solid #dbdbdb;margin-right: 10px;position: absolute;position: relative;bottom:14px;margin-top:14px;overflow:hidden;}
  23. .layui-upload-img img{display: block;height:120px;width: 100%;}
  24. .close-icon{position: absolute;right:0px;top: 1px;cursor: pointer;font-weight:600;}
  25. .close-input{cursor: pointer;width:121px}
  26. .close-input input{height:35px;}
  27. .xm_tgqcTc_dztpsc{position:relative;}
  28. /*下接列表的层级*/
  29. .layui-form-select dl {z-index:1000;}
  30. /*删除*/
  31. .delete-list {background:rgba(0,0,0,0.5);position:absolute;top:-28px;left:0;width:100%;padding:3px 0;}
  32. .delete-list i {float:right;margin-right:8px;cursor:pointer;font-size:20px !important;; color: #fff;}
  33. .layui-upload-img:hover .delete-list {top:0;}
  34. </style>
  35. <div class="xm_qytc_box">
  36. <form class="layui-form layui-form-pane" action="" id="album_form">
  37. <div class="layui-form-item">
  38. <label class="layui-form-label"><span style="color:red;">* </span>所属栏目</label>
  39. <div class="layui-input-inline">
  40. <select name="label_id" id="ddlregtype" lay-filter="sele_album">
  41. <?php foreach($label as $val){?>
  42. <option disabled="disabled" value="<?php echo $val['id']?>" <?php if($val['id'] == $model['label_id']) echo 'selected' ?> ><?php echo $val['name'] ?></option>
  43. <?php }?>
  44. </select>
  45. </div>
  46. </div>
  47. <div class="layui-form-item">
  48. <label class="layui-form-label">标题</label>
  49. <span id="house_name" href="javascript:;" style="display: inline-block;line-height:38px;padding-left: 10px;"><?php echo $post['name']?></span>
  50. <!-- <input type="hidden" name="nid" value="--><?php //echo $post['id']?><!--">-->
  51. </div>
  52. <div class="layui-form-item" style="z-index: 1;">
  53. <div class="layui-bg-gray" style="padding:3px 15px;">文章内容:</div>
  54. <div class="editor_box">
  55. <textarea name="content" id="editor_content" cols="30" rows="10" style="width:100%;height:400px;"><?= $model['content'] ?></textarea>
  56. </div>
  57. </div>
  58. <div class="layui-form-item">
  59. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  60. <input type="hidden" name="id" value="<?= $model['id'] ?>">
  61. <input type="hidden" name="nid" value="<?= $post['nid'] ?>">
  62. <button class="layui-btn" lay-submit="" lay-filter="edit">提交</button>
  63. </div>
  64. </div>
  65. </form>
  66. </div>