master
YunMao 4 years ago
commit 93d5fb1687

4
.gitignore vendored

@ -0,0 +1,4 @@
.vscode/
.idea/
__pycache__/
config.ini

@ -0,0 +1,397 @@
from django.http import HttpResponse
from django.shortcuts import render
from django.http import HttpResponseRedirect
from urllib.request import urlopen
from urllib.request import Request
from urllib import parse
import time
import json
import pymysql
import os
import datetime
# 表单
def team(request1):
request1.encoding='utf-8'
dateMatrix=['3月22日','3月23日','3月24日','3月25日','3月26日','3月27日','3月28日','3月29日','3月30日','3月31日','4月1日','4月2日','4月3日','4月4日']
timeMatrix=['10:00-11:00','11:00-12:00','15:00-16:00','16:00-17:00','17:00-18:00','19:00-20:00','20:00-21:00','21:00-22:00','22:00-23:00','9:30-10:45','10:45-12:00','13:30-14:45','15:00-16:15','16:45-18:00']
if 'username' in request1.POST:
username=request1.POST['username']
tel=request1.POST['tel']
context = {}
context["username"]=username
context["tel"]=tel
db = pymysql.connect(host='0.0.0.0', port=3306, user='0', passwd='0', db='0', charset='utf8')
cursor = db.cursor()
findSQL = "select * from teaminterview where username='"+username+"'and tel='"+tel+"'"
res = cursor.execute(findSQL)
if (res != 0):
data=cursor.fetchone()
admi=data[6]
if (admi!='1'):
cursor.close()
cursor = db.cursor()
context["display22"]=""
context["display23"]=""
context["display24"]=""
context["display25"]=""
context["display26"]=""
context["display27"]=""
context["display28"]=""
context["display29"]=""
context["display30"]=""
context["display31"]=""
context["display1"]=""
context["display2"]=""
context["display3"]=""
context["display4"]=""
S=datetime.datetime.strptime('3/22/2019 12:00:00','%m/%d/%Y %H:%M:%S')
a=datetime.datetime.now()
if a>S:
context["display22"]="none"
S=datetime.datetime.strptime('3/22/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display23"]="none"
S=datetime.datetime.strptime('3/23/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display24"]="none"
S=datetime.datetime.strptime('3/24/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display25"]="none"
S=datetime.datetime.strptime('3/25/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display26"]="none"
S=datetime.datetime.strptime('3/26/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display27"]="none"
S=datetime.datetime.strptime('3/27/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display28"]="none"
S=datetime.datetime.strptime('3/28/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display29"]="none"
S=datetime.datetime.strptime('3/29/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display30"]="none"
S=datetime.datetime.strptime('3/30/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display31"]="none"
S=datetime.datetime.strptime('3/31/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display1"]="none"
S=datetime.datetime.strptime('4/1/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display2"]="none"
S=datetime.datetime.strptime('4/2/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display3"]="none"
S=datetime.datetime.strptime('4/3/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S:
context["display4"]="none"
date=[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
time=[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
numberMatrix = [[0 for i in range(14)] for i in range(14)]
for i in date:
for j in time:
findSQL = "select * from teamtimes where date='"+str(i)+"'and time='"+str(j)+"'"
res = cursor.execute(findSQL)
if (res!=0):
number=(cursor.fetchone())[2]
numberMatrix[i][j]=number
context["numberMatrix"]=numberMatrix
cursor.close()
db.close()
return render(request1,'teaminterview.html',context)
else:
date = data[1]
time = data[2]
if (date!='' and time!=''):
context["date"]=dateMatrix[int(date)]
context["time"]=timeMatrix[int(time)]
context["type"]=data[7]
cursor.close()
db.close()
return render(request1,'info.html',context)
else:
updateSQL ="update teaminterview set admi = '0' where username='"+username+"'and tel='"+tel+"'"
try:
# 执行SQL语句
res=cursor.execute(updateSQL)
# 提交到数据库执行
db.commit()
except:
# 发生错误时回滚
db.rollback()
return render(request1,'Rechoose.html',context)
else:
cursor.close()
db.close()
return render(request1,'404.html',context)
else:
return render(request1,'404.html',context)
def post(request1):
request1.encoding='utf-8'
request=request1.POST
if ('division' in request1.POST):
intime=datetime.datetime.now().strftime("%m/%d/%Y %H:%M:%S")
vtype=request['division']
if (vtype=="线上面试"):
try:
date=request['Idate0']
time=request['Itime0']
except:
return render(request1,'Fail.html')
if date=='' or time =='':
return render(request1,'Fail.html')
S=datetime.datetime.strptime('3/22/2019 12:00:00','%m/%d/%Y %H:%M:%S')
a=datetime.datetime.now()
if a>S and date=='0':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/22/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='1':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/23/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='2':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/24/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='3':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/25/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='4':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/26/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='5':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/27/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='6':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/28/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='7':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/29/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='8':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/30/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='9':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/31/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='10':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/1/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='11':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/2/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='12':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/3/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='13':
return render(request1,'Fail_time.html')
elif (vtype=="线下成都面试"):
try:
date=request['Idate1']
time=request['Itime1']
except:
return render(request1,'Fail.html')
if date=='' or time =='':
return render(request1,'Fail.html')
S=datetime.datetime.strptime('3/22/2019 12:00:00','%m/%d/%Y %H:%M:%S')
a=datetime.datetime.now()
if a>S and date=='0':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/22/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='1':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/23/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='2':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/24/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='3':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/25/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='4':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/26/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='5':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/27/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='6':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/28/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='7':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/29/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='8':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/30/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='9':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/31/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='10':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/1/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='11':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/2/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='12':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/3/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='13':
return render(request1,'Fail_time.html')
elif (vtype=="线下天津面试"):
try:
date=request['Idate2']
time=request['Itime2']
except:
return render(request1,'Fail.html')
if date=='' or time =='':
return render(request1,'Fail.html')
S=datetime.datetime.strptime('3/22/2019 12:00:00','%m/%d/%Y %H:%M:%S')
a=datetime.datetime.now()
if a>S and date=='0':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/22/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='1':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/23/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='2':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/24/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='3':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/25/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='4':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/26/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='5':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/27/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='6':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/28/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='7':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/29/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='8':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/30/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='9':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/31/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='10':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/1/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='11':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/2/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='12':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/3/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='13':
return render(request1,'Fail_time.html')
elif (vtype=="线下北京面试"):
try:
date=request['Idate3']
time=request['Itime3']
except:
return render(request1,'Fail.html')
if date=='' or time =='':
return render(request1,'Fail.html')
S=datetime.datetime.strptime('3/22/2019 12:00:00','%m/%d/%Y %H:%M:%S')
a=datetime.datetime.now()
if a>S and date=='0':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/22/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='1':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/23/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='2':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/24/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='3':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/25/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='4':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/26/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='5':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/27/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='6':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/28/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='7':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/29/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='8':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/30/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='9':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('3/31/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='10':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/1/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='11':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/2/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='12':
return render(request1,'Fail_time.html')
S=datetime.datetime.strptime('4/3/2019 21:00:00','%m/%d/%Y %H:%M:%S')
if a>S and date=='13':
return render(request1,'Fail_time.html')
username=request['username']
tel=request['tel']
db = pymysql.connect(host='0.0.0.0', port=3306, user='0', passwd='0', db='0', charset='utf8')
cursor = db.cursor()
findSQL = "select * from teamtimes where date='"+date+"'and time='"+time+"'"
res = cursor.execute(findSQL)
if (res!=0):
data=cursor.fetchone()
number=data[2]
if (int(number)<8):
cursor.close()
cursor = db.cursor()
updateSQL ="update teaminterview set date ='"+str(date)+"',time='"+str(time)+"',admi = '1',intime='"+str(intime)+"',vtype='"+str(vtype)+"' where username='"+username+"'and tel='"+tel+"'"
try:
# 执行SQL语句
res=cursor.execute(updateSQL)
# 提交到数据库执行
db.commit()
except:
# 发生错误时回滚
db.rollback()
else:
return render('FailNumber.html')
else:
cursor.close()
cursor = db.cursor()
updateSQL = "update teaminterview set date ='"+str(date)+"',time='"+str(time)+"',admi = '1',intime='"+str(intime)+"',vtype='"+str(vtype)+"' where username='"+username+"'and tel='"+tel+"'"
try:
# 执行SQL语句
res=cursor.execute(updateSQL)
# 提交到数据库执行
db.commit()
except:
# 发生错误时回滚
db.rollback()
cursor.close()
db.close()
return render(request1,'OK.html')
return render(request1,'Fail.html')
def login(request1):
return render(request1,'firstlogin.html')
# 接收请求数据
def result(request1):
return render(request1,'404.html')

@ -0,0 +1,109 @@
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
STATIC_ROOT = os.path.join(os.path.dirname(__file__),'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = (
('css',os.path.join(STATIC_ROOT,'css').replace('\\','/') ),
('js',os.path.join(STATIC_ROOT,'js').replace('\\','/') ),
('images',os.path.join(STATIC_ROOT,'images').replace('\\','/') ),
# ('upload',os.path.join(STATIC_ROOT,'upload').replace('\\','/') ),
)
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = ''
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = ['']
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'HelloWorld.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR+'/templates',],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'HelloWorld.wsgi.application'
# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
# Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/2.0/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'Asia/Shanghai'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/
STATIC_URL = '/static/'

@ -0,0 +1,85 @@
*{
margin:0;
padding:0;
}
#we{
background:url(../img/02.jpg);
background-size:100% 100%;
background:cover;
background-repeat: no-repeat;
height:100%;
width:100%;
position:fixed;
}
.sub{
margin-top:80px;
margin-left:200px;
width:1000px;
height:600px;
z-index:+999;
}
.a2{
font-size:30px;
color:#000;
font-family:;
}
.but{
width:300px;
height:25px;
}
.btn{
width:90px;
height:45px;
margin-left:200px;
font-size:26px;
font-family: ;
color:#ffffff;
border-radius:10px;
background-color:#989493;
box-shadow: 0px 0px 5px 5px #fff;
border-color:#989493;
margin-top:10px;
cursor: pointer;
}
@media only screen and (max-width: 1000px) {
.sub{
position: absolute;
top:0px;
left:-170px;
width:400px;
height:400px;
z-index:+999;
}
#we{
background:url(../img/05.jpg);
background-size:100% 100%;
background:cover;
background-repeat: no-repeat;
height:100%;
width:100%;
position:fixed;
}
.a2{
font-size:25px;
color:#000;
font-family:;
}
.but{
width:150px;
height:25px;
}
.btn{
width:90px;
height:45px;
margin-left:90px;
font-size:26px;
font-family: ;
color:#ffffff;
border-radius:10px;
background-color:#ded329;
box-shadow: 0px 0px 5px 5px #fff;
border-color:#ded329;
margin-top:10px;
cursor: pointer;
}
}

@ -0,0 +1,73 @@
*{
margin:0;
padding:0;
}
#we{
background:url(../img/01.jpg);
background-size:100% 100%;
background:cover;
background-repeat: no-repeat;
height:100%;
width:100%;
position:fixed;
}
.myform{
margin-top:150px;
margin-left:-70px;
width:700px;
height:300px;
z-index:+999;
}
.up{
width:90px;
height:45px;
font-size:26px;
font-family: ;
color:#ffffff;
border-radius:10px;
background-color:#ea7e35;
box-shadow: 0px 0px 5px 5px #fffff;
border-color:#ea7e35;
margin-top:10px;
cursor: pointer;
}
.a1{
font-size:40px;
color:#FFFFFF;
font-family:;
}
.but{
width:300px;
height:30px;
}
@media only screen and (max-width: 1000px) {
.myform{
position: absolute;
top:50px;
left:70px;
width:400px;
height:400px;
z-index:+999;
}
#we{
background:url(../img/04.jpg);
background-size:100% 100%;
background:cover;
background-repeat: no-repeat;
height:100%;
width:100%;
position:fixed;
}
.a1{
font-size:25px;
color:#000;
font-family:;
}
.but{
width:180px;
height:35px;
}
}

@ -0,0 +1,353 @@
/* Styles for dialog window */
#small-dialog,#small-dialog2{
background: #fff;
text-align: left;
max-width: 500px;
margin: 40px auto;
position: relative;
}
#small-dialog-it,#small-dialog-in,#small-dialog-fr,#small-dialog-sh,#small-dialog-sf,#small-dialog-su,#small-dialog-me,#small-dialog-ch,#small-dialog-pi,#small-dialog-am {
background: white;
padding:0px;
text-align: left;
max-width: 450px;
margin: 40px auto;
position: relative;
text-align:center;
}
a.play-icon.popup-with-zoom-anim img:hover {
opacity: 0.5;
transition:0.5s all;
-webkit-transition:0.5s all;
-o-transition:0.5s all;
-moz-transition:0.5s all;
-ms-transition:0.5s all;
}
.portfolio-items{
text-align:center;
margin:0 auto;
}
.portfolio-items img{
width:100%;
}
.portfolio-items h4{
margin:1em 0;
font-size:25px;
color:#a63d56;
}
.portfolio-items p{
text-align:justify;
}
/**
/**
* Fade-zoom animation for first dialog
*/
/* start state */
.my-mfp-zoom-in #small-dialog {
opacity: 0;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
-webkit-transform: scale(0.8);
-moz-transform: scale(0.8);
-ms-transform: scale(0.8);
-o-transform: scale(0.8);
transform: scale(0.8);
}
/* animate in */
.my-mfp-zoom-in.mfp-ready #small-dialog {
opacity: 1;
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
padding:50px;
}
/* animate out */
.my-mfp-zoom-in.mfp-removing #small-dialog {
-webkit-transform: scale(0.8);
-moz-transform: scale(0.8);
-ms-transform: scale(0.8);
-o-transform: scale(0.8);
transform: scale(0.8);
opacity: 0;
}
/* Dark overlay, start state */
.my-mfp-zoom-in.mfp-bg {
opacity: 0;
-webkit-transition: opacity 0.3s ease-out;
-moz-transition: opacity 0.3s ease-out;
-o-transition: opacity 0.3s ease-out;
transition: opacity 0.3s ease-out;
}
/* animate in */
.my-mfp-zoom-in.mfp-ready.mfp-bg {
opacity: 0.8;
}
/* animate out */
.my-mfp-zoom-in.mfp-removing.mfp-bg {
opacity: 0;
}
/**
/* Magnific Popup CSS */
.mfp-bg {
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1042;
overflow: hidden;
position: fixed;
background: #0b0b0b;
opacity: 0.8;
filter: alpha(opacity=80); }
.mfp-wrap {
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1043;
position: fixed;
outline: none !important;
-webkit-backface-visibility: hidden; }
.mfp-container {
text-align: center;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
padding: 0 8px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
.mfp-container:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle; }
.mfp-align-top .mfp-container:before {
display: none; }
.mfp-content {
position: relative;
display: inline-block;
vertical-align: middle;
margin: 0 auto;
text-align: left;
z-index: 1045; }
.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
width: 100%;
cursor: auto; }
.mfp-ajax-cur {
cursor: progress; }
.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
cursor: -moz-zoom-out;
cursor: -webkit-zoom-out;
cursor: zoom-out; }
.mfp-zoom {
cursor: pointer;
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
cursor: zoom-in; }
.mfp-auto-cursor .mfp-content {
cursor: auto; }
.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none; }
.mfp-loading.mfp-figure {
display: none; }
.mfp-hide {
display: none !important; }
.mfp-content iframe{
width:100%;
min-height:500px;
}
.mfp-preloader {
color: #cccccc;
position: absolute;
top: 50%;
width: auto;
text-align: center;
margin-top: -0.8em;
left: 8px;
right: 8px;
z-index: 1044; }
.mfp-preloader a {
color: #cccccc; }
.mfp-preloader a:hover {
color: white; }
.mfp-s-ready .mfp-preloader {
display: none; }
.mfp-s-error .mfp-content {
display: none; }
button.mfp-close,
button.mfp-arrow {
overflow: visible;
cursor: pointer;
border: 0;
background:#FFF;
-webkit-appearance: none;
display: block;
padding: 0;
z-index: 1046; }
button::-moz-focus-inner {
padding: 0;
border: 0; }
.mfp-close {
width: 23px;
height: 30px;
line-height: 25px;
position: absolute;
left: -40px;
top: -30px;
text-decoration: none;
text-align: center;
padding: 0 0 18px 10px;
color: white !important;
font-style: normal;
font-size: 45px;
outline: none;
}
.mfp-close:hover, .mfp-close:focus {
opacity: 1; }
.mfp-close-btn-in .mfp-close {
color: #333333;
background: none;
}
.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
color: white;
right: -6px;
text-align: right;
padding-right: 6px;
width: 100%;
}
.login h3,.signup h3{
margin:1em 0;
color: #a63d56;
}
.login input[type="text"],.login input[type="password"]{
width:90%;
padding:5px;
margin:3px 0;x
border: 1px solid #a63d56;
outline: none !important;
}
.signup input[type="text"]{
width: 44.5%;
padding: 5px;
margin: 10px 0;
outline: none;
background: #EBEBEB;
border: solid 1px #222;
}
.signup input.email[type="text"],.signup input[type="password"]{
width: 90%;
padding: 5px;
margin: 10px 0;
outline: none;
background: #EBEBEB;
border: solid 1px #222;
}
.login input[type="submit"],.signup input[type="submit"]{
background: #347083;
border: 0px;
padding: 5px 10px;
margin: 10px 10px;
outline: none;
font-size: 18px;
color: #fff;
text-transform: uppercase;
width: 17%;
-webkit-appearance: none;
}
.login input[type="submit"]:hover,.signup input[type="submit"]:hover{
background:#163035;
-webkit-transition: all 0.5s ease-in-out;
-moz-transition: all 0.5s ease-in-out;
-o-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
}
@media all and (max-width:640px){
#small-dialog, #small-dialog2 {
max-width: 420px;
}
}
@media all and (max-width:480px){
.comments-area textarea{
height:100px;
}
.login input[type="submit"], .signup input[type="submit"] {
font-size: 14px;
width: 20%;
}
.mfp-close {
left: 0;
}
#small-dialog, #small-dialog2 {
max-width: 320px;
}
}
@media all and (max-width:320px){
.comments-area span.label,.comments-area span.text-field{
float:none;
width:100%;
}
.comments-area span{
padding-bottom:3px;
}
#small-dialog{
padding:15px;
}
.comments-area input[type="text"], .comments-area textarea{
width:92%;
}
.comments-area div{
padding:2px 0;
}
.mfp-content iframe{
width:100%;
min-height:250px;
}
.login input[type="submit"], .signup input[type="submit"] {
font-size: 12px;
width: 29%;
}
.signup input[type="text"] {
width: 90%;
}
.mfp-close {
top: -40px;
}
}

@ -0,0 +1,94 @@
*{
margin:0;
padding:0;
}
#we{
background:url(../img/02.jpg);
background-size:100% 100%;
background:cover;
background-repeat: no-repeat;
height:100%;
width:100%;
position:fixed;
}
.sub{
margin-top:150px;
margin-left:110px;
width:1000px;
height:300px;
z-index:+999;
}
.{
font-size:30px;
color:#000;
font-family:;
}
#input1{
width:200px;
height:30px;
}
.date{
width:200px;
height:30px;
}
.btn{
width:90px;
height:45px;
margin-left:300px;
font-size:26px;
font-family: ;
color:#ffffff;
border-radius:10px;
background-color:#989493;
box-shadow: 0px 0px 5px 5px #fff;
border-color:#989493;
margin-top:10px;
cursor: pointer;
}
@media only screen and (max-width: 1000px) {
.sub{
position: absolute;
top:-150px;
left:-100px;
width:400px;
height:400px;
z-index:+999;
}
#we{
background:url(../img/05.jpg);
background-size:100% 100%;
background:cover;
background-repeat: no-repeat;
height:100%;
width:100%;
position:fixed;
}
.a2{
font-size:25px;
color:#000;
font-family:;
width: 300px;
}
#input1{
width:150px;
height:30px;
}
.date{
width:150px;
height:30px;
}
.btn{
width:90px;
height:45px;
margin-left:120px;
font-size:26px;
font-family: ;
color:#ffffff;
border-radius:10px;
background-color:#ded329;
box-shadow: 0px 0px 5px 5px #fff;
border-color:#ded329;
margin-top:10px;
cursor: pointer;
}
}

@ -0,0 +1,721 @@
/*--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
--*/
/*-- Reset-Code --*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
dl,
dt,
dd,
ol,
nav ul,
nav li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
ol,
ul {
list-style: none;
margin: 0px;
padding: 0px;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* start editing from here */
a {
text-decoration: none;
}
.txt-rt {
text-align: right;
}
/* text align right */
.txt-lt {
text-align: left;
}
/* text align left */
.txt-center {
text-align: center;
}
/* text align center */
.float-rt {
float: right;
}
/* float right */
.float-lt {
float: left;
}
/* float left */
.clear {
clear: both;
}
/* clear float */
.pos-relative {
position: relative;
}
/* Position Relative */
.pos-absolute {
position: absolute;
}
/* Position Absolute */
.vertical-base {
vertical-align: baseline;
}
/* vertical align baseline */
.vertical-top {
vertical-align: top;
}
/* vertical align top */
nav.vertical ul li {
display: block;
}
/* vertical menu */
nav.horizontal ul li {
display: inline-block;
}
/* horizontal menu */
img {
max-width: 100%;
}
/*-- //Reset-Code --*/
body {
background: url('../images/1.jpg') no-repeat;
background-position:center center;
background-size: cover;
font-family: 'Open Sans', sans-serif;
background-attachment: fixed;
height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Montserrat', sans-serif;
}
h1 {
font-size: 40px;
color: #fff;
margin: 50px 0px 80px 0px;
text-align: center;
}
.w3layouts {
width: 70%;
margin: 0 auto;
}
.signin-agile,
.signup-agileinfo {
width: 35%;
float: left;
background: #fff;
padding: 80px;
transition: 0.5s all;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
height: 300px;
opacity: 0.8;
}
.signin-agile h2,
.signup-agileinfo h3 {
font-size: 25px;
color: #7d7d7d;
margin-bottom: 20px;
}
.signup-agileinfo {
background: rgba(233, 30, 99, 0.76);
height: 700px;
}
.signup-agileinfo h3 {
color: #fff;
}
.signup-agileinfo p {
color: #fff;
font-size: 14px;
line-height: 30px;
}
input[type="text"],
input[type="password"] {
width: 93.5%;
padding: 15px;
border: 1px solid #7d7d7d;
outline: none;
font-size: 14px;
margin-bottom: 20px;
border-radius: 25px;
}
form ul {
float: left;
}
ul li {
list-style: none;
display: inline-block;
}
ul li input[type="checkbox"] {
display: none;
}
ul li input[type="checkbox"]+label {
position: relative;
padding-left: 25px;
border: #F0F8FF;
color: #7d7d7d;
display: inline-block;
font-size: 14px;
}
ul li input[type="checkbox"]+label span:first-child {
width: 13px;
height: 13px;
display: inline-block;
border: 1px solid #7d7d7d;
position: absolute;
top: 1px;
left: 4px;
bottom: 4px;
}
ul li input[type="checkbox"]:checked+label span:first-child:before {
content: "";
background: url(../images/tick.png)no-repeat;
position: absolute;
left: 2px;
top: 2px;
font-size: 10px;
width: 10px;
height: 10px;
}
form a {
color: #7d7d7d;
float: right;
font-size: 14px;
}
input[type="submit"] {
background: #e91e63;
padding: 13px 0;
font-size: 16px;
color: #fff;
cursor: pointer;
outline: none;
transition: 0.5s all;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
width: 100%;
border: none;
margin-top: 25px;
border-radius: 25px;
}
input[type="submit"]:hover {
background: #081148;
}
.footer-w3l {
margin: 120px 0 15px 0;
}
.footer-w3l p {
font-size: 14px;
text-align: center;
color: #fff;
line-height: 27px;
}
.footer-w3l p a {
color: #fff;
}
.footer-w3l p a:hover {
text-decoration: underline;
}
/*--pop-up--*/
a.book.popup-with-zoom-anim.button-isi.zoomIn.animated {
border: 1px solid #fff;
padding: 8px 34px;
color: #fff;
display: inline-block;
margin-top: 35px;
border-radius: 20px;
transition: 0.5s all;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
outline: none;
}
a.book.popup-with-zoom-anim.button-isi.zoomIn.animated:hover {
border: 1px solid #0c1558;
color: #fff;
background: #0c1558;
}
.book-form {
padding: 2em;
}
.book-form h3 {
font-size: 1.8em;
text-align: left;
color: #7d7d7d;
margin-bottom: 1.5em;
}
/*-- //pop-up --*/
/*-- Responsive --*/
@media screen and (max-width: 1440px) {
.signin-agile,
.signup-agileinfo {
padding: 73px;
}
input[type="text"],
input[type="password"] {
width: 91%;
}
}
@media screen and (max-width: 1366px) {
.signin-agile,
.signup-agileinfo {
padding: 70px;
}
input[type="text"],
input[type="password"] {
width: 90.5%;
}
}
@media screen and (max-width: 1280px) {
.w3layouts {
width: 75%;
margin: 0 auto;
}
}
@media screen and (max-width: 1080px) {
.w3layouts {
width: 80%;
margin: 0 auto;
}
.signin-agile,
.signup-agileinfo {
padding: 63px;
}
}
@media screen and (max-width: 1024px) {
h1 {
margin: 50px 0px 56px 0px;
}
.signin-agile,
.signup-agileinfo {
padding: 60px;
}
input[type="text"],
input[type="password"] {
width: 89%;
}
.footer-w3l {
margin: 80px 0 15px 0;
}
}
@media screen and (max-width: 991px) {
.w3layouts {
width: 85%;
margin: 0 auto;
}
}
@media screen and (max-width: 966px) {}
@media screen and (max-width: 900px) {
.signin-agile,
.signup-agileinfo {
padding: 55px;
}
input[type="text"],
input[type="password"] {
width: 88%;
}
}
@media screen and (max-width: 800px) {
.signin-agile,
.signup-agileinfo {
padding: 49px;
}
input[type="text"],
input[type="password"] {
width: 87%;
}
}
@media screen and (max-width: 768px) {
.w3layouts {
width: 90%;
margin: 0 auto;
}
.signin-agile,
.signup-agileinfo {
padding: 50px;
}
ul li input[type="checkbox"]+label {
font-size: 13px;
}
form a {
font-size: 13px;
}
}
@media screen and (max-width: 736px) {
.signin-agile,
.signup-agileinfo {
padding: 48px;
}
}
@media screen and (max-width: 667px) {
h1 {
margin: 30px 0px 45px 0px;
}
.w3layouts {
width: 95%;
margin: 0 auto;
}
.signin-agile,
.signup-agileinfo {
padding: 46px;
}
input[type="text"],
input[type="password"] {
padding: 12px;
}
input[type="submit"] {
padding: 12px 0;
}
.my-mfp-zoom-in.mfp-ready #small-dialog {
padding: 30px!important;
}
}
@media screen and (max-width: 640px) {
.signin-agile,
.signup-agileinfo {
padding: 44px;
}
.signup-agileinfo p {
font-size: 13.5px;
line-height: 27px;
}
}
@media screen and (max-width: 600px) {
.w3layouts {
width: 85%;
margin: 0 auto;
}
.signin-agile,
.signup-agileinfo {
width: 82%;
}
input[type="text"],
input[type="password"] {
width: 93%;
}
}
@media screen and (max-width: 568px) {
h1 {
font-size: 35px;
margin: 35px 0px 50px 0px;
}
.footer-w3l {
margin: 40px 0 15px 0;
}
}
@media screen and (max-width: 480px) {
.signin-agile,
.signup-agileinfo {
width: 77%;
}
input[type="text"],
input[type="password"] {
width: 92%;
}
.footer-w3l p {
font-size: 13px;
}
}
@media screen and (max-width: 414px) {
h1 {
font-size: 28px;
margin: 35px 0px 40px 0px;
}
.signin-agile,
.signup-agileinfo {
width: 74%;
}
input[type="text"],
input[type="password"] {
width: 89%;
}
form a {
margin-top: 3px;
}
.signup-agileinfo {
height: 700px;
}
}
@media screen and (max-width: 384px) {
h1 {
font-size: 30px;
margin: 35px 0px 40px 0px;
}
.signin-agile,
.signup-agileinfo {
width: 77%;
padding: 35px;
}
a.book.popup-with-zoom-anim.button-isi.zoomIn.animated {
padding: 5px 25px;
font-size: 13px;
margin-top: 25px;
}
}
@media screen and (max-width: 375px) {
.signin-agile,
.signup-agileinfo {
width: 80%;
padding: 30px;
}
.book-form h3 {
font-size: 1.5em;
}
}
@media screen and (max-width: 320px) {
h1 {
font-size: 27px;
margin: 35px 0px 30px 0px;
}
.signin-agile,
.signup-agileinfo {
width: 84%;
padding: 20px;
}
.signin-agile h2,
.signup-agileinfo h3 {
font-size: 20px;
}
input[type="text"],
input[type="password"] {
padding: 10px;
}
input[type="submit"] {
padding: 10px 0px;
}
ul li input[type="checkbox"]+label span:first-child {
width: 10px;
height: 10px;
top: 3px;
}
ul li input[type="checkbox"]+label {
font-size: 12px;
padding-left: 20px;
}
form a {
font-size: 12px;
margin-top: 4px;
}
a.book.popup-with-zoom-anim.button-isi.zoomIn.animated {
margin-top: 30px;
}
.signup-agileinfo p {
font-size: 12.5px;
}
}

@ -0,0 +1,93 @@
*{
margin:0;
padding:0;
}
#we{
background:url(../img/02.jpg);
background-size:100% 100%;
background:cover;
background-repeat: no-repeat;
height:100%;
width:100%;
position:fixed;
}
.sub{
margin-top:100px;
margin-left:110px;
width:1000px;
height:300px;
z-index:+999;
}
.a2{
font-size:30px;
color:#000;
font-family:;
}
#input1{
width:200px;
height:25px;
}
.date{
width:200px;
height:30px;
}
.btn{
width:90px;
height:45px;
margin-left:300px;
font-size:26px;
font-family: ;
color:#ffffff;
border-radius:10px;
background-color:#989493;
box-shadow: 0px 0px 5px 5px #fff;
border-color:#989493;
margin-top:10px;
cursor: pointer;
}
@media only screen and (max-width: 1000px) {
.sub{
position: absolute;
top:0px;
left:-70px;
width:400px;
height:400px;
z-index:+999;
}
#we{
background:url(../img/05.jpg);
background-size:100% 100%;
background:cover;
background-repeat: no-repeat;
height:100%;
width:100%;
position:fixed;
}
.a2{
font-size:25px;
color:#000;
font-family:;
}
#input1{
width:115px;
height:25px;
}
.date{
width:150px;
height:30px;
}
.btn{
width:90px;
height:45px;
margin-left:90px;
font-size:26px;
font-family: ;
color:#ffffff;
border-radius:10px;
background-color:#ded329;
box-shadow: 0px 0px 5px 5px #fff;
border-color:#ded329;
margin-top:10px;
cursor: pointer;
}
}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

File diff suppressed because one or more lines are too long

@ -0,0 +1,100 @@
function hideAllSelect() {
var obj = document.getElementById("input1"); //定位id。
var index = obj.selectedIndex; // 选中索引。
var text = obj.options[index].text; // 选中文本。
var select2 = document.getElementById("select2");
var select3 = document.getElementById("select3");
var select4 = document.getElementById("select4");
var select5 = document.getElementById("select5");
if (text == "线上面试") {
select2.style.display = "";
select3.style.display = "none";
select4.style.display = "none";
select5.style.display = "none";
}
else if (text == "线下成都面试") {
select2.style.display = "none";
select3.style.display = "";
select4.style.display = "none";
select5.style.display = "none";
}
else if (text == "线下天津面试") {
select2.style.display = "none";
select3.style.display = "none";
select4.style.display = "";
select5.style.display = "none";
}
else {
select2.style.display = "none";
select3.style.display = "none";
select4.style.display = "none";
select5.style.display = "";
}
};
function Number1() {
var numberMatrix={{numberMatrix}};
var select2 = document.getElementById("select2");
var select3 = document.getElementById("select3");
var select4 = document.getElementById("select4");
var select5 = document.getElementById("select5");
var dateall = select2.getElementsByClassName("date");
var date = dateall[0].options[dateall[0].selectedIndex].value
var time = dateall[1].options[dateall[1].selectedIndex].value
if (date!="" && time !=""){
document.getElementById("numberMatrix").value=numberMatrix[date][time];
}
else{
document.getElementById("numberMatrix").value="";
}
};
function Number2() {
var numberMatrix={{numberMatrix}};
var select2 = document.getElementById("select2");
var select3 = document.getElementById("select3");
var select4 = document.getElementById("select4");
var select5 = document.getElementById("select5");
var dateall = select3.getElementsByClassName("date");
var date = dateall[0].options[dateall[0].selectedIndex].value
var time = dateall[1].options[dateall[1].selectedIndex].value
if (date!="" && time !=""){
document.getElementById("numberMatrix").value=numberMatrix[date][time];
}
else{
document.getElementById("numberMatrix").value="";
}
};
function Number3() {
var numberMatrix={{numberMatrix}};
var select2 = document.getElementById("select2");
var select3 = document.getElementById("select3");
var select4 = document.getElementById("select4");
var select5 = document.getElementById("select5");
var dateall = select4.getElementsByClassName("date");
var date = dateall[0].options[dateall[0].selectedIndex].value
var time = dateall[1].options[dateall[1].selectedIndex].value
if (date!="" && time !=""){
document.getElementById("numberMatrix").value=numberMatrix[date][time];
}
else{
document.getElementById("numberMatrix").value="";
}
};
function Number4() {
var numberMatrix={{numberMatrix}};
var select2 = document.getElementById("select2");
var select3 = document.getElementById("select3");
var select4 = document.getElementById("select4");
var select5 = document.getElementById("select5");
var dateall = select5.getElementsByClassName("date");
var date = dateall[0].options[dateall[0].selectedIndex].value
var time = dateall[1].options[dateall[1].selectedIndex].value
if (date!="" && time !=""){
document.getElementById("numberMatrix").value=numberMatrix[date][time];
}
else{
document.getElementById("numberMatrix").value="";
}
};

@ -0,0 +1,13 @@
from django.contrib import admin
from django.urls import path
from django.conf.urls import url
from . import view,search
urlpatterns = [
path('admin/', admin.site.urls),
url(r'^hello$', view.hello),
url(r'^team$', search.team),
url(r'^login$', search.login),
url(r'^post$', search.post)
]

@ -0,0 +1,10 @@
from django.http import HttpResponse
from django.shortcuts import render
def hello(request):
context ={}
context['hello'] = 'Hello Python'
return render(request,'hello.html',context)
# return HttpResponse("Hello World")

@ -0,0 +1,16 @@
"""
WSGI config for HelloWorld project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "HelloWorld.settings")
application = get_wsgi_application()

@ -0,0 +1,21 @@
# 微光群面报名系统
## 简介
这个系统早期作品需要配置setting.py中的SECRET_KEY、ALLOWED_HOSTS
代码结构很差,临时写的。
## 导入环境
conda install --yes --file requirements.txt
## 运行
python manage.py runserver 0.0.0.0:8000
## 结果
![首页](images/2020-04-02-19-34-51.png)
其他界面参见文件夹show

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 KiB

@ -0,0 +1,15 @@
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "HelloWorld.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)

@ -0,0 +1,25 @@
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: win-64
asgiref=3.2.5=py_0
asn1crypto=1.3.0=py37_0
ca-certificates=2020.1.1=0
certifi=2019.11.28=py37_1
cffi=1.14.0=py37h7a1dbc1_0
cryptography=2.8=py37h7a1dbc1_0
django=3.0.3=py_0
idna=2.9=py_1
openssl=1.1.1f=he774522_0
pip=20.0.2=py37_1
pycparser=2.20=py_0
pymysql=0.9.3=py37_0
python=3.7.7=h60c2a47_0_cpython
pytz=2019.3=py_0
setuptools=46.1.3=py37_0
six=1.14.0=py37_0
sqlite=3.31.1=he774522_0
sqlparse=0.3.0=py_0
vc=14.1=h0510ff6_4
vs2015_runtime=14.16.27012=hf0eaf9b_1
wheel=0.34.2=py37_0
wincertstore=0.2=py37_0

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<style>
* {
text-align: center;
margin: 0;
padding: 0;
}
h1 {
margin-top: 20%;
color: tomato;
}
</style>
<link rel="stylesheet" href="static/css/login.css"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>404Not Found</h1>
<h3>输入的账号或密码不对</h3>
<h3>请注意哦!</h3>
<a href="https://wg.daitianyu.cn/login"> <button class="up">返回</button></a>
</body>
</html>

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<style>
* {
text-align: center;
margin: 0;
padding: 0;
}
h1 {
margin-top: 20%;
color: tomato;
}
</style>
<link rel="stylesheet" href="static/css/login.css"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>预约失败,请重新预约</h1>
<a href="https://wg.daitianyu.cn/login"> <button class="up">返回</button></a>
</body>
</html>

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<style>
* {
text-align: center;
margin: 0;
padding: 0;
}
h1 {
margin-top: 20%;
color: tomato;
}
</style>
<link rel="stylesheet" href="static/css/login.css"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>预约失败已满8人请重新预约</h1>
<a href="https://wg.daitianyu.cn/login"> <button class="up">返回</button></a>
</body>
</html>

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<style>
* {
text-align: center;
margin: 0;
padding: 0;
}
h1 {
margin-top: 20%;
color: tomato;
}
</style>
<link rel="stylesheet" href="static/css/login.css"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>预约失败当晚9点后不允许预约第二天的面试</h1>
<a href="https://wg.daitianyu.cn/login"> <button class="up">返回</button></a>
</body>
</html>

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<style>
* {
text-align: center;
margin: 0;
padding: 0;
}
h1 {
margin-top: 20%;
color: tomato;
}
</style>
<link rel="stylesheet" href="static/css/login.css"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>选择成功</h1>
<a href="https://wg.daitianyu.cn/login"> <button class="up">返回</button></a>
</body>
</html>

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<style>
* {
text-align: center;
margin: 0;
padding: 0;
}
h1 {
margin-top: 20%;
color: tomato;
}
</style>
<link rel="stylesheet" href="static/css/login.css"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>可能你的预约数据有问题</h1>
<h3>点击返回重新登入预约</h3>
<a href="https://wg.daitianyu.cn/login"> <button class="up">返回</button></a>
</body>
</html>

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
</head>
<body>
<h1>Hello World!</h1>
<p>菜鸟教程 Django 测试。</p>
{% block mainbody %}
<p>original</p>
{% endblock %}
</body>
</html>

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width initial-scale=1" />
<link rel="shortcut icon" href="we.ico" type="image/x-icon" />
<link rel="stylesheet" href="static/css/login.css"/>
<title>登录</title>
</head>
<body style="width:100%;height:100%;">
<div id="we">
<div class="myform">
<form method="post" style="margin: 0 auto;width:50%;" action="team">
<font class="a1">姓名:</font><input class="but" type="text" name="username"><br><br>
<font class="a1">电话:</font><input class="but" type="text" name="tel" ><br><br>
<div style="margin:0 auto;width:50%;">
<input type="submit" class="up" value="登录">
</div>
</form>
</div>
</div>
</body>
</html>

@ -0,0 +1,3 @@
{% extends "base.html" %} {% block mainbody %}
<p>继承了 base.html 文件</p>
{% endblock %}

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<style>
* {
text-align: center;
margin: 0;
padding: 0;
}
h1 {
margin-top: 20%;
color: tomato;
}
</style>
<link rel="stylesheet" href="static/css/login.css"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>已经预约,信息如下:</h1>
<h3>形式:{{type}}</h3>
<h3>时间:{{date}} {{time}}</h3>
<h3>线下地点:<br>
成都:成都市锦江区上南大街49号吉祥大厦6楼<br>
天津:天津市河西区珠江道25号天津财经大学<br>
北京:北京市海淀区新街口外大街19号北京师范大学英东楼535室
</h3>
<a href="https://wg.daitianyu.cn/login"> <button class="up">返回</button></a>
</body>
</html>

@ -0,0 +1,244 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width initial-scale=1" />
<link rel="shortcut icon" href="we.ico" type="image/x-icon" />
<link rel="stylesheet" href="static/css/secondselect_1_1.css" />
<title>群面试时间录入</title>
</head>
<script type="text/javascript">
function hideAllSelect() {
var obj = document.getElementById("input1"); //定位id。
var index = obj.selectedIndex; // 选中索引。
var text = obj.options[index].text; // 选中文本。
var select2 = document.getElementById("select2");
var select3 = document.getElementById("select3");
var select4 = document.getElementById("select4");
var select5 = document.getElementById("select5");
if (text == "线上面试") {
select2.style.display = "";
select3.style.display = "none";
select4.style.display = "none";
select5.style.display = "none";
}
else if (text == "线下成都面试") {
select2.style.display = "none";
select3.style.display = "";
select4.style.display = "none";
select5.style.display = "none";
}
else if (text == "线下天津面试") {
select2.style.display = "none";
select3.style.display = "none";
select4.style.display = "";
select5.style.display = "none";
}
else {
select2.style.display = "none";
select3.style.display = "none";
select4.style.display = "none";
select5.style.display = "";
}
};
function Number1() {
var numberMatrix ={{numberMatrix }};
var select2 = document.getElementById("select2");
var select3 = document.getElementById("select3");
var select4 = document.getElementById("select4");
var select5 = document.getElementById("select5");
var dateall = select2.getElementsByClassName("date");
var date = dateall[0].options[dateall[0].selectedIndex].value
if (date == 0) {
dateall[1].options[1].style.display = "none";
dateall[1].options[2].style.display = "none";
dateall[1].options[3].style.display = "none";
dateall[1].options[4].style.display = "none";
}
else{
dateall[1].options[1].style.display = "";
dateall[1].options[2].style.display = "";
dateall[1].options[3].style.display = "";
dateall[1].options[4].style.display = "";
}
var time = dateall[1].options[dateall[1].selectedIndex].value
if (date != "" && time != "") {
document.getElementById("numberMatrix").value = numberMatrix[date][time];
}
else {
document.getElementById("numberMatrix").value = "";
}
};
function Number2() {
var numberMatrix ={{numberMatrix }};
var select2 = document.getElementById("select2");
var select3 = document.getElementById("select3");
var select4 = document.getElementById("select4");
var select5 = document.getElementById("select5");
var dateall = select3.getElementsByClassName("date");
var date = dateall[0].options[dateall[0].selectedIndex].value
var time = dateall[1].options[dateall[1].selectedIndex].value
if (date != "" && time != "") {
document.getElementById("numberMatrix").value = numberMatrix[date][time];
}
else {
document.getElementById("numberMatrix").value = "";
}
};
function Number3() {
var numberMatrix ={{numberMatrix }};
var select2 = document.getElementById("select2");
var select3 = document.getElementById("select3");
var select4 = document.getElementById("select4");
var select5 = document.getElementById("select5");
var dateall = select4.getElementsByClassName("date");
var date = dateall[0].options[dateall[0].selectedIndex].value
var time = dateall[1].options[dateall[1].selectedIndex].value
if (date != "" && time != "") {
document.getElementById("numberMatrix").value = numberMatrix[date][time];
}
else {
document.getElementById("numberMatrix").value = "";
}
};
function Number4() {
var numberMatrix ={{numberMatrix }};
var select2 = document.getElementById("select2");
var select3 = document.getElementById("select3");
var select4 = document.getElementById("select4");
var select5 = document.getElementById("select5");
var dateall = select5.getElementsByClassName("date");
var date = dateall[0].options[dateall[0].selectedIndex].value
var time = dateall[1].options[dateall[1].selectedIndex].value
if (date != "" && time != "") {
document.getElementById("numberMatrix").value = numberMatrix[date][time];
}
else {
document.getElementById("numberMatrix").value = "";
}
};
</script>
<body style="width:100%;height:100%;">
<div id="we">
<form class="sub" method="post" action="post"><br><br>
<input type="text" name="username" value="{{username}}" style="display:none"></p>
<input type="text" name="tel" value="{{tel}}" style="display:none"></p>
<font class="a2">请选择面试方式:</font>
<select id="input1" onchange="hideAllSelect()" name="division">
<option selected="selected" disabled="disabled" style='display: none' value=''></option>
<option value="线上面试">线上面试</option>
<option value="线下成都面试">线下成都面试</option>
<option value="线下天津面试">线下天津面试</option>
<option value="线下北京面试">线下北京面试</option>
</select><br><br><br>
<div id="select2" style="display:none">
<div class="a2">请选择你面试的时间(每次面试最多8人已预约人数可能有延迟若提交时显示人员已满请重新预约选择)</div>
<select name='Idate0' class="date" onchange="Number1()">
<option selected="selected" disabled="disabled" style='display: none' value=''></option>
<option value='0' style="display: {{display22}}">3月22日</option>
<option value='1' style="display: {{display23}}">3月23日</option>
<option value='2' style="display: {{display24}}">3月24日</option>
<option value='3' style="display: {{display25}}">3月25日</option>
<option value='4' style="display: {{display26}}">3月26日</option>
<option value='5' style="display: {{display27}}">3月27日</option>
<option value='6' style="display: {{display28}}">3月28日</option>
<option value='7' style="display: {{display29}}">3月29日</option>
<option value='8' style="display: {{display30}}">3月30日</option>
<option value='9' style="display: {{display31}}">3月31日</option>
<option value='10' style="display: {{display1}}">4月1日</option>
<option value='11' style="display: {{display2}}">4月2日</option>
<option value='12' style="display: {{display3}}">4月3日</option>
<option value='13' style="display: {{display4}}">4月4日</option>
</select>
<select name="Itime0" class="date" onchange="Number1()">
<option selected="selected" disabled="disabled" style='display: none' value=''></option>
<option value="0">10:00-11:00</option>
<option value="1">11:00-12:00</option>
<option value="2">15:00-16:00</option>
<option value="3">16:00-17:00</option>
<option value="4">17:00-18:00</option>
<option value="5">19:00-20:00</option>
<option value="6">20:00-21:00</option>
<option value="7">21:00-22:00</option>
<option value="8">22:00-23:00</option>
</select>
<select name='Iaddr' style='display: none'>
<option value='' selected="selected"></option>
</select>
</div>
<div id="select3" style="display:none">
<div class="a2">请选择你面试的时间(每次面试最多8人已预约人数可能有延迟若提交时显示人员已满请重新预约选择)</div>
<select name='Idate1' class="date" onchange="Number2()">
<option selected="selected" disabled="disabled" style='display: none' value=''></option>
<option value='8' style="display: {{display30}}">3月30日</option>
<option value='9' style="display: {{display31}}">3月31日</option>
</select>
<select name="Itime1" class="date" onchange="Number2()">
<option selected="selected" disabled="disabled" style='display: none' value=''></option>
<option value="9">9:30-10:45</option>
<option value="10">10:45-12:00</option>
<option value="11">13:30-14:45</option>
<option value="12">15:00-16:15</option>
<option value="13">16:45-18:00</option>
</select><br><br>
<font class="a2">面试地点:</font>
<select name='Iaddr' style="width:300px;height:30px;">
<option value='成都'>成都市锦江区上南大街49号吉祥大厦6楼</option>
</select>
</div>
<div id="select4" style="display:none">
<div class="a2">请选择你面试的时间(每次面试最多8人已预约人数可能有延迟若提交时显示人员已满请重新预约选择)</div>
<select name='Idate2' class="date" onchange="Number3()">
<option selected="selected" disabled="disabled" style='display: none' value=''></option>
<option value='9' style="display: {{display31}}">3月31日</option>
</select>
<select name="Itime2" class="date" onchange="Number3()">
<option selected="selected" disabled="disabled" style='display: none' value=''></option>
<option value="9">9:30-10:45</option>
<option value="10">10:45-12:00</option>
<option value="11">13:30-14:45</option>
<option value="12">15:00-16:15</option>
<option value="13">16:45-18:00</option>
</select><br><br>
<font class="a2">面试地点:</font>
<select name='Iaddr' style="width:300px;height:30px;">
<option value='天津'>天津市河西区珠江道25号天津财经大学</option>
</select>
</div>
<div id="select5" style="display:none" onchange="Number4()">
<div class="a2">请选择你面试的时间(每次面试最多8人已预约人数可能有延迟若提交时显示人员已满请重新预约选择)</div>
<select name='Idate3' class="date">
<option selected="selected" disabled="disabled" style='display: none' value=''></option>
<option value='2' style="display: {{display24}}">3月24日</option>
</select>
<select name="Itime3" class="date" onchange="Number4()">
<option selected="selected" disabled="disabled" style='display: none' value=''></option>
<option value="9">9:30-10:45</option>
<option value="10">10:45-12:00</option>
<option value="11">13:30-14:45</option>
<option value="12">15:00-16:15</option>
<option value="13">16:45-18:00</option>
</select><br><br>
<font class="a2">面试地点:</font>
<select name='Iaddr' style="width:360px;height:30px;">
<option value='北京'>北京市海淀区新街口外大街19号北京师范大学英东楼535室</option>
</select>
</div>
<font class="a2">该面试时间段人数为:</font>
<input id="numberMatrix" type="text" value="" readonly="readonly">
<br><br>
<input type="submit" class="btn" value="提交">
</form>
</div>
</body>
</html>

@ -0,0 +1,3 @@
def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
return [b"Hello World"]

@ -0,0 +1,21 @@
# myweb_uwsgi.ini file
[uwsgi]
# Django-related settings
socket = :0000
# the base directory (full path)
chdir = /www
# Django s wsgi file
module = HelloWorld.wsgi
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 4
# ... with appropriate permissions - may be needed
# chmod-socket = 664
# clear environment on exit
vacuum = true
Loading…
Cancel
Save