Commit 03c730e6 authored by odlai's avatar odlai

no message

parent 4c9c1aba
...@@ -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
...@@ -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
...@@ -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(){
......
...@@ -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)
{ {
......
...@@ -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;
......
@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">
...@@ -67,3 +76,4 @@ ...@@ -67,3 +76,4 @@
</form> </form>
</div> </div>
</div> </div>
@stop
\ No newline at end of file
@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..">
...@@ -67,3 +77,4 @@ $(document).ready(function(){ ...@@ -67,3 +77,4 @@ $(document).ready(function(){
}); });
}); });
</script> </script>
@stop
\ No newline at end of file
<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>
@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">
...@@ -99,3 +108,5 @@ ...@@ -99,3 +108,5 @@
</form> </form>
</div> </div>
</div> </div>
@stop
\ No newline at end of file
@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..">
...@@ -94,3 +104,5 @@ $(document).ready(function(){ ...@@ -94,3 +104,5 @@ $(document).ready(function(){
</script> </script>
<script src="{{asset('js/pagination.js')}}"></script> <script src="{{asset('js/pagination.js')}}"></script>
@stop
\ No newline at end of file
@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
@extends('layouts.template') @extends('layouts.template')
@section('navbar_content')
@include($navbar_li)
@stop
......
<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 >&#9776;</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>
<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">
......
@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
@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>
<script src="https://code.highcharts.com/highcharts.js"></script>
@stop @stop
<div id="container1" style="width: 750px; height: 400px; margin: 0 auto"></div>
@section('script')
<script language="text/javascript">
$(document).ready(function() {
var chart = {
type: 'spline',
animation: Highcharts.svg, // don't animate in IE < IE 10.
marginRight: 10,
events: {
load: function () {
// set up the updating of the chart each second
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 = {}; @section('navbar_content')
json.chart = chart; @include('layouts.navbar_li')
json.title = title; @stop
json.tooltip = tooltip;
json.xAxis = xAxis;
json.yAxis = yAxis;
json.legend = legend;
json.exporting = exporting;
json.series = series;
json.plotOptions = plotOptions;
@section('content')
<div class="row">
<div class="col-sm-5">
<video id="hls-example" class="video-js vjs-default-skin" width="400" height="300" controls="controls" autoplay="autoplay"
x-webkit-airplay="true" x5-video-player-fullscreen="true"
preload="auto" playsinline="true" webkit-playsinline x5-video-player-typ="h5">
<source type="application/x-mpegURL" src="/video/index.m3u8">
</video>
</div>
<div class="col-sm">
Highcharts.setOptions({ </div>
global: { </div>
useUTC: false
}
});
$('#container1').highcharts(json);
}); <script>
var player = videojs("hls-example");
player.play();
</script> </script>
@stop @stop
\ No newline at end of file
@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
@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
@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
@section('navbar_content')
@include('smart_parking.layouts.navbar_li')
@stop @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
@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
@section('navbar_content')
@include('smart_parking.layouts.navbar_li')
@stop @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
@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
@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()
<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
@extends('layout')
@section('content')
Users!
@stop
\ No newline at end of file
@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.layouts.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
@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
@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.layouts.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.layouts.progressbar')
</div> </div>
</div> </div>
</div> </div>
......
@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: 60px; width: 60px;
height: 60px; height: 60px;
...@@ -8,7 +15,7 @@ ...@@ -8,7 +15,7 @@
background-size: 35px 35px; background-size: 35px 35px;
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
@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.layouts.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.layouts.progressbar')
</div> </div>
</div> </div>
......
<!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>
...@@ -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('/','DockerController@init');
});
Route::group(['prefix'=>'admin_service'],function (){ Route::get('service','DockerController@init')->name('service');
Route::get('/','DockerController@admin_service');
}); Route::get('admin_service','DockerController@admin_service')->name('admin_service');
Route::post('api','DockerController@ctrl_docker_service')->name('api'); Route::post('api','DockerController@ctrl_docker_service')->name('api');
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment