-
Notifications
You must be signed in to change notification settings - Fork 0
/
PR_ListStatus.php
95 lines (83 loc) · 1.99 KB
/
PR_ListStatus.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Listing Status</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="StyleSheet" href="styles/popups.css" type="text/css" />
<style type="text/css">
/* <![CDATA[ */
body {font-family: sans-serif;}
td {width: 200px;}
h3 {text-align: left;}
/* ]]> */
</style>
</head>
<body >
<?php
require("pr_config.php");
pg_connect($pg_connect);
$sppcode = $_POST['sppcode'];
$species = $_POST['species'];
$query = "select * from pr_infospp where sppcode = '{$sppcode}'";
//echo $query;
$result = pg_query($query);
$row = pg_fetch_array($result);
//var_dump($row);
?>
<h3>
<?php
echo $row['primcomnameenglish']
?>
<br />
<?php
echo $row['primcomnamespanish']
?>
<br /><i>
<?php
echo $row['gname']
?>
</i></h3>
<hr />
<table>
<tr>
<td><a href="/listcodes/FederalStatusCodes.html" target="fedcodes" onclick="window.open('', 'fedcodes', 'menubar=no,height=200,width=520')"><b>Federal Status</b></a></td>
<td>
<?php
if(strlen($row['usesa']) == 0) {
echo "---";
}else{
echo $row['usesa'];
}
?>
</td>
<tr>
<td><a href="/listcodes/PRStateStatusCodes.html" target="statecodes" onclick="window.open('', 'statecodes', 'menubar=no,height=200,width=520')"><b>PR Status</b></a></td>
<td>
<?php //echo $row['strsprot'];
if(strlen($row['sprot']) == 0) {
echo "---";
}else{
echo $row['sprot'];
}
?>
</td>
</tr>
<tr>
<td colspan="2"><a href="http://www.natureserve.org/explorer/ranking.htm" target="nserv" onclick="window.open('', 'nserv', 'menubar=no,scrollbars=yes,width=800')"><b>Nature Serve Rank</b></a></td>
</tr>
<tr>
<td> Global Rank</td>
<td>
<?php //echo $row['strgrank'];
if(strlen($row['grank']) == 0) {
echo "---";
}else{
echo $row['grank'];
}
?>
</td>
</tr>
</table>
</div>
</body>
</html>