131 lines
6.4 KiB
Plaintext
131 lines
6.4 KiB
Plaintext
@model List<JXCMS.CMS.Movie.Entity.MovieEntity>
|
|
|
|
@{
|
|
Layout = "_Layout";
|
|
}
|
|
|
|
<div class="container-fluid p-t-15">
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-toolbar clearfix">
|
|
<form class="pull-right search-bar" method="get" action="#!" role="form">
|
|
<div class="input-group">
|
|
<div class="input-group-btn">
|
|
<input type="hidden" name="search_field" id="search-field" value="title">
|
|
<button class="btn btn-default dropdown-toggle" id="search-btn" data-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
标题 <span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<a tabindex="-1" href="javascript:void(0)" data-field="title">标题</a>
|
|
</li>
|
|
<li>
|
|
<a tabindex="-1" href="javascript:void(0)" data-field="cat_name">栏目</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<input type="text" class="form-control" value="" name="keyword" placeholder="请输入名称">
|
|
</div>
|
|
</form>
|
|
<div class="toolbar-btn-action">
|
|
<a class="btn btn-primary m-r-5" href="#!"><i class="mdi mdi-plus"></i> 新增</a>
|
|
<a class="btn btn-success m-r-5" href="#!"><i class="mdi mdi-check"></i> 显示</a>
|
|
<a class="btn btn-warning m-r-5" href="#!"><i class="mdi mdi-block-helper"></i> 隐藏</a>
|
|
<a class="btn btn-danger" href="#!"><i class="mdi mdi-window-close"></i> 删除</a>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<label class="lyear-checkbox checkbox-primary">
|
|
<input type="checkbox" id="check-all"><span></span>
|
|
</label>
|
|
</th>
|
|
<th>名称</th>
|
|
<th>导演</th>
|
|
<th>年份</th>
|
|
<th>语种</th>
|
|
<th>分类</th>
|
|
<th>状态</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var movieEntity in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
<label class="lyear-checkbox checkbox-primary">
|
|
<input type="checkbox" name="ids[]" value="1"><span></span>
|
|
</label>
|
|
</td>
|
|
<td>@movieEntity.Name</td>
|
|
<td>@movieEntity.DirectorEntity.DirectorName</td>
|
|
<td>@movieEntity.Year</td>
|
|
<td>@movieEntity.Lang</td>
|
|
<td>@movieEntity.ClassifyEntity.Name</td>
|
|
<td>
|
|
<font class="text-success">@(movieEntity.IsEnable ? "正常" : "已隐藏")</font>
|
|
</td>
|
|
<td>
|
|
<div class="btn-group">
|
|
<a class="btn btn-xs btn-default" href="#!" title="编辑" data-toggle="tooltip">
|
|
<i class="mdi mdi-pencil"></i>
|
|
</a>
|
|
<a class="btn btn-xs btn-default" href="#!" title="删除" data-toggle="tooltip">
|
|
<i class="mdi mdi-window-close"></i>
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<ul class="pagination">
|
|
@if (ViewBag.pageNumber != 1)
|
|
{
|
|
<li>
|
|
<a href="@Url.Action("Index", "Collection")"><<</a>
|
|
</li>
|
|
}
|
|
@for (int i = ViewBag.pageNumber - 3; i < ViewBag.pageNumber + 3; i++)
|
|
{
|
|
if (i < 1 || i > ViewBag.totlePage)
|
|
{
|
|
continue;
|
|
}
|
|
if (i == ViewBag.pageNumber)
|
|
{
|
|
<li class="active">
|
|
<span>@i</span>
|
|
</li>
|
|
}
|
|
else
|
|
{
|
|
<li>
|
|
<a href="@Url.Action("Index", "Collection", new {pageNumber = i})">@i</a>
|
|
</li>
|
|
}
|
|
}
|
|
@if (ViewBag.pageNumber < ViewBag.totlePage)
|
|
{
|
|
<li>
|
|
<a href="@Url.Action("Index", "Collection", new {pageNumber = ViewBag.totlePage})">>></a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> |