-
Notifications
You must be signed in to change notification settings - Fork 0
/
board_profile.php
160 lines (115 loc) · 4.64 KB
/
board_profile.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
<?php
include("inc/func.php");
db_open();
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
foreach($_GET as $namex => $value){$$namex = mysql_prep($value); }
$loc = 3;
$prf = dbinfo('donors', $p);
$pid = $prf['loc'];
?><!doctype html>
<html><head>
<meta charset="utf-8">
<title>Methodist Foundation of Mississippi</title>
<META http-equiv="refresh" content="6000;URL=index.php">
<script src="https://code.jquery.com/jquery-3.6.0.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-migrate-3.4.0.min.js"></script>
<script type="text/javascript" src="inc/scroll/js/uncompressed/jquery.mCustomScrollbar.js"></script>
<script type="text/javascript" src="inc/scroll/jquery.mCustomScrollbar.concat.min.js"></script>
<link rel="stylesheet" type="text/css" href="inc/scroll/jquery.mCustomScrollbar.css"/>
<script>
$(document).ready(function() {
$(".mscrollbar").mCustomScrollbar({ });
});
</script>
<link href="inc/main.css?rel=<?=date('ymdhi')?>" rel="stylesheet" type="text/css">
</head>
<body>
<div id="main_out" style="background-image: url('inc/img/main_bg.jpg')">
<div class="cont_top ">
<div class="name_prof_list mscrollbar">
<div>
<?php
$fbrd = qu("select * from donors where loc = '{$pid}'");
$allids = [];
while($br = fas($fbrd)) { ?>
<a href="board_profile.php?p=<?=$br['id']?>" <?php if($p == $br['id']){
echo 'class="activepg"';
}?>> <?=$br['name']?> <?=$br['lname']?></a><br>
<?
$allids[] = $br['id'];
$allbrd[$br['id']] = $br;
}
end($allids); // Move the internal pointer to the last element
$lastKey = key($allids);
$curkey = array_search($p, $allids);
if( $curkey == 0 ){$prev = $allids[$lastKey];
$next = $allids[1]; }
elseif($curkey == $lastKey){
$prev = $allids[($curkey-1)];
$next = $allids[0];} else{
$prev = $allids[($curkey-1)];
$next = $allids[($curkey+1)];
}
?>
</div>
</div>
<div class="name_prof_pic">
<?php
if(isset($prf['img']) && $prf['img'] != '' && file_exists("inc/donor_photos/".$prf['img'])){
echo '<img src="inc/donor_photos/'.$prf['img'].'" style="width:100%;">';
}
?></div>
<div class="name_prof_text">
<h2><?=$prf['name']?> <?=$prf['lname']?> - <span style="font-weight: normal; font-size:30px;"><?=$prf['position']?></span></h2>
<p><?=$prf['bio']?></p>
</div>
<div class="nxtbtn"> <a href="board_profile.php?p=<?=$next?>"><?=$allbrd[$next]['name']?> <?=$allbrd[$next]['lname']?> > </a> </div>
<br clear="all" >
</div>
<div class="cont_nav">
<div class="cont_nav_left"
style=" padding-left: 400px; "
>
<?php
$floc = qu("select * from locations where col = '{$loc}' ");
while($p = fas($floc)){ $link = 'board.php?pid='.$p['id'];
if($p['id'] == 9){ $link = 'board_profile.php?p=1';}
?>
<a href="<?=$link?>" class="nav_left <?
if($pid == $p['id']){echo 'navselected';} ?> "
style=" <?php
if($p['lh'] != '' && $p['lh'] >0){ echo ' margin-top:0px;'; }else{
echo ' margin-top:0px;';
} ?> "
>
<div style=" display:inline-block; <?php
if($p['lh'] != '' && $p['lh'] >0){echo 'line-height:'.$p['lh'].'px; margin-top:10px; padding:5px;';}else{
echo ' margn-top:-20px;';
}
?>"><?=$p['title']?></div></a>
<? } ?>
</div>
<div class="cont_nav_right">
<?php
$floc = qu("select * from locations_loc ");
while($l = fas($floc)){ ?>
<a href="content.php?loc=<?=$l['id']?>" class="nav_right <?
if($loc == $l['id']){echo 'navselected';}?>"
style=" <?php if($l['id'] == 3){echo 'line-height:40px; padding-top: 60px; ';} ?> "
><?=$l['title']?></a>
<? } ?>
</div>
</div>
<div class="bot_mainnav">
<a href="#" class="backbtn" onClick="window.history.back();"> </a>
<a href="index.php" class="homebtn"> </a>
<a href="#" class="srchbtn" onClick="keyboardtoggle(); return false;"> </a>
</div>
</div>
<?php
include("keybaord.php");
?>
</body>
</html>