Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Smart Watering System Information
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PA2-1617-32TK07
Smart Watering System Information
Commits
f2601f3a
Commit
f2601f3a
authored
May 31, 2017
by
PANGERAN\pangeran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udah banyak perubahan son
parent
b2367849
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
188 deletions
+81
-188
UpdateRequest.php
app/Http/Requests/sayur/UpdateRequest.php
+2
-2
create.blade.php
resources/views/Admin/HalamanMonitoring/create.blade.php
+5
-8
edit.blade.php
resources/views/Admin/HalamanMonitoring/edit.blade.php
+5
-3
lihat.blade.php
resources/views/Admin/HalamanMonitoring/lihat.blade.php
+49
-8
index.blade.php
resources/views/Pengunjung/index.blade.php
+20
-167
No files found.
app/Http/Requests/sayur/UpdateRequest.php
View file @
f2601f3a
...
...
@@ -24,7 +24,7 @@ class UpdateRequest extends FormRequest
public
function
rules
()
{
return
[
'foto'
=>
'Required'
,
'nama'
=>
'Required'
,
'family'
=>
'Required'
,
'tanggal_tanam'
=>
'Required'
,
...
...
@@ -38,7 +38,7 @@ class UpdateRequest extends FormRequest
public
function
messages
()
{
return
[
'foto.required'
=>
'silahkan Upload Foto.'
,
'nama.required'
=>
'Nama Tidak Boleh Kosong.'
,
'family.required'
=>
'Family Tidak Boleh Kosong.'
,
'tanggal_tanam.required'
=>
'Tanggal Tanamn Tidak Boleh Kosong.'
,
...
...
resources/views/Admin/HalamanMonitoring/create.blade.php
View file @
f2601f3a
...
...
@@ -284,7 +284,7 @@
<div
class=
"box-body"
>
<!--data sayur -->
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"panel panel-default"
>
...
...
@@ -328,8 +328,8 @@
{!! $errors->first('family', '
<p
class=
"help-block"
>
:message
</p>
') !!}
</div>
<div
class=
"form-group{{ $errors->has('tanggal_tanam') ? ' has-error' : '' }}"
>
<label
class=
"col-sm-2 control-label"
>
Tanggal Tanam
</label>
<input
type=
"date"
name=
"tanggal_tanam"
class=
"form-control"
placeholder=
"Tanggal Tanam"
>
<label
class=
"col-sm-2 control-label"
>
Tanggal Tanam
</label>
<br><br>
<input
type=
"date"
name=
"tanggal_tanam"
class=
"form-control"
placeholder=
"Tanggal Tanam"
style=
"width:25%;margin-left:0%;"
>
{!! $errors->first('tanggal_tanam', '
<p
class=
"help-block"
>
:message
</p>
') !!}
</div>
<div
class=
"form-group{{ $errors->has('usia') ? ' has-error' : '' }}"
>
...
...
@@ -367,13 +367,10 @@
</div>
</div>
</div>
</div>
<!--end data sayur -->
</div>
<!-- /.box-body -->
<div
class=
"box-footer"
>
Footer
</div>
<!-- /.box-footer-->
</div>
<!-- /.box -->
...
...
@@ -384,7 +381,7 @@
<footer
class=
"main-footer"
>
<div
class=
"pull-right hidden-xs"
>
<b>
Version
</b>
2.3.8
</div>
<strong>
Copyright
©
2016-2017
<a
href=
"http://almsaeedstudio.com"
>
PA02-32TK-007
</a>
.
</strong>
All rights
reserved.
...
...
resources/views/Admin/HalamanMonitoring/edit.blade.php
View file @
f2601f3a
...
...
@@ -293,16 +293,18 @@
{{csrf_field()}}
<div
class=
"form-group{{ $errors->has('foto') ? ' has-error' : '' }}"
>
<img
src=
"
http://placehold.it/100x100
"
id=
"showimages"
style=
"max-width:200px;max-height:200px;float:left;"
/>
<input
type=
"file"
id=
"inputimages"
name=
"foto"
>
<img
src=
"
<?php
echo
asset
(
"image/
$sayurs->foto
"
)
?>
"
id=
"showimages"
style=
"max-width:200px;max-height:200px;float:left;"
/>
{{--
<input
type=
"file"
id=
"inputimages"
name=
"foto"
>
--}}
{!! $errors->first('foto', '
<p
class=
"help-block"
>
:message
</p>
') !!}
</div>
<div
class=
"form-group{{ $errors->has('nama') ? ' has-error' : '' }}"
>
<input
type=
"text"
name=
"nama"
class=
"form-control"
placeholder=
"Nama"
value=
"{{$sayurs->nama}}"
>
<br><br><br><br><br><br><br><label
class=
"col-sm-2 control-label"
>
Nama Tanaman
</label>
<br><br><input
type=
"text"
name=
"nama"
class=
"form-control"
placeholder=
"Nama"
value=
"{{$sayurs->nama}}"
>
{!! $errors->first('nama', '
<p
class=
"help-block"
>
:message
</p>
') !!}
</div>
<div
class=
"form-group{{ $errors->has('family') ? ' has-error' : '' }}"
>
<label
class=
"col-sm-2 control-label"
>
Family
</label>
<input
type=
"text"
name=
"family"
class=
"form-control"
placeholder=
"Family"
value=
"{{$sayurs->family}}"
>
{!! $errors->first('family', '
<p
class=
"help-block"
>
:message
</p>
') !!}
</div>
...
...
resources/views/Admin/HalamanMonitoring/lihat.blade.php
View file @
f2601f3a
...
...
@@ -289,7 +289,7 @@
<div
class=
"form-group{{ $errors->has('foto') ? ' has-error' : '' }}"
>
<label
class=
"col-sm-2 control-label"
>
Foto
</label>
<label
class=
"control-label"
>
<img
src=
"
<?php
echo
asset
(
"image/
$sayurs->foto
"
)
?>
"
style=
"max-height:
40px; max-width:40px; margin-top:10px;
"
>
</img>
</label>
<label
class=
"control-label"
>
<img
src=
"
<?php
echo
asset
(
"image/
$sayurs->foto
"
)
?>
"
style=
"max-height:
100px; max-width:100px; margin-top:10px; float:left
"
>
</img>
</label>
{!! $errors->first('family', '
<p
class=
"help-block"
>
:message
</p>
') !!}
</div>
<div
class=
"form-group{{ $errors->has('nama') ? ' has-error' : '' }}"
>
...
...
@@ -355,9 +355,54 @@
<INPUT
TYPE=
"text"
NAME=
"inputbox"
VALUE=
"192.168.43.75"
>
</FORM>
</div>
<h3>
Scroll untuk menyiram sayur
</h3>
<input
type=
"range"
width=
"6%"
min=
"20"
max=
"170"
onmouseup=
"servo1(this.value)"
/>
<h3>
Scroll untuk menyiram sayur
</h3><br>
{{--
<input
list=
"tickmarks"
type=
"range"
style=
"width: 100px; height: 50px"
onmouseup=
"servo1(this.value)"
/>
--}}
{{--
<datalist
id=
"tickmarks"
>
--}}
{{--
<option
value=
"0"
label=
"0%"
>
--}}
{{--
<option
value=
"10"
>
--}}
{{--
<option
value=
"20"
>
--}}
{{--
<option
value=
"30"
>
--}}
{{--
<option
value=
"40"
>
--}}
{{--
<option
value=
"50"
label=
"50%"
/>
--}}
{{--
<option
value=
"60"
>
--}}
{{--
<option
value=
"70"
>
--}}
{{--
<option
value=
"80"
>
--}}
{{--
<option
value=
"90"
>
--}}
{{--
<option
value=
"100"
label=
"100%"
/>
--}}
{{--
</datalist>
--}}
<label
for=
"vol"
>
Volume
</label>
<input
type=
"range"
min=
"0"
max=
"100"
value=
"50"
id=
"vol"
oninput=
"nilai(value)"
onClick=
"hey()"
onmouseup=
"servo1(this.value)"
>
<output
for=
"vol"
id=
"volume"
>
50
</output>
<script>
function
nilai
(
vol
)
{
document
.
querySelector
(
'#volume'
).
value
=
vol
;
}
function
hey
()
{
var
vol
=
document
.
getElementById
(
'vol'
).
value
;
if
(
vol
<=
2
){
alert
(
"Penyiraman Ditutup"
);
}
else
if
(
vol
>=
2
){
alert
(
"Melakukan Penyiraman"
);
}
else
{
alert
(
"Penyiraman Berhasil"
);}
}
</script>
{{--
<input
type=
"range"
id=
"r"
min=
"1"
max=
"20"
>
--}}
{{--
<input
type=
"submit"
id=
"sub"
>
--}}
{{--
<script>
--
}}
{{
--
var
r1
=
document
.
getElementById
(
"sub"
);
--
}}
{{
--
r1
.
onclick
=
function
(){
--
}}
{{
--
var
r
=
document
.
getElementById
(
'r'
).
value
;
--
}}
{{
--
if
(
r
>
10
){
--
}}
{{
--
alert
(
"You crossed the half of it"
);
--
}}
{{
--
}
--
}}
{{
--
else
alert
(
"Value less than 10"
);
--
}}
{{
--
};
--
}}
{{
--
</script>
--}}
<script>
$
.
ajaxSetup
({
timeout
:
1000
});
...
...
@@ -369,11 +414,7 @@
{
Connection
:
close
};
}
</script>
</div>
<!-- /.box-body -->
<div
class=
"box-footer"
>
Footer
</div>
<!-- /.box-footer-->
</div>
<!-- /.box -->
...
...
resources/views/Pengunjung/index.blade.php
View file @
f2601f3a
...
...
@@ -213,175 +213,28 @@
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul
class=
"sidebar-menu"
>
<li
class=
"header"
>
MAIN NAVIGATION
</li>
<li
class=
"treeview"
>
<li
class=
"
active
treeview"
>
<a
href=
"#"
>
<i
class=
"fa fa-
dashboard"
></i>
<span>
Dashboard
</span>
<i
class=
"fa fa-
th"
></i>
<span>
Tanaman
</span>
<span
class=
"pull-right-container"
>
<i
class=
"fa fa-angle-left pull-right"
></i>
</span>
</a>
<ul
class=
"treeview-menu"
>
<li><a
href=
"../../index.html"
><i
class=
"fa fa-circle-o"
></i>
Dashboard v1
</a></li>
<li><a
href=
"../../index2.html"
><i
class=
"fa fa-circle-o"
></i>
Dashboard v2
</a></li>
<li
class=
"active"
><a
href=
"{{URL::to('/HalamanMonitoring')}}"
><i
class=
"fa fa-circle-o"
></i>
Sayur
</a></li>
<li><a
href=
"{{URL::to('/cabe')}}"
><i
class=
"fa fa-circle-o"
></i>
Cabai
</a></li>
<li><a
href=
"{{URL::to('/ubi')}}"
><i
class=
"fa fa-circle-o"
></i>
Ubi
</a></li>
<li><a
href=
"{{URL::to('/tomat')}}"
><i
class=
"fa fa-circle-o"
></i>
Tomat
</a></li>
<li><a
href=
"{{URL::to('/andaliman')}}"
><i
class=
"fa fa-circle-o"
></i>
Andaliman
</a></li>
<li><a
href=
"{{URL::to('/jagung')}}"
><i
class=
"fa fa-circle-o"
></i>
Jagung
</a></li>
<li><a
href=
"{{URL::to('/kentang')}}"
><i
class=
"fa fa-circle-o"
></i>
Kentang
</a></li>
<li><a
href=
"{{URL::to('/kacang')}}"
><i
class=
"fa fa-circle-o"
></i>
Kacang
</a></li>
</ul>
</li>
<li
class=
"treeview active"
>
<a
href=
"#"
>
<i
class=
"fa fa-files-o"
></i>
<span>
Layout Options
</span>
<span
class=
"pull-right-container"
>
<span
class=
"label label-primary pull-right"
>
4
</span>
</span>
</a>
<ul
class=
"treeview-menu"
>
<li><a
href=
"top-nav.html"
><i
class=
"fa fa-circle-o"
></i>
Top Navigation
</a></li>
<li><a
href=
"boxed.html"
><i
class=
"fa fa-circle-o"
></i>
Boxed
</a></li>
<li><a
href=
"fixed.html"
><i
class=
"fa fa-circle-o"
></i>
Fixed
</a></li>
<li
class=
"active"
><a
href=
"collapsed-sidebar.html"
><i
class=
"fa fa-circle-o"
></i>
Collapsed Sidebar
</a>
</li>
</ul>
</li>
<li>
<a
href=
"../widgets.html"
>
<i
class=
"fa fa-th"
></i>
<span>
Widgets
</span>
<span
class=
"pull-right-container"
>
<small
class=
"label pull-right bg-green"
>
new
</small>
</span>
</a>
</li>
<li
class=
"treeview"
>
<a
href=
"#"
>
<i
class=
"fa fa-pie-chart"
></i>
<span>
Charts
</span>
<span
class=
"pull-right-container"
>
<i
class=
"fa fa-angle-left pull-right"
></i>
</span>
</a>
<ul
class=
"treeview-menu"
>
<li><a
href=
"../charts/chartjs.html"
><i
class=
"fa fa-circle-o"
></i>
ChartJS
</a></li>
<li><a
href=
"../charts/morris.html"
><i
class=
"fa fa-circle-o"
></i>
Morris
</a></li>
<li><a
href=
"../charts/flot.html"
><i
class=
"fa fa-circle-o"
></i>
Flot
</a></li>
<li><a
href=
"../charts/inline.html"
><i
class=
"fa fa-circle-o"
></i>
Inline charts
</a></li>
</ul>
</li>
<li
class=
"treeview"
>
<a
href=
"#"
>
<i
class=
"fa fa-laptop"
></i>
<span>
UI Elements
</span>
<span
class=
"pull-right-container"
>
<i
class=
"fa fa-angle-left pull-right"
></i>
</span>
</a>
<ul
class=
"treeview-menu"
>
<li><a
href=
"../UI/general.html"
><i
class=
"fa fa-circle-o"
></i>
General
</a></li>
<li><a
href=
"../UI/icons.html"
><i
class=
"fa fa-circle-o"
></i>
Icons
</a></li>
<li><a
href=
"../UI/buttons.html"
><i
class=
"fa fa-circle-o"
></i>
Buttons
</a></li>
<li><a
href=
"../UI/sliders.html"
><i
class=
"fa fa-circle-o"
></i>
Sliders
</a></li>
<li><a
href=
"../UI/timeline.html"
><i
class=
"fa fa-circle-o"
></i>
Timeline
</a></li>
<li><a
href=
"../UI/modals.html"
><i
class=
"fa fa-circle-o"
></i>
Modals
</a></li>
</ul>
</li>
<li
class=
"treeview"
>
<a
href=
"#"
>
<i
class=
"fa fa-edit"
></i>
<span>
Forms
</span>
<span
class=
"pull-right-container"
>
<i
class=
"fa fa-angle-left pull-right"
></i>
</span>
</a>
<ul
class=
"treeview-menu"
>
<li><a
href=
"../forms/general.html"
><i
class=
"fa fa-circle-o"
></i>
General Elements
</a></li>
<li><a
href=
"../forms/advanced.html"
><i
class=
"fa fa-circle-o"
></i>
Advanced Elements
</a></li>
<li><a
href=
"../forms/editors.html"
><i
class=
"fa fa-circle-o"
></i>
Editors
</a></li>
</ul>
</li>
<li
class=
"treeview"
>
<a
href=
"#"
>
<i
class=
"fa fa-table"
></i>
<span>
Tables
</span>
<span
class=
"pull-right-container"
>
<i
class=
"fa fa-angle-left pull-right"
></i>
</span>
</a>
<ul
class=
"treeview-menu"
>
<li><a
href=
"../tables/simple.html"
><i
class=
"fa fa-circle-o"
></i>
Simple tables
</a></li>
<li><a
href=
"../tables/data.html"
><i
class=
"fa fa-circle-o"
></i>
Data tables
</a></li>
</ul>
</li>
<li>
<a
href=
"../calendar.html"
>
<i
class=
"fa fa-calendar"
></i>
<span>
Calendar
</span>
<span
class=
"pull-right-container"
>
<small
class=
"label pull-right bg-red"
>
3
</small>
<small
class=
"label pull-right bg-blue"
>
17
</small>
</span>
</a>
</li>
<li>
<a
href=
"../mailbox/mailbox.html"
>
<i
class=
"fa fa-envelope"
></i>
<span>
Mailbox
</span>
<span
class=
"pull-right-container"
>
<small
class=
"label pull-right bg-yellow"
>
12
</small>
<small
class=
"label pull-right bg-green"
>
16
</small>
<small
class=
"label pull-right bg-red"
>
5
</small>
</span>
</a>
</li>
<li
class=
"treeview"
>
<a
href=
"#"
>
<i
class=
"fa fa-folder"
></i>
<span>
Examples
</span>
<span
class=
"pull-right-container"
>
<i
class=
"fa fa-angle-left pull-right"
></i>
</span>
</a>
<ul
class=
"treeview-menu"
>
<li><a
href=
"../examples/invoice.html"
><i
class=
"fa fa-circle-o"
></i>
Invoice
</a></li>
<li><a
href=
"../examples/profile.html"
><i
class=
"fa fa-circle-o"
></i>
Profile
</a></li>
<li><a
href=
"../examples/login.html"
><i
class=
"fa fa-circle-o"
></i>
Login
</a></li>
<li><a
href=
"../examples/register.html"
><i
class=
"fa fa-circle-o"
></i>
Register
</a></li>
<li><a
href=
"../examples/lockscreen.html"
><i
class=
"fa fa-circle-o"
></i>
Lockscreen
</a></li>
<li><a
href=
"../examples/404.html"
><i
class=
"fa fa-circle-o"
></i>
404 Error
</a></li>
<li><a
href=
"../examples/500.html"
><i
class=
"fa fa-circle-o"
></i>
500 Error
</a></li>
<li><a
href=
"../examples/blank.html"
><i
class=
"fa fa-circle-o"
></i>
Blank Page
</a></li>
<li><a
href=
"../examples/pace.html"
><i
class=
"fa fa-circle-o"
></i>
Pace Page
</a></li>
</ul>
</li>
<li
class=
"treeview"
>
<a
href=
"#"
>
<i
class=
"fa fa-share"
></i>
<span>
Multilevel
</span>
<span
class=
"pull-right-container"
>
<i
class=
"fa fa-angle-left pull-right"
></i>
</span>
</a>
<ul
class=
"treeview-menu"
>
<li><a
href=
"#"
><i
class=
"fa fa-circle-o"
></i>
Level One
</a></li>
<li>
<a
href=
"#"
><i
class=
"fa fa-circle-o"
></i>
Level One
<span
class=
"pull-right-container"
>
<i
class=
"fa fa-angle-left pull-right"
></i>
</span>
</a>
<ul
class=
"treeview-menu"
>
<li><a
href=
"#"
><i
class=
"fa fa-circle-o"
></i>
Level Two
</a></li>
<li>
<a
href=
"#"
><i
class=
"fa fa-circle-o"
></i>
Level Two
<span
class=
"pull-right-container"
>
<i
class=
"fa fa-angle-left pull-right"
></i>
</span>
</a>
<ul
class=
"treeview-menu"
>
<li><a
href=
"#"
><i
class=
"fa fa-circle-o"
></i>
Level Three
</a></li>
<li><a
href=
"#"
><i
class=
"fa fa-circle-o"
></i>
Level Three
</a></li>
</ul>
</li>
</ul>
</li>
<li><a
href=
"#"
><i
class=
"fa fa-circle-o"
></i>
Level One
</a></li>
</ul>
</li>
<li><a
href=
"../../documentation/index.html"
><i
class=
"fa fa-book"
></i>
<span>
Documentation
</span></a></li>
<li
class=
"header"
>
LABELS
</li>
<li><a
href=
"#"
><i
class=
"fa fa-circle-o text-red"
></i>
<span>
Important
</span></a></li>
<li><a
href=
"#"
><i
class=
"fa fa-circle-o text-yellow"
></i>
<span>
Warning
</span></a></li>
<li><a
href=
"#"
><i
class=
"fa fa-circle-o text-aqua"
></i>
<span>
Information
</span></a></li>
<li><a
href=
"{{URL::to('/pengunjung')}}"
><i
class=
"fa fa-book"
></i></i>
<span>
Pengunjung
</span></a></li>
{{--
<li><a
href=
"documentation/index.html"
><i
class=
"fa fa-eye"
></i>
<span>
Monitoring Kebun
</span></a></li>
--}}
<li><a
href=
"{{URL::to('/jadwal')}}"
><i
class=
"fa fa-calendar"
></i></i>
<span>
Jadwal Perawatan
</span></a></li>
<li><a
href=
"{{URL::to ('/pemesanan')}}"
><i
class=
"fa fa-envelope"
></i></i>
<span>
Pemesanan
</span></a></li>
</ul>
</section>
<!-- /.sidebar -->
...
...
@@ -425,9 +278,9 @@
<div
class=
"box-body"
>
<!--data pengunjung -->
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-body"
>
@if(Session::has('alert-success'))
...
...
@@ -473,9 +326,9 @@
</table>
</div>
</div>
</div>
</div>
</div>
<!--end data pengunjung -->
</div>
<!-- /.box-body -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment