123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- @model EMISOnline.ViewModel.ExamView.QuestionSettingView
- @using EMISOnline.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "ExamAdd";
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;
- overflow: auto;">
- @Html.Position()
- <div class="p_SearchTitle">
- </div>
- <div class="p_title">
- <div style="float: left; margin-left: 10px; color: #333; line-height: 35px; font-size: 12px;">
- 题库信息</div>
- <div style="margin-right: 10px; float: right; line-height: 30px; font-size: 12px;">
- @Html.Button(new ButtonOptions() { ID = "btnSave", Text = "保 存" })
- </div>
- </div>
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete",
- }))
- {
- @Html.Hidden("question_provid_answer")
- @Html.Hidden("ipt_entry")
- @Html.Hidden("txt_libary")
- @Html.HiddenFor(x=>x.test_question_Id)
- <div class="search_list">
- <table cellpadding="0" cellspacing="0" id="Coursematerialtable">
- <tr>
- <th>@Html.LabelFor(x => x.base_question_type_id):
- </th>
- <td>
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SubjectMgr/GetQuestionType"), SelectedValue=Model.base_question_type_id, OnChange = "showQuestionOption", TextField = "Name", ValueField = "base_question_type_id", ID = "QuestionType", Name = "QuestionType" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.content):
- </th>
- <td>
- 填写答案的地方请用“【__________】”表示(限字数为1000)
- @Html.TextAreaFor(x => x.content, new Dictionary<string, object> { { "style", "width:80%" } })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.question_file_id):
- </th>
- <td>
- <a href="javascript:void(0);" id="btnPackerLib">选择</a>
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.answers):
- </th>
- <td class="trOption">
- <div id="divSingle" style="display: none">
- <table class="gridview" cellspacing="0" rules="all" border="0" id="tbSingle" style="border-width: 0px;
- border-collapse: collapse; text-align: center">
- <tr align="center">
- <th scope="col">
- 选项内容
- </th>
- <th align="center" scope="col" style="width: 80px;">
- 正确答案
- </th>
- <th scope="col" style="width: 160px; text-align: center;">
- 选项图片
- </th>
- <th scope="col" style="width: 40px;">
- 操作
- </th>
- </tr>
- <tr id="trSingle">
- <td align="right" colspan="4">
- <input type="button" id="btnSingleAdd" value="新增答案" class="button70" onclick="AddSingleRowHandler()" />
- </td>
- </tr>
- </table>
- </div>
- <div id="divMultiple" style="display: none">
- <table class="gridview" cellspacing="0" rules="all" border="0" id="tbMultiple" style="border-width: 0px;
- border-collapse: collapse; text-align: center;">
- <tr align="center">
- <th scope="col">
- 选项内容
- </th>
- <th align="center" scope="col" style="width: 80px;">
- 正确答案
- </th>
- <th scope="col" style="width: 160px;">
- 选项图片
- </th>
- <th scope="col" style="width: 40px;">
- 操作
- </th>
- </tr>
- <tr id="trMultiple">
- <td align="right" colspan="4">
- <input type="button" id="Button1" value="新增答案" class="button70" onclick="AddMultipleRowHandler()" />
- </td>
- </tr>
- </table>
- </div>
- <div id="divFill" style="display: none">
- <table class="gridview" cellspacing="0" rules="all" border="0" id="tbFill" style="border-width: 0px;
- border-collapse: collapse;">
- <tr align="center">
- <th style="width: 300px;">
- 选项内容
- </th>
- <th style="width: 160px;">
- 选项图片
- </th>
- <th style="width: 40px;">
- 操作
- </th>
- </tr>
- <tr id="trFill">
- <td align="right" colspan="3">
- <input type="button" id="btnFill" value="新增答案" class="button70" onclick="AddFillRowHandler()" />
- </td>
- </tr>
- </table>
- </div>
- <div id="divJudge" style="display: none">
- <input type="radio" name="rdJudgeOption" value="正确" checked="checked" />正确
- <input type="radio" name="rdJudgeOption" value="错误" />错误
- </div>
- <div id="divShort" style="display: none">
- <input id="iptAnswerID" type="hidden" />
- <textarea rows="5" name="txtShortAnswer" class="input" style="width: 81.2%; height: 100px;"></textarea>
- </div>
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.difficulty_degree):
- </th>
- <td>
- @Html.DropdownListFor(q => q.difficulty_degree, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SubjectMgr/GetDrpDifficulty"), TextField = "name", ValueField = "name", ID = "difficulty_degree", Name = "difficulty_degree" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.score):
- </th>
- <td>
- @Html.TextBoxFor(model => model.score, new TextBoxOptions() { TextBoxType = TextBoxType.Normal })
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.is_vaild):
- </th>
- <td>
- @Html.RadioButtonFor(model => model.is_vaild, "true", new { @value = "true", @checked = "checked", })<label>启用</label>
- @Html.RadioButtonFor(model => model.is_vaild, "false", new { @value = "false", })<label>停用</label>
- </td>
- </tr>
- <tr>
- <th>@Html.LabelFor(x => x.note):
- </th>
- <td>
- @Html.TextAreaFor(x => x.note, new Dictionary<string, object> { { "style", "width:80%" } })
- </td>
- </tr>
- </table>
- </div>
- }
- <div id="optionTpl">
- <table style="display: none">
- <tr align="center" id="trSingleTpl">
- <td scope="col">
- <textarea rows="4" name="txtContext" class="input" style="width: 300px;"></textarea>
- </td>
- <td align="center" scope="col" style="width: 80px;">
- <input type="radio" id="rdIsRight" name="rdIsRight" />
- </td>
- <td scope="col">
- <a href="javascript:void(0);" onclick="UploadFileBefore(this);" id="singleUpload"
- class="singleUpload">上传</a>
- <input id="iptSingleFile" type="hidden" />
- </td>
- <td scope="col" style="width: 40px;">
- <input id="iptAnswerID" type="hidden" />
-
- <a href="javascript:void(0);" onclick="delRow(this)">删除</a>
- </td>
- </tr>
- </table>
- <table style="display: none">
- <tr align="center" id="trMultipleTpl">
- <td scope="col">
- <textarea rows="4" name="txtContext" class="input" style="width: 300px;"></textarea>
- </td>
- <td align="center" scope="col" style="width: 80px;">
- <input type="checkbox" id="ckbIsRight" />
- </td>
- <td scope="col">
- <a href="javascript:void(0);" onclick="UploadFileBefore(this);" id="singleUpload"
- class="singleUpload">上传</a>
- <input id="iptSingleFile" type="hidden" />
- </td>
- <td scope="col" style="width: 40px;">
- <input id="iptAnswerID" type="hidden" />
- <a href="javascript:void(0);" onclick="delRow(this)">删除</a>
- </td>
- </tr>
- </table>
- <table style="display: none">
- <tr align="center" id="trFillTpl">
- <td scope="col">
- <textarea rows="2" name="txtContext" class="input" style="width: 300px;"></textarea>
- </td>
- <td scope="col">
- <a href="javascript:void(0);" onclick="UploadFileBefore(this);" id="fillUpload" class="singleUpload">
- 上传</a>
- <input id="iptSingleFile" type="hidden" />
- </td>
- <td scope="col" style="width: 40px;">
- <input id="iptAnswerID" type="hidden" />
- <a href="javascript:void(0);" onclick="delRow(this)">删除</a>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <div id="dialog">
- </div>
- @section scripts{
- <script src="~/Scripts/Bowin.Control.Core/Controls/Selector.js" type="text/javascript"></script>
- <script src="~/Scripts/Examinee/page.question.js" type="text/javascript"></script>
- <script type="text/jscript">
- $(function () {
- var entryJS = @Html.Raw(ViewBag.entryJS);
- if(entryJS!=undefined){
- var queLogic= new question(entryJS);
- queLogic.setEntry();
- }
- })
- </script>
- }
|