@model TeacherPlatForm.Utility.PagedList
<
TeacherPlatForm.Domain.Entities.Generate.TASE_Thesis_Titles
>
<
div
id
="thesisTitle_tab"
>
@Html.Hidden("thesisTitleIds", (Model != null ? string.Join("_", Model.DataList.Select(tt => tt.thesis_title_id)) : string.Empty))
<
table
class
="mytable"
style
="margin-top: 15px"
>
<
tr
>
<
th
>
<
center
>
@Html.CheckBox("chk_all", new { id = "chkall", onclick = "checkall()" })
</center>
</th>
<
th
>
<
center
>
題目
</center>
</th>
<
th
>
<
center
>
寫做批次
</center>
</th>
<
th
>
<
center
>
專業名稱
</center>
</th>
<
th
>
<
center
>
方向
</center>
</th>
<
th
>
<
center
>
發佈狀態
</center>
</th>
<
th
>
<
center
>
操做
</center>
</th>
</tr>
@if (Model != null && Model.DataList.Count > 0)
{
foreach (var thesisTitle in Model.DataList)
{
<
tr
onclick
="setCheck('@thesisTitle.thesis_title_id')"
>
<
td
align
="center"
>
@Html.CheckBox("chk_" + thesisTitle.thesis_title_id, new { id = "chk_" + thesisTitle.thesis_title_id, onclick = "setCheck('" + thesisTitle.thesis_title_id + "')" })
</td>
<
td
>
@thesisTitle.title
</td>
<
td
>
@(thesisTitle.TASE_Write_Batch != null ? thesisTitle.TASE_Write_Batch.write_batch_name : string.Empty)
</td>
<
td
>
@(thesisTitle.TASE_Thesis_Direction != null ? (thesisTitle.TASE_Thesis_Direction.TASE_Professional != null ? thesisTitle.TASE_Thesis_Direction.TASE_Professional.name : string.Empty) : string.Empty)
</td>
<
td
>
@(thesisTitle.TASE_Thesis_Direction != null ? thesisTitle.TASE_Thesis_Direction.direct_name : string.Empty)
</td>
<
td
>
@(thesisTitle.state == "1" ? "已發佈" : "未發佈")
</td>
<
td
align
="center"
>
<
input
type
="button"
id
="btnModify"
name
="btnModify"
class
="btn"
value
="修改"
style
="width:60px"
onclick
="showModifyModal('@thesisTitle.thesis_title_id')"
/>
</td>
</tr> }
}
</table>
<
div
class
="divpager"
>
共有
<
font
color
="red"
>@(Model != null ? Model.TotalCount : 0)
</font> 條記錄 當前是第
<
font
color
="red"
>@(Model != null ? Model.PageIndex : 0)
</font>
頁 共
<
font
color
="red"
>@(Model != null ? Model.TotalPages : 0)
</font>頁
@if (Model!=null&&Model.HasPreviousPage)
{
@Ajax.ActionLink("首頁", "Index", "ThesisTitlePublish", new { id = 1 + "_" + 10 + "_" + DateTime.Now.Ticks }, new AjaxOptions { UpdateTargetId = "thesisTitle_tab" })
<
label
>
</label>
@Ajax.ActionLink("上一頁", "Index", "ThesisTitlePublish", new { id = (Model.PageIndex - 1) + "_" + 10 + "_" + DateTime.Now.Ticks }, new AjaxOptions { UpdateTargetId = "thesisTitle_tab" })
<
label
>
</label>
}
else
{
<
a
>首頁
</a>
<
a
>上一頁
</a>
}
@if (Model != null && Model.HasNextPage)
{
@Ajax.ActionLink("下一頁", "Index", "ThesisTitlePublish", new { id = (Model.PageIndex + 1) + "_" + 10 + "_" + DateTime.Now.Ticks }, new AjaxOptions { UpdateTargetId = "thesisTitle_tab" })
<
label
>
</label>
@Ajax.ActionLink("末頁", "Index", "ThesisTitlePublish", new { id = Model.TotalPages + "_" + 10 + "_" + DateTime.Now.Ticks }, new AjaxOptions { UpdateTargetId = "thesisTitle_tab" })
}
else
{
<
a
>下一頁
</a>
<
a
>末頁
</a>
}
</div>
</div>