|
@@ -1,11 +1,13 @@
|
|
|
@using MySystem.Models;
|
|
@using MySystem.Models;
|
|
|
|
|
+@using MySystem.BsModels;
|
|
|
@{
|
|
@{
|
|
|
- SchoolMakerStudy editData = ViewBag.data as SchoolMakerStudy;
|
|
|
|
|
|
|
+ MySystem.Models.SchoolMakerStudy editData = ViewBag.data as MySystem.Models.SchoolMakerStudy;
|
|
|
|
|
+ MySystem.BsModels.Col editDatas = ViewBag.data as MySystem.BsModels.Col;
|
|
|
}
|
|
}
|
|
|
@{
|
|
@{
|
|
|
string RightInfo = ViewBag.RightInfo as string;
|
|
string RightInfo = ViewBag.RightInfo as string;
|
|
|
string right = ViewBag.right as string;
|
|
string right = ViewBag.right as string;
|
|
|
-
|
|
|
|
|
|
|
+ string CurColId = ViewBag.CurColId as string;
|
|
|
}
|
|
}
|
|
|
<!DOCTYPE html>
|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
<html>
|
|
@@ -35,6 +37,30 @@
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="layui-tab-content mt20">
|
|
<div class="layui-tab-content mt20">
|
|
|
<div class="layui-tab-item layui-show">
|
|
<div class="layui-tab-item layui-show">
|
|
|
|
|
+ <div class="layui-form-item">
|
|
|
|
|
+ <div class="layui-inline">
|
|
|
|
|
+ <label class="layui-form-label">上级栏目</label>
|
|
|
|
|
+ <div class="layui-input-inline">
|
|
|
|
|
+ <select id="PColId" name="PColId" lay-search="" lay-verify="required">
|
|
|
|
|
+ <option value="@CurColId">作为顶级栏目</option>
|
|
|
|
|
+ @{
|
|
|
|
|
+ List<MySystem.BsModels.Col> ColId = new MySystem.BsModels.WebCMSEntities().Col.Where(m => m.ColId.StartsWith(CurColId)).OrderBy(m
|
|
|
|
|
+ => m.ColId).ToList();
|
|
|
|
|
+ }
|
|
|
|
|
+ @foreach (MySystem.BsModels.Col subColId in ColId)
|
|
|
|
|
+ {
|
|
|
|
|
+ string kg = "";
|
|
|
|
|
+ for (int i = 1; i < subColId.ColId.Length / 3; i++)
|
|
|
|
|
+ {
|
|
|
|
|
+ kg += " ";
|
|
|
|
|
+ }
|
|
|
|
|
+ <option value="@subColId.ColId">@(kg+subColId.ColName)</option>
|
|
|
|
|
+ }
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <script>$("#PColId").val("@ViewBag.PColId");</script>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
<div class="layui-form-item">
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">标题</label>
|
|
<label class="layui-form-label">标题</label>
|
|
|
<div class="layui-input-inline">
|
|
<div class="layui-input-inline">
|
|
@@ -72,8 +98,7 @@
|
|
|
<div class="layui-upload">
|
|
<div class="layui-upload">
|
|
|
<input type="hidden" id="ListPic" name="ListPic" value="@editData.ListPic">
|
|
<input type="hidden" id="ListPic" name="ListPic" value="@editData.ListPic">
|
|
|
<button class="layui-btn" type="button" id="ListPicBtn">选择图片</button>
|
|
<button class="layui-btn" type="button" id="ListPicBtn">选择图片</button>
|
|
|
- <div class="layui-inline layui-word-aux">@(new
|
|
|
|
|
- MySystem.PublicFunction().GetUploadHint("SchoolMakerStudyListPic"))</div>
|
|
|
|
|
|
|
+ <div class="layui-inline layui-word-aux">@(new MySystem.PublicFunction().GetUploadHint("SchoolMakerStudyListPic"))</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div style="margin-top:10px;" id="ListPicImage">
|
|
<div style="margin-top:10px;" id="ListPicImage">
|
|
|
@if (!string.IsNullOrEmpty(editData.ListPic))
|
|
@if (!string.IsNullOrEmpty(editData.ListPic))
|