forked from xTraRice/RiceCalc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.php
More file actions
132 lines (123 loc) · 3.64 KB
/
view.php
File metadata and controls
132 lines (123 loc) · 3.64 KB
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
<?php
include("user.class.php");
$u = new user();
$arr = isset($_GET['id'])?$u->getItemInfo($_GET['id']):1;
?>
<!DOCTYPE html>
<html>
<head>
<title>Rice Calculator</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="assets/css/flatly.css" rel="stylesheet" media="screen">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="assets/js/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/functions.js"></script>
<style>
body{
background-image: url("assets/img/bg2.jpg");
background-position: center;
background-repeat: no-repeat;
background-position: fixed;
background-color: #3faa3c;
left: 0px;
top: 0px;
}
.panel-default{
opacity: 0.8;
}
</style>
</head>
<body>
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="home.php"><img src="assets/img/rice.png" width="40px" style="margin-top:-7px;"> Calculator</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="home.php"><span class="glyphicon glyphicon-home"></span> Home</a></li>
<li><a href="#about"><span class="glyphicon glyphicon-question-sign"></span> About</a></li>
<li><a href="#contact"><span class="glyphicon glyphicon-map-marker"></span> Contact</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="logout.php"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<br><br><br><br>
<div class="container">
<table class="table table-bordered" style="background-color:#FFF;opacity:0.8;">
<tr>
<td class="col-md-3"><strong>Variety</strong></td>
<td><?php echo $arr['variety']; ?></td>
</tr>
<tr>
<td><strong>Average Yield</strong></td>
<td><?php echo $arr['averageYield']; ?></td>
</tr>
<tr>
<td><strong>Maximum Yield</strong></td>
<td><?php echo $arr['maxYield']; ?></td>
</tr>
<tr>
<td><strong>Maturity</strong></td>
<td><?php echo $arr['maturity']; ?></td>
</tr>
<tr>
<td><strong>Height</strong></td>
<td><?php echo $arr['height']; ?></td>
</tr>
<tr>
<td><strong>Tillers</strong></td>
<td><?php echo $arr['tillers']; ?></td>
</tr>
<tr>
<td><strong>Blast</strong></td>
<td><?php echo $arr['blast']; ?></td>
</tr>
<tr>
<td><strong>BLB</strong></td>
<td><?php echo $arr['blb']; ?></td>
</tr>
<tr>
<td><strong>Tungro</strong></td>
<td><?php echo $arr['tungro']; ?></td>
</tr>
<tr>
<td><strong>BPH</strong></td>
<td><?php echo $arr['bph']; ?></td>
</tr>
<tr>
<td><strong>GLH</strong></td>
<td><?php echo $arr['glh']; ?></td>
</tr>
<tr>
<td><strong>Stem Borer</strong></td>
<td><?php echo $arr['stemborerDH']; ?></td>
</tr>
<tr>
<td><strong>Dead Hearts</strong></td>
<td><?php echo $arr['stemborerDHWSB']; ?></td>
</tr>
<tr>
<td><strong>White Heads</strong></td>
<td><?php echo $arr['deadheartswhiteWSB']; ?></td>
</tr>
<tr>
<td><strong>YSB</strong></td>
<td><?php echo $arr['YSB']; ?></td>
</tr>
</table>
</div> <!-- /container -->
</body>
</html>