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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
def old(request): before = Before.objects.all() dict_b = {"before": before} return TR(request, 'old.html', dict_b)
def third(request): p = SIntr.objects.filter(order="1") dict_c = {"p": p} return TR(request, 'third.html', dict_c)
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)
def pin(request): d = {} t = Text.objects.all() for i in t: d[i.category] = i return TR(request, "recruitment.html", d)
def x(request): t = head.objects.all() d = {"t": t} return TR(request, "x.html", d)
def login(request): return TR(request, 'login.html')
def jianli(request): d = {} t = Text.objects.all() for i in t: d[i.category] = i return TR(request, "resume.html", d)
def ydtravel(request): return TR(request, "Yd-travel.html")
def test(request): return TR(request, 'test.html')