Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravel_IS
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
odlai
laravel_IS
Commits
03c730e6
Commit
03c730e6
authored
Nov 18, 2019
by
odlai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
4c9c1aba
Changes
40
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
274 additions
and
569 deletions
+274
-569
DockerController.php
app/Http/Controllers/DockerController.php
+4
-4
PageController.php
app/Http/Controllers/PageController.php
+25
-39
AdminlpsController.php
app/Http/Controllers/Parking/AdminlpsController.php
+1
-1
CamdbController.php
app/Http/Controllers/Video/CamdbController.php
+4
-4
bootstrap.css
public/css/bootstrap.css
+2
-2
HRM.php
resources/views/HRM/HRM.php
+11
-1
admin_service.blade.php
resources/views/docker/admin_service.blade.php
+12
-1
navbar_li.blade.php
resources/views/docker/layouts/navbar_li.blade.php
+9
-0
new.blade.php
resources/views/docker/new.blade.php
+12
-1
service.blade.php
resources/views/docker/service.blade.php
+13
-1
home.blade.php
resources/views/home.blade.php
+0
-23
index.blade.php
resources/views/index.blade.php
+1
-3
index1.blade.php
resources/views/index1.blade.php
+0
-105
template.blade.php
resources/views/layouts/template.blade.php
+1
-1
line.blade.php
resources/views/line/line.blade.php
+12
-0
health.blade.php
resources/views/longcare/health.blade.php
+30
-101
page.blade.php
resources/views/page.blade.php
+10
-23
people.blade.php
resources/views/people.blade.php
+12
-2
account.blade.php
resources/views/smart_parking/account.blade.php
+10
-2
camera.blade.php
resources/views/smart_parking/camera.blade.php
+18
-25
index.blade.php
resources/views/smart_parking/index.blade.php
+9
-3
iswhite.blade.php
resources/views/smart_parking/iswhite.blade.php
+11
-5
default.blade.php
resources/views/smart_parking/layouts/default.blade.php
+0
-0
footer.blade.php
resources/views/smart_parking/layouts/footer.blade.php
+0
-0
navbar.blade.php
resources/views/smart_parking/layouts/navbar.blade.php
+0
-0
navbar_li.blade.php
resources/views/smart_parking/layouts/navbar_li.blade.php
+0
-0
test.php
resources/views/test.php
+0
-83
users.blade.php
resources/views/users.blade.php
+0
-5
configcam.blade.php
resources/views/video_replay/configcam.blade.php
+10
-2
index.blade.php
resources/views/video_replay/index.blade.php
+8
-1
default.blade.php
resources/views/video_replay/layouts/default.blade.php
+0
-0
menubtn.blade.php
resources/views/video_replay/layouts/menubtn.blade.php
+0
-0
navbar.blade.php
resources/views/video_replay/layouts/navbar.blade.php
+0
-0
navbar_li.blade.php
resources/views/video_replay/layouts/navbar_li.blade.php
+0
-0
progressbar.blade.php
resources/views/video_replay/layouts/progressbar.blade.php
+0
-0
playrealtime.blade.php
resources/views/video_replay/playrealtime.blade.php
+10
-2
recordconfig.blade.php
resources/views/video_replay/recordconfig.blade.php
+17
-10
replay.blade.php
resources/views/video_replay/replay.blade.php
+9
-2
welcome.blade.php
resources/views/welcome.blade.php
+0
-95
web.php
routes/web.php
+13
-22
No files found.
app/Http/Controllers/DockerController.php
View file @
03c730e6
...
@@ -32,7 +32,7 @@ class DockerController extends Controller
...
@@ -32,7 +32,7 @@ class DockerController extends Controller
'Created'
=>
$response
[
$i
][
'Created'
]]);
'Created'
=>
$response
[
$i
][
'Created'
]]);
}
}
// dd($result_content);
// dd($result_content);
return
View
(
'
index'
,[
'page'
=>
'service'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'contents'
=>
$result_content
,
'navbar_li'
=>
'layouts.navbar_li'
,
'title'
=>
'new'
]);
return
View
(
'
docker.service'
,[
'result'
=>
$query
,
'iresult'
=>
$main
,
'contents'
=>
$result_content
]);
}
}
public
function
admin_service
(
Request
$request
){
public
function
admin_service
(
Request
$request
){
$query
=
Path
::
all
();
$query
=
Path
::
all
();
...
@@ -40,7 +40,7 @@ class DockerController extends Controller
...
@@ -40,7 +40,7 @@ class DockerController extends Controller
$client
=
new
\GuzzleHttp\Client
();
$client
=
new
\GuzzleHttp\Client
();
$res
=
$client
->
get
(
$this
->
docker_ip
.
"/containers/json?all=1"
);
$res
=
$client
->
get
(
$this
->
docker_ip
.
"/containers/json?all=1"
);
$response
=
json_decode
(
$res
->
getBody
()
->
__toString
(),
true
);
$response
=
json_decode
(
$res
->
getBody
()
->
__toString
(),
true
);
return
View
(
'
index'
,[
'page'
=>
'admin_service'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'contents'
=>
$response
,
'navbar_li'
=>
'layouts.navbar_li'
,
'title'
=>
'admin_service'
]);
return
View
(
'
docker.admin_service'
,[
'result'
=>
$query
,
'iresult'
=>
$main
,
'contents'
=>
$response
]);
}
}
public
function
ctrl_docker_service
(
Request
$request
){
public
function
ctrl_docker_service
(
Request
$request
){
...
@@ -87,7 +87,7 @@ class DockerController extends Controller
...
@@ -87,7 +87,7 @@ class DockerController extends Controller
// );
// );
// Web_add_service::insert($data);
// Web_add_service::insert($data);
return
redirect
()
->
route
(
'service'
);
return
redirect
(
'service'
);
}
}
}
}
\ No newline at end of file
app/Http/Controllers/PageController.php
View file @
03c730e6
...
@@ -10,44 +10,41 @@ class PageController extends Controller
...
@@ -10,44 +10,41 @@ class PageController extends Controller
public
function
page
()
public
function
page
()
{
{
$query
=
Path
::
all
();
$query
=
Path
::
all
();
$main
=
Car
::
all
();
$main
=
Car
::
all
();
return
View
(
'
index'
,[
'page'
=>
'page'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'layouts.navbar_li'
,
'title'
=>
'首頁'
]);
return
View
(
'
page'
,[
'result'
=>
$query
,
'iresult'
=>
$main
]);
}
}
public
function
car_sys
()
//
public function car_sys()
{
//
{
if
(
Auth
::
check
())
//
if(Auth::check())
{
//
{
return
'登入'
;
//
return '登入';
}
//
}
else
{
//
else{
$query
=
Path
::
all
();
//
$query = Path::all();
return
View
(
'index'
,[
'page'
=>
'car_sys'
,
'result'
=>
$query
]);
//
return View('index',['page' => 'car_sys','result'=>$query]);
}
//
}
}
//
}
public
function
video_replay
()
public
function
video_replay
()
{
{
$query
=
Path
::
all
();
$query
=
Path
::
all
();
$main
=
Car
::
all
();
$main
=
Car
::
all
();
return
View
(
'
index'
,[
'page'
=>
'video_replay.index'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'video_replay.layout.navbar_li'
,
'title'
=>
'tt'
]);
return
View
(
'
video_replay.index'
,[
'result'
=>
$query
,
'iresult'
=>
$main
]);
}
}
public
function
HRM
()
public
function
HRM
()
{
{
$query
=
Path
::
all
();
$query
=
Path
::
all
();
$main
=
Car
::
all
();
$main
=
Car
::
all
();
return
View
(
'
index'
,[
'page'
=>
'HRM.HRM'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'layouts.navbar_li'
,
'title'
=>
'tt'
]);
return
View
(
'
HRM.HRM'
,[
'result'
=>
$query
,
'iresult'
=>
$main
]);
}
}
public
function
new
()
public
function
new
()
{
{
$query
=
Path
::
all
();
$query
=
Path
::
all
();
$main
=
Car
::
all
();
$main
=
Car
::
all
();
$client
=
new
\GuzzleHttp\Client
();
$client
=
new
\GuzzleHttp\Client
();
$easy_darw
=
"192.168.5.208:10008"
;
$easy_darw
=
"192.168.5.208:10008"
;
$res
=
$client
->
GET
(
$easy_darw
.
"/api/v1/players"
);
$res
=
$client
->
GET
(
$easy_darw
.
"/api/v1/players"
);
...
@@ -57,43 +54,32 @@ class PageController extends Controller
...
@@ -57,43 +54,32 @@ class PageController extends Controller
$res
=
$client
->
GET
(
"192.168.5.222:2375"
.
"/images/json"
);
$res
=
$client
->
GET
(
"192.168.5.222:2375"
.
"/images/json"
);
$response
=
json_decode
(
$res
->
getBody
()
->
__toString
(),
true
);
$response
=
json_decode
(
$res
->
getBody
()
->
__toString
(),
true
);
$docker_tag
=
$response
;
$docker_tag
=
$response
;
return
View
(
'
index'
,[
'page'
=>
'new'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'layouts.navbar_li'
,
'docker_tag'
=>
$docker_tag
,
'total_stream'
=>
$total_stream
,
'title'
=>
'tt'
]);
return
View
(
'
docker.new'
,[
'result'
=>
$query
,
'iresult'
=>
$main
,
'docker_tag'
=>
$docker_tag
,
'total_stream'
=>
$total_stream
]);
}
}
public
function
service
()
//
public function service()
{
//
{
$query
=
Path
::
all
();
//
$query = Path::all();
$main
=
Car
::
all
();
//
$main=Car::all();
return
View
(
'index'
,[
'page'
=>
'service'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'layouts.navbar_li'
,
'title'
=>
'tt'
]);
// return View('service',['result'=>$query,'iresult'=>$main
]);
}
//
}
public
function
people
()
public
function
people
()
{
{
$query
=
Path
::
all
();
$query
=
Path
::
all
();
$main
=
Car
::
all
();
$people
=
People
::
all
();
return
View
(
'index'
,[
'page'
=>
'people'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'people'
=>
$people
,
'navbar_li'
=>
'HRM.layouts.navbar_li'
,
'title'
=>
'tt'
]);
}
public
function
test
()
{
$query
=
Path
::
all
();
$main
=
Car
::
all
();
$main
=
Car
::
all
();
$people
=
People
::
all
();
$people
=
People
::
all
();
return
View
(
'
index'
,[
'page'
=>
'test'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'people'
=>
$people
,
'navbar_li'
=>
'video_replay.layout.navbar_li'
,
'title'
=>
'tt'
]);
return
View
(
'
people'
,[
'result'
=>
$query
,
'iresult'
=>
$main
,
'people'
=>
$people
]);
}
}
public
function
line
()
public
function
line
()
{
{
$query
=
Path
::
all
();
$query
=
Path
::
all
();
$main
=
Car
::
all
();
$main
=
Car
::
all
();
return
View
(
'
index'
,[
'page'
=>
'line.line'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'layouts.navbar_li'
,
'title'
=>
'tt'
]);
return
View
(
'
line.line'
,[
'result'
=>
$query
,
'iresult'
=>
$main
]);
}
}
public
function
health
()
public
function
health
()
{
{
$query
=
Path
::
all
();
$query
=
Path
::
all
();
$main
=
Car
::
all
();
$main
=
Car
::
all
();
return
View
(
'
index'
,[
'page'
=>
'longcare.health'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'layouts.navbar_li'
,
'title'
=>
'health'
]);
return
View
(
'
longcare.health'
,[
'result'
=>
$query
,
'iresult'
=>
$main
]);
}
}
}
}
\ No newline at end of file
app/Http/Controllers/Parking/AdminlpsController.php
View file @
03c730e6
...
@@ -16,7 +16,7 @@ class AdminlpsController extends Controller
...
@@ -16,7 +16,7 @@ class AdminlpsController extends Controller
public
function
index
(){
public
function
index
(){
$query
=
Path
::
all
();
$query
=
Path
::
all
();
$main
=
Car
::
all
();
$main
=
Car
::
all
();
return
View
(
'
index'
,[
'page'
=>
'smart_parking.iswhite'
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'smart_parking.layout.navbar_li'
,
'title'
=>
'iswhite'
,
'body'
=>
'iswhite'
]);
return
View
(
'
smart_parking.iswhite'
,[
'result'
=>
$query
,
'iresult'
=>
$main
,
'body'
=>
'iswhite'
]);
}
}
public
function
seletall
(){
public
function
seletall
(){
...
...
app/Http/Controllers/Video/CamdbController.php
View file @
03c730e6
...
@@ -22,7 +22,7 @@ class CamdbController extends Controller
...
@@ -22,7 +22,7 @@ class CamdbController extends Controller
$main
=
Car
::
all
();
$main
=
Car
::
all
();
$type_id
=
CamType
::
all
(
'type_id'
);
$type_id
=
CamType
::
all
(
'type_id'
);
$goups
=
CamGoup
::
all
();
$goups
=
CamGoup
::
all
();
return
view
(
'
index'
,[
'page'
=>
'video_replay.configcam'
,
'title'
=>
'新增攝影機'
,
'Types'
=>
$type_id
,
'Goups'
=>
$goups
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'video_replay.layout.navbar_li'
]);
return
view
(
'
video_replay.configcam'
,[
'title'
=>
'新增攝影機'
,
'Types'
=>
$type_id
,
'Goups'
=>
$goups
,
'result'
=>
$query
,
'iresult'
=>
$main
]);
}
}
public
function
play
()
public
function
play
()
...
@@ -32,7 +32,7 @@ class CamdbController extends Controller
...
@@ -32,7 +32,7 @@ class CamdbController extends Controller
$main
=
Car
::
all
();
$main
=
Car
::
all
();
$goups
=
CamGoup
::
all
();
$goups
=
CamGoup
::
all
();
return
view
(
'
index'
,[
'page'
=>
'video_replay.playrealtime'
,
'title'
=>
'攝影機現場調閱'
,
'Goups'
=>
$goups
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'video_replay.layout.navbar_li'
]);
return
view
(
'
video_replay.playrealtime'
,[
'Goups'
=>
$goups
,
'result'
=>
$query
,
'iresult'
=>
$main
]);
}
}
...
@@ -49,7 +49,7 @@ class CamdbController extends Controller
...
@@ -49,7 +49,7 @@ class CamdbController extends Controller
$main
=
Car
::
all
();
$main
=
Car
::
all
();
$goups
=
CamGoup
::
all
();
$goups
=
CamGoup
::
all
();
return
View
(
'
index'
,[
'page'
=>
'video_replay.replay'
,
'title'
=>
'攝影機回放'
,
'Goups'
=>
$goups
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'video_replay.layout.navbar_li'
]);
return
View
(
'
video_replay.replay'
,[
'Goups'
=>
$goups
,
'result'
=>
$query
,
'iresult'
=>
$main
]);
}
}
...
@@ -59,7 +59,7 @@ class CamdbController extends Controller
...
@@ -59,7 +59,7 @@ class CamdbController extends Controller
$main
=
Car
::
all
();
$main
=
Car
::
all
();
$goups
=
CamGoup
::
all
();
$goups
=
CamGoup
::
all
();
return
view
(
'
index'
,[
'page'
=>
'video_replay.recordconfig'
,
'title'
=>
'選擇攝影機錄製'
,
'Goups'
=>
$goups
,
'result'
=>
$query
,
'iresult'
=>
$main
,
'navbar_li'
=>
'video_replay.layout.navbar_li'
]);
return
view
(
'
video_replay.recordconfig'
,[
'Goups'
=>
$goups
,
'result'
=>
$query
,
'iresult'
=>
$main
]);
}
}
public
function
find_channel
(
$cam_id
)
public
function
find_channel
(
$cam_id
)
{
{
...
...
public/css/bootstrap.css
View file @
03c730e6
...
@@ -6405,7 +6405,7 @@ a.close.disabled {
...
@@ -6405,7 +6405,7 @@ a.close.disabled {
right: 0;
right: 0;
bottom: 0;
bottom: 0;
left: 0;
left: 0;
z-index:
15
;
z-index:
2
;
display: -ms-flexbox;
display: -ms-flexbox;
display: flex;
display: flex;
-ms-flex-pack: center;
-ms-flex-pack: center;
...
@@ -6449,7 +6449,7 @@ a.close.disabled {
...
@@ -6449,7 +6449,7 @@ a.close.disabled {
right: 15%;
right: 15%;
bottom: 20px;
bottom: 20px;
left: 15%;
left: 15%;
z-index:
10
;
z-index:
2
;
padding-top: 20px;
padding-top: 20px;
padding-bottom: 20px;
padding-bottom: 20px;
color: #fff;
color: #fff;
...
...
resources/views/HRM/HRM.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'HRM'
)
@
section
(
'navbar_content'
)
@
include
(
'layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
<
div
class
="
row
center
">
<
div
class
="
row
center
">
<div class="
col
-
lg
-
6
">
<div class="
col
-
lg
-
6
">
<div class="
thumbnail
">
<div class="
thumbnail
">
...
@@ -66,4 +75,5 @@
...
@@ -66,4 +75,5 @@
</div>
</div>
</form>
</form>
</div>
</div>
</div>
</div>
\ No newline at end of file
@stop
\ No newline at end of file
resources/views/admin_service.blade.php
→
resources/views/
docker/
admin_service.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'Admin Manage'
)
@
section
(
'navbar_content'
)
@
include
(
'docker.layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
<
h2
>
Admin
</
h2
>
<
h2
>
Admin
</
h2
>
<
p
>
Type
something
in
the
input
field
to
search
the
table
for
first
names
,
last
names
or
emails
:</
p
>
<
p
>
Type
something
in
the
input
field
to
search
the
table
for
first
names
,
last
names
or
emails
:</
p
>
<
input
class
="
form
-
control
" id="
myInput
" type="
text
" placeholder="
Search
..
">
<
input
class
="
form
-
control
" id="
myInput
" type="
text
" placeholder="
Search
..
">
...
@@ -66,4 +76,5 @@ $(document).ready(function(){
...
@@ -66,4 +76,5 @@ $(document).ready(function(){
});
});
});
});
});
});
</script>
</
script
>
\ No newline at end of file
@
stop
\ No newline at end of file
resources/views/docker/layouts/navbar_li.blade.php
0 → 100644
View file @
03c730e6
<li
class=
"nav-item active"
>
<a
class=
"nav-link text-light"
href=
"{{route('new')}}"
>
新增服務
<span
class=
"sr-only"
>
(current)
</span></a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link text-light"
href=
"{{route('service')}}"
>
服務管理
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link text-light"
href=
"{{route('admin_service')}}"
>
權限
</a>
</li>
resources/views/new.blade.php
→
resources/views/
docker/
new.blade.php
View file @
03c730e6
@extends('layouts.template')
@section('title', 'Insert new service')
@section('navbar_content')
@include('docker.layouts.navbar_li')
@stop
@section('content')
<div
class=
"thumbnail"
>
<div
class=
"thumbnail"
>
<h1>
後台管理
</h1>
<h1>
後台管理
</h1>
<div
class=
"row justify-content-center"
>
<div
class=
"row justify-content-center"
>
...
@@ -98,4 +107,6 @@
...
@@ -98,4 +107,6 @@
</div>
</div>
</form>
</form>
</div>
</div>
</div>
</div>
\ No newline at end of file
@stop
\ No newline at end of file
resources/views/service.blade.php
→
resources/views/
docker/
service.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'Service manage'
)
@
section
(
'navbar_content'
)
@
include
(
'docker.layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
<
h2
>
Manage
all
service
</
h2
>
<
h2
>
Manage
all
service
</
h2
>
<
p
>
Type
something
in
the
input
field
to
search
the
table
for
first
names
,
last
names
or
emails
:</
p
>
<
p
>
Type
something
in
the
input
field
to
search
the
table
for
first
names
,
last
names
or
emails
:</
p
>
<
input
class
="
form
-
control
" id="
myInput
" type="
text
" placeholder="
Search
..
">
<
input
class
="
form
-
control
" id="
myInput
" type="
text
" placeholder="
Search
..
">
...
@@ -93,4 +103,6 @@ $(document).ready(function(){
...
@@ -93,4 +103,6 @@ $(document).ready(function(){
});
});
</
script
>
</
script
>
<script
src=
"{{asset('js/pagination.js')}}"
></script>
<
script
src
=
"
{
{asset('js/pagination.js')}
}
"
></
script
>
\ No newline at end of file
@
stop
\ No newline at end of file
resources/views/home.blade.php
deleted
100644 → 0
View file @
4c9c1aba
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
="
container
">
<div class="
row
">
<div class="
col
-
md
-
8
col
-
md
-
offset
-
2
">
<div class="
panel
panel
-
default
">
<div class="
panel
-
heading
">Dashboard</div>
<div class="
panel
-
body
">
@if (session('status'))
<div class="
alert
alert
-
success
">
{{ session('status') }}
</div>
@endif
You are logged in!
</div>
</div>
</div>
</div>
</div>
@endsection
resources/views/index.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
extends
(
'layouts.template'
)
@
section
(
'navbar_content'
)
@
include
(
$navbar_li
)
@
stop
...
...
resources/views/index1.blade.php
deleted
100644 → 0
View file @
4c9c1aba
<html
lang=
"zh-tw"
>
<head>
<title>
Bootstrap Example
</title>
<meta
http-equiv=
"content-Type"
content=
"text/html;charset=UTF8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
rel=
"stylesheet"
href=
"{{ URL::asset('css/bootstrap.css')}}"
>
<link
rel=
"stylesheet"
href=
"{{ URL::asset('css/slider_video.css')}}"
>
<link
href=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.0.0-RC.5/alt/video-js-cdn.min.css"
rel=
"stylesheet"
>
<script
src=
"{{ URL::asset('js/jquery.min.js')}}"
></script>
<script
src=
"{{ URL::asset('js/bootstrap.min.js')}}"
></script>
<script
src=
"{{ URL::asset('js/slider.js')}}"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.0.0-RC.5/video.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-hls/5.3.3/videojs-contrib-hls.js"
></script>
</head>
<body>
<nav
class=
"navbar navbar-inverse"
>
<div
class=
"container-fluid"
>
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
"#myNavbar"
>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<div
id=
"mySidenav"
class=
"sidenav"
>
@foreach($result as $results)
<a
href=
"{{$results->path_dir}}"
>
{{$results->path_name}}
</a>
@endforeach
</div>
<div
id=
"main"
>
<span
>
☰
</span>
</div>
</div>
<div
class=
"collapse navbar-collapse"
id=
"myNavbar"
>
<ul
class=
"nav navbar-nav"
>
<li
class=
"active"
><a
href=
"page"
>
Home
</a></li>
<li
class=
"dropdown"
>
<a
class=
"dropdown-toggle"
data-toggle=
"dropdown"
href=
"#"
>
Page 1
<span
class=
"caret"
></span></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Page 1-1
</a></li>
<li><a
href=
"#"
>
Page 1-2
</a></li>
<li><a
href=
"#"
>
Page 1-3
</a></li>
</ul>
</li>
</ul>
<form
class=
"navbar-form navbar-left"
action=
"#"
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"Search"
>
<div
class=
"input-group-btn"
>
<button
class=
"btn btn-default"
type=
"submit"
>
<i
class=
"glyphicon glyphicon-search"
></i>
</button>
</div>
</div>
</form>
<ul
class=
"nav navbar-nav navbar-right"
>
<!-- 判斷用戶是否登入 登入後顯示user-icon,未登入則顯示login-icon -->
@if (Session::has('ac'))
<li><a
id=
"user-icon"
><span
class=
"glyphicon glyphicon-user"
></span></a></li>
@else
<li><a
><span
href=
"#signup"
class=
"glyphicon glyphicon-log-in"
data-toggle=
"modal"
data-target=
".bs-modal-sm"
></span>
Login
</a></li>
@endif
</ul>
</div>
</div>
</nav>
<div
class=
"container"
>
<div
id=
"right"
class=
"slider-right"
>
<!--灰色背景-->
</div>
<div
id=
"user-bar"
class=
"user-menu"
>
<a
href=
"#"
>
Page 1-1
</a>
<a
><span
href=
"#logout"
onclick=
"logout()"
class=
"glyphicon glyphicon-log-out"
></span>
Logout
</a>
</div>
<!-- Modal START -->
@include('modal')
<!-- Modal END -->
@include($page)
</div>
<script>
function
logout
()
{
var
r
=
confirm
(
"是否登出"
)
if
(
r
==
true
)
{
parent
.
location
.
href
=
'logout'
;
}
}
</script>
<script
src=
"{{ URL::asset('js/play-video.js') }}"
></script>
</body>
</html>
resources/views/layouts/template.blade.php
View file @
03c730e6
<head>
<head>
<title>
{{$title}}
</title>
<title>
@yield('title')
</title>
<meta
http-equiv=
"content-Type"
content=
"text/html;charset=UTF8"
>
<meta
http-equiv=
"content-Type"
content=
"text/html;charset=UTF8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
...
...
resources/views/line/line.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'Line Bot'
)
@
section
(
'navbar_content'
)
@
include
(
'layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
<
div
class
="
container
h
-
100
">
<
div
class
="
container
h
-
100
">
<div class="
row
justify
-
content
-
center
">
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
lg
-
6
">
<div class="
col
-
lg
-
6
">
...
@@ -50,3 +60,5 @@
...
@@ -50,3 +60,5 @@
</div>
</div>
</div>
</div>
</div>
</div>
@stop
resources/views/longcare/health.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'Health'
)
@
section
(
'header'
)
@
section
(
'header'
)
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.0.0-RC.5/video.js"
></
script
>
<!--
PC
端浏览器不支持播放
hls
文件
(
m3u8
),
需要
videojs
-
contrib
-
hls
来给我们解码
-->
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-hls/5.3.3/videojs-contrib-hls.js"
></
script
>
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/videojs-hotkeys/0.2.25/videojs.hotkeys.min.js"
></
script
>
@
stop
<
script
src
=
"https://code.highcharts.com/highcharts.js"
></
script
>
@
section
(
'navbar_content'
)
@
include
(
'layouts.navbar_li'
)
@
stop
@
stop
<
div
id
=
"container1"
style
=
"width: 750px; height: 400px; margin: 0 auto"
></
div
>
@
section
(
'script'
)
@
section
(
'content'
)
<
script
language
=
"text/javascript"
>
<
div
class
="
row
">
$
(
document
)
.
ready
(
function
()
{
<div class="
col
-
sm
-
5
">
var
chart
=
{
<video id="
hls
-
example
" class="
video
-
js
vjs
-
default
-
skin
" width="
400
" height="
300
" controls="
controls
" autoplay="
autoplay
"
type
:
'spline'
,
x-webkit-airplay="
true
" x5-video-player-fullscreen="
true
"
animation
:
Highcharts
.
svg
,
// don't animate in IE < IE 10.
preload="
auto
" playsinline="
true
" webkit-playsinline x5-video-player-typ="
h5
">
marginRight
:
10
,
<source type="
application
/
x
-
mpegURL
" src="
/
video
/
index
.
m3u8
">
events
:
{
</video>
load
:
function
()
{
</div>
// set up the updating of the chart each second
<div class="
col
-
sm
">
var
series
=
this
.
series
[
0
];
setInterval
(
function
()
{
var
x
=
(
new
Date
())
.
getTime
(),
// current time
y
=
Math
.
floor
(
Math
.
random
()
*
19
)
+
82
;
series
.
addPoint
([
x
,
y
],
true
,
true
);
},
3000
);
}
}
};
var
title
=
{
text
:
'血壓偵測'
};
var
xAxis
=
{
type
:
'datetime'
,
tickPixelInterval
:
150
};
var
yAxis
=
{
title
:
{
text
:
'毫米汞柱(mmHg)'
},
plotLines
:
[{
value
:
0
,
width
:
1
,
color
:
'#808080'
}]
};
var
tooltip
=
{
formatter
:
function
()
{
return
'<b>'
+
this
.
series
.
name
+
'</b><br/>'
+
Highcharts
.
dateFormat
(
'%Y-%m-%d %H:%M:%S'
,
this
.
x
)
+
'<br/>'
+
Highcharts
.
numberFormat
(
this
.
y
,
2
);
}
};
var
plotOptions
=
{
area
:
{
pointStart
:
1940
,
marker
:
{
enabled
:
false
,
symbol
:
'circle'
,
radius
:
2
,
states
:
{
hover
:
{
enabled
:
true
}
}
}
}
};
var
legend
=
{
enabled
:
true
};
var
exporting
=
{
enabled
:
false
};
var
series
=
[{
name
:
'血壓'
,
data
:
(
function
()
{
// generate an array of random data
var
data
=
[],
time
=
(
new
Date
())
.
getTime
(),
i
;
for
(
i
=
-
19
;
i
<=
0
;
i
+=
1
)
{
data
.
push
({
x
:
time
+
i
*
1000
,
y
:
Math
.
ceil
(
Math
.
random
()
*
19
)
+
82
});
}
return
data
;
}())
}];
var
json
=
{};
</div>
json
.
chart
=
chart
;
</div>
json
.
title
=
title
;
json
.
tooltip
=
tooltip
;
json
.
xAxis
=
xAxis
;
json
.
yAxis
=
yAxis
;
json
.
legend
=
legend
;
json
.
exporting
=
exporting
;
json
.
series
=
series
;
json
.
plotOptions
=
plotOptions
;
Highcharts
.
setOptions
({
global
:
{
useUTC
:
false
}
});
$
(
'#container1'
)
.
highcharts
(
json
);
});
</
script
>
<script>
var player = videojs("
hls
-
example
");
player.play();
</script>
@stop
@stop
\ No newline at end of file
resources/views/page.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'Page Title'
)
@
section
(
'navbar_content'
)
@
include
(
'layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
<
H1
>
Los
Angeles
</
H1
>
<
H1
>
Los
Angeles
</
H1
>
<
div
id
=
"demo"
class
="
carousel
slide
" data-ride="
carousel
">
<
div
id
=
"demo"
class
="
carousel
slide
" data-ride="
carousel
">
...
@@ -63,7 +72,6 @@
...
@@ -63,7 +72,6 @@
<div class="
caption
">
<div class="
caption
">
<H2>版本更新公告</H2>
<H2>版本更新公告</H2>
<!-- <p> Lorem ipsum donec id elit non mi porta gravida at eget metus.</p> -->
<ul>
<ul>
<li>Lorem ipsum donec id elit non mi porta gravida at eget metus.</li>
<li>Lorem ipsum donec id elit non mi porta gravida at eget metus.</li>
<li>Lorem ipsum donec id elit non mi porta gravida at eget metus.</li>
<li>Lorem ipsum donec id elit non mi porta gravida at eget metus.</li>
...
@@ -80,15 +88,6 @@
...
@@ -80,15 +88,6 @@
<div class="
thumbnail
">
<div class="
thumbnail
">
<div class="
caption
">
<div class="
caption
">
<H2>最新消息</H2>
<H2>最新消息</H2>
<!-- <ul>
<li>Lorem ipsum donec id elit non mi porta gravida at eget metus.</li>
<li>Lorem ipsum donec id elit non mi porta gravida at eget metus.</li>
<li>Lorem ipsum donec id elit non mi porta gravida at eget metus.</li>
<li>Lorem ipsum donec id elit non mi porta gravida at eget metus.</li>
<li>Lorem ipsum donec id elit non mi porta gravida at eget metus.</li>
<li>Lorem ipsum donec id elit non mi porta gravida at eget metus.</li>
</ul> -->
<ul class="
nav
nav
-
tabs
">
<ul class="
nav
nav
-
tabs
">
<li class="
active
"><a class="
nav
-
link
" data-toggle="
tab
" href="
#home">Home</a></li>
<li class="
active
"><a class="
nav
-
link
" data-toggle="
tab
" href="
#home">Home</a></li>
<
li
><
a
class
="
nav
-
link
" data-toggle="
tab
" href="
#menu1">頁籤 1</a></li>
<
li
><
a
class
="
nav
-
link
" data-toggle="
tab
" href="
#menu1">頁籤 1</a></li>
...
@@ -112,16 +111,4 @@
...
@@ -112,16 +111,4 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!-- <nav aria-label="Page navigation example">
@stop
<ul class="pagination justify-content-center">
\ No newline at end of file
<li class="page-item disabled">
<a class="page-link" href="#" tabindex="-1">Previous</a>
</li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item">
<a class="page-link" href="#">Next</a>
</li>
</ul>
</nav> -->
\ No newline at end of file
resources/views/people.blade.php
View file @
03c730e6
@extends('layouts.template')
@section('title', 'People')
@section('navbar_content')
@include('HRM.layouts.navbar_li')
@stop
@section('content')
<form
style=
"text-align:left"
class=
"form-inline"
action=
"{{route('insert')}}"
method=
"POST"
>
<form
style=
"text-align:left"
class=
"form-inline"
action=
"{{route('insert')}}"
method=
"POST"
>
<input
type =
"hidden"
name =
"_token"
value =
"
<?php
echo
csrf_token
();
?>
"
>
<input
type =
"hidden"
name =
"_token"
value =
"
<?php
echo
csrf_token
();
?>
"
>
...
@@ -308,6 +317,7 @@ $("#myTable").on('click','.btnSelect',function(){
...
@@ -308,6 +317,7 @@ $("#myTable").on('click','.btnSelect',function(){
$
(
'#phone1'
).
val
(
col5
);
$
(
'#phone1'
).
val
(
col5
);
});
});
});
});
</script>
</script>
@stop
\ No newline at end of file
\ No newline at end of file
resources/views/smart_parking/account.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'Account'
)
@
section
(
'header'
)
@
section
(
'header'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/templatemo-style.css')}
}
"
>
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/templatemo-style.css')}
}
"
>
@
stop
@
stop
@
section
(
'navbar_content'
)
@
include
(
'smart_parking.layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=""
id
=
"home"
>
<
div
class
=""
id
=
"home"
>
<
div
class
="
container
mt
-
5
">
<
div
class
="
container
mt
-
5
">
...
@@ -134,4 +142,4 @@
...
@@ -134,4 +142,4 @@
</div>
</div>
</div>
</div>
</div>
</div>
@
endsection
@
stop
resources/views/smart_parking/camera.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'Camera'
)
@
section
(
'header1'
)
@
section
(
'header1'
)
<
link
href
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.6.2/video-js.min.css"
rel
=
"stylesheet"
>
<
link
href
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.6.2/video-js.min.css"
rel
=
"stylesheet"
>
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.6.2/video.min.js"
></
script
>
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.6.2/video.min.js"
></
script
>
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.6.2/ie8/videojs-ie8.min.js"
></
script
>
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.6.2/ie8/videojs-ie8.min.js"
></
script
>
<!--
videojs
-
flash
-->
<!--
videojs
-
flash
-->
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/videojs-flash/2.1.0/videojs-flash.min.js"
></
script
>
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/videojs-flash/2.1.0/videojs-flash.min.js"
></
script
>
<
script
>
<
script
>
videojs
.
options
.
flash
.
swf
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.6.2/video-js.swf"
videojs
.
options
.
flash
.
swf
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.6.2/video-js.swf"
</
script
>
</
script
>
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/templatemo-style.css')}
}
"
>
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/templatemo-style.css')}
}
"
>
@
stop
@
stop
@
section
(
'navbar_content'
)
@
include
(
'smart_parking.layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
="
container
mt
-
5
">
<
div
class
="
container
mt
-
5
">
<div class="
row
tm
-
content
-
row
">
<div class="
row
tm
-
content
-
row
">
...
@@ -217,19 +225,4 @@
...
@@ -217,19 +225,4 @@
stream
=
"outer"
;
stream
=
"outer"
;
}
}
</
script
>
</
script
>
<!-- <script>
@
stop
if (navigator.userAgent.match(/Android/i)
\ No newline at end of file
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/iPad/i)
|| navigator.userAgent.match(/iPod/i)
|| navigator.userAgent.match(/BlackBerry/i)
|| navigator.userAgent.match(/Windows Phone/i)
) {
alert('
手機
');
}
else {
alert('
PC
'
);
}
</
script
>
-->
@
endsection
\ No newline at end of file
resources/views/smart_parking/index.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
extends
(
'layouts.template'
)
<
script
src
=
"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"
></
script
>
@
section
(
'title'
,
'Dashboard'
)
@
section
(
'navbar_content'
)
@
include
(
'smart_parking.layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=""
id
=
"home"
>
<
div
class
=""
id
=
"home"
>
<
div
class
="
container
">
<
div
class
="
container
">
...
@@ -94,7 +100,7 @@
...
@@ -94,7 +100,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
@
endsection
@
stop
@section('script')
@section('script')
...
@@ -156,4 +162,4 @@
...
@@ -156,4 +162,4 @@
getinplate();
getinplate();
getoutplate();
getoutplate();
</script>
</script>
@
endsection
@
stop
resources/views/smart_parking/iswhite.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'白名單'
)
@
section
(
'header'
)
@
section
(
'header'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/templatemo-style.css')}
}
"
>
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/templatemo-style.css')}
}
"
>
@
stop
@
stop
@
section
(
'navbar_content'
)
@
include
(
'smart_parking.layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
<
script
src
=
"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"
></
script
>
<
script
>
<
script
>
function
ajaxget
(
url
=
'{{url('
iswhite
/
seletall
')}}'
)
function
ajaxget
(
url
=
'{{url('
iswhite
/
seletall
')}}'
)
{
{
...
@@ -198,6 +206,4 @@
...
@@ -198,6 +206,4 @@
</tbody>
</tbody>
</table>
</table>
</div>
</div>
@stop
@endsection()
resources/views/smart_parking/layout/default.blade.php
→
resources/views/smart_parking/layout
s
/default.blade.php
View file @
03c730e6
File moved
resources/views/smart_parking/layout/footer.blade.php
→
resources/views/smart_parking/layout
s
/footer.blade.php
View file @
03c730e6
File moved
resources/views/smart_parking/layout/navbar.blade.php
→
resources/views/smart_parking/layout
s
/navbar.blade.php
View file @
03c730e6
File moved
resources/views/smart_parking/layout/navbar_li.blade.php
→
resources/views/smart_parking/layout
s
/navbar_li.blade.php
View file @
03c730e6
File moved
resources/views/test.php
deleted
100644 → 0
View file @
4c9c1aba
<h2>
Filterable Table for Docker API
</h2>
<p>
Type something in the input field to search the table for first names, last names or emails:
</p>
<input
class=
"form-control"
id=
"myInput"
type=
"text"
placeholder=
"Search.."
>
<br>
<!-- <form method="post" action="{{route('api')}}"> -->
<table
class=
"table table-bordered"
style=
"color:#fff"
>
<thead>
<tr>
<th>
Container
</th>
<th>
State
</th>
<th>
Published Ports
</th>
</tr>
</thead>
<tbody
id=
"myTable"
>
<tr>
<td>
123
</td>
<td>
456
</td>
<td>
<input
type =
"hidden"
name =
"id"
value =
"1"
>
<button
type=
"submit"
class=
"btn btn-Success"
name=
"btn"
value=
"start"
>
啟動
</button>
<button
type=
"submit"
class=
"btn btn-Danger"
name=
"btn"
value=
"stop"
>
停止
</button>
<button
type=
"submit"
class=
"btn btn-Primary"
name=
"btn"
value=
"restart"
>
重啟
</button>
</td>
</tr>
<tr>
<td>
ddf
</td>
<td>
fff
</td>
<td>
<input
type =
"hidden"
name =
"id"
value =
"1"
>
<button
type=
"submit"
class=
"btn btn-Success"
name=
"btn"
value=
"start"
>
啟動
</button>
<button
type=
"submit"
class=
"btn btn-Danger"
name=
"btn"
value=
"stop"
>
停止
</button>
<button
type=
"submit"
class=
"btn btn-Primary"
name=
"btn"
value=
"restart"
>
重啟
</button>
</td>
</tr>
<tr>
<td>
ccv
</td>
<td>
ff
</td>
<td>
<input
type =
"hidden"
name =
"id"
value =
"1"
>
<button
type=
"submit"
class=
"btn btn-Success"
name=
"btn"
value=
"start"
>
啟動
</button>
<button
type=
"submit"
class=
"btn btn-Danger"
name=
"btn"
value=
"stop"
>
停止
</button>
<button
type=
"submit"
class=
"btn btn-Primary"
name=
"btn"
value=
"restart"
>
重啟
</button>
</td>
</tr>
</tbody>
</table>
<!-- </form> -->
<ul
class=
"pagination justify-content-center"
style=
"margin:20px 0"
>
<li
class=
"page-item"
><a
class=
"page-link"
href=
"#"
>
Previous
</a></li>
<li
class=
"page-item"
><a
class=
"page-link"
href=
"#"
>
1
</a></li>
<li
class=
"page-item"
><a
class=
"page-link"
href=
"#"
>
2
</a></li>
<li
class=
"page-item"
><a
class=
"page-link"
href=
"#"
>
3
</a></li>
<li
class=
"page-item"
><a
class=
"page-link"
href=
"#"
>
Next
</a></li>
</ul>
<p>
Note that we start the search in tbody, to prevent filtering the table headers.
</p>
<script>
$
(
document
).
ready
(
function
(){
$
(
"#myInput"
).
on
(
"keyup"
,
function
()
{
var
value
=
$
(
this
).
val
().
toLowerCase
();
$
(
"#myTable tr"
).
filter
(
function
()
{
$
(
this
).
toggle
(
$
(
this
).
text
().
toLowerCase
().
indexOf
(
value
)
>
-
1
)
});
});
});
$
(
document
).
ready
(
function
(){
// code to read selected table row cell data (values).
$
(
"#myTable"
).
on
(
'click'
,
'.btn'
,
function
(){
// get the current row
var
currentRow
=
$
(
this
).
closest
(
"tr"
);
var
col1
=
currentRow
.
find
(
"td:eq(0)"
).
text
();
// get current row 1st TD value
var
col2
=
currentRow
.
find
(
"td:eq(1)"
).
text
();
// get current row 2nd TD
var
col3
=
currentRow
.
find
(
"td:eq(2)"
).
text
();
// get current row 3rd TD
var
data
=
col1
+
"
\n
"
+
col2
+
"
\n
"
+
col3
;
alert
(
data
);
});
});
</script>
\ No newline at end of file
resources/views/users.blade.php
deleted
100644 → 0
View file @
4c9c1aba
@
extends
(
'layout'
)
@
section
(
'content'
)
Users
!
@
stop
\ No newline at end of file
resources/views/video_replay/configcam.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'新增攝影機'
)
@
section
(
'header'
)
@
section
(
'header'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/video_replay.css')}
}
"
>
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/video_replay.css')}
}
"
>
@
stop
@
stop
@
section
(
'navbar_content'
)
@
include
(
'video_replay.layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
@
include
(
'video_replay.layout.menubtn'
)
@
include
(
'video_replay.layout
s
.menubtn'
)
<
div
class
="
collapse
" id="
collapseExample
" style="
margin
:
5
%
">
<
div
class
="
collapse
" id="
collapseExample
" style="
margin
:
5
%
">
<div class="
card
card
-
body
border
border
-
white
"style="
background
-
color
:
steelblue
;
padding
-
bottom
:
5
%
">
<div class="
card
card
-
body
border
border
-
white
"style="
background
-
color
:
steelblue
;
padding
-
bottom
:
5
%
">
<form id="
send
" action="
http
://
192.168
.
5.217
:
8001
/
insert_cam
" method="
POST
" onsubmit="
return
false
">
<form id="
send
" action="
http
://
192.168
.
5.217
:
8001
/
insert_cam
" method="
POST
" onsubmit="
return
false
">
...
@@ -99,4 +107,4 @@
...
@@ -99,4 +107,4 @@
e
.
preventDefault
();
// avoid to execute the actual submit of the form.
e
.
preventDefault
();
// avoid to execute the actual submit of the form.
});
});
</
script
>
</
script
>
@
endsection
@
stop
resources/views/video_replay/index.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'Video'
)
@
section
(
'navbar_content'
)
@
include
(
'video_replay.layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
<
style
>
<
style
>
button
{
button
{
...
@@ -39,4 +46,4 @@
...
@@ -39,4 +46,4 @@
@else
@else
<h1>請先進行登入唷~</h1>
<h1>請先進行登入唷~</h1>
@endif
@endif
@
endsection
@
stop
resources/views/video_replay/layout/default.blade.php
→
resources/views/video_replay/layout
s
/default.blade.php
View file @
03c730e6
File moved
resources/views/video_replay/layout/menubtn.blade.php
→
resources/views/video_replay/layout
s
/menubtn.blade.php
View file @
03c730e6
File moved
resources/views/video_replay/layout/navbar.blade.php
→
resources/views/video_replay/layout
s
/navbar.blade.php
View file @
03c730e6
File moved
resources/views/video_replay/layout/navbar_li.blade.php
→
resources/views/video_replay/layout
s
/navbar_li.blade.php
View file @
03c730e6
File moved
resources/views/video_replay/layout/progressbar.blade.php
→
resources/views/video_replay/layout
s
/progressbar.blade.php
View file @
03c730e6
File moved
resources/views/video_replay/playrealtime.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'攝影機現場調閱'
)
@
section
(
'header'
)
@
section
(
'header'
)
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.0.0-RC.5/video.js"
></
script
>
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.0.0-RC.5/video.js"
></
script
>
<!--
PC
端浏览器不支持播放
hls
文件
(
m3u8
),
需要
videojs
-
contrib
-
hls
来给我们解码
-->
<!--
PC
端浏览器不支持播放
hls
文件
(
m3u8
),
需要
videojs
-
contrib
-
hls
来给我们解码
-->
...
@@ -9,8 +12,13 @@
...
@@ -9,8 +12,13 @@
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/video_replay.css')}
}
"
>
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/video_replay.css')}
}
"
>
@
stop
@
stop
@
section
(
'navbar_content'
)
@
include
(
'video_replay.layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
@
include
(
'video_replay.layout.menubtn'
)
@
include
(
'video_replay.layout
s
.menubtn'
)
<
div
class
="
collapse
" id="
collapseExample
" style="
margin
:
5
%
">
<
div
class
="
collapse
" id="
collapseExample
" style="
margin
:
5
%
">
<div class="
card
card
-
body
border
border
-
white
"style="
background
-
color
:
steelblue
;
">
<div class="
card
card
-
body
border
border
-
white
"style="
background
-
color
:
steelblue
;
">
<div class="
icon
" style="
position
:
absolute
;
right
:
5
%
;
top
:
0
"><img style="
transform
:
scaleY
(
-
1
);
transform
:
scaleX
(
-
1
);
" width=400px height=400px src="
https
://
www
.
flaticon
.
com
/
premium
-
icon
/
icons
/
svg
/
1982
/
1982068.
svg
" alt="
無法顯示圖片
"></div>
<div class="
icon
" style="
position
:
absolute
;
right
:
5
%
;
top
:
0
"><img style="
transform
:
scaleY
(
-
1
);
transform
:
scaleX
(
-
1
);
" width=400px height=400px src="
https
://
www
.
flaticon
.
com
/
premium
-
icon
/
icons
/
svg
/
1982
/
1982068.
svg
" alt="
無法顯示圖片
"></div>
...
@@ -47,7 +55,7 @@
...
@@ -47,7 +55,7 @@
</div>
</div>
</form>
</form>
<div style="
margin
-
top
:
5
%
">
<div style="
margin
-
top
:
5
%
">
@include('video_replay.layout.progressbar')
@include('video_replay.layout
s
.progressbar')
</div>
</div>
</div>
</div>
</div>
</div>
...
...
resources/views/video_replay/recordconfig.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'選擇錄製攝影機'
)
@
section
(
'navbar_content'
)
@
include
(
'video_replay.layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
<
style
>
<
style
>
.
cancel
{
.
cancel
{
width
:
60
px
;
width
:
60
px
;
height
:
60
px
;
height
:
60
px
;
background
:
url
(
https
://
image
.
flaticon
.
com
/
icons
/
svg
/
189
/
189678.
svg
)
center
no
-
repeat
;
background
:
url
(
https
://
image
.
flaticon
.
com
/
icons
/
svg
/
189
/
189678.
svg
)
center
no
-
repeat
;
background
-
size
:
35
px
35
px
;
background
-
size
:
35
px
35
px
;
background
-
color
:
lightsteelblue
;
background
-
color
:
lightsteelblue
;
}
}
</
style
>
</
style
>
<
div
class
="
container
-
fluid
">
<
div
class
="
container
-
fluid
">
<div class="
row
" style="
margin
:
3
%
;
">
<div class="
row
" style="
margin
:
3
%
;
">
<div class="
col
-
md
-
12
rounded
border
border
-
light
" style="
background
:
#f6993f ;padding-bottom: 2%">
<div class="
col
-
md
-
12
rounded
border
border
-
light
" style="
background
:
#f6993f ;padding-bottom: 2%">
...
@@ -287,6 +294,6 @@
...
@@ -287,6 +294,6 @@
e
.
preventDefault
();
// avoid to execute the actual submit of the form.
e
.
preventDefault
();
// avoid to execute the actual submit of the form.
});
});
</
script
>
</
script
>
@
endsection
@
stop
resources/views/video_replay/replay.blade.php
View file @
03c730e6
@
extends
(
'layouts.template'
)
@
extends
(
'layouts.template'
)
@
section
(
'title'
,
'攝影機回放'
)
@
section
(
'header'
)
@
section
(
'header'
)
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.0.0-RC.5/video.js"
></
script
>
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/video.js/6.0.0-RC.5/video.js"
></
script
>
...
@@ -8,8 +11,12 @@
...
@@ -8,8 +11,12 @@
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/video_replay.css')}
}
"
>
<
link
rel
=
"stylesheet"
href
=
"
{
{asset('css/video_replay.css')}
}
"
>
@
stop
@
stop
@
section
(
'navbar_content'
)
@
include
(
'video_replay.layouts.navbar_li'
)
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
@
include
(
'video_replay.layout.menubtn'
)
@
include
(
'video_replay.layout
s
.menubtn'
)
<
div
class
="
collapse
" id="
collapseExample
" style="
margin
:
5
%
">
<
div
class
="
collapse
" id="
collapseExample
" style="
margin
:
5
%
">
<div class="
card
card
-
body
border
border
-
white
"style="
background
-
color
:
steelblue
;
">
<div class="
card
card
-
body
border
border
-
white
"style="
background
-
color
:
steelblue
;
">
<div class="
icon
" style="
position
:
absolute
;
right
:
5
%
;
top
:
0
"><img style="
transform
:
scaleY
(
-
1
);
transform
:
scaleX
(
-
1
);
" width=400px height=400px src="
https
://
www
.
flaticon
.
com
/
premium
-
icon
/
icons
/
svg
/
1982
/
1982068.
svg
" alt="
無法顯示圖片
"></div>
<div class="
icon
" style="
position
:
absolute
;
right
:
5
%
;
top
:
0
"><img style="
transform
:
scaleY
(
-
1
);
transform
:
scaleX
(
-
1
);
" width=400px height=400px src="
https
://
www
.
flaticon
.
com
/
premium
-
icon
/
icons
/
svg
/
1982
/
1982068.
svg
" alt="
無法顯示圖片
"></div>
...
@@ -95,7 +102,7 @@
...
@@ -95,7 +102,7 @@
<div class="
col
-
md
-
6
"></div><input id='sub_btn' style="
margin
:
2
%
;
margin
-
left
:
80
%
" class="
btn
-
lg
btn
-
success
btn
" type="
submit
" value="
送出
"/>
<div class="
col
-
md
-
6
"></div><input id='sub_btn' style="
margin
:
2
%
;
margin
-
left
:
80
%
" class="
btn
-
lg
btn
-
success
btn
" type="
submit
" value="
送出
"/>
</div>
</div>
</form>
</form>
@include('video_replay.layout.progressbar')
@include('video_replay.layout
s
.progressbar')
</div>
</div>
</div>
</div>
...
...
resources/views/welcome.blade.php
deleted
100644 → 0
View file @
4c9c1aba
<!doctype html>
<html
lang=
"{{ app()->getLocale() }}"
>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Laravel
</title>
<!-- Fonts -->
<link
href=
"https://fonts.googleapis.com/css?family=Raleway:100,600"
rel=
"stylesheet"
type=
"text/css"
>
<!-- Styles -->
<style>
html
,
body
{
background-color
:
#fff
;
color
:
#636b6f
;
font-family
:
'Raleway'
,
sans-serif
;
font-weight
:
100
;
height
:
100vh
;
margin
:
0
;
}
.full-height
{
height
:
100vh
;
}
.flex-center
{
align-items
:
center
;
display
:
flex
;
justify-content
:
center
;
}
.position-ref
{
position
:
relative
;
}
.top-right
{
position
:
absolute
;
right
:
10px
;
top
:
18px
;
}
.content
{
text-align
:
center
;
}
.title
{
font-size
:
84px
;
}
.links
>
a
{
color
:
#636b6f
;
padding
:
0
25px
;
font-size
:
12px
;
font-weight
:
600
;
letter-spacing
:
.1rem
;
text-decoration
:
none
;
text-transform
:
uppercase
;
}
.m-b-md
{
margin-bottom
:
30px
;
}
</style>
</head>
<body>
<div
class=
"flex-center position-ref full-height"
>
@if (Route::has('login'))
<div
class=
"top-right links"
>
@auth
<a
href=
"{{ url('/home') }}"
>
Home
</a>
@else
<a
href=
"{{ route('login') }}"
>
Login
</a>
<a
href=
"{{ route('register') }}"
>
Register
</a>
@endauth
</div>
@endif
<div
class=
"content"
>
<div
class=
"title m-b-md"
>
Laravel
</div>
<div
class=
"links"
>
<a
href=
"https://laravel.com/docs"
>
Documentation
</a>
<a
href=
"https://laracasts.com"
>
Laracasts
</a>
<a
href=
"https://laravel-news.com"
>
News
</a>
<a
href=
"https://forge.laravel.com"
>
Forge
</a>
<a
href=
"https://github.com/laravel/laravel"
>
GitHub
</a>
</div>
</div>
</div>
</body>
</html>
routes/web.php
View file @
03c730e6
...
@@ -25,11 +25,14 @@ Route::post('attend','AttendanceController@attend');
...
@@ -25,11 +25,14 @@ Route::post('attend','AttendanceController@attend');
Route
::
post
(
'user'
,
'AttendanceController@user'
);
Route
::
post
(
'user'
,
'AttendanceController@user'
);
Route
::
get
(
'line'
,
'PageController@line'
);
Route
::
get
(
'line'
,
'PageController@line'
);
Route
::
get
(
'test'
,
'PageController@test'
);
// Route::get('HRM','PageController@HRM');
// Route::get('HRM','PageController@HRM');
Route
::
post
(
'reg'
,
'ProcessController@reg'
)
->
name
(
'reg'
);
;
Route
::
post
(
'login'
,
'ProcessController@login'
)
->
name
(
'login'
);
//reg login logout controller
Route
::
get
(
'logout'
,
'ProcessController@logout'
)
->
name
(
'logout'
);
Route
::
group
([
'prefix'
=>
'process'
],
function
(){
Route
::
post
(
'reg'
,
'ProcessController@reg'
)
->
name
(
'reg'
);
;
Route
::
post
(
'login'
,
'ProcessController@login'
)
->
name
(
'login'
);
Route
::
get
(
'logout'
,
'ProcessController@logout'
)
->
name
(
'logout'
);
});
/////////////////////////////////////////video
/////////////////////////////////////////video
...
@@ -101,26 +104,14 @@ Route::group(['prefix'=>'people'],function (){
...
@@ -101,26 +104,14 @@ Route::group(['prefix'=>'people'],function (){
});
});
Route
::
group
([
'prefix'
=>
'docker'
],
function
(){
Route
::
group
([],
function
(){
Route
::
group
([
'prefix'
=>
'new'
],
function
(){
Route
::
get
(
'new'
,
'PageController@new'
)
->
name
(
'new'
);
Route
::
get
(
'/'
,
'PageController@new'
);
Route
::
post
(
'/service_create'
,
'DockerController@container_create'
)
->
name
(
'container_create'
);
Route
::
post
(
'/service_create'
,
'DockerController@container_create'
)
->
name
(
'container_create'
);
});
Route
::
group
([
'prefix'
=>
'service'
],
function
(){
Route
::
get
(
'service'
,
'DockerController@init'
)
->
name
(
'service'
);
Route
::
get
(
'/'
,
'DockerController@init'
);
Route
::
get
(
'admin_service'
,
'DockerController@admin_service'
)
->
name
(
'admin_service'
);
});
Route
::
group
([
'prefix'
=>
'admin_service'
],
function
(){
Route
::
get
(
'/'
,
'DockerController@admin_service'
);
});
Route
::
post
(
'api'
,
'DockerController@ctrl_docker_service'
)
->
name
(
'api'
);
Route
::
post
(
'api'
,
'DockerController@ctrl_docker_service'
)
->
name
(
'api'
);
});
});
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