-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtech.inc
54 lines (50 loc) · 1.81 KB
/
tech.inc
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
<?php
// This file is part of Music Match.
// Copyright (C) 2022 David P. Anderson
//
// Music Match is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// Music Match 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 Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with Music Match. If not, see <http://www.gnu.org/licenses/>.
// --------------------------------------------------------------------
function tech_profile_summary_table($user, $profile) {
row2('Areas',
lists_to_string(
TECH_AREA_LIST, $profile->tech_area, $profile->tech_area_custom
)
);
row2('Programs',
lists_to_string(
PROGRAM_LIST, $profile->program, $profile->program_custom
)
);
if ($profile->description) {
row2('Introduction', "<small>$profile->description</small>");
}
row2('Usually paid', $profile->tech_paid?"Yes":"No");
}
function tech_summary_header() {
row_heading_array(array("Name", "Areas", "Programs", "Country"));
}
function tech_summary_row($profile) {
$user = $profile->user;
row_array(array(
user_name_link($user, $profile),
lists_to_string(
TECH_AREA_LIST, $profile->tech_area, $profile->tech_area_custom, "<br>"
),
lists_to_string(
PROGRAM_LIST, $profile->program, $profile->program_custom, "<br>"
),
country_distance($user, $profile->dist, '<br>')
));
}
?>