Exemplo n.º 1
0
def allcompany(request):
    ac = Company.objects.all()[::-1]
    d = {'ac': ac}
    t = Text.objects.all()
    for i in t:
        d[i.category] = i
    return TR(request, "AllCompany.html", d)
Exemplo n.º 2
0
def grjl(request, sid):
    s = SIntr.objects.get(id=sid)
    d = {"s": s}
    t = Text.objects.all()
    for i in t:
        d[i.category] = i
    return TR(request, "gerenjianli.html", d)
Exemplo n.º 3
0
def liucheng(request):
    p = Process.objects.all()
    p = {"p": p}
    t = Text.objects.all()
    for i in t:
        p[i.category] = i
    return TR(request, "process.html", p)
Exemplo n.º 4
0
def visitors(request):
    visitor = m_visitors.objects.all()[0:3]
    visitors = m_visitors.objects.all()[3:9]
    mzt = mztj.objects.all()[0:3]
    links = link.objects.all()[0:4]
    d = {"visitors": visitors, "visitor": visitor, "mzt": mzt, "links": links}
    return TR(request, "visitor.html", d)
Exemplo n.º 5
0
def zpxx(request, cid):
    c = Company.objects.get(id=cid)
    d = {"c": c}
    t = Text.objects.all()
    for i in t:
        d[i.category] = i
    return TR(request, "zhaopinxinxi.html", d)
Exemplo n.º 6
0
def youxiu(request):
    stu = SIntr.objects.filter(Q(order='1') | Q(order='0'))
    dict_d = {"stu": stu}
    t = Text.objects.all()
    for i in t:
        dict_d[i.category] = i
    return TR(request, "youxiu.html", dict_d)
Exemplo n.º 7
0
def all_company(request):
    ac = All_Company.objects.all()
    h = Href.objects.all()
    t = Text.objects.all()
    d = {'ac': ac, 'href': h}
    for x in t:
        d[x.name] = x.info
    return TR(request, 'ac.html', d)
Exemplo n.º 8
0
def faq(request):
    d = {}
    t = Text.objects.all()
    for i in t:
        d[i.category] = i
    p = Problem.objects.all()
    d["p"] = p
    return TR(request, "FAQ.html", d)
Exemplo n.º 9
0
def jltj(request):
    d = {}
    if request.POST["name"] == "":
        d['a'] = "请输入姓名"
        return TR(request, 'resume.html', d)
    if request.POST["zhuanye"] == "":
        d['b'] = "请输入专业"
        d['xingming'] = request.POST["name"]
        return TR(request, 'resume.html', d)
    if request.POST["xinzi"] == "":
        d['c'] = "请输入期望薪资"
        return TR(request, 'resume.html', d)
    if request.POST["didian"] == "":
        d['d'] = "请输入工作地点"
        return TR(request, 'resume.html', d)
    if request.POST["lianxi"] == "":
        d['e'] = "请输入联系方式"
        d['xingming'] = request.POST["name"]
        d['zhuanye'] = request.POST["zhuanye"]
        return TR(request, 'resume.html', d)
    if request.POST["nianji"] == "":
        d['e'] = "请输入学历/年级"
        d['xingming'] = request.POST["name"]
        d['zhuanye'] = request.POST["zhuanye"]
        d['lianxi'] = request.POST["lianxi"]
        return TR(request, 'resume.html', d)
    if request.POST["jieshao"] == "":
        d['f'] = "请输入自我介绍"
        d['xingming'] = request.POST["name"]
        d['zhuanye'] = request.POST["zhuanye"]
        d['lianxi'] = request.POST["lianxi"]
        d['nianji'] = request.POST["nianji"]
        return TR(request, 'resume.html', d)
    SIntr(order="-1",
          name=request.POST["name"],
          sex=request.POST["xingbie"],
          grade=request.POST["nianji"],
          place=request.POST["didian"],
          position=request.POST["zhuanye"],
          salary=request.POST["xinzi"],
          contact=request.POST["lianxi"],
          intr=request.POST["jieshao"],
          date=str(datetime.datetime.now())).save()
    stu = SIntr.objects.filter(Q(order='1') | Q(order='0'))
    dict_d = {"stu": stu}
    t = Text.objects.all()
    for i in t:
        dict_d[i.category] = i
    return TR(request, "youxiu.html", dict_d)
Exemplo n.º 10
0
def fea_indexs(request):
    index1 = fea_index1.objects.all()[0:3]
    history = fea_history.objects.all()[0:3]
    places = fea_place.objects.all()[0:1]
    mzt = mztj.objects.all()[0:3]
    links = link.objects.all()[0:4]
    d = {
        "index1": index1,
        "history": history,
        "places": places,
        "mzt": mzt,
        "links": links
    }
    return TR(request, "fea-index.html", d)
Exemplo n.º 11
0
def index(request):
    a1 = home.objects.all()
    visitor = visions.objects.all()
    Places = record.objects.filter(category="Places")[0:4]
    Climate = record.objects.filter(category="Climate")[0:4]
    Testimonials = record.objects.filter(category="Testimonials")[0:4]
    mzt = mztj.objects.all()[0:3]
    links = link.objects.all()[0:4]
    features = feature.objects.all()[0:6]
    d = {
        'a1': a1,
        "Places": Places,
        "Climate": Climate,
        "Testimonials": Testimonials,
        "mzt": mzt,
        "links": links,
        "visitor": visitor,
        "features": features
    }
    return TR(request, "index.html", d)
Exemplo n.º 12
0
def hotels(request):
    m_1_1 = m_hotel.objects.filter(category="m-1-1")[0:3]
    m_1_2 = m_hotel.objects.filter(category="m-1-2")[0:3]
    m_1_3 = m_hotel.objects.filter(category="m-1-3")[0:3]
    m_2_1 = m_hotel.objects.filter(category="m-2-1")[0:3]
    m_2_2 = m_hotel.objects.filter(category="m-2-2")[0:3]
    m_2_3 = m_hotel.objects.filter(category="m-2-3")[0:3]
    m_3_1 = m_hotel.objects.filter(category="m-3-1")[0:3]
    m_3_2 = m_hotel.objects.filter(category="m-3-2")[0:3]
    m_3_3 = m_hotel.objects.filter(category="m-3-3")[0:3]
    m_4_1 = m_hotel.objects.filter(category="m-4-1")[0:3]
    m_4_2 = m_hotel.objects.filter(category="m-4-2")[0:3]
    m_4_3 = m_hotel.objects.filter(category="m-4-3")[0:3]
    m_5_1 = m_hotel.objects.filter(category="m-5-1")[0:3]
    m_5_2 = m_hotel.objects.filter(category="m-5-2")[0:3]
    m_5_3 = m_hotel.objects.filter(category="m-5-3")[0:3]
    mzt = mztj.objects.all()[0:3]
    links = link.objects.all()[0:4]
    d = {
        "m_1_1": m_1_1,
        "m_1_2": m_1_2,
        "m_1_3": m_1_3,
        "m_2_1": m_2_1,
        "m_2_2": m_2_2,
        "m_2_3": m_2_3,
        "m_3_1": m_3_1,
        "m_3_2": m_3_2,
        "m_3_3": m_3_3,
        "m_4_1": m_4_1,
        "m_4_2": m_4_2,
        "m_4_3": m_4_3,
        "m_5_1": m_5_1,
        "m_5_2": m_5_2,
        "m_5_3": m_5_3,
        "mzt": mzt,
        "links": links
    }
    return TR(request, "hotel.html", d)
Exemplo n.º 13
0
def hello(request):
    c = Company.objects.all()[:8]
    s = Student.objects.all()[:5]
    t = Text.objects.all()[:6]
    t_all = Text.objects.all()
    p = Partner.objects.all()[:9]
    h = Href.objects.all()
    f = Flow.objects.all()
    i = Image.objects.all()
    d = {
        'all_company': c,
        'student': s,
        'text': t,
        'partner': p,
        'href': h,
        'flow': f
    }
    for x in t_all:
        d[x.name] = x.info
    for x in i:
        d[x.name] = x.img

    return TR(request, 'index.html', d)
Exemplo n.º 14
0
def zhaopin(request):
    d = {}
    if request.POST["name"] == "":
        d['a'] = "请输入企业名称"
        return TR(request, 'recruitment.html', d)
    if request.POST["gangwei"] == "":
        d['b'] = "请输入岗位名称"
        d['mingcheng'] = request.POST["name"]
        return TR(request, 'recruitment.html', d)
    if request.POST["xinzi"] == "":
        d['c'] = "请输入薪资范围"
        d['mingcheng'] = request.POST["name"]
        d['gangwei'] = request.POST["gangwei"]
        return TR(request, 'recruitment.html', d)
    if request.POST["didian"] == "":
        d['d'] = "请输入工作地点"
        return TR(request, 'recruitment.html', d)
    if request.POST["renshu"] == "":
        d['e'] = "请输入招聘人数"
        return TR(request, 'recruitment.html', d)
    if request.POST["jianjie"] == "":
        d['f'] = "请输入岗位介绍"
        d['mingcheng'] = request.POST["name"]
        d['gangwei'] = request.POST["gangwei"]
        return TR(request, 'recruitment.html', d)
    Company(name=request.POST["name"],
            position=request.POST["gangwei"],
            salary=request.POST["xinzi"],
            place=request.POST["didian"],
            number=request.POST["renshu"],
            describe=request.POST["jianjie"],
            date=str(datetime.datetime.now())).save()
    ac = Company.objects.all()[::-1]
    d = {'ac': ac}
    t = Text.objects.all()
    for i in t:
        d[i.category] = i
    return TR(request, "AllCompany.html", d)
Exemplo n.º 15
0
def WK_feature(request):
    nei = YDt.objects.all()
    mzt = mztj.objects.all()[0:3]
    links = link.objects.all()[0:4]
    d = {"mzt": mzt, "links": links, "nei": nei}
    return TR(request, "WK-feature.html", d)
Exemplo n.º 16
0
def edit_view(request, id):
    s = Student.objects.get(id=int(id))
    t = datetime.datetime.now()
    d = {"ss": s, 'time': str(t)}
    return TR(request, "edit.html", d)
Exemplo n.º 17
0
def Testimonial(request):
    mzt = mztj.objects.all()[0:3]
    links = link.objects.all()[0:4]
    d = {"mzt": mzt, "links": links}
    return TR(request, "Testimonials.html", d)
Exemplo n.º 18
0
def Photo(request):
    picture = xiangce.objects.all()
    mzt = mztj.objects.all()[0:3]
    links = link.objects.all()[0:4]
    d = {"picture": picture, "mzt": mzt, "links": links}
    return TR(request, "photos.html", d)
Exemplo n.º 19
0
def contacts(request):
    mzt = mztj.objects.all()[0:3]
    links = link.objects.all()[0:4]
    d = {"mzt": mzt, "links": links}
    return TR(request, "contact.html", d)
Exemplo n.º 20
0
def registers(request):
    mzt = mztj.objects.all()[0:3]
    links = link.objects.all()[0:4]
    d = {"mzt": mzt, "links": links}
    return TR(request, "register.html", d)
Exemplo n.º 21
0
def old(request):
    before = Before.objects.all()
    dict_b = {"before": before}
    return TR(request, 'old.html', dict_b)
Exemplo n.º 22
0
def third(request):
    p = SIntr.objects.filter(order="1")
    dict_c = {"p": p}
    return TR(request, 'third.html', dict_c)
Exemplo n.º 23
0
def ydtindex(request):
    mzt = mztj.objects.all()[0:3]
    links = link.objects.all()[0:4]
    d = {"mzt": mzt, "links": links}
    return TR(request, "YD-Tindex.html", d)
Exemplo n.º 24
0
def pin(request):
    d = {}
    t = Text.objects.all()
    for i in t:
        d[i.category] = i
    return TR(request, "recruitment.html", d)
Exemplo n.º 25
0
def x(request):
    t = head.objects.all()
    d = {"t": t}
    return TR(request, "x.html", d)
Exemplo n.º 26
0
def login(request):
    return TR(request, 'login.html')
Exemplo n.º 27
0
def jianli(request):
    d = {}
    t = Text.objects.all()
    for i in t:
        d[i.category] = i
    return TR(request, "resume.html", d)
Exemplo n.º 28
0
def ydtravel(request):

    return TR(request, "Yd-travel.html")
Exemplo n.º 29
0
def test(request):
    return TR(request, 'test.html')