Esempio n. 1
0
def stuylist():

    if len(request.args) == 0:
        r = html.table_get("last",1,20,0)
    else:
        r = html.table_search(request.args,20,0)
        
    
    return render_template("search.html",table=r,search=html.searchCode(request.args))
Esempio n. 2
0
def js():
    
    param = "last"
    sort = 1
    limit = 20
    offset = 0

    try:
        param = request.args.get("param")
        sort = request.args.get("sort")
        offset = request.args.get("offset")
    except:
        pass

    nam = None
    if "name" in request.args:
        nam = request.args.get("name")


    try:
        return str(html.table_get(param,sort,limit,int(offset)))
    except:
        return '{error:true}'