def user_manage(): user = Users() result = user.find_all_users(0, 10) total = math.ceil(user.get_count() / 10) return render_template('admin-users.html', result=result, page=1, total=total, type='no')
def user_cl(page): start = (page - 1) * 10 user = Users() result = user.find_all_users(start, 10) total = math.ceil(user.get_count() / 10) return render_template('admin-users.html', result=result, page=page, total=total, type='no')