Нема описа
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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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/upload')}" method="post" enctype="multipart/form-data">
  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. {volist name="$info.uploadlist" id="vo"}
  20. <dl class="row">
  21. <dt class="tit">
  22. <label for="url">上传文件{$vo}</label>
  23. </dt>
  24. <dd class="opt">
  25. <input type="file" name="upfile[]" value="" class="input-txt">
  26. <span class="err"></span>
  27. <p class="notic"></p>
  28. </dd>
  29. </dl>
  30. {/volist}
  31. <div class="bot"><a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a></div>
  32. </div>
  33. </form>
  34. </div>
  35. <script type="text/javascript">
  36. // 判断输入框是否为空
  37. function checkForm(){
  38. var isempty = true;
  39. $.each($('input[name^=upfile]'), function(index, item){
  40. if ($.trim($(item).val()) != '' && $(item).val() != undefined && $(item).val() != null) {
  41. isempty = false;
  42. }
  43. })
  44. if(isempty == true){
  45. showErrorMsg('请选择上传文件!');
  46. return false;
  47. }
  48. layer_loading('正在处理');
  49. $('#post_form').submit();
  50. }
  51. </script>
  52. {include file="public/footer" /}