newdir.htm 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. {include file="filemanager/bar" /}
  8. <form class="form-horizontal" id="post_form" action="{:url('Filemanager/newdir')}" method="post">
  9. <div class="ncap-form-default">
  10. <dl class="row">
  11. <dt class="tit">当前目录</dt>
  12. <dd class="opt">
  13. {$info['activepathname']|default=''}
  14. <input type="hidden" name="activepath" value="{$info['activepath']|default=''}">
  15. <span class="err"></span>
  16. <p class="notic"></p>
  17. </dd>
  18. </dl>
  19. <dl class="row">
  20. <dt class="tit">
  21. <label for="url">新目录</label>
  22. </dt>
  23. <dd class="opt">
  24. <input type="text" name="newpath" value="" id="newpath" class="input-txt">
  25. <span class="err"></span>
  26. <p class="notic"></p>
  27. </dd>
  28. </dl>
  29. <div class="bot"><a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a></div>
  30. </div>
  31. </form>
  32. </div>
  33. <script type="text/javascript">
  34. // 判断输入框是否为空
  35. function checkForm(){
  36. if($.trim($('input[name=newpath]').val()) == ''){
  37. showErrorMsg('新目录不能为空!');
  38. $('input[name=newpath]').focus();
  39. return false;
  40. }
  41. layer_loading('正在处理');
  42. $('#post_form').submit();
  43. }
  44. </script>
  45. {include file="public/footer" /}