コード例 #1
0
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')
コード例 #2
0
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')