MyOAExx/Views/System/Addnote.cshtml
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
ViewBag.Title = "Noet";
Layout = "~/Views/_Master.cshtml";
}
@using OA.BLL;
@using OA.Models;
@{
MyNote mynote = ViewData["mynote"] as MyNote;
}
<script type="text/javascript">
function AddNote() {
if (document.getElementById("Title").value == "") {
alert("标题不能为空");
return false;
}
if (document.getElementById("value").value == "") {
alert("内容不能为空");
return false;
}
return true;
}
function EditNote() {
if (document.getElementById("Title1").value == "") {
alert("标题不能为空");
return false;
}
if (document.getElementById("value1").value == "") {
alert("内容不能为空");
return false;
}
return true;
}
</script>
<h1><img src="/Images//img/icons/posts.png" alt="" />我的便签</h1>
@if (mynote == null)
{
<div class="bloc">
<div class="title">新增便签</div>
<div class="content">
@using (Html.BeginForm("Addnote", "System", FormMethod.Post, new { onsubmit = "return AddNote();" }))
{
<label for="input1">标题:</label>
<input type="text" id="Title" name="Title" style="width:200px;" />
<label for="input1">内容:</label>
@*<input type="text" name="Content" style="grid-rows:6;grid-column-span:8; width:400px; height:200px;" />*@
<div class="input textarea">
<textarea name="Content" id="value" rows="7" cols="4"></textarea>
</div>
<div class="submit">
<input type="submit" value="添加便签" />
<a href="/System/Note" class="button" style=" margin-top:100px;">返回</a>
</div>
}
后面还有 24 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。