daytoutiaoedit.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. use backend\assets\AppAsset;
  3. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/daytoutiao/daytoutiao.js");
  4. ?>
  5. <style>
  6. .layui_box {
  7. width: 80%;
  8. margin: 0 auto;
  9. margin-top: 25px;
  10. }
  11. .layui-code, .layui-upload-list {
  12. margin-top: 0;
  13. }
  14. hr {
  15. width: 100%;
  16. margin: 0 auto;
  17. }
  18. .mt {
  19. text-align: center;
  20. margin-top: 15px;
  21. }
  22. .The_house {
  23. background: #FBFBFB;
  24. color: #333;
  25. }
  26. .The_house:hover {
  27. border: 1px solid #a9a9a9;
  28. color: #333;
  29. }
  30. .xm_xcxqTc_button {
  31. margin-top: -20px;
  32. }
  33. </style>
  34. <form class="layui-form layui-form-pane">
  35. <div class="layui_box">
  36. <div class="layui-form-item">
  37. <label class="layui-form-label"><span style="color:red">*</span>栏目名称:</label>
  38. <div class="layui-input-inline" style="width:64%">
  39. <select name="list_id" id="">
  40. <?php if(!empty($lanmu)){ foreach ($lanmu as $val){?>
  41. <option value="<?=$val['id']?>" <?php echo $val['id'] == $data['list_id'] ? 'selected' :'';?>><?=$val['day_title']?></option>
  42. <?php }}?>
  43. </select>
  44. </div>
  45. </div>
  46. <div class="layui-form-item">
  47. <label class="layui-form-label"><span style="color:red">*</span>姓名:</label>
  48. <div class="layui-input-inline" style="width:64%;">
  49. <input type="text" name="name" value="<?=$data['name']?>" required lay-verify="required" placeholder="姓名"
  50. class="layui-input">
  51. </div>
  52. </div>
  53. <div class="layui-form-item">
  54. <label class="layui-form-label"><span style="color:red">*</span>电话:</label>
  55. <div class="layui-input-inline" style="width:64%">
  56. <input type="text" name="phone" value="<?=$data['phone']?>" required lay-verify="required" placeholder="电话"
  57. class="layui-input">
  58. </div>
  59. </div>
  60. <div class="layui-form-item">
  61. <label class="layui-form-label"><span style="color:red">*</span>是否有效:</label>
  62. <div class="layui-input-inline" style="width:64%">
  63. <input type="radio" name="efficacious" value="2" title="有效" <?php echo $data['efficacious']==2?'checked': '';?>>
  64. <input type="radio" name="efficacious" value="1" title="未知" <?php echo $data['efficacious']==1?'checked': '';?>>
  65. </div>
  66. </div>
  67. <div class="layui-form-item">
  68. <label class="layui-form-label"><span style="color:red">*</span>重新发送:</label>
  69. <div class="layui-input-inline" style="width:64%">
  70. <input type="checkbox" name="like" value="yes" title="重新发送邮箱">
  71. </div>
  72. </div>
  73. <div class="layui-form-item mt">
  74. <input type="hidden" name="id" value="<?=$data['id']?>">
  75. <button class="layui-btn" lay-submit="" lay-filter="edits">提交</button>
  76. </div>
  77. </div>
  78. </form>