| | |
| | | { |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label"></label> |
| | | <div class="col-sm-2 col-md-2" style="width:4%;"> |
| | | @*<div class="col-sm-2 col-md-2" style="width:4%;"> |
| | | <input class="form-control" style="text-align:left;border:none;" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicanwserDTOs[i].Anwserno" readonly="readonly"> |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label> |
| | | </div>*@ |
| | | <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">@expertTestTopicanwserDTOs[i].Anwserno、</label> |
| | | <div class="col-sm-6 col-md-6" name="Anwser2"> |
| | | <input class="form-control" label="答案" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="@expertTestTopicanwserDTOs[i].Anwser"> |
| | | |
| | | <input type="hidden" name="anwserno" value="@expertTestTopicanwserDTOs[i].Anwserno" /> |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label"> |
| | |
| | | } |
| | | } |
| | | |
| | | if (booll < 1) { |
| | | toastr.warning("多单选至少有一个正确答案"); |
| | | if (booll <= 1) { |
| | | toastr.warning("多单选至少有两个正确答案"); |
| | | return; |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | if (booll < 1) { |
| | | toastr.warning("多单选至少有一个正确答案"); |
| | | if (booll <= 1) { |
| | | toastr.warning("多单选至少有两个正确答案"); |
| | | return; |
| | | } |
| | | } |
| | |
| | | </div>`); |
| | | } else if (num == 2) { |
| | | $('#addlist_2').append(oTr); |
| | | $(oTr).html(` <div class="fatiaomeirong" > |
| | | $(oTr).html(` <div class="fatiaomeirong" > |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label"> |
| | |
| | | $('#addlist_3').html(` |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label"></label> |
| | | <div class="col-sm-2 col-md-2" style="width:4%;"> |
| | | <input class="form-control" style="text-align:left;border:none;" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="A" readonly="readonly"> |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">A、</label> |
| | | <div class="col-sm-6 col-md-6" name="Anwser2"> |
| | | <input class="form-control" label="答案" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value=""> |
| | | |
| | | <input type="hidden" name="anwserno" value="A" /> |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label"> |
| | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label"></label> |
| | | <div class="col-sm-2 col-md-2" style="width:4%;"> |
| | | <input class="form-control" style="text-align:left;border:none;" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="B" readonly="readonly"> |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">B、</label> |
| | | <div class="col-sm-6 col-md-6" name="Anwser2"> |
| | | <input class="form-control" label="答案" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value=""> |
| | | |
| | | <input type="hidden" name="anwserno" value="B" /> |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label"> |
| | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label"></label> |
| | | <div class="col-sm-2 col-md-2" style="width:4%;"> |
| | | <input class="form-control" style="text-align:left;border:none;" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="C" readonly="readonly"> |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">C、</label> |
| | | <div class="col-sm-6 col-md-6" name="Anwser2"> |
| | | <input class="form-control" label="答案" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value=""> |
| | | |
| | | <input type="hidden" name="anwserno" value="C" /> |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label"> |
| | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label"></label> |
| | | <div class="col-sm-2 col-md-2" style="width:4%;"> |
| | | <input class="form-control" style="text-align:left;border:none;" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="D" readonly="readonly"> |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">D、</label> |
| | | <div class="col-sm-6 col-md-6" name="Anwser2"> |
| | | <input class="form-control" label="答案" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value=""> |
| | | |
| | | <input type="hidden" name="anwserno" value="D" /> |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label"> |
| | |
| | | } |
| | | } |
| | | function checkFlag(vi) { |
| | | if ($("#Topictype").val() == "01" || $("#Topictype").val() == "03") { |
| | | //if ($("#Topictype").val() == "01" || $("#Topictype").val() == "03") { |
| | | if (vi.checked) { |
| | | var ssssss = document.getElementsByName("FlagName"); |
| | | for (var i = 0; i < ssssss.length; i++) { |
| | |
| | | } |
| | | vi.checked = true; |
| | | } |
| | | } |
| | | //} |
| | | } |
| | | |
| | | </script> |