62,054
社区成员
发帖
与我相关
我的任务
分享
<table class="table table-striped table-bordered table-hover table-checkable order-column" id="MyTable">
<tr>
<th>
<label class="mt-checkbox mt-checkbox-single mt-checkbox-outline">
<input id="btnCheckAll" type="checkbox" class="group-checkable" data-set="#MyTable .checkboxes" onchange="CheckAllHandler()" />
<span></span>
</label>
</th>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
@Html.DisplayNameFor(model => model.ArtistName)
</th>
<th>
@Html.DisplayNameFor(model => model.Publish)
</th>
<th>
@Html.DisplayNameFor(model => model.GenreName)
</th>
<th>
@Html.DisplayNameFor(model => model.Time)
</th>
<th>
@Html.DisplayNameFor(model => model.Description)
</th>
<th></th>
</tr>
@foreach (var item in Model)
{
<tr class="odd gradeX">
<td>
<label class="mt-checkbox mt-checkbox-single mt-checkbox-outline">
<input type="checkbox" class="checkboxes" value="@item.Id" id="check@(item.Id)" />
<span></span>
</label>
</td>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.ArtistName)
</td>
<td>
@Html.DisplayFor(modelItem => item.Publish)
</td>
<td>
@Html.DisplayFor(modelItem => item.GenreName)
</td>
<td>
@Html.DisplayFor(modelItem => item.Time)
</td>
<td>
@Html.DisplayFor(modelItem => item.Description)
</td>