附件列表.
()
| 745 | |
| 746 | // 附件列表. |
| 747 | func (this *ManagerController) AttachList() { |
| 748 | |
| 749 | pageIndex, _ := this.GetInt("page", 1) |
| 750 | |
| 751 | attachList, totalCount, err := models.NewAttachment().FindToPager(pageIndex, conf.PageSize) |
| 752 | if err != nil { |
| 753 | this.Abort("404") |
| 754 | } |
| 755 | |
| 756 | if totalCount > 0 { |
| 757 | html := utils.GetPagerHtml(this.Ctx.Request.RequestURI, pageIndex, conf.PageSize, int(totalCount)) |
| 758 | this.Data["PageHtml"] = html |
| 759 | } else { |
| 760 | this.Data["PageHtml"] = "" |
| 761 | } |
| 762 | |
| 763 | this.Data["Lists"] = attachList |
| 764 | this.Data["IsAttach"] = true |
| 765 | this.TplName = "manager/attach_list.html" |
| 766 | } |
| 767 | |
| 768 | // 附件详情. |
| 769 | func (this *ManagerController) AttachDetailed() { |
nothing calls this directly
no test coverage detected