PracticeSetting.cshtml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMISOnline.Entities;
  3. @using EMISOnline.Web.Controls;
  4. @{
  5. ViewBag.Title = "PracticeSetting";
  6. }
  7. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  8. @Html.Position()
  9. <div class="p_SearchTitle">
  10. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  11. 查询条件</div>
  12. </div>
  13. @using (Ajax.BeginForm(new AjaxOptions
  14. {
  15. OnSuccess = "EMISFunction.FormSuccess",
  16. OnBegin = "EMISFunction.FormSubmit",
  17. OnComplete = "EMISFunction.FormComplete",
  18. }))
  19. {
  20. <div class="search_list">
  21. <table cellpadding="0" cellspacing="0">
  22. <tr>
  23. <th colspan="2" align="left">
  24. 选择题型:
  25. </th>
  26. </tr>
  27. <tr>
  28. <td colspan="2">
  29. @Html.CheckList(new ListControlOptions()
  30. {
  31. ItemSourceUrl = Url.Content("~/Practice/ListAllQuestionType"),
  32. Name = "cklType",
  33. ID = "cklType",
  34. TextName = "Name",
  35. TextField = "Name",
  36. ValueField = "base_question_type_id",
  37. ColumnCount = 5
  38. })
  39. </td>
  40. </tr>
  41. <tr>
  42. <th align="left">
  43. 设置数量:
  44. </th>
  45. <th>
  46. @Html.TextBox(new TextBoxOptions() { TextBoxType = TextBoxType.Normal, ID = "txtNum", Name="txtNum" ,IsRequired=true })
  47. </th>
  48. </tr>
  49. <tr>
  50. <th align="left">
  51. 练习全部:
  52. </th>
  53. <th>
  54. @Html.CheckBox("ckbAll", false, new { @id = "ckbAll", @value = "true", @name = "rand_test_point_type" })
  55. <span style="color: #C0A8A0; font-weight: normal;">提示:练习全部可保存做题记录,供下次继续做题。</span>
  56. </th>
  57. </tr>
  58. <tr>
  59. <td align="center" colspan="3">
  60. @if (ViewBag.ShowRecordButton)
  61. { <a id="lkbPrev" href="javascript:">进入上一次练习</a>}
  62. @Html.Button(new ButtonOptions() { ID = "btnSave", Text = "进入练习" })
  63. </td>
  64. </tr>
  65. </table>
  66. </div>
  67. }
  68. </div>
  69. @section scripts{
  70. <script type="text/jscript">
  71. $(function () {
  72. $('#btnSave').click(function () {
  73. $(document.forms[0]).submit();
  74. })
  75. $('#lkbPrev').click(function () {
  76. location.href = "@Url.Content("~/Practice/PracticeView")?QuestionIndex=@(ViewBag.QuestionIndex)";
  77. })
  78. })
  79. </script>
  80. }