sethome.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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/other/setsite.js')
  10. ?>
  11. <style>
  12. .xm_right_box {
  13. margin: 0 auto;
  14. width: 82%;
  15. }
  16. </style>
  17. <!-- 内容主体区域 -->
  18. <blockquote class="layui-elem-quote quoteBox demoTable">
  19. <div>网站设置</div>
  20. </blockquote>
  21. <form class="layui-form" action="" id="house_form">
  22. <div class="layui-row">
  23. <div class="xm_right_box">
  24. <div class="layui-tab" lay-filter="test1">
  25. <ul class="layui-tab-title">
  26. <li class="site-demo-active layui-this" lay-id="assign_1">基本设置</li>
  27. <li class="site-demo-active" lay-id="assign_2">联系我们</li>
  28. <li class="site-demo-active" lay-id="assign_3">第三方代码</li>
  29. <!-- <li class="site-demo-active" lay-id="assign_4">第三方代码</li>-->
  30. </ul>
  31. <div class="layui-tab-content" style="margin-top:15px;">
  32. <div id="assign_1" class="layui-tab-item layui-show">
  33. <div class="layui-form-item">
  34. <label class="layui-form-label">网站标题:</label>
  35. <div class="layui-input-inline" style="width:300px;">
  36. <input type="text" name="title" lay-verify="required"
  37. value="<?php echo $model['title'] ?>" placeholder="请输入网站标题" autocomplete="off"
  38. class="layui-input">
  39. </div>
  40. </div>
  41. <div class="layui-form-item">
  42. <label class="layui-form-label">备案号:</label>
  43. <div class="layui-input-inline" style="width:300px;">
  44. <input type="text" name="record" value="<?php echo $model['record'] ?>"
  45. placeholder="请输入备案号" autocomplete="off" class="layui-input">
  46. </div>
  47. </div>
  48. <div class="layui-form-item">
  49. <label class="layui-form-label">网站关键词:</label>
  50. <div class="layui-input-inline" style="width:75%;">
  51. <textarea name="keywords" rows="5" placeholder="请输入网站关键词"
  52. class="layui-textarea"><?php echo $model['keywords'] ?></textarea>
  53. </div>
  54. </div>
  55. <div class="layui-form-item">
  56. <label class="layui-form-label">网站描述:</label>
  57. <div class="layui-input-inline" style="width:75%;">
  58. <textarea name="description" rows="5" placeholder="请输入网站关键词"
  59. class="layui-textarea"><?php echo $model['description'] ?></textarea>
  60. </div>
  61. </div>
  62. <div class="layui-form-item">
  63. <label class="layui-form-label">免责声明:</label>
  64. <div class="layui-input-inline" style="width:75%;">
  65. <textarea name="disclaimer" rows="5" placeholder="请输入免责声明"
  66. class="layui-textarea"><?php echo $model['disclaimer'] ?></textarea>
  67. </div>
  68. </div>
  69. <div class="layui-form-item xm_pr">
  70. <div class="layui-inline">
  71. <label class="layui-form-label">网站logo:</label>
  72. <div class="layui-inline">
  73. <div class="layui-upload">
  74. <div class="layui-upload-list lay_p_relative">
  75. <img class="layui-upload-img layui_magnify" name="img"
  76. src="<?php echo $model['logo'] ?>" id="logo_img"
  77. style="width:100px;height:80px;margin-left:10px;">
  78. <p id="demoText"></p>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="logo">选择图片
  84. </button>
  85. </div>
  86. </div>
  87. <div id="assign_2" class="layui-tab-item">
  88. <div class="layui-form-item">
  89. <label class="layui-form-label">服务电话:</label>
  90. <div class="layui-input-inline" style="width:300px;">
  91. <input type="text" name="tel" value="<?php echo $model['tel'] ?>" placeholder="请输入标题"
  92. autocomplete="off" class="layui-input">
  93. </div>
  94. </div>
  95. <div class="layui-form-item">
  96. <label class="layui-form-label">E-mail:</label>
  97. <div class="layui-input-inline" style="width:300px;">
  98. <input type="text" name="email" value="<?php echo $model['email'] ?>"
  99. placeholder="请输入标题" autocomplete="off" class="layui-input">
  100. </div>
  101. </div>
  102. <div class="layui-form-item">
  103. <label class="layui-form-label">工作时间:</label>
  104. <div class="layui-input-inline" style="width:300px;">
  105. <input type="text" name="operating_hours"
  106. value="<?php echo $model['operating_hours'] ?>" placeholder="请输入标题"
  107. autocomplete="off" class="layui-input">
  108. </div>
  109. </div>
  110. <div class="layui-form-item xm_pr">
  111. <div class="layui-inline">
  112. <label class="layui-form-label">微信二维码:</label>
  113. <div class="layui-inline">
  114. <div class="layui-upload">
  115. <div class="layui-upload-list lay_p_relative">
  116. <img class="layui-upload-img layui_magnify" name="img"
  117. src="<?php echo $model['wechat'] ?>" id="weixin_img"
  118. style="width:100px;height:80px;margin-left:10px;">
  119. <p id="demoText"></p>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="weixin">
  125. 选择图片
  126. </button>
  127. </div>
  128. </div>
  129. <div id="assign_3" class="layui-tab-item">
  130. <div class="layui-form-item">
  131. <label class="layui-form-label">53快服:</label>
  132. <div class="layui-input-inline" style="width:75%;">
  133. <textarea name="bridge_link" cows="5" placeholder="请输入网站关键词"
  134. class="layui-textarea"><?php echo $model['bridge_link'] ?></textarea>
  135. </div>
  136. </div>
  137. <div class="layui-form-item">
  138. <label class="layui-form-label">友盟代码_PC端:</label>
  139. <div class="layui-input-inline" style="width:75%;">
  140. <textarea name="statistics" cows="5" placeholder="请输入友盟代码_PC端"
  141. class="layui-textarea"><?php echo $model['statistics'] ?></textarea>
  142. </div>
  143. </div>
  144. <div class="layui-form-item">
  145. <label class="layui-form-label">友盟代码_移动端:</label>
  146. <div class="layui-input-inline" style="width:75%;">
  147. <textarea name="m_statistics" cows="5" placeholder="请输入友盟代码_移动端"
  148. class="layui-textarea"><?php echo $model['m_statistics'] ?></textarea>
  149. </div>
  150. </div>
  151. <div class="layui-form-item">
  152. <label class="layui-form-label">商桥代码:</label>
  153. <div class="layui-input-inline" style="width:75%;">
  154. <textarea name="bridge_code" cows="5" placeholder="请输入网站关键词"
  155. class="layui-textarea"><?php echo $model['bridge_code'] ?></textarea>
  156. </div>
  157. </div>
  158. <div class="layui-form-item">
  159. <label class="layui-form-label">360站长代码:</label>
  160. <div class="layui-input-inline" style="width:75%;">
  161. <textarea name="master_360" cows="5" placeholder="请输入网站关键词"
  162. class="layui-textarea"><?php echo $model['master_360'] ?></textarea>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. <hr>
  169. <div class="layui-form-item xm_zjzx_Submit" style="text-align:center">
  170. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="tijiao">提交</button>
  171. </div>
  172. </div> <!-- 你的内容 9/12 -->
  173. </div>
  174. </form>