JXMovies/CMS/JXCMS.CMS.Movie/Admin/Views/Collection/Index.cshtml
2020-02-09 22:43:16 +08:00

175 lines
7.8 KiB
Plaintext

@using JXCMS.CMS.Movie.Entity
<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 href="@Url.Action("WebSiteDialog", "Collection", new {id=0})" class="btn btn-primary m-r-5" id="new" data-toggle="modal" data-target="#exampleModal"><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>网站url</th>
<th>采集cron</th>
<th>状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
@foreach (WebSiteEntity webSiteEntity in ViewBag.website)
{
<tr>
<td>
<label class="lyear-checkbox checkbox-primary">
<input type="checkbox" name="ids[]" value="1"><span></span>
</label>
</td>
<td>@webSiteEntity.WebSiteName</td>
<td>@webSiteEntity.ApiUrl</td>
<td>@webSiteEntity.Cron</td>
<td>
<span class="text-success">@(webSiteEntity.IsEnable ? "正常": "已禁用")</span>
</td>
<td>
<div class="btn-group">
<a class="btn btn-xs btn-default" href="@Url.Action("WebSiteDialog", "Collection", new {id = webSiteEntity.Id})" title="编辑" data-toggle="modal" data-target="#exampleModal">
<i class="mdi mdi-pencil"></i>
</a>
<a class="btn btn-xs btn-default" href="#!" title="删除" onclick="delWebsite(@webSiteEntity.Id)">
<i class="mdi mdi-window-close"></i>
</a>
</div>
</td>
</tr>
}
</tbody>
</table>
</div>
<ul class="pagination">
<li class="disabled">
<span>«</span>
</li>
<li class="active">
<span>1</span>
</li>
<li>
<a href="#1">2</a>
</li>
<li>
<a href="#1">3</a>
</li>
<li>
<a href="#1">4</a>
</li>
<li>
<a href="#1">5</a>
</li>
<li>
<a href="#1">6</a>
</li>
<li>
<a href="#1">7</a>
</li>
<li>
<a href="#1">8</a>
</li>
<li class="disabled">
<span>...</span>
</li>
<li>
<a href="#!">14452</a>
</li>
<li>
<a href="#!">14453</a>
</li>
<li>
<a href="#!">»</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
正在加载,请稍后...
</div>
</div>
</div>
</div>
@section style
{
<link rel="stylesheet" href="@Url.ContentAdmin("js/jconfirm/jquery-confirm.min.css")">
}
@section script
{
<script src="@Url.ContentAdmin("js/bootstrap-notify.min.js")"></script>
<script type="text/javascript" src="@Url.ContentAdmin("js/lightyear.js")"></script>
<script type="text/javascript" src="@Url.ContentAdmin("js/Validate.js")"></script>
<script src="@Url.ContentAdmin("js/jconfirm/jquery-confirm.min.js")"></script>
<script>
$('#exampleModal').on('hidden.bs.modal', function(event) {
$('#exampleModal').modal('dispose')
});
function delWebsite(id) {
$.alert({
title: '嗨',
content: '这是对用户的简单提示框。 <br> 一些 <strong>HTML</strong> <em>内容</em>' + id,
buttons: {
confirm: {
text: '确认',
btnClass: 'btn-primary',
action: function(){
$.alert('你点击了确认!');
}
},
cancel: {
text: '取消',
action: function () {
$.alert('你点击了取消!');
}
}
}
});
}
</script>
}