set.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <style>
  5. input{
  6. width:500px;
  7. }
  8. .form-horizontal textarea{
  9. width:500px;
  10. }
  11. .nav-tabs>.current>a{
  12. color: #95a5a6;
  13. cursor: default;
  14. background-color: #fff;
  15. border: 1px solid #ddd;
  16. border-bottom-color: transparent;
  17. }
  18. .nav li
  19. {
  20. cursor:pointer
  21. }
  22. .nav li:hover
  23. {
  24. cursor:pointer
  25. }
  26. .hide{
  27. display:none;
  28. }
  29. </style>
  30. <div class="wrap">
  31. <ul class="nav nav-tabs">
  32. <li class="active"><a >配置</a></li>
  33. <li><a href="{:url('Guide/index')}">管理</a></li>
  34. </ul>
  35. <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Guide/set_post')}">
  36. <div class="js-tabs-content">
  37. <!-- 网站信息 -->
  38. <div>
  39. <fieldset>
  40. <div class="form-group">
  41. <label for="input-banned_usernames" class="col-sm-2 control-label">引导页开关</label>
  42. <div class="col-md-6 col-sm-10">
  43. <select class="form-control" name="post[switch]">
  44. <option value="0">否</option>
  45. <php>
  46. $open_switch_selected = empty($config['switch'])?'':'selected';
  47. </php>
  48. <option value="1" {$open_switch_selected}>是</option>
  49. </select>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label for="input-banned_usernames" class="col-sm-2 control-label">引导页类型</label>
  54. <div class="col-md-6 col-sm-10">
  55. <select class="form-control" name="post[type]">
  56. <option value="0">图片</option>
  57. <php>
  58. $open_type_selected = empty($config['type'])?'':'selected';
  59. </php>
  60. <option value="1" {$open_type_selected}>视频</option>
  61. </select>
  62. </div>
  63. </div>
  64. <php>
  65. $open_type_none = empty($config['type'])?'':"style='display:none'";
  66. </php>
  67. <div class="form-group" {$open_type_none}>
  68. <label for="input-time" class="col-sm-2 control-label">图片展示时间</label>
  69. <div class="col-md-6 col-sm-10">
  70. <input type="text" class="form-control" id="input-time" name="post[time]"
  71. value="{$config.time|default=''}">
  72. </div>
  73. </div>
  74. </fieldset>
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <div class="col-sm-offset-2 col-sm-10">
  79. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
  80. <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
  81. </div>
  82. </div>
  83. </form>
  84. </div>
  85. <script src="__STATIC__/js/admin.js"></script>
  86. </body>
  87. </html>