-
Notifications
You must be signed in to change notification settings - Fork 2
/
upload.php
182 lines (142 loc) · 4.51 KB
/
upload.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?php
session_start();
$userid = $_SESSION['userid'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="" />
<link rel="stylesheet" type="text/css" href="style2.css" media="screen" />
<title>Tissue Culture Portal</title>
</head>
<body>
<div id="wrapper">
<?php
include('includes/header.php');
include('includes/nav1.php');
include('check.php');
$sql0=mysql_query("SELECT names FROM user where userid='$userid'");
while($row=mysql_fetch_array($sql0))
{
$names = $row['names'];
}
$names = strtoupper(stripslashes($names));
?>
<center><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="330033"
<tr>
<td>
<p align="center"><b><font face="Times New Roman" color="#ffffff">
<marquee><?php echo "WELCOME ".$names; echo ", YOU HAVE SUCCESSFULLY LOGGED IN.";?></marquee></font></b></td>
</tr>
<tr>
<td>
</tr>
</table>
<div id="content">
MAKE SURE THE DATA EXCEL FILE "Data.xls" IS SAVED IN THIS LOCATION "C:/TISSUE/" BEFORE YOU UPLOAD!
</tr>
<table>
</br>
<tr>
<form action="uploadcheck.php" method="post" target="_blank">
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<table width="450" bgcolor="#ffffff" style="background-color: #f1f1f1">
</br>
<td align="left"><strong><font size="3">
Select Treatment:
</td>
<td>
<select id="treatment" name="treatment">
<option value="">------------------ SELECT ------------------</option>
<?php
$sql=mysql_query("SELECT * FROM treatment order by treatment");
while($row=mysql_fetch_array($sql))
{
$treatment=$row['treatment'];
echo '<option value="'.$treatment.'">'.$treatment.'</option>';
}
?>
</select>
</td>
</tr>
</td>
</tr>
<tr>
<tr></tr>
<tr></tr><tr></tr>
<tr></tr><tr></tr>
<tr></tr><tr></tr>
<tr></tr><tr></tr>
<td align="left"><strong><font size="3">
Select Plant Attribute:
</td>
<td>
<select id="type" name="type">
<option value="">------------------ SELECT ------------------</option>
<?php
$sql=mysql_query("SELECT * FROM type order by type");
while($row=mysql_fetch_array($sql))
{
$type=$row['type'];
echo '<option value="'.$type.'">'.$type.'</option>';
}
?>
</select>
</td>
</tr>
</td>
</tr>
<tr>
<tr></tr>
<tr></tr><tr></tr>
<tr></tr><tr></tr>
<tr></tr><tr></tr>
<tr></tr><tr></tr>
<tr>
<tr>
</tr>
<td align="left"><strong><font size="3">
Select Cytokinin Type:
</td>
<td>
<select id="kinintype" name="kinintype">
<option value="">------------------ SELECT ------------------</option>
<?php
$sql=mysql_query("SELECT * FROM kinintype order by kinintype");
while($row=mysql_fetch_array($sql))
{
$kinintype=$row['kinintype'];
echo '<option value="'.$kinintype.'">'.$kinintype.'</option>';
}
?>
</select>
</td>
</tr>
</td>
</tr>
<tr>
<tr></tr>
<tr></tr><tr></tr>
<tr></tr><tr></tr>
<tr></tr><tr></tr>
<tr></tr><tr></tr>
<tr>
<tr>
</tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr><td bgcolor="#330033"> </td>
<td bgcolor="#330033"><input type="submit" value="Upload" /></td>
</tr>
</table>
</form>
<br></br><br></br>
</div> <!-- end #content -->
<?php include('includes/footer.php'); ?>
</div> <!-- End #wrapper -->
</body>
</html>