-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg2.php
executable file
·51 lines (41 loc) · 1.11 KB
/
org2.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
<?php
$Table = "User";
while ( $row2 = mysqli_fetch_array($res2))
{
$sql = "select * from $Table where org = ";
$sql .= $row2['position'] . " order by `Weight`";
//echo $sql;
$res = mysqli_query($con, $sql);
//$rownumber=0;
//echo "<table>";
while ( $row = mysqli_fetch_array($res))
{
if($rownumber%2==0) $layout="RowEvenC";
else
{
$layout="RowOddC";
}
$rownumber++;
$item[0] = "";
//"<tr><td>";
if($row2['name']=="Members" || $row2['name']=="Chief Patrons" || $row2['name']=="Patrons"){
$item[0] .= " <div id=$layout class=\"orgnames\" > <span class=\"nameRed\">" . $row['first_name'];
$item[0] .= " ". $row['last_name'] ."</span><br/>";
// . "</div></td><td> <div id= $layout >";
}else
{
$item[0] .= " <div id=$layout class=\"orgnames\" > <span class=\"nameRed\">" . $row['first_name'];
$item[0] .= " ". $row['last_name'] .", ".$row2['name'] ."</span><br/>";
}
if ($row2['position'] > 0 and $row2['position'] < 4)
{
// $item[0] .= $row2['name'] . ", ";
}
$item[0] .= $row['address'] . "</div>";
//"<td><tr>";
// $item[0] .= " </div> ";
echo $item[0];
}
// echo "</table>";
}
?>