84 lines
3.5 KiB
Plaintext
84 lines
3.5 KiB
Plaintext
|
|
@{
|
|
/**/
|
|
|
|
ViewBag.Title = "kemuMessage";
|
|
}
|
|
|
|
@model dccdc.Models.dicsModel
|
|
|
|
@section scripts{
|
|
<script type="text/javascript" src="@Url.Content("~/ueditor/ueditor.config.js")" charset="gb2312"></script>
|
|
<script type="text/javascript" src="@Url.Content("~/ueditor/ueditor.all.js")" charset="gb2312"></script>
|
|
<script type="text/javascript">
|
|
function success(data) {
|
|
if (data.State == "1") {
|
|
$.ligerDialog.alert(data.Message,
|
|
function () {
|
|
window.parent.init();
|
|
});
|
|
}
|
|
}
|
|
var editor;
|
|
$(function () {
|
|
editor = UE.getEditor("value", {
|
|
autoHeightEnabled: false, initialFrameHeight: 200, initialFrameWidth: "98%",
|
|
toolbars: [[
|
|
'toggletool', 'fullscreen', 'source', '|', 'undo', 'redo', '|',
|
|
'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
|
|
'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
|
|
'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
|
|
'directionalityltr', 'directionalityrtl', 'indent', '|',
|
|
'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|'
|
|
]],
|
|
//关闭字数统计
|
|
//wordCount: false,
|
|
//关闭elementPath
|
|
//elementPathEnabled: false,
|
|
});
|
|
})
|
|
</script>
|
|
}
|
|
|
|
<div id="edit">
|
|
@using (Ajax.BeginForm("dicsMessage", 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.TextBoxFor(m => m.key, new { @class = "l-text" }) @Html.ValidationMessageFor(m => m.key) </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">值:</td>
|
|
<td class="rtd">
|
|
@*@Html.TextBoxFor(m => m.value, new { @class = "l-text" }) @Html.ValidationMessageFor(m => m.value)*@
|
|
<script type="text/plain" id="value">
|
|
@if (Model != null)
|
|
{
|
|
var h = new HtmlString(Model.value);
|
|
@h;
|
|
}
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">备注:</td>
|
|
<td class="rtd">@Html.TextBoxFor(m => m.remark, new { @class = "l-text" }) @Html.ValidationMessageFor(m => m.remark) </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">状态:</td>
|
|
<td class="rtd">@Html.DropDownListFor(m => m.zt, ViewData["ztD"] as SelectList, "----请选择----", new { @class = "l-text" })@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>
|