-
Notifications
You must be signed in to change notification settings - Fork 1
/
upload.html
159 lines (150 loc) · 5.66 KB
/
upload.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="https://use.fontawesome.com/9dd436f83a.js"></script>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection" />
<link rel="stylesheet" type="text/css" href="css/nav.css">
<link rel="stylesheet" type="text/css" href="css/upload.css">
<link rel="stylesheet" type="text/css" href="css/phone.css">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>视界-我要上传</title>
</head>
<body>
<nav>
<div class="nav-wrapper">
<div class="brand-logo">
<a href="#"><img src="img/slogan.png"></a>
</div>
<a href="#" data-activates="mobile-demo" class="button-collapse"><i class="material-icons">menu</i></a>
<ul class="right hide-on-med-and-down " id="menu">
<li>
<a href="mainpage.html">首页</a>
</li>
<li>
<a href="mywork.html">我的作品</a>
</li>
<li>
<a href="upload.html">我要上传</a>
</li>
<li>
<a href="#" onclick="alert_1()">我的评论</a>
</li>
<li>
<a href="information.html">我的信息</a>
</li>
</ul>
<ul class="side-nav" id="mobile-demo">
<li>
<a href="mainpage.html">首页</a>
</li>
<li>
<a href="mywork.html">我的作品</a>
</li>
<li>
<a href="upload.html">我要上传</a>
</li>
<li>
<a href="#" onclick="alert_1()">我的评论</a>
</li>
<li>
<a href="information.html">我的信息</a>
</li>
</ul>
</div>
</nav>
<!--二级栏-->
<div class="nav-content center">
<ul class="tabs tabs-transparent">
<li class="tab">
<a href="#test1">城市景点</a>
</li>
<li class="tab">
<a href="#test2">高校景观</a>
</li>
</ul>
</div>
<!--test1-->
<div id="test1" class="col s12">
<div class="row">
<form id="form_city" enctype="multipart/form-data">
<div class="col s10 l3 offset-s1 offset-l3" style="padding:0;">
<div class="m_frame" style="margin-top: 72px;">
<div class="left">照片名</div>
<input type="text" placeholder="请输入照片名" id="photoName_city" name="photoName"/>
</div>
<div class="m_frame">
<div class="left">省份</div>
<select name="province" id="province_1" onChange="changeSelect();">
<option value="广东">广东</option>
<option value="山东">山东</option>
<option value="江苏">江苏</option>
</select>
</div>
<div class="m_frame">
<div class="left">城市</div>
<select name="city" id="city_1">
<option value="广州">广州 </option>
<option value="深圳">深圳</option>
</select>
</div>
<div class="m_frame">
<div class="left">景点</div>
<input type="text" id="albumName_city" placeholder="请输入景点名称" name="albumName"/>
</div>
<div class="m_picture"><img id="preview_1" src="img/preview-picture.png" /></div>
<div class="button right"><input id="uploadFile_1" type="file" name="file" accept="image/*" onchange="previewFile_1()" />上传照片</div>
</div>
<div class="col s10 l3 offset-s1 offset-l1" style="padding:0;">
<div class="m_frame" style="margin-top: 72px;height: 312px;">
<textarea id="photoDesc_city" placeholder="添加描述" name="photoDesc"></textarea>
</div>
<div class=" button right"><input id="upload_city" type="submit" value="upload" />确认提交</div>
</div>
</form>
</div>
</div>
<!--test2-->
<div id="test2" class="col s12">
<div class="row">
<form id="form_school" enctype="multipart/form-data">
<div class="col s10 l3 offset-s1 offset-l3" style="padding:0;">
<div class="m_frame" style="margin-top: 72px;">
<div class="left">照片名</div>
<input type="text" placeholder="请输入照片名" id="photoName_school" name="photoName" />
</div>
<div class="m_frame">
<div class="left">省份</div>
<select name="province" id="province_school">
<option value="广东">广东</option>
<option value="山东">山东</option>
<option value="江苏">江苏</option>
</select>
</div>
<div class="m_frame">
<div class="left">学校</div>
<input type="text" name="albumName" id="albumName_school" placeholder="请输入学校名称" />
</div>
<div class="m_picture"><img id="preview_2" src="img/preview-picture.png" /></div>
<div class="button right"><input id="uploadFile_2" type="file" name="file" accept="image/*" onchange="previewFile_2()" />上传照片</div>
</div>
<div class="col s10 l3 offset-s1 offset-l1" style="padding:0;">
<div class="m_frame" style="margin-top: 72px;height: 312px;">
<textarea name="photoDesc" placeholder="添加描述" id="photoDesc_school"></textarea>
</div>
<div class=" button right"><input id="upload_school" type="submit" value="upload" />确认提交</div>
</div>
</form>
</div>
</div>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="js/jquery-3.2.1.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script type="text/javascript" src="js/upload.js"></script>
<script type="text/javascript" src="js/alert.js"></script>
</body>
</html>