collectadd.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. .layui_w_t {margin:25px auto 0;width:70%;}
  13. </style>
  14. <form class="layui-form layui-form-pane" id="signupForm">
  15. <div class="layui_w_t">
  16. <div class="layui-form-item">
  17. <div class="layui-inline">
  18. <label class="layui-form-label"><span style="color:red">*</span>邮箱:</label>
  19. <div class="layui-input-block" style="width:270px;">
  20. <!-- id="EventDate"-->
  21. <input type="text" name="email" lay-verify="required" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
  22. </div>
  23. </div>
  24. </div>
  25. <div class="layui-form-item">
  26. <div class="layui-inline">
  27. <label class="layui-form-label"><span style="color:red">*</span>区域:</label>
  28. <div class="layui-input-block imputSelect" style="width:270px;">
  29. <select name="city" lay-search>
  30. <option value="">请选择</option>
  31. <?php foreach($city as $val){?>
  32. <option value="<?php echo $val['id'] ?>"><?php echo $val['city_name']?></option>
  33. <?php }?>
  34. </select>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="layui-form-item">
  39. <div class="layui-inline">
  40. <label class="layui-form-label"><span style="color:red">*</span>邮箱所属人姓名:</label>
  41. <div class="layui-input-block" style="width:270px;">
  42. <!-- id="EventDate"-->
  43. <input type="text" name="name" lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input">
  44. </div>
  45. </div>
  46. </div>
  47. <div class="layui-form-item">
  48. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  49. <button class="layui-btn" lay-submit="" lay-filter="email_tijiao">提交</button>
  50. </div>
  51. </div>
  52. </div>
  53. </form>