예제 #1
0
def file_manage():
    file = File()
    result = file.find_all_file(0, 10)
    total = math.ceil(file.get_total_count() / 10)
    return render_template('admin-file.html',
                           result=result,
                           page=1,
                           total=total,
                           type='no')
예제 #2
0
def file_cl(page):
    start = (page - 1) * 10
    file = File()
    result = file.find_all_file(start, 10)
    total = math.ceil(file.get_total_count() / 10)
    return render_template('admin-file.html',
                           result=result,
                           page=page,
                           total=total,
                           type='no')