50
50
51
51
// resize marker list to fit window
52
52
function resizeList() {
53
- newHeight = $('html').height() - $('#footerbar').height();
54
- $('#list').css('height', newHeight + "px");
55
- $('#menu ').css('margin-top ', $('#footerbar').height());
53
+ newHeight = $('html').height() - $('#footerbar').height() - $('.wrapper').height() - 9 ;
54
+ $('#list').css('height', newHeight + "px");
55
+ $('#menuRight ').css('margin-bottom ', $('#footerbar').height());
56
56
}
57
57
58
58
@@ -134,10 +134,17 @@ function initialize() {
134
134
markers = new Array();
135
135
<?php
136
136
$ types = Array (
137
+ Array ('2010 ' , '2010级 ' ),
137
138
Array ('2009 ' , '2009级 ' ),
138
- Array ('2008 ' ,'2008级 ' ),
139
+ Array ('2008 ' , '2008级 ' ),
139
140
Array ('2007 ' , '2007级 ' ),
140
141
Array ('2006 ' , '2006级 ' ),
142
+ Array ('2005 ' , '2005级 ' ),
143
+ Array ('2004 ' , '2004级 ' ),
144
+ Array ('2003 ' , '2003级 ' ),
145
+ Array ('2002 ' , '2002级 ' ),
146
+ Array ('2001 ' , '2001级 ' ),
147
+ Array ('2000 ' , '2000级 ' ),
141
148
Array ('other ' , '更早... ' ),
142
149
);
143
150
$ marker_id = 0 ;
@@ -345,6 +352,7 @@ function markerListMouseOut(marker_id) {
345
352
<a href="./"><img src="./images/OUC-logo.png" alt="中国海洋大学校友地图"></a>
346
353
</div>
347
354
<h3>中国海洋大学校友地图</h3>
355
+ <h4>—— 团干分会</h4>
348
356
<p>To connect and unite the past students of OUC</p>
349
357
<div class="buttons">
350
358
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#modal_add">+ 加入</button>
@@ -359,10 +367,17 @@ function markerListMouseOut(marker_id) {
359
367
<ul class="list" id="list">
360
368
<?php
361
369
$ types = Array (
370
+ Array ('2010 ' , '2010级 ' ),
362
371
Array ('2009 ' , '2009级 ' ),
363
- Array ('2008 ' ,'2008级 ' ),
372
+ Array ('2008 ' , '2008级 ' ),
364
373
Array ('2007 ' , '2007级 ' ),
365
374
Array ('2006 ' , '2006级 ' ),
375
+ Array ('2005 ' , '2005级 ' ),
376
+ Array ('2004 ' , '2004级 ' ),
377
+ Array ('2003 ' , '2003级 ' ),
378
+ Array ('2002 ' , '2002级 ' ),
379
+ Array ('2001 ' , '2001级 ' ),
380
+ Array ('2000 ' , '2000级 ' ),
366
381
Array ('other ' , '更早... ' ),
367
382
);
368
383
if ($ show_events == true ) {
@@ -415,7 +430,7 @@ function markerListMouseOut(marker_id) {
415
430
您能在一张地图上看到分布在世界各地的海大人,并找到他们公开的联系方式。在这里,您能快速地通过搜索或者分类找到您当年的校友。为了方便其他校友也能找到您,热烈欢迎您提交自己的信息:</p>
416
431
<p style="text-align:center;"><button type="button" class="btn btn-danger" data-toggle="modal" data-target="#modal_add" data-dismiss="modal">+ 加入</button><span> 或点击网页右侧面板相同按钮</span></p>
417
432
<p>如果您在使用过程中遇到问题,或者对校友地图有任何意见与建议,欢迎向我们反馈:<a href="mailto:
[email protected] ">
[email protected] </a></p><hr>
418
- <p>校友地图项目的诞生离不开<a href="http://www2 .ouc.edu.cn/oceanyouth/ " target="_blank">中国海洋大学校团委 </a>与<a href="http://222.195.158.146/nc/index.html " target="_blank">中国海洋大学网络与信息中心 </a>的支持.<br>离不开众多<a href="./Credits.html" target="_blank">开源工具</a>.</p>
433
+ <p>校友地图项目的诞生离不开<a href="http://srdp .ouc.edu.cn/" target="_blank">本科生研究发展计划(SRDP) </a>与<a href="http://web.ouc.edu.cn/tw/ " target="_blank">中国海洋大学校团委 </a>的支持.<br>离不开众多<a href="./Credits.html" target="_blank">开源工具</a>.</p>
419
434
</div>
420
435
<div class="modal-footer">
421
436
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
@@ -443,10 +458,17 @@ function markerListMouseOut(marker_id) {
443
458
<label class="col-sm-2 control-label" for="input01">入学年份</label>
444
459
<div class="col-sm-4">
445
460
<select name="type" id="add_type" class="col-sm-3 form-control">
446
- <option value="2009">2009年</option>
461
+ <option value="2010">2010年</option>
462
+ <option value="2009">2009年</option>
447
463
<option value="2008">2008年</option>
448
464
<option value="2007">2007年</option>
449
465
<option value="2006">2006年</option>
466
+ <option value="2005">2005年</option>
467
+ <option value="2004">2004年</option>
468
+ <option value="2003">2003年</option>
469
+ <option value="2002">2002年</option>
470
+ <option value="2001">2001年</option>
471
+ <option value="2000">2000年</option>
450
472
<option value="other">更早...</option>
451
473
</select>
452
474
</div>
@@ -460,7 +482,7 @@ function markerListMouseOut(marker_id) {
460
482
<label class="col-sm-1 control-label" for="add_position">职务</label>
461
483
<div class="col-sm-4">
462
484
<input type="text" class="form-control" name="position" id="add_position">
463
- <p class="help-block"><b>选填</b>,我们不会将其公开 </p>
485
+ <p class="help-block"><b>选填,保密 </b>,不会公开 </p>
464
486
</div>
465
487
</div>
466
488
<div class="form-group">
@@ -471,9 +493,9 @@ function markerListMouseOut(marker_id) {
471
493
<label class="col-sm-2 control-label" for="add_phone_number">联系电话</label>
472
494
<div class="col-sm-4">
473
495
<input type="text" class="form-control" name="phone_number" id="add_phone_number">
474
- <p class="help-block"><b>选填</b>,我们不会将其公开 </p>
496
+ <p class="help-block"><b>选填,保密 </b>,只做紧急联系用 </p>
475
497
</div>
476
- </div>
498
+ </div>
477
499
<div class="form-group">
478
500
<label class="col-sm-3 control-label" for="add_student_work">曾参与社会工作</label>
479
501
<div class="col-sm-9">
@@ -497,6 +519,18 @@ function markerListMouseOut(marker_id) {
497
519
</p>
498
520
</div>
499
521
</div>
522
+ <div class="form-group">
523
+ <label class="col-sm-2 control-label" for="add_qq_number">QQ号码</label>
524
+ <div class="col-sm-4">
525
+ <input type="text" class="form-control" name="qq_number" id="add_qq_number">
526
+ <p class="help-block"><b>选填</b>,默认会展示给校友</p>
527
+ </div>
528
+ <label class="col-sm-2 control-label" for="add_wechat_number">微信号</label>
529
+ <div class="col-sm-4">
530
+ <input type="text" class="form-control" name="wechat_number" id="add_wechat_number">
531
+ <p class="help-block"><b>选填</b>,默认会展示给校友</p>
532
+ </div>
533
+ </div>
500
534
<div class="form-group">
501
535
<label class="col-sm-2 control-label" for="add_description">自我描述</label>
502
536
<div class="col-sm-10">
@@ -537,6 +571,8 @@ function markerListMouseOut(marker_id) {
537
571
position = $form.find( '#add_position' ).val(),
538
572
student_work = $form.find( '#add_student_work' ).val(),
539
573
phone_number = $form.find( '#add_phone_number' ).val(),
574
+ qq_number = $form.find( '#add_qq_number' ).val(),
575
+ wechat_number = $form.find( '#add_wechat_number' ).val(),
540
576
email = $form.find( '#add_owner_email' ).val(),
541
577
name = $form.find( '#add_title' ).val(),
542
578
type = $form.find( '#add_type' ).val(),
@@ -546,7 +582,7 @@ function markerListMouseOut(marker_id) {
546
582
url = $form.attr( 'action' );
547
583
548
584
// send data and get results
549
- $.post( url, { employer_name: employer_name, position: position, student_work: student_work, phone_number: phone_number, email: email, name: name, type: type, address: address, uri: uri, description: description },
585
+ $.post( url, { employer_name: employer_name, position: position, student_work: student_work, phone_number: phone_number, qq_number: qq_number, wechat_number: wechat_number, email: email, name: name, type: type, address: address, uri: uri, description: description },
550
586
function( data ) {
551
587
var content = $( data ).find( '#content' );
552
588
0 commit comments