tijian_tieying/web/dccdc/Views/Infection/kemuquestionMessage.cshtml
2025-02-20 12:14:39 +08:00

55 lines
1.9 KiB
Plaintext

@{
ViewBag.Title = "kemuMessage";
}
@model dccdc.Models.kemuquestionModel
@section scripts{
<script type="text/javascript">
function success(data) {
if (data.State == "1") {
$.ligerDialog.alert(data.Message,
function() {
window.parent.init();
});
}
}
</script>
}
<div id="edit">
@using (Ajax.BeginForm("kemuquestionMessage", new AjaxOptions { HttpMethod = "Post", OnSuccess = "success" }))
{
@Html.HiddenFor(m => m.id, new { id = "id" })
<table class="t1" style="width: 100%">
<tr>
<td class="ltd" width="100px">问题名称:</td>
<td class="rtd">@Html.TextAreaFor(m => m.title, new { cols = "39", rows = "2" }) @Html.ValidationMessageFor(m => m.title) </td>
</tr>
<tr>
<td class="ltd" width="100px">问题内容:</td>
<td class="rtd">@Html.TextAreaFor(m => m.content, new { cols = "39", rows = "2" }) @Html.ValidationMessageFor(m => m.content) </td>
</tr>
<tr>
<td class="ltd" width="100px">问题答案:</td>
<td class="rtd">@Html.TextBoxFor(m => m.answer, new { @class = "l-text" }) @Html.ValidationMessageFor(m => m.answer) </td>
</tr>
<tr>
<td class="ltd" width="100px">状态:</td>
<td class="rtd">@Html.DropDownListFor(m => m.zt, ViewData["ztD"] as SelectList, "----请选择----")@Html.ValidationMessageFor(m => m.zt)</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" id="submitid" value="提交" class="l-button" />
</div>
</td>
</tr>
</table>
}
</div>