upload.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a>上传设置</a></li>
  7. </ul>
  8. <form method="post" class="js-ajax-form margin-top-20" role="form" action="{:url('setting/uploadPost')}">
  9. <div class="form-group">
  10. <label>最大同时上传文件数</label>
  11. <div class="row">
  12. <div class="col-md-4">
  13. <input type="text" class="form-control" name="max_files" title="最大同时上传文件数" placeholder="最大同时上传文件数"
  14. value="{$upload_setting.max_files|default=20}">
  15. </div>
  16. <div class="col-md-4">
  17. </div>
  18. </div>
  19. <p class="help-block">多文件上传时,用户能最大同时上传文件数,默认20个</p>
  20. </div>
  21. <div class="form-group">
  22. <label>文件分块上传分块大小</label>
  23. <div class="row">
  24. <div class="col-md-4">
  25. <input type="text" class="form-control" name="chunk_size" title="文件分块上传分块大小KB,1M=1024KB"
  26. placeholder="文件分块上传分块大小KB,1M=1024KB" value="{$upload_setting.chunk_size|default=512}">
  27. </div>
  28. <div class="col-md-4">
  29. </div>
  30. </div>
  31. <p class="help-block">文件上传采用分块上传,文件分块大小默认512KB,可以根据服务器最大上传限制设置此数值</p>
  32. </div>
  33. <div class="form-group">
  34. <label>图片文件</label>
  35. <div class="row">
  36. <div class="col-md-4">
  37. <input type="text" class="form-control" name="file_types[image][upload_max_filesize]"
  38. title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB"
  39. value="{$upload_setting.file_types.image.upload_max_filesize|default=10240}">
  40. </div>
  41. <div class="col-md-4">
  42. <input type="text" class="form-control"
  43. name="file_types[image][extensions]"
  44. title="扩展名,以英文逗号分隔"
  45. placeholder="扩展名,以英文逗号分隔"
  46. value="{$upload_setting.file_types.image.extensions|default='jpg,jpeg,png,gif,bmp'}">
  47. </div>
  48. </div>
  49. <p class="help-block">允许上传大小默认为10240KB,1M=1024KB,允许上传格式默认为jpg,jpeg,png,gif,bmp</p>
  50. </div>
  51. <div class="form-group">
  52. <label>视频文件</label>
  53. <div class="row">
  54. <div class="col-md-4">
  55. <input type="text" class="form-control"
  56. name="file_types[video][upload_max_filesize]"
  57. title="允许上传大小KB,1M=1024KB"
  58. placeholder="允许上传大小KB,1M=1024KB"
  59. value="{$upload_setting.file_types.video.upload_max_filesize|default=10240}">
  60. </div>
  61. <div class="col-md-4">
  62. <input type="text" class="form-control"
  63. name="file_types[video][extensions]"
  64. title="扩展名,以英文逗号分隔"
  65. placeholder="扩展名,以英文逗号分隔"
  66. value="{$upload_setting.file_types.video.extensions|default='mp4,avi,wmv,rm,rmvb,mkv'}">
  67. </div>
  68. </div>
  69. <p class="help-block">允许上传大小默认为102400KB,1M=1024KB,允许上传格式默认为mp4,avi,wmv,rm,rmvb,mkv</p>
  70. </div>
  71. <div class="form-group">
  72. <label>音频文件</label>
  73. <div class="row">
  74. <div class="col-md-4">
  75. <input type="text" class="form-control"
  76. name="file_types[audio][upload_max_filesize]"
  77. title="允许上传大小KB,1M=1024KB"
  78. placeholder="允许上传大小KB,1M=1024KB"
  79. value="{$upload_setting.file_types.audio.upload_max_filesize|default=10240}">
  80. </div>
  81. <div class="col-md-4">
  82. <input type="text" class="form-control"
  83. name="file_types[audio][extensions]"
  84. title="扩展名,以英文逗号分隔"
  85. placeholder="扩展名,以英文逗号分隔"
  86. value="{$upload_setting.file_types.audio.extensions|default='mp3,wma,wav'}">
  87. </div>
  88. </div>
  89. <p class="help-block">允许上传大小默认为10240KB,1M=1024KB,允许上传格式默认为mp3,wma,wav</p>
  90. </div>
  91. <div class="form-group">
  92. <label>附件</label>
  93. <div class="row">
  94. <div class="col-md-4">
  95. <input type="text" class="form-control" name="file_types[file][upload_max_filesize]"
  96. title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB"
  97. value="{$upload_setting.file_types.file.upload_max_filesize|default=10240}">
  98. </div>
  99. <div class="col-md-4">
  100. <input type="text" class="form-control"
  101. name="file_types[file][extensions]"
  102. title="扩展名,以英文逗号分隔"
  103. placeholder="扩展名,以英文逗号分隔"
  104. value="{$upload_setting.file_types.file.extensions|default='txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar'}">
  105. </div>
  106. </div>
  107. <p class="help-block">
  108. 允许上传大小默认为10240KB,1M=1024KB,允许上传格式默认为除以上文档类型以外的其它常用文件,如:txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar</p>
  109. </div>
  110. <div class="form-group">
  111. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
  112. </div>
  113. </form>
  114. </div>
  115. <script src="__STATIC__/js/admin.js"></script>
  116. </body>
  117. </html>