edit.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. use backend\assets\AppAsset;
  3. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/testnumber/number.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. .mt {
  15. text-align: center;
  16. margin-top: 15px;
  17. }
  18. </style>
  19. <form class="layui-form layui-form-pane">
  20. <div class="layui_box">
  21. <div class="layui-form-item">
  22. <label class="layui-form-label" style="width: 130px"><span style="color:red">*</span>测试号码:</label>
  23. <div class="layui-input-inline" style="width:71.8%">
  24. <input type="text" name="number" value="<?= $row['number'] ?>" required lay-verify="required"
  25. placeholder="请输入网站测试号码"
  26. class="layui-input">
  27. </div>
  28. </div>
  29. <div class="layui-form-item">
  30. <label class="layui-form-label" style="width: 130px">号码说明:</label>
  31. <div class="layui-input-inline" style="width:71.8%">
  32. <input type="text" name="explain" value="<?= $row['explain'] ?>" placeholder="请输入该号码的说明"
  33. class="layui-input">
  34. </div>
  35. </div>
  36. <div class="layui-form-item mt">
  37. <input type="hidden" name="id" value="<?= $row['id'] ?>">
  38. <button class="layui-btn" lay-submit="" lay-filter="edit_number">保 存</button>
  39. </div>
  40. </div>
  41. </form>