Beispiel #1
0
def index(req):
    # print req.session['site_host']
    req.session['banner_list_mobile']  = global_settings['banner_list_mobile']
    req.session['settings'] = global_settings['settings']
    logo_image = fun.get_site_logo(req)
    fsb_list = controller.get_fsb_list(req, 5)
    nxt_list = controller.get_nxt_list(req, 5)
    bw_list = controller.get_cate_list(req, 'bw', 5)
    xxc_list = controller.get_cate_list(req, 'xxc', 5)
    alh_list = controller.get_alh_list(req, 5)
    index_active = 'cur'
    return render_to_response("mobile/index.html", locals(), context_instance = RequestContext(req))
Beispiel #2
0
def index(req):
    # print req.session['site_host']
    req.session['banner_list_mobile'] = global_settings['banner_list_mobile']
    req.session['settings'] = global_settings['settings']
    logo_image = fun.get_site_logo(req)
    fsb_list = controller.get_fsb_list(req, 5)
    nxt_list = controller.get_nxt_list(req, 5)
    bw_list = controller.get_cate_list(req, 'bw', 5)
    xxc_list = controller.get_cate_list(req, 'xxc', 5)
    alh_list = controller.get_alh_list(req, 5)
    index_active = 'cur'
    return render_to_response("mobile/index.html",
                              locals(),
                              context_instance=RequestContext(req))
Beispiel #3
0
def list(req, cate):
    page = req.GET.get('page', '1')
    if page and page.isdigit():
        page = int(page)
    else:
        page = 1
    logo_image = fun.get_site_logo(req)
    packagelist = None
    cate_name = cate_dict.get(cate, '无效分类')
    cate_list = controller.get_cate_list(req, cate, 15, page)
    # blog_list = controller.get_cate_list(req, 'bw', 10)
    total = controller.get_cate_total(req, cate)
    total_page = fun.get_total_page(total, 20)
    return render_to_response("mobile/list.html", locals(), context_instance = RequestContext(req))
Beispiel #4
0
def list(req, cate):
    page = req.GET.get('page', '1')
    if page and page.isdigit():
        page = int(page)
    else:
        page = 1
    logo_image = fun.get_site_logo(req)
    packagelist = None
    cate_name = cate_dict.get(cate, '无效分类')
    cate_list = controller.get_cate_list(req, cate, 15, page)
    # blog_list = controller.get_cate_list(req, 'bw', 10)
    total = controller.get_cate_total(req, cate)
    total_page = fun.get_total_page(total, 20)
    return render_to_response("mobile/list.html",
                              locals(),
                              context_instance=RequestContext(req))