forked from elabftw/elabftw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathteam.php
More file actions
105 lines (100 loc) · 4.47 KB
/
Copy pathteam.php
File metadata and controls
105 lines (100 loc) · 4.47 KB
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
<?php
/********************************************************************************
* *
* Copyright 2012 Nicolas CARPi (nicolas.carpi@gmail.com) *
* http://www.elabftw.net/ *
* *
********************************************************************************/
/********************************************************************************
* This file is part of eLabFTW. *
* *
* eLabFTW is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Affero General Public License as *
* published by the Free Software Foundation, either version 3 of *
* the License, or (at your option) any later version. *
* *
* eLabFTW is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR *
* PURPOSE. See the GNU Affero General Public License for more details. *
* *
* You should have received a copy of the GNU Affero General Public *
* License along with eLabFTW. If not, see <http://www.gnu.org/licenses/>. *
* *
********************************************************************************/
require_once('inc/common.php');
$page_title= 'Team';
require_once('inc/head.php');
require_once('inc/menu.php');
require_once('inc/info_box.php');
?>
<div id='team'>
<ul>
<li><a href='#team-1'>Members</a></li>
<li><a href='#team-2'>Statistics</a></li>
<li><a href='#team-3'>Tips and tricks</a></li>
</ul>
<!-- *********************** -->
<div id='team-1'>
<?php // SQL to get members info
$sql = "SELECT * FROM users WHERE validated = 1";
$req = $pdo->prepare($sql);
$req->execute();
echo "<ul>";
while ($data = $req->fetch()) {
echo "<li><img src='img/profile.png' alt='profile' /> ";
echo "<a href='mailto:".$data['email']."'>".$data['firstname']." ".$data['lastname']."</a>";
if (!empty($data['phone'])) {
echo " <img src='themes/".$_SESSION['prefs']['theme']."/img/phone.png' alt='Phone :' title='phone' /> ".$data['phone'];
}
if (!empty($data['cellphone'])) {
echo " <img src='themes/".$_SESSION['prefs']['theme']."/img/cellphone.png' alt='Cellphone :' title='Cellphone' /> ".$data['cellphone'];
}
if (!empty($data['website'])) {
echo " <img src='themes/".$_SESSION['prefs']['theme']."/img/website.png' alt='website :' title='website' /> <a href='".$data['website']."'>www</a>";
}
if (!empty($data['skype'])) {
echo " <img src='themes/".$_SESSION['prefs']['theme']."/img/skype.png' alt='skype :' title='skype' /> ".$data['skype'];
}
echo "</li>";
}
echo "</ul>";
?>
</div>
<!-- *********************** -->
<div id='team-2'>
<?php
// show stats about eLabFTW
// number of experiments total
$sql_exp_total = 'SELECT * FROM experiments';
$req_exp_total = $pdo->prepare($sql_exp_total);
$req_exp_total->execute();
// number of items total
$sql_db_total = 'SELECT * FROM items';
$req_db_total = $pdo->prepare($sql_db_total);
$req_db_total->execute();
?>
<p>There is a total of <?php echo $req_exp_total->rowCount() ;?> experiments.</p>
<p>There is a total of <?php echo $req_db_total->rowCount() ;?> items in the database.</p>
</div>
<div id='team-3'>
<p>
<ul>
<li>- You can use a TODOlist by pressing 't'</li>
<li>- You can have templates (edit them in your User Control Panel)</li>
<li>- If you press Ctrl Shift D in the editor, the date will appear under the cursor</li>
<li>- You can duplicate experiments in one click</li>
<li>- Click a tag to list all items with this tag</li>
</ul>
</p>
</div>
</div>
<?php require_once('inc/footer.php');?>
<script>
$(document).ready(function() {
// TABS
$( "#team" ).tabs({
autoHeight: false
});
});
</script>