Commit 4c9c1aba authored by odlai's avatar odlai

no message

parent 05c545c1
...@@ -73,6 +73,12 @@ class DockerController extends Controller ...@@ -73,6 +73,12 @@ class DockerController extends Controller
] ]
]); ]);
if($request->input('radio_start')=="Y"){
$response = json_decode($res->getBody()->__toString(), true);
$container_id=$response["Id"];
$res = $client->POST($this->docker_ip."/containers/".$container_id."/start");
}
// $response = json_decode($res->getBody()->__toString(), true); // $response = json_decode($res->getBody()->__toString(), true);
// dd($response); // dd($response);
// $data=array( // $data=array(
......
...@@ -72,7 +72,7 @@ class PageController extends Controller ...@@ -72,7 +72,7 @@ class PageController extends Controller
$main=Car::all(); $main=Car::all();
$people=People::all(); $people=People::all();
return View('index',['page' => 'people','result'=>$query,'iresult'=>$main,'people'=>$people,'navbar_li'=>'video_replay.layout.navbar_li','title'=>'tt']); return View('index',['page' => 'people','result'=>$query,'iresult'=>$main,'people'=>$people,'navbar_li'=>'HRM.layouts.navbar_li','title'=>'tt']);
} }
public function test() public function test()
{ {
...@@ -89,4 +89,11 @@ class PageController extends Controller ...@@ -89,4 +89,11 @@ class PageController extends Controller
$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('index',['page' => 'line.line','result'=>$query,'iresult'=>$main,'navbar_li'=>'layouts.navbar_li','title'=>'tt']);
} }
public function health()
{
$query = Path::all();
$main=Car::all();
return View('index',['page' => 'longcare.health','result'=>$query,'iresult'=>$main,'navbar_li'=>'layouts.navbar_li','title'=>'health']);
}
} }
\ No newline at end of file
...@@ -26,7 +26,8 @@ class ProcessController extends Controller ...@@ -26,7 +26,8 @@ class ProcessController extends Controller
Auth::loginUsingId($login_user->id,true); Auth::loginUsingId($login_user->id,true);
return redirect('page'); return redirect('page');
} }
return view('page',['title'=>'登入後使用','msg'=>'帳號或密碼錯誤']); // return view('page',['title'=>'登入後使用','msg'=>'帳號或密碼錯誤']);
return redirect('page');
} }
public function logout(){ public function logout(){
......
...@@ -70,8 +70,6 @@ class CamdbController extends Controller ...@@ -70,8 +70,6 @@ class CamdbController extends Controller
} }
public function get_info($cam_list) public function get_info($cam_list)
{ {
// $query = Path::all();
// $car=Path_option::all();
$Cam_list=collect(Camdb::where('camera_id',$cam_list)->first()); $Cam_list=collect(Camdb::where('camera_id',$cam_list)->first());
$Goup_name=collect(CamGoup::where('goup_id',$Cam_list['camera_goup'])->first()); $Goup_name=collect(CamGoup::where('goup_id',$Cam_list['camera_goup'])->first());
......
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
}
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
"fideloper/proxy": "~3.3", "fideloper/proxy": "~3.3",
"guzzlehttp/guzzle": "~6.0", "guzzlehttp/guzzle": "~6.0",
"laravel/framework": "5.5.*", "laravel/framework": "5.5.*",
"laravel/tinker": "~1.0" "laravel/tinker": "~1.0",
"muhamadrezaar/highcharts": "^2.0"
}, },
"require-dev": { "require-dev": {
"filp/whoops": "~2.0", "filp/whoops": "~2.0",
......
This diff is collapsed.
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePeopleTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('people', function (Blueprint $table) {
$table->increments('id');
$table->string('name',20);
$table->integer('age',4);
$table->string('sex',2);
$table->string('work',20);
$table->string('phone',10);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('people');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOptionTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('option', function (Blueprint $table) {
$table->increments('option_id');
$table->string('option_dir',20);
$table->string('option_name',20);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('option');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSuboptionTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('suboption', function (Blueprint $table) {
$table->increments('suboption_id');
$table->string('option_dir',20);
$table->string('option_name',20);
$table->string('suboption_dir',20);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('suboption');
}
}
getPagination('#table-id');
function getPagination (table){
var lastPage = 1 ;
$('#maxRows').on('change',function(evt){
//$('.paginationprev').html(''); // reset pagination
lastPage = 1 ;
$('.pagination').find("li").slice(1, -1).remove();
var trnum = 0 ; // reset tr counter
var maxRows = parseInt($(this).val()); // get Max Rows from select option
if(maxRows == 5000 ){
$('.pagination').hide();
}else {
$('.pagination').show();
}
var totalRows = $(table+' tbody tr').length; // numbers of rows
$(table+' tr:gt(0)').each(function(){ // each TR in table and not the header
trnum++; // Start Counter
if (trnum > maxRows ){ // if tr number gt maxRows
$(this).hide(); // fade it out
}if (trnum <= maxRows ){$(this).show();}// else fade in Important in case if it ..
}); // was fade out to fade it in
if (totalRows > maxRows){ // if tr total rows gt max rows option
var pagenum = Math.ceil(totalRows/maxRows); // ceil total(rows/maxrows) to get ..
// numbers of pages
for (var i = 1; i <= pagenum ;){ // for each page append pagination li
$('.pagination #prev').before('<li data-page="'+i+'">\
<span>'+ i++ +'<span class="sr-only">(current)</span></span>\
</li>').show();
} // end for i
} // end if row count > max rows
$('.pagination [data-page="1"]').addClass('active'); // add active class to the first li
$('.pagination li').on('click',function(evt){ // on click each page
evt.stopImmediatePropagation();
evt.preventDefault();
var pageNum = $(this).attr('data-page'); // get it's number
var maxRows = parseInt($('#maxRows').val()); // get Max Rows from select option
if(pageNum == "prev" ){
if(lastPage == 1 ){return;}
pageNum = --lastPage ;
}
if(pageNum == "next" ){
if(lastPage == ($('.pagination li').length -2) ){return;}
pageNum = ++lastPage ;
}
lastPage = pageNum ;
var trIndex = 0 ; // reset tr counter
$('.pagination li').removeClass('active'); // remove active class from all li
$('.pagination [data-page="'+lastPage+'"]').addClass('active');// add active class to the clicked
// $(this).addClass('active'); // add active class to the clicked
$(table+' tr:gt(0)').each(function(){ // each tr in table not the header
trIndex++; // tr index counter
// if tr index gt maxRows*pageNum or lt maxRows*pageNum-maxRows fade if out
if (trIndex > (maxRows*pageNum) || trIndex <= ((maxRows*pageNum)-maxRows)){
$(this).hide();
}else {$(this).show();} //else fade in
}); // end of for each tr in table
}); // end of on click pagination list
}).val(5).change();
// end of on select change
// END OF PAGINATION
}
\ No newline at end of file
<li class="nav-item active">
<a class="nav-link text-light" href="{{route('replay')}}">人員出勤管理 <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link text-light" href="{{route('playrealtime')}}">出勤管理</a>
</li>
<li class="nav-item">
<a class="nav-link text-light" href="{{route('recordconfig')}}">出勤報表</a>
</li>
<li class="nav-item">
<a class="nav-link text-light" href="{{route('configcam')}}">請假加班管理</a>
</li>
\ No newline at end of file
<html lang="zh-tw">
<head> <head>
<title>{{$title}}</title> <title>{{$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">
<meta name="_token" content="{{ csrf_token() }}"/> <meta name="_token" content="{{ csrf_token() }}"/>
<script type="text/javascript" src="{{asset('bower_components/moment/moment.js')}}"></script>
<script type="text/javascript" src="{{asset('bower_components/moment/locale/zh-tw.js')}}"></script>
@section('header') @section('header')
@show @show
<link rel="stylesheet" href="{{asset('css/bootstrap.css')}}"> <link rel="stylesheet" href="{{asset('css/bootstrap.css')}}">
<link rel="stylesheet" href="{{asset('css/slider_video.css')}}"> <link rel="stylesheet" href="{{asset('css/slider_video.css')}}">
...@@ -58,10 +62,11 @@ ...@@ -58,10 +62,11 @@
<!-- Modal START --> <!-- Modal START -->
@include('modal') @include('modal')
<!-- Modal END --> <!-- Modal END -->
@yield('content') @section('content')
@show
</div> </div>
<!--<script src="{{asset('js/play-video.js') }}"></script>-->
@section('script') @section('script')
@show @show
......
@section('header')
<script src="https://code.highcharts.com/highcharts.js"></script>
@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 = {};
json.chart = chart;
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>
@stop
\ No newline at end of file
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div class="form-group row"> <div class="form-group row">
<label for="inputEmail3" class="col-sm-2 col-form-label">目的串流</label> <label for="inputEmail3" class="col-sm-2 col-form-label">目的串流</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input name="dis_stream" class="form-control" type="text" placeholder="請輸入英文或數字共3個字以上" class="input-large" value="rsp://192.168.5.208:554/test" required=""> <input name="dis_stream" class="form-control" type="text" placeholder="請輸入英文或數字共3個字以上" class="input-large" value="rtsp://192.168.5.208:554/test" required="">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
...@@ -45,6 +45,18 @@ ...@@ -45,6 +45,18 @@
</div> </div>
</div> </div>
</div> </div>
<div class="form-group row">
<label for="inputPassword3" class="col-sm-2 col-form-label">辨識模組</label>
<div class="col-sm-10">
<div class="custom-file">
<input type="file" class="custom-file-input" id="validatedCustomFile">
<label class="custom-file-label" for="validatedCustomFile">Choose file...</label>
<div class="invalid-feedback">Example invalid custom file feedback</div>
</div>
</div>
</div>
<div class="form-group row"> <div class="form-group row">
<label for="inputPassword3" class="col-sm-2 col-form-label">是否輸出</label> <label for="inputPassword3" class="col-sm-2 col-form-label">是否輸出</label>
<div class="col-sm-10"> <div class="col-sm-10">
...@@ -55,7 +67,7 @@ ...@@ -55,7 +67,7 @@
</div> </div>
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">
<div class="custom-control custom-radio custom-control-inline"> <div class="custom-control custom-radio custom-control-inline">
<input type="radio" class="custom-control-input" id="customRadio4" name="example"> <input type="radio" class="custom-control-input" id="customRadio4" name="example" checked="">
<label class="custom-control-label" for="customRadio4"></label> <label class="custom-control-label" for="customRadio4"></label>
</div> </div>
</div> </div>
...@@ -64,26 +76,16 @@ ...@@ -64,26 +76,16 @@
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label for="inputPassword3" class="col-sm-2 col-form-label">辨識模組</label> <label for="inputPassword3" class="col-sm-2 col-form-label">是否啟動</label>
<div class="col-sm-10">
<div class="custom-file">
<input type="file" class="custom-file-input" id="validatedCustomFile">
<label class="custom-file-label" for="validatedCustomFile">Choose file...</label>
<div class="invalid-feedback">Example invalid custom file feedback</div>
</div>
</div>
</div>
<div class="form-group row">
<label for="inputPassword3" class="col-sm-2 col-form-label">是否重啟</label>
<div class="col-sm-10"> <div class="col-sm-10">
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">
<div class="custom-control custom-radio custom-control-inline"> <div class="custom-control custom-radio custom-control-inline">
<input type="radio" class="custom-control-input" id="customRadio" name="example1" value="customEx"> <input type="radio" class="custom-control-input" id="customRadio" name="radio_start" value="Y">
<label class="custom-control-label" for="customRadio"></label> <label class="custom-control-label" for="customRadio"></label>
</div> </div>
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">
<div class="custom-control custom-radio custom-control-inline"> <div class="custom-control custom-radio custom-control-inline">
<input type="radio" class="custom-control-input" id="customRadio1" name="example1" value="customEx"> <input type="radio" class="custom-control-input" id="customRadio1" name="radio_start" checked="" value="N">
<label class="custom-control-label" for="customRadio1"></label> <label class="custom-control-label" for="customRadio1"></label>
</div> </div>
</div> </div>
......
<form style="text-align:left" class="form-inline" action="/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(); ?>">
<div class="col-lg-12"> <div class="col-lg-12">
<div class="thumbnail"> <div class="thumbnail">
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<td>{{$peoples->work}}</td> <td>{{$peoples->work}}</td>
<td>{{$peoples->phone}}</td> <td>{{$peoples->phone}}</td>
<td> <td>
<form action="delete" method="POST"> <form action="{{route('delete')}}" method="POST">
<input type = "hidden" name = "_token" value = "<?php echo csrf_token(); ?>"> <input type = "hidden" name = "_token" value = "<?php echo csrf_token(); ?>">
<button type="submit" class="btn btn-primary" value="{{$peoples->id}}" name='delete'>刪除</button> <button type="submit" class="btn btn-primary" value="{{$peoples->id}}" name='delete'>刪除</button>
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
<div class="modal-body"> <div class="modal-body">
<form class="form-horizontal" action="update" method="post"> <form class="form-horizontal" action="{{route('update')}}" method="post">
<input type = "hidden" name = "_token" value = "<?php echo csrf_token(); ?>"> <input type = "hidden" name = "_token" value = "<?php echo csrf_token(); ?>">
<fieldset> <fieldset>
<!-- Sign Up Form --> <!-- Sign Up Form -->
......
<h2>Management 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..">
<br> <br>
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
<!-- </form>--> <!-- </form>-->
<div class="container" > <div class="container" >
<div class="form-group"> <div class="form-group">
<h3>每頁</h3> <!-- Show Numbers Of Rows --> <!-- Show Numbers Of Rows -->
<div class="col-sm-10"> <div class="col-sm-2"><h3>每頁</h3>
<select class="form-control" name="state" id="maxRows"> <select class="form-control" name="state" id="maxRows">
<option value="5000">All</option> <option value="5000">All</option>
<option value="5">5</option> <option value="5">5</option>
...@@ -57,8 +57,9 @@ ...@@ -57,8 +57,9 @@
<option value="20">20</option> <option value="20">20</option>
<option value="50">50</option> <option value="50">50</option>
</select> </select>
</div>
<h3></h3> <h3></h3>
</div>
<!-- Start Pagination --> <!-- Start Pagination -->
<div class='pagination-container' style="text-align:right"> <div class='pagination-container' style="text-align:right">
...@@ -91,80 +92,5 @@ $(document).ready(function(){ ...@@ -91,80 +92,5 @@ $(document).ready(function(){
}); });
}); });
</script> </script>
<script>
getPagination('#table-id');
function getPagination (table){
var lastPage = 1 ;
$('#maxRows').on('change',function(evt){
//$('.paginationprev').html(''); // reset pagination
lastPage = 1 ;
$('.pagination').find("li").slice(1, -1).remove();
var trnum = 0 ; // reset tr counter
var maxRows = parseInt($(this).val()); // get Max Rows from select option
if(maxRows == 5000 ){
$('.pagination').hide(); <script src="{{asset('js/pagination.js')}}"></script>
}else { \ No newline at end of file
$('.pagination').show();
}
var totalRows = $(table+' tbody tr').length; // numbers of rows
$(table+' tr:gt(0)').each(function(){ // each TR in table and not the header
trnum++; // Start Counter
if (trnum > maxRows ){ // if tr number gt maxRows
$(this).hide(); // fade it out
}if (trnum <= maxRows ){$(this).show();}// else fade in Important in case if it ..
}); // was fade out to fade it in
if (totalRows > maxRows){ // if tr total rows gt max rows option
var pagenum = Math.ceil(totalRows/maxRows); // ceil total(rows/maxrows) to get ..
// numbers of pages
for (var i = 1; i <= pagenum ;){ // for each page append pagination li
$('.pagination #prev').before('<li data-page="'+i+'">\
<span>'+ i++ +'<span class="sr-only">(current)</span></span>\
</li>').show();
} // end for i
} // end if row count > max rows
$('.pagination [data-page="1"]').addClass('active'); // add active class to the first li
$('.pagination li').on('click',function(evt){ // on click each page
evt.stopImmediatePropagation();
evt.preventDefault();
var pageNum = $(this).attr('data-page'); // get it's number
var maxRows = parseInt($('#maxRows').val()); // get Max Rows from select option
if(pageNum == "prev" ){
if(lastPage == 1 ){return;}
pageNum = --lastPage ;
}
if(pageNum == "next" ){
if(lastPage == ($('.pagination li').length -2) ){return;}
pageNum = ++lastPage ;
}
lastPage = pageNum ;
var trIndex = 0 ; // reset tr counter
$('.pagination li').removeClass('active'); // remove active class from all li
$('.pagination [data-page="'+lastPage+'"]').addClass('active');// add active class to the clicked
// $(this).addClass('active'); // add active class to the clicked
$(table+' tr:gt(0)').each(function(){ // each tr in table not the header
trIndex++; // tr index counter
// if tr index gt maxRows*pageNum or lt maxRows*pageNum-maxRows fade if out
if (trIndex > (maxRows*pageNum) || trIndex <= ((maxRows*pageNum)-maxRows)){
$(this).hide();
}else {$(this).show();} //else fade in
}); // end of for each tr in table
}); // end of on click pagination list
}).val(5).change();
// end of on select change
// END OF PAGINATION
}
</script>
\ No newline at end of file
@extends('layouts.template') @extends('layouts.template')
@section('header') @section('header')
<script type="text/javascript" src="{{asset('bower_components/moment/moment.js')}}"></script>
<script type="text/javascript" src="{{asset('bower_components/moment/locale/zh-tw.js')}}"></script>
<link rel="stylesheet" href="{{asset('css/video_replay.css')}}"> <link rel="stylesheet" href="{{asset('css/video_replay.css')}}">
@stop @stop
@section('content') @section('content')
@include('video_replay.layout.menubtn') @include('video_replay.layout.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://60.249.6.104:10300/insert_cam" method="POST" onsubmit="return false"> <form id="send" action="http://192.168.5.217:8001/insert_cam" method="POST" onsubmit="return false">
<div class="form-group"> <div class="form-group">
<label for="cam_id">Camera_ID</label> <label for="cam_id">Camera_ID</label>
<input type="text" class="form-control" id="cam_id" name="camera_id" placeholder="XXXnnnn"required> <input type="text" class="form-control" id="cam_id" name="camera_id" placeholder="XXXnnnn"required>
......
@extends('layouts.template') @extends('layouts.template')
@section('header') @section('header')
<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.0.0-RC.5/video.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/6.6.2/video.min.js"></script> <!-- PC 端浏览器不支持播放 hls 文件(m3u8), 需要 videojs-contrib-hls 来给我们解码 -->
<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/videojs-contrib-hls/5.3.3/videojs-contrib-hls.js"></script>
<!-- videojs-flash --> <script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-hotkeys/0.2.25/videojs.hotkeys.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-flash/2.1.0/videojs-flash.min.js"></script>
<script src="https://cdn.sc.gl/videojs-hotkeys/0.2/videojs.hotkeys.min.js"></script>
<link rel="stylesheet" href="{{asset('css/video_replay.css')}}"> <link rel="stylesheet" href="{{asset('css/video_replay.css')}}">
@stop @stop
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</div> </div>
</div> </div>
<form id="send" action="http://60.249.6.104:10300/realtime/play" method="POST" onsubmit="return false"> <form id="send" action="http://192.168.5.217:8001/realtime/play" method="POST" onsubmit="return false">
{{ csrf_field() }} {{ csrf_field() }}
<div style="color:#000" class="row"> <div style="color:#000" class="row">
<div class="col-md-6"> <div class="col-md-6">
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
str+=("playsinline webkit-playsinline autoplay controls preload=\"auto\""); str+=("playsinline webkit-playsinline autoplay controls preload=\"auto\"");
str+=("x-webkit-airplay=\"true\" x5-video-player-fullscreen=\"true\" x5-video-player-typ=\"h5\" muted=\"muted\">"); str+=("x-webkit-airplay=\"true\" x5-video-player-fullscreen=\"true\" x5-video-player-typ=\"h5\" muted=\"muted\">");
str+=("<source src=\""+urls[(i*columns_cam+j)]+"\""); str+=("<source src=\""+urls[(i*columns_cam+j)]+"\"");
str+=("type='video/rtmp'>"); str+=("type=\"application/x-mpegURL\">");
str+=("</video>"); str+=("</video>");
str+=("</div>"); str+=("</div>");
console.log(urls[(i*columns_cam+j)]); console.log(urls[(i*columns_cam+j)]);
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<div class="row" style="margin-top:3%;margin-left:3%;font-weight: bolder;font-size:24pt;text-align: center;color:white;">新增儲存錄製設備</div> <div class="row" style="margin-top:3%;margin-left:3%;font-weight: bolder;font-size:24pt;text-align: center;color:white;">新增儲存錄製設備</div>
<div class="row" style="margin-left: 3%;font-size:18pt;"> <div class="row" style="margin-left: 3%;font-size:18pt;">
<form id="send" action="http://60.249.6.104:10300/storage_cam" method="POST" onsubmit="return false"> <form id="send" action="http://192.168.5.217:8001/storage_cam" method="POST" onsubmit="return false">
<div class="form-group row"> <div class="form-group row">
<div class="col-auto"> <div class="col-auto">
<div class="row"> <div class="row">
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</form> </form>
</div> </div>
</div> </div>
<form hidden="hidden" id="cancel_form" action="http://60.249.6.104:10300/rm_container" method="POST" onsubmit="return false"> <form hidden="hidden" id="cancel_form" action="http://192.168.5.217:8001/rm_container" method="POST" onsubmit="return false">
<input id="cancel_id" name="camera_id"> <input id="cancel_id" name="camera_id">
<input id="cancel_submit" type="submit"> <input id="cancel_submit" type="submit">
</form> </form>
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<script> <script>
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://60.249.6.104:10300/storage/list", url: "http://192.168.5.217:8001/storage/list",
dataType: 'json', dataType: 'json',
success: function(data) success: function(data)
{ {
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
for (var k in data) { for (var k in data) {
var txt=''; var txt='';
for (i in data[k][0]){ for (i in data[k][0]){
if (i <9 ){ continue;} if (i <6 ){ continue;}
txt+=data[k][0][i]; txt+=data[k][0][i];
} }
txt=txt.toLocaleUpperCase(); txt=txt.toLocaleUpperCase();
......
@extends('layouts.template') @extends('layouts.template')
@section('header') @section('header')
<script type="text/javascript" src="{{asset('bower_components/moment/moment.js')}}"></script>
<script type="text/javascript" src="{{asset('bower_components/moment/locale/zh-tw.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/video.js/6.0.0-RC.5/video.js"></script>
<!-- PC 端浏览器不支持播放 hls 文件(m3u8), 需要 videojs-contrib-hls 来给我们解码 --> <!-- 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-contrib-hls/5.3.3/videojs-contrib-hls.js"></script>
...@@ -54,7 +53,7 @@ ...@@ -54,7 +53,7 @@
</div> </div>
</div> </div>
<form id="send" action="http://60.249.6.104:10300/replay2" method="POST" onsubmit="return false"> <form id="send" action="http://192.168.5.217:8001/replay2" method="POST" onsubmit="return false">
{{ csrf_field() }} {{ csrf_field() }}
<div class="row" > <div class="row" >
<div class="col-xs-6 col-md-3"> <div class="col-xs-6 col-md-3">
......
...@@ -14,11 +14,12 @@ ...@@ -14,11 +14,12 @@
use Illuminate\Auth\Middleware\Authenticate ; use Illuminate\Auth\Middleware\Authenticate ;
Route::get('/','PageController@page')->name('/'); Route::get('/','PageController@page')->name('/');
Route::get('page','PageController@page'); Route::get('page','PageController@page');
Route::get('health','PageController@health');
Route::get('car_sys','PageController@car_sys'); Route::get('car_sys','PageController@car_sys');
Route::get('video_replay','PageController@video_replay'); Route::get('video_replay','PageController@video_replay');
Route::get('new','PageController@new');
Route::get('smart_parking','Parking\IndexController@index'); Route::get('smart_parking','Parking\IndexController@index');
Route::get('people','PageController@people');
Route::get('attendance','AttendanceController@atten'); Route::get('attendance','AttendanceController@atten');
Route::post('attend','AttendanceController@attend'); Route::post('attend','AttendanceController@attend');
Route::post('user','AttendanceController@user'); Route::post('user','AttendanceController@user');
...@@ -31,8 +32,6 @@ Route::post('login','ProcessController@login')->name('login'); ...@@ -31,8 +32,6 @@ Route::post('login','ProcessController@login')->name('login');
Route::get('logout','ProcessController@logout')->name('logout'); Route::get('logout','ProcessController@logout')->name('logout');
/////////////////////////////////////////video /////////////////////////////////////////video
Route::group(['prefix'=>'/index','namespace' => 'Video','middleware'=>'auth'],function(){ Route::group(['prefix'=>'/index','namespace' => 'Video','middleware'=>'auth'],function(){
Route::get('/',function (){return view('index',['title'=>'歡迎使用影像調閱系統']);})->name('index'); Route::get('/',function (){return view('index',['title'=>'歡迎使用影像調閱系統']);})->name('index');
...@@ -87,19 +86,41 @@ Route::get('/playback',function(){ ...@@ -87,19 +86,41 @@ Route::get('/playback',function(){
}); });
///////////////////////////////////////////HRM ///////////////////////////////////////////HRM
Route::group(['prefix'=>'HRM'],function (){ // Route::group(['prefix'=>'HRM'],function (){
Route::get('/','PageController@HRM'); // Route::get('/','PageController@HRM');
Route::get('human_management','PageController@HRM'); // Route::get('human_management','PageController@HRM');
Route::get('HRM','PageController@HRM'); // Route::get('HRM','PageController@HRM');
// });
Route::group(['prefix'=>'people'],function (){
Route::get('/','PageController@people');
Route::post('/insert','InsertController@insert')->name('insert');
Route::post('/delete','InsertController@delete')->name('delete');
Route::post('/update','InsertController@update')->name('update');
});
Route::group(['prefix'=>'docker'],function (){
Route::group(['prefix'=>'new'],function (){
Route::get('/','PageController@new');
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('/','DockerController@admin_service');
});
Route::post('api','DockerController@ctrl_docker_service')->name('api');
}); });
Route::get('service','DockerController@init');
Route::post('api','DockerController@ctrl_docker_service')->name('api');
Route::post('service_create','DockerController@container_create')->name('container_create');
Route::get('admin_service','DockerController@admin_service');
Route::post('insert','InsertController@insert');
Route::post('delete','InsertController@delete')->name('delete');
Route::post('update','InsertController@delete')->name('update');
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