about.php 3.4 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."/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/other/about.js')
  14. ?>
  15. <style>
  16. .xm_right_box {width:80%;margin:0 auto;}
  17. .xm_zjzx_Submit {text-align:center;}
  18. </style>
  19. <div class="xm_right_box"> <!-- 你的内容 10/12 -->
  20. <form id="house_form" action="">
  21. <div class="layui-tab" lay-filter="test1">
  22. <ul class="layui-tab-title">
  23. <li class="site-demo-active layui-this" lay-id="assign_1" >公司简介</li>
  24. <li class="site-demo-active" lay-id="assign_2">资质荣誉</li>
  25. <li class="site-demo-active" lay-id="assign_3">联系我们</li>
  26. <li class="site-demo-active" lay-id="assign_4">版权声明</li>
  27. </ul>
  28. <div class="layui-tab-content">
  29. <div id="assign_1" class="layui-tab-item layui-show">
  30. <div class="layui-bg-gray" style="width:96%;padding:8px 15px;">公司简介:</div>
  31. <div class="editor_box layui-form-item" style="width:98%">
  32. <textarea name="company" id="editor" cols="30" rows="10" style="width:100%;height:400px;float:left;"><?php if(isset($about)) echo $about[0]['company']?></textarea>
  33. </div>
  34. </div>
  35. <div id="assign_2" class="layui-tab-item">
  36. <div class="layui-bg-gray" style="width:96%;padding:8px 15px;">资质荣誉:</div>
  37. <div class="editor_box layui-form-item" style="width:98%">
  38. <textarea name="aptitude" id="editor1" cols="30" rows="10" style="width:100%;height:400px;float:left;"><?php
  39. if(isset($about)) echo $about[0]['aptitude']?></textarea>
  40. </div>
  41. </div>
  42. <div id="assign_3" class="layui-tab-item">
  43. <div class="layui-bg-gray" style="width:96%;padding:8px 15px;">联系我们:</div>
  44. <div class="editor_box layui-form-item" style="width:98%">
  45. <textarea name="contact" id="editor2" cols="30" rows="10" style="width:100%;height:400px;float:left;"><?php if(isset($about)) echo $about[0]['contact']?></textarea>
  46. </div>
  47. </div>
  48. <div id="assign_4" class="layui-tab-item">
  49. <div class="layui-bg-gray" style="width:96%;padding:8px 15px;">版权声明:</div>
  50. <div class="editor_box layui-form-item" style="width:98%">
  51. <textarea name="copyright" id="editor3" cols="30" rows="10" style="width:100%;height:400px;float:left;"><?php if(isset($about)) echo $about[0]['contact']?></textarea>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="layui-form-item xm_zjzx_Submit">
  57. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="tijiao" >提交</button>
  58. </div>
  59. <input type="hidden" name="id" value="<?php if(isset($about)) echo $about[0]['id']?>">
  60. </form>
  61. </div> <!-- 你的内容 9/12 -->