()
| 1142 | } |
| 1143 | |
| 1144 | func (this *ManagerController) SubmitBook() { |
| 1145 | this.TplName = "manager/submit_book.html" |
| 1146 | m := models.NewSubmitBooks() |
| 1147 | page, _ := this.GetInt("page", 1) |
| 1148 | size, _ := this.GetInt("size", 100) |
| 1149 | books, total, _ := m.Lists(page, size) |
| 1150 | if total > 0 { |
| 1151 | this.Data["PageHtml"] = utils.NewPaginations(conf.RollPage, int(total), size, page, beego.URLFor("ManagerController.SubmitBook"), "") |
| 1152 | } else { |
| 1153 | this.Data["PageHtml"] = "" |
| 1154 | } |
| 1155 | this.Data["Books"] = books |
| 1156 | this.Data["IsSubmitBook"] = true |
| 1157 | } |
| 1158 | |
| 1159 | func (this *ManagerController) DeleteSubmitBook() { |
| 1160 | id, _ := this.GetInt("id") |
nothing calls this directly
no test coverage detected