Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

edit.htm 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {include file="public/layout" /}
  2. <body class="bodystyle">
  3. <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
  4. <div id="append_parent"></div>
  5. <div id="ajaxwaitid"></div>
  6. <div class="page">
  7. <form class="form-horizontal" id="post_form" action="{:U('LinksGroup/edit')}" method="post">
  8. <input type="hidden" name="id" value="{$info.id}">
  9. <div class="ncap-form-default">
  10. <dl class="row">
  11. <dt class="tit">
  12. <label for="group_name"><em>*</em>分组名称</label>
  13. </dt>
  14. <dd class="opt">
  15. <input type="text" name="group_name" value="{$info.group_name|default=''}" id="group_name" class="input-txt">
  16. <span class="err"></span>
  17. <p class="notic"></p>
  18. </dd>
  19. </dl>
  20. <dl class="row">
  21. <dt class="tit">
  22. <label for="sort_order">排序</label>
  23. </dt>
  24. <dd class="opt">
  25. <input type="text" name="sort_order" value="{$info.sort_order|default='100'}" id="sort_order" class="input-txt">
  26. <span class="err"></span>
  27. <p class="notic">越小越靠前</p>
  28. </dd>
  29. </dl>
  30. <div class="bot"><a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a></div>
  31. </div>
  32. </form>
  33. </div>
  34. <script type="text/javascript">
  35. // 判断输入框是否为空
  36. function checkForm(){
  37. if($('input[name=group_name]').val() == ''){
  38. showErrorMsg('分组名称不能为空!');
  39. $('input[name=group_name]').focus();
  40. return false;
  41. }
  42. layer_loading('正在处理');
  43. $('#post_form').submit();
  44. }
  45. </script>
  46. {include file="public/footer" /}