-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlisttree_for_observation.php
143 lines (119 loc) · 4.82 KB
/
listtree_for_observation.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
<?php
include './includes/dbc.php';
page_protect();
//print_r($HTTP_POST_VARS);
?>
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>Add Observation</title>
<?php
include ("contribheader_head.php");
?>
</head>
<body>
<link rel="stylesheet" href="blueprint/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="blueprint/print.css" type="text/css" media="print">
<link rel="stylesheet" href="blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>
<link rel="stylesheet" href="css/styles_new.css" type="text/css">
<script src="js/jquery-ui/ui/ui.datepicker.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="js/thickbox/thickbox.css"></link>
<script language="javascript" src="js/thickbox/thickbox.js"></script>
<script language="javascript" src="js/jquery.bgiframe.min.js"></script>
<script language="javascript" src="js/jquery.autocomplete.js"></script>
<link type="text/css" rel="stylesheet" href="js/jquery.autocomplete.css"></link>
<script charset="utf-8" type="text/javascript" src="js/jquery.emptyonclick.js"></script>
<script type="text/javascript" src="js/jqModal.js"></script>
<script type="text/javascript" src="js/jquery.autogrow.js"></script>
<script type="text/javascript" src="js/jquery.corner.js"></script>
<link type="text/css" href="css/styles_new.css" rel="stylesheet">
<link type="text/css" href="css/sighting.css" rel="stylesheet">
<script type="text/javascript" src="js/alerts/jquery.alerts.js"></script>
<script src="js/pager/chili-1.8b.js" type="text/javascript"></script>
<script src="js/pager/docs.js" type="text/javascript"></script>
<script src="js/jquery.validate.js" type="text/javascript"></script>
<?php
include ("contribheader_body.php");
?>
<div class="container first_image" style="-moz-border-radius-bottomleft: 10px; -moz-border-radius-bottomright: 10px;">
<table>
<tbody>
<tr>
<td/>
</tr>
</tbody>
</table>
<div>
<hr/>
</div>
<table id="table1" class="tablesorter" cellspacing="0" cellpadding="3" style="width: 930px; margin-left: auto; margin-right: auto;">
<colgroup>
<col style="width: 5px;"/>
<col style="width: 750px;"/>
<col style="width: 650px;"/>
<col style="width: 750px;"/>
<col style="width: 750px;"/>
</colgroup>
<thead>
<tr>
<th class="header">No</th>
<th class="header">Species Primary Name</th>
<th class="header">Species scientific name</th>
<th class="header">Tree Nickname</th>
<th class="header">Observations</th>
</tr>
</thead>
<tbody>
<?php
$count=0;
print "<tr class='delboxtr'>";
$user_tree_table_settings = mysql_query("SELECT trees.tree_id, tree_nickname, species_scientific_name, species_primary_common_name, user_tree_table.user_tree_id FROM Species_master INNER JOIN (trees INNER JOIN user_tree_table ON trees.tree_id = user_tree_table.tree_id AND user_tree_table.user_id='$_SESSION[user_id]') ON Species_master.species_id = trees.species_id ORDER BY trees.tree_id");
while ($row_settings = mysql_fetch_array($user_tree_table_settings))
{
print "<tr>";
$count++;
print "<td style='width:220px'>".$count."</td>";
print "<td>".$row_settings['species_primary_common_name']."</td>";
print "<td>".$row_settings['species_scientific_name']. "</td>";
print "<td style='width:220px'>".$row_settings['tree_nickname']."</td>";
$treeLinkBegin = "<a class=thickbox rel=gallery-plants href=\"userobservations.php?usertreeid=".$row_settings['user_tree_id']."&TB_iframe=true&height=500&width=700\">Add</a>";
print "<td>$treeLinkBegin</td>";
print "</tr>";
}
/*
$species_ID=($_GET['id']);
$trees_settings = mysql_query("SELECT tree_location FROM trees WHERE species_id='$species_ID'");
$species_settings = mysql_query("SELECT species_scientific_name,species_primary_common_name,family FROM Species_master WHERE species_id='$species_ID'");
while ($row2_settings = mysql_fetch_array($species_settings))
{
print "<td>".$row2_settings{'species_primary_common_name'}."</td>";
print "<td>".$row2_settings['species_scientific_name']. "</td>";
print "<td>".$row2_settings['family']. "</td>";
}
while ($row_settings = mysql_fetch_array($user_tree_table_settings))
{
print "<td style='width:220px'>".$row_settings['tree_nickname']."</td>";
}
while ($row1_settings = mysql_fetch_array($trees_settings))
{
print "<td>".$row1_settings['tree_location']."</td>";
}
*/
echo "</tbody></table>";
?>
<html>
<p align="center">
<input name="doRefresh" type="button" id="doRefresh" value="Refresh All" onClick="location.reload();">
</p>
<!--<p align="center">
<input type=reset value="Back" class=buttonstyle onclick="javascript:window.location.href='contrib.php';">
</p>-->
</div>
</div>
<div class="container bottom">
<?php mysql_close($link);?>
</div>
</body>
</html>