friendshiplinkadd.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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/link.js')
  10. ?>
  11. <style>
  12. .xm_qytc_box {width:75%;margin:20px auto 0;}
  13. .xm_xcxqTc_tj {margin:30px 0 0 0;text-align:center;}
  14. .layui-form-pane .layui-input-block {margin-left:0;}
  15. </style>
  16. <div class="xm_qytc_box">
  17. <form class="layui-form layui-form-pane" id="signupForm">
  18. <div class="layui-form-item">
  19. <label class="layui-form-label">位置:</label>
  20. <div class="layui-input-inline" style="width:270px;">
  21. <select name="linktype" >
  22. <option value="">请选择</option>
  23. <?php foreach($menu as $val){?>
  24. <option value="<?php echo $val['id'] ?>"><?php echo $val['name']?></option>
  25. <?php }?>
  26. </select>
  27. </div>
  28. </div>
  29. <div class="layui-form-item">
  30. <label class="layui-form-label">区域:</label>
  31. <div class="layui-input-inline" style="width:270px;">
  32. <select name="city" >
  33. <option value="">请选择</option>
  34. <?php foreach($city as $val){?>
  35. <option value="<?php echo $val['id'] ?>"><?php echo $val['city_name']?></option>
  36. <?php }?>
  37. </select>
  38. </div>
  39. </div>
  40. <div class="layui-form-item">
  41. <label class="layui-form-label">标题:</label>
  42. <div class="layui-input-inline" style="width:270px;">
  43. <input type="text" name="title" lay-verify="required" 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="url" lay-verify="required" 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-block">
  55. <input type="radio" name="state" value="1" title="正常" checked>
  56. <input type="radio" name="state" value="2" title="禁用" >
  57. </div>
  58. </div>
  59. <div class="layui-form-item">
  60. <div class="layui-input-block xm_xcxqTc_tj" >
  61. <button class="layui-btn" lay-submit="" lay-filter="tijiao">提交</button>
  62. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
  63. </div>
  64. </div>
  65. </form>
  66. </div>