fhomesave.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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/mail.js')
  10. ?>
  11. <style>
  12. #house_form {margin:0 auto;}
  13. .layui-tab {margin:17px 0;}
  14. .layui_w_box {width:90%;margin:0 auto;}
  15. .layui_w_form {display:inline-block;vertical-align:top;width:40%;}
  16. .layui_w_form:last-child {margin-left:90px;}
  17. .layui-form-item {text-align:center;}
  18. .layui-tab-title .layui-this {color:#fff;}
  19. .layui-form-label {padding:9px 7px;width:100px;}
  20. .layui_w_hr {width:1px;background:#ccc;height:600px;display:inline-block;margin-left:50px;}
  21. </style>
  22. <!-- 内容主体区域 -->
  23. <!-- <div style="padding: 15px;">内容主体区域</div> -->
  24. <div class="layui_w_box">
  25. <form class="layui-form layui_w_form" action="" id="house_form">
  26. <div class="layui-row">
  27. <div class="xm_right_box"> <!-- 你的内容 10/12 -->
  28. <div class="layui-tab" lay-filter="test1">
  29. <ul class="layui-tab-title">
  30. <li class="site-demo-active layui-this" lay-id="assign_1" >邮箱发件人设置</li>
  31. </ul>
  32. <div class="layui-tab-content">
  33. <div id="assign_1" class="layui-tab-item layui-show">
  34. <div class="layui-form-item">
  35. <label class="layui-form-label">SMTP 服务器:</label>
  36. <div class="layui-input-inline" style="width:270px;">
  37. <input type="text" name="host" value="<?php echo $model['host'] ?>" placeholder="请输入网站标题" autocomplete="off" class="layui-input">
  38. </div>
  39. </div>
  40. <div class="layui-form-item">
  41. <label class="layui-form-label">SMTP服务器端口号:</label>
  42. <div class="layui-input-inline" style="width:270px;">
  43. <input type="text" name="port" value="<?php echo $model['port'] ?>" placeholder="请输入备案号" autocomplete="off" class="layui-input">
  44. </div>
  45. </div>
  46. <div class="layui-form-item">
  47. <label class="layui-form-label">服务器邮箱帐号:</label>
  48. <div class="layui-input-inline" style="width:270px;">
  49. <input type="text" name="username" value="<?php echo $model['username'] ?>" placeholder="请输入备案号" autocomplete="off" class="layui-input">
  50. </div>
  51. </div>
  52. <div class="layui-form-item">
  53. <label class="layui-form-label">服务器邮箱密码:</label>
  54. <div class="layui-input-inline" style="width:270px;">
  55. <input type="text" name="password" value="<?php echo $model['password'] ?>" placeholder="请输入备案号" autocomplete="off" class="layui-input">
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. <hr>
  62. <div class="layui-form-item xm_zjzx_Submit">
  63. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="tijiao" >提交</button>
  64. </div>
  65. </div> <!-- 你的内容 9/12 -->
  66. </div>
  67. </form>
  68. <div class="layui_w_hr"></div>
  69. <form class="layui-form layui_w_form" action="" id="send_email">
  70. <div class="layui-row">
  71. <div class="xm_right_box"> <!-- 你的内容 10/12 -->
  72. <div class="layui-tab" lay-filter="test1">
  73. <ul class="layui-tab-title">
  74. <li class="site-demo-active layui-this" lay-id="assign_1" >收件人发送测试</li>
  75. </ul>
  76. <div class="layui-tab-content">
  77. <div id="assign_1" class="layui-tab-item layui-show">
  78. <div class="layui-form-item">
  79. <label class="layui-form-label">收件人邮箱:</label>
  80. <div class="layui-input-inline" style="width:270px;">
  81. <input type="text" name="collect" placeholder="请输入网站标题" autocomplete="off" class="layui-input">
  82. </div>
  83. </div>
  84. <div class="layui-form-item">
  85. <label class="layui-form-label">邮件标题:</label>
  86. <div class="layui-input-inline" style="width:75%;">
  87. <textarea name="title" rows="5" placeholder="请输入邮件标题" class="layui-textarea"></textarea>
  88. </div>
  89. </div>
  90. <div class="layui-form-item">
  91. <label class="layui-form-label">邮件内容:</label>
  92. <div class="layui-input-inline" style="width:75%;">
  93. <textarea name="content" rows="5" placeholder="请输入邮件内容" class="layui-textarea"></textarea>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <hr>
  100. <div class="layui-form-item xm_zjzx_Submit">
  101. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="add_send_email" >提交</button>
  102. </div>
  103. </div> <!-- 你的内容 9/12 -->
  104. </div>
  105. </form>
  106. </div>