-
Notifications
You must be signed in to change notification settings - Fork 0
/
pickup.php
executable file
·197 lines (155 loc) · 9.13 KB
/
pickup.php
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!-- Header -->
<?php require_once('header.php'); ?>
<!-- Content -->
<div id="content">
<!-- 960 Container -->
<div class="container floated">
<!-- Sidebar -->
<div class="four floated sidebar left">
<aside class="sidebar">
<!-- Search -->
<nav class="widget-search">
<form action="404-page.html" method="get">
<button class="search-btn-widget"></button>
<input class="search-field" type="text" onblur="if(this.value=='')this.value='Search';" onfocus="if(this.value=='Search')this.value='';" value="Search" />
</form>
</nav>
<div class="clearfix"></div>
<!-- Categories -->
<nav class="widget">
<h4>常用链接</h4>
<ul class="categories">
<li><a href="#">Business</a></li>
<li><a href="#">Entertainment</a></li>
<li><a href="#">News & Politics</a></li>
<li><a href="#">Social Media</a></li>
<li><a href="#">Technology</a></li>
</ul>
</nav>
<div class="clearfix"></div>
</aside>
</div>
<!-- Sidebar / End -->
<!-- Page Content -->
<div class="eleven floated right">
<div class="page-content">
<h3 class="margin-reset"> 新生接机及临时住宿服务 </h3><br />
<!--<p><img class="image-right" src="images/portfolio/portfolio-05.jpg" style="width: 45%;" alt="" />-->
<p>亲爱的各位同学,学者:</p>
<p>祝贺大家即将到达加州大学戴维斯分校学习工作,并加入到中国学生学者联合会的大家庭中。我们代表CSSA全体成员向大家的到来表示热烈欢迎。为了保证每年新生、访问学者接待工作顺利进行,CSSA将会安排一系列注册,接机,临时住房,生活必需品采购等相关服务,为大家的到来提供更多的便利,使各位新成员能够更快的适应Davis的生活,早日投入到学习科研中。</p>
<p>每年新生接待工作一般从8月下旬开始,为了配合我们的工作,我们希望大家注意以下事项:</p>
<!--<div class="notification notice">-->
<!--<p>每年新生接待工作一般从8月下旬开始,为了配合我们的工作,我们希望大家注意以下事项:</p>-->
<!--</div>-->
<p>1. 注册使用NARS系统</p>
<p>NARS(Newcommer Arrival Registration System)系统帮助我们统计新生到达信息,更好的安排接机服务。CSSA将在每年五月至六月期间公布2-3个接机日期(一般在9月初),请您根据您的日程选择适合您的接机日期,预定机票,并且在NARS注册您的个人信息。在接机日CSSA会派专人去旧金山国际机场(SFO)等候,并且帮助预定机场巴士(Airporter)。SFO到Davis的Airporter费用一般在$30-$40每人(每年会略有增长)。如果您在非接机日单独到达也可以联系Airporter (http://www.davisairporter.com/),不过费用相对会贵些。另外还有其他方式可供选择(Public ground transportation from Sacramento and San Francisco to Davis)。CSSA强烈推荐大家在有接机服务的日期到达。</p>
<div class="line" style="margin: 40px auto 40px -40px"></div>
<div id="skill-bars">
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
$dbc = mysqli_connect("localhost", "root", "root", "cssa");
$query_date_count = "
SELECT COUNT(`date`) as count, `date` as date
FROM `newbie`
WHERE `date` > 20130101
GROUP BY `date`
ORDER BY count DESC
";
$result_date_count = mysqli_query($dbc, $query_date_count);
$max_date_count = 1;
while ($entry = mysqli_fetch_array($result_date_count)) {
$max_date_count = $entry["count"] < $max_date_count ? $max_date_count : $entry["count"];
};
mysqli_data_seek($result_date_count, 0);
while ($entry = mysqli_fetch_array($result_date_count)) {
if ($entry["count"] < 10) continue;
$percentage = $entry["count"];
echo "<div class=\"skill-bar\">";
echo "<div class=\"skill-bar-content\" data-percentage=\"$percentage\"></div>";
echo "<span class=\"skill-title\">" . $entry["date"] . "</span>";
echo "</div>";
};
?>
</div>
<div class="line" style="margin: 40px auto 40px -40px"></div>
<section id="pickup-info">
<form class="form-horizontal" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="inputEmail">Email</label>
<!--<div class="controls">-->
<input type="text" id="inputEmail" placeholder="Email">
<!--</div>-->
</div>
<div class="control-group">
<label class="control-label" for="inputPassword">Password</label>
<div class="controls">
<input type="password" id="inputPassword" placeholder="Password">
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox"> Remember me
</label>
<button type="submit" class="btn">Sign in</button>
</div>
</div>
</form>
<div>
<label for="first-name">First Name</label>
<input name="first-name" type="text" id="first-name"/>
</div>
<label for="last-name">Last Name</label>
<input name="last-name" type="text" id="last-name"/>
<div>
<label for="gender">Gender</label>
<input name="gender" type="radio" value="0">Female</input>
<input name="gender" type="radio" value="1">Male</input>
</div>
<label for="hometown">Hometown</label>
<input name="hometown" type="text" id="hometown"/>
<label for="email">Email</label>
<input name="email" type="text" id="email"/>
<label for="original-university">Original University</label>
<input name="original-university" type="text" id="original-university"/>
<label for="original-major">Original Major</label>
<input name="original-major" type="text" id="original-major"/>
<label for="ucd-major">UCD Major</label>
<input name="ucd-major" type="text" id="ucd-major"/>
<label for="departure-airport">Departure Airport</label>
<select name="departure-airport">
<option value="0" selected>Beijing Capital International Airport - PEK</option>
<option value="1">Shanghai Pudong International Airport - PVG</option>
<option value="2">Other</option>
</select>
<label for="arrival-airport">Arrival Airport</label>
<input name="arrival-airport" type="text" id="arrival-airport"/>
<label for="arrival-date">Arrival Date</label>
<input name="arrival-date" type="text" id="arrival-date"/>
<label for="arrival-time">Arrival Time</label>
<input name="arrival-time" type="text" id="arrival-time"/>
<label for="flight">Flight</label>
<input name="flight" type="text" id="flight"/>
<label for="pickup">Need Pickup</label>
<input name="pickup" type="text" id="pickup"/>
<label for="accommodation">Temporary Accommodation</label>
<input name="accommodation" type="text" id="accommodation"/>
<label for="luggage">Luggage</label>
<input name="luggage" type="text" id="luggage"/>
<label for="message">Message</label>
<input name="message" type="text" id="message"/>
</form>
</section>
</div>
</div>
<!-- Page Content / End -->
</div>
<!-- 960 Container / End -->
</div>
<!-- Content / End -->
</div>
<!-- Wrapper / End -->
<!-- Footer -->
<?php require_once('footer.php'); ?>