GraduatePicImport.cshtml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "GraduationPicImport";
  5. }
  6. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  7. @using (Html.BeginForm("GraduationPicImport", "Students", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
  8. {
  9. <div class="p_title">
  10. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  11. 照片导入</div>
  12. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("GraduationImport")</div>
  13. </div>
  14. <div class="search_list">
  15. <table cellpadding="0" cellspacing="1">
  16. <tr>
  17. <td>
  18. <label>
  19. 导入文件:</label>
  20. </td>
  21. <td>
  22. <input type="file" name="file" accept="*.zip;*.rar;" value=" " />
  23. </td>
  24. </tr>
  25. <tr>
  26. <td colspan="2" style="text-align: center; color: Red;">
  27. 注:相片以身份证号命名(支持jpg格式的图片),并且使用zip或rar压缩进行上传。
  28. </td>
  29. </tr>
  30. </table>
  31. </div>
  32. }
  33. </div>
  34. <script>
  35. function Student_EditImport() {
  36. var filepath = $("input[name='file']").val();
  37. if (filepath == "") {
  38. $.messager.alert("系统提示", "请选择你要上传的文件。");
  39. return;
  40. }
  41. $(document.forms[0]).submitWithLoading();
  42. }
  43. </script>