edit.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap">
  5. <ul class="nav nav-tabs">
  6. <li><a href="{:url('route/index')}">URL美化</a></li>
  7. <li><a href="{:url('route/add')}">添加URL规则</a></li>
  8. <li class="active"><a>编辑URL规则</a></li>
  9. </ul>
  10. <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('route/editPost')}">
  11. <div class="form-group">
  12. <label for="input-full_url" class="col-sm-2 control-label">原始网址<span class="form-required">*</span></label>
  13. <div class="col-md-6 col-sm-10">
  14. <input type="text" class="form-control" id="input-full_url" name="full_url" value="{$full_url}">
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label for="input-url" class="col-sm-2 control-label">显示网址<span class="form-required">*</span></label>
  19. <div class="col-md-6 col-sm-10">
  20. <input type="text" class="form-control" id="input-url" name="url" value="{$url}">
  21. <p class="help-block"><span id="url-vars"></span> url格式一般为list/:param1/:param2或 list-&lt;param1&gt;-&lt;param2&gt;
  22. </p>
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label for="input-status" class="col-sm-2 control-label">是否启用</label>
  27. <div class="col-md-6 col-sm-10">
  28. <select class="form-control" name="status" id="input-status">
  29. <option value="1">启用</option>
  30. <php>$status_selected=$status?"":"selected";</php>
  31. <option value="0" {$status_selected}>禁用</option>
  32. </select>
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <div class="col-sm-offset-2 col-sm-10">
  37. <input type="hidden" name="id" value="{$id}">
  38. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
  39. <a class="btn btn-default" href="{:url('Route/index')}">返回</a>
  40. </div>
  41. </div>
  42. </form>
  43. </div>
  44. <script type="text/javascript" src="__STATIC__/js/admin.js"></script>
  45. </body>
  46. </html>