labeladd.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/usersignup/label.js')
  10. ?>
  11. <form class="layui-form" action="" style="margin-top: 50px">
  12. <div class="layui-form-item">
  13. <label class="layui-form-label">来源名称</label>
  14. <div class="layui-input-block" style="width: 200px;">
  15. <input type="text" name="name" required lay-verify="required" placeholder="请输入资讯名称" autocomplete="off" class="layui-input">
  16. </div>
  17. </div>
  18. <div class="layui-form-item">
  19. <label class="layui-form-label">来源设备</label>
  20. <div class="layui-input-block">
  21. <?php foreach ($source as $key=>$val){ ?>
  22. <input type="radio" name="type" value="<?= $key ?>" title="<?= $val ?>" checked>
  23. <?php } ?>
  24. </div>
  25. </div>
  26. <div class="layui-form-item layui-form-text">
  27. <label class="layui-form-label">备注信息</label>
  28. <div class="layui-input-block" style="width: 200px;">
  29. <textarea name="remarks" placeholder="请输入内容" class="layui-textarea"></textarea>
  30. </div>
  31. </div>
  32. <div class="layui-form-item">
  33. <div class="layui-input-block">
  34. <button class="layui-btn" lay-submit lay-filter="addnews">立即提交</button>
  35. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  36. </div>
  37. </div>
  38. </form>