Commit 4c9c1aba authored by odlai's avatar odlai

no message

parent 05c545c1
......@@ -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);
// dd($response);
// $data=array(
......
......@@ -72,7 +72,7 @@ class PageController extends Controller
$main=Car::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()
{
......@@ -89,4 +89,11 @@ class PageController extends Controller
$main=Car::all();
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
Auth::loginUsingId($login_user->id,true);
return redirect('page');
}
return view('page',['title'=>'登入後使用','msg'=>'帳號或密碼錯誤']);
// return view('page',['title'=>'登入後使用','msg'=>'帳號或密碼錯誤']);
return redirect('page');
}
public function logout(){
......
......@@ -70,8 +70,6 @@ class CamdbController extends Controller
}
public function get_info($cam_list)
{
// $query = Path::all();
// $car=Path_option::all();
$Cam_list=collect(Camdb::where('camera_id',$cam_list)->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',
];
}
......@@ -7,9 +7,10 @@
"require": {
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"guzzlehttp/guzzle": "~6.0",
"guzzlehttp/guzzle": "~6.0",
"laravel/framework": "5.5.*",
"laravel/tinker": "~1.0"
"laravel/tinker": "~1.0",
"muhamadrezaar/highcharts": "^2.0"
},
"require-dev": {
"filp/whoops": "~2.0",
......
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "ce2f4c186dcfc679dd0c93bc0dc43787",
"content-hash": "90f12ca757900c10556e63e599041843",
"packages": [
{
"name": "dnoegel/php-xdg-base-dir",
......@@ -41,16 +41,16 @@
},
{
"name": "doctrine/inflector",
"version": "v1.3.0",
"version": "1.3.1",
"source": {
"type": "git",
"url": "https://github.com/doctrine/inflector.git",
"reference": "5527a48b7313d15261292c149e55e26eae771b0a"
"reference": "ec3a55242203ffa6a4b27c58176da97ff0a7aec1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/inflector/zipball/5527a48b7313d15261292c149e55e26eae771b0a",
"reference": "5527a48b7313d15261292c149e55e26eae771b0a",
"url": "https://api.github.com/repos/doctrine/inflector/zipball/ec3a55242203ffa6a4b27c58176da97ff0a7aec1",
"reference": "ec3a55242203ffa6a4b27c58176da97ff0a7aec1",
"shasum": ""
},
"require": {
......@@ -75,6 +75,10 @@
"MIT"
],
"authors": [
{
"name": "Guilherme Blanco",
"email": "guilhermeblanco@gmail.com"
},
{
"name": "Roman Borschel",
"email": "roman@code-factory.org"
......@@ -83,10 +87,6 @@
"name": "Benjamin Eberlei",
"email": "kontakt@beberlei.de"
},
{
"name": "Guilherme Blanco",
"email": "guilhermeblanco@gmail.com"
},
{
"name": "Jonathan Wage",
"email": "jonwage@gmail.com"
......@@ -104,7 +104,7 @@
"singularize",
"string"
],
"time": "2018-01-09T20:05:19+00:00"
"time": "2019-10-30T19:59:35+00:00"
},
{
"name": "doctrine/lexer",
......@@ -329,27 +329,28 @@
},
{
"name": "guzzlehttp/guzzle",
"version": "6.3.3",
"version": "6.4.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/guzzle.git",
"reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba"
"reference": "0895c932405407fd3a7368b6910c09a24d26db11"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba",
"reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/0895c932405407fd3a7368b6910c09a24d26db11",
"reference": "0895c932405407fd3a7368b6910c09a24d26db11",
"shasum": ""
},
"require": {
"ext-json": "*",
"guzzlehttp/promises": "^1.0",
"guzzlehttp/psr7": "^1.4",
"guzzlehttp/psr7": "^1.6.1",
"php": ">=5.5"
},
"require-dev": {
"ext-curl": "*",
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
"psr/log": "^1.0"
"psr/log": "^1.1"
},
"suggest": {
"psr/log": "Required for using the Log middleware"
......@@ -361,12 +362,12 @@
}
},
"autoload": {
"files": [
"src/functions_include.php"
],
"psr-4": {
"GuzzleHttp\\": "src/"
}
},
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
......@@ -390,7 +391,7 @@
"rest",
"web service"
],
"time": "2018-04-22T15:46:56+00:00"
"time": "2019-10-23T15:58:00+00:00"
},
{
"name": "guzzlehttp/promises",
......@@ -846,16 +847,16 @@
},
{
"name": "league/flysystem",
"version": "1.0.55",
"version": "1.0.57",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
"reference": "33c91155537c6dc899eacdc54a13ac6303f156e6"
"reference": "0e9db7f0b96b9f12dcf6f65bc34b72b1a30ea55a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/33c91155537c6dc899eacdc54a13ac6303f156e6",
"reference": "33c91155537c6dc899eacdc54a13ac6303f156e6",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/0e9db7f0b96b9f12dcf6f65bc34b72b1a30ea55a",
"reference": "0e9db7f0b96b9f12dcf6f65bc34b72b1a30ea55a",
"shasum": ""
},
"require": {
......@@ -926,7 +927,7 @@
"sftp",
"storage"
],
"time": "2019-08-24T11:17:19+00:00"
"time": "2019-10-16T21:01:05+00:00"
},
{
"name": "monolog/monolog",
......@@ -1050,18 +1051,66 @@
],
"time": "2017-01-23T04:29:33+00:00"
},
{
"name": "muhamadrezaar/highcharts",
"version": "2.0.4",
"source": {
"type": "git",
"url": "https://github.com/julles/laravel-highcharts.git",
"reference": "efe473406b32e55e8f5eac4f79b6193da0abc013"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/julles/laravel-highcharts/zipball/efe473406b32e55e8f5eac4f79b6193da0abc013",
"reference": "efe473406b32e55e8f5eac4f79b6193da0abc013",
"shasum": ""
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"RezaAr\\Highcharts\\Provider"
],
"aliases": {
"Chart": "RezaAr\\Highcharts\\Facade"
}
}
},
"autoload": {
"psr-4": {
"RezaAr\\Highcharts\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Muhamad Reza Abdul Rohim",
"email": "reza.wikrama3@gmail.com"
}
],
"description": "Laravel Highcarts Packages",
"keywords": [
"highcharts",
"laravel",
"packages"
],
"time": "2018-10-18T14:54:03+00:00"
},
{
"name": "nesbot/carbon",
"version": "1.39.0",
"version": "1.39.1",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
"reference": "dd62a58af4e0775a45ea5f99d0363d81b7d9a1e0"
"reference": "4be0c005164249208ce1b5ca633cd57bdd42ff33"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/dd62a58af4e0775a45ea5f99d0363d81b7d9a1e0",
"reference": "dd62a58af4e0775a45ea5f99d0363d81b7d9a1e0",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4be0c005164249208ce1b5ca633cd57bdd42ff33",
"reference": "4be0c005164249208ce1b5ca633cd57bdd42ff33",
"shasum": ""
},
"require": {
......@@ -1109,20 +1158,20 @@
"datetime",
"time"
],
"time": "2019-06-11T09:07:59+00:00"
"time": "2019-10-14T05:51:36+00:00"
},
{
"name": "nikic/php-parser",
"version": "v4.2.4",
"version": "v4.3.0",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "97e59c7a16464196a8b9c77c47df68e4a39a45c4"
"reference": "9a9981c347c5c49d6dfe5cf826bb882b824080dc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/97e59c7a16464196a8b9c77c47df68e4a39a45c4",
"reference": "97e59c7a16464196a8b9c77c47df68e4a39a45c4",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/9a9981c347c5c49d6dfe5cf826bb882b824080dc",
"reference": "9a9981c347c5c49d6dfe5cf826bb882b824080dc",
"shasum": ""
},
"require": {
......@@ -1130,6 +1179,7 @@
"php": ">=7.0"
},
"require-dev": {
"ircmaxell/php-yacc": "0.0.5",
"phpunit/phpunit": "^6.5 || ^7.0 || ^8.0"
},
"bin": [
......@@ -1138,7 +1188,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.2-dev"
"dev-master": "4.3-dev"
}
},
"autoload": {
......@@ -1160,7 +1210,7 @@
"parser",
"php"
],
"time": "2019-09-01T07:51:21+00:00"
"time": "2019-11-08T13:50:10+00:00"
},
{
"name": "paragonie/random_compat",
......@@ -1308,16 +1358,16 @@
},
{
"name": "psr/log",
"version": "1.1.0",
"version": "1.1.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/log.git",
"reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
"reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
"reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
"url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801",
"reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801",
"shasum": ""
},
"require": {
......@@ -1326,7 +1376,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
"dev-master": "1.1.x-dev"
}
},
"autoload": {
......@@ -1351,7 +1401,7 @@
"psr",
"psr-3"
],
"time": "2018-11-20T15:27:04+00:00"
"time": "2019-11-01T11:05:21+00:00"
},
{
"name": "psr/simple-cache",
......@@ -1599,16 +1649,16 @@
},
{
"name": "swiftmailer/swiftmailer",
"version": "v6.2.1",
"version": "v6.2.3",
"source": {
"type": "git",
"url": "https://github.com/swiftmailer/swiftmailer.git",
"reference": "5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a"
"reference": "149cfdf118b169f7840bbe3ef0d4bc795d1780c9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a",
"reference": "5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a",
"url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/149cfdf118b169f7840bbe3ef0d4bc795d1780c9",
"reference": "149cfdf118b169f7840bbe3ef0d4bc795d1780c9",
"shasum": ""
},
"require": {
......@@ -1657,20 +1707,20 @@
"mail",
"mailer"
],
"time": "2019-04-21T09:21:45+00:00"
"time": "2019-11-12T09:31:26+00:00"
},
{
"name": "symfony/console",
"version": "v3.4.31",
"version": "v3.4.34",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "4510f04e70344d70952566e4262a0b11df39cb10"
"reference": "c7edffb26b29cae972ca4afccb610a38ce8d0ccf"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/4510f04e70344d70952566e4262a0b11df39cb10",
"reference": "4510f04e70344d70952566e4262a0b11df39cb10",
"url": "https://api.github.com/repos/symfony/console/zipball/c7edffb26b29cae972ca4afccb610a38ce8d0ccf",
"reference": "c7edffb26b29cae972ca4afccb610a38ce8d0ccf",
"shasum": ""
},
"require": {
......@@ -1729,20 +1779,20 @@
],
"description": "Symfony Console Component",
"homepage": "https://symfony.com",
"time": "2019-08-26T07:52:58+00:00"
"time": "2019-10-24T15:33:53+00:00"
},
{
"name": "symfony/css-selector",
"version": "v4.3.4",
"version": "v4.3.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/css-selector.git",
"reference": "c6e5e2a00db768c92c3ae131532af4e1acc7bd03"
"reference": "f4b3ff6a549d9ed28b2b0ecd1781bf67cf220ee9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/c6e5e2a00db768c92c3ae131532af4e1acc7bd03",
"reference": "c6e5e2a00db768c92c3ae131532af4e1acc7bd03",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/f4b3ff6a549d9ed28b2b0ecd1781bf67cf220ee9",
"reference": "f4b3ff6a549d9ed28b2b0ecd1781bf67cf220ee9",
"shasum": ""
},
"require": {
......@@ -1782,20 +1832,20 @@
],
"description": "Symfony CssSelector Component",
"homepage": "https://symfony.com",
"time": "2019-08-20T14:07:54+00:00"
"time": "2019-10-02T08:36:26+00:00"
},
{
"name": "symfony/debug",
"version": "v3.4.31",
"version": "v3.4.34",
"source": {
"type": "git",
"url": "https://github.com/symfony/debug.git",
"reference": "0b600300918780001e2821db77bc28b677794486"
"reference": "f72e33fdb1170b326e72c3157f0cd456351dd086"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/debug/zipball/0b600300918780001e2821db77bc28b677794486",
"reference": "0b600300918780001e2821db77bc28b677794486",
"url": "https://api.github.com/repos/symfony/debug/zipball/f72e33fdb1170b326e72c3157f0cd456351dd086",
"reference": "f72e33fdb1170b326e72c3157f0cd456351dd086",
"shasum": ""
},
"require": {
......@@ -1838,20 +1888,20 @@
],
"description": "Symfony Debug Component",
"homepage": "https://symfony.com",
"time": "2019-08-20T13:31:17+00:00"
"time": "2019-10-24T15:33:53+00:00"
},
{
"name": "symfony/event-dispatcher",
"version": "v4.3.4",
"version": "v4.3.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
"reference": "429d0a1451d4c9c4abe1959b2986b88794b9b7d2"
"reference": "0df002fd4f500392eabd243c2947061a50937287"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/429d0a1451d4c9c4abe1959b2986b88794b9b7d2",
"reference": "429d0a1451d4c9c4abe1959b2986b88794b9b7d2",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/0df002fd4f500392eabd243c2947061a50937287",
"reference": "0df002fd4f500392eabd243c2947061a50937287",
"shasum": ""
},
"require": {
......@@ -1908,20 +1958,20 @@
],
"description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com",
"time": "2019-08-26T08:55:16+00:00"
"time": "2019-11-03T09:04:05+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
"version": "v1.1.5",
"version": "v1.1.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher-contracts.git",
"reference": "c61766f4440ca687de1084a5c00b08e167a2575c"
"reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c61766f4440ca687de1084a5c00b08e167a2575c",
"reference": "c61766f4440ca687de1084a5c00b08e167a2575c",
"url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c43ab685673fb6c8d84220c77897b1d6cdbe1d18",
"reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18",
"shasum": ""
},
"require": {
......@@ -1966,20 +2016,20 @@
"interoperability",
"standards"
],
"time": "2019-06-20T06:46:26+00:00"
"time": "2019-09-17T09:54:03+00:00"
},
{
"name": "symfony/finder",
"version": "v3.4.31",
"version": "v3.4.34",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "1fcad80b440abcd1451767349906b6f9d3961d37"
"reference": "3e915e5ce305f8bc8017597f71f1f4095092ddf8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/1fcad80b440abcd1451767349906b6f9d3961d37",
"reference": "1fcad80b440abcd1451767349906b6f9d3961d37",
"url": "https://api.github.com/repos/symfony/finder/zipball/3e915e5ce305f8bc8017597f71f1f4095092ddf8",
"reference": "3e915e5ce305f8bc8017597f71f1f4095092ddf8",
"shasum": ""
},
"require": {
......@@ -2015,20 +2065,20 @@
],
"description": "Symfony Finder Component",
"homepage": "https://symfony.com",
"time": "2019-08-14T09:39:58+00:00"
"time": "2019-10-30T12:43:22+00:00"
},
{
"name": "symfony/http-foundation",
"version": "v3.4.31",
"version": "v3.4.34",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
"reference": "b3d57a1c325f39f703b249bed7998ce8c64236b4"
"reference": "a5d46a33e8649ba802cebe520d188b04385572a2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/b3d57a1c325f39f703b249bed7998ce8c64236b4",
"reference": "b3d57a1c325f39f703b249bed7998ce8c64236b4",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/a5d46a33e8649ba802cebe520d188b04385572a2",
"reference": "a5d46a33e8649ba802cebe520d188b04385572a2",
"shasum": ""
},
"require": {
......@@ -2069,20 +2119,20 @@
],
"description": "Symfony HttpFoundation Component",
"homepage": "https://symfony.com",
"time": "2019-08-26T07:50:50+00:00"
"time": "2019-11-03T02:12:45+00:00"
},
{
"name": "symfony/http-kernel",
"version": "v3.4.31",
"version": "v3.4.34",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
"reference": "f6d35bb306b26812df007525f5757a8b0e95857e"
"reference": "6cd0e7e22c33b96b4779f40ef5b4053e4dd9dbd2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/f6d35bb306b26812df007525f5757a8b0e95857e",
"reference": "f6d35bb306b26812df007525f5757a8b0e95857e",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/6cd0e7e22c33b96b4779f40ef5b4053e4dd9dbd2",
"reference": "6cd0e7e22c33b96b4779f40ef5b4053e4dd9dbd2",
"shasum": ""
},
"require": {
......@@ -2158,7 +2208,7 @@
],
"description": "Symfony HttpKernel Component",
"homepage": "https://symfony.com",
"time": "2019-08-26T16:36:29+00:00"
"time": "2019-11-11T16:11:23+00:00"
},
{
"name": "symfony/polyfill-ctype",
......@@ -2514,16 +2564,16 @@
},
{
"name": "symfony/process",
"version": "v3.4.31",
"version": "v3.4.34",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
"reference": "d822cb654000a95b7855362c0d5b127f6a6d8baa"
"reference": "c19da50bc3e8fa7d60628fdb4ab5d67de534cf3e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/d822cb654000a95b7855362c0d5b127f6a6d8baa",
"reference": "d822cb654000a95b7855362c0d5b127f6a6d8baa",
"url": "https://api.github.com/repos/symfony/process/zipball/c19da50bc3e8fa7d60628fdb4ab5d67de534cf3e",
"reference": "c19da50bc3e8fa7d60628fdb4ab5d67de534cf3e",
"shasum": ""
},
"require": {
......@@ -2559,20 +2609,20 @@
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com",
"time": "2019-08-26T07:52:58+00:00"
"time": "2019-10-24T15:33:53+00:00"
},
{
"name": "symfony/routing",
"version": "v3.4.31",
"version": "v3.4.34",
"source": {
"type": "git",
"url": "https://github.com/symfony/routing.git",
"reference": "8b0faa681c4ee14701e76a7056fef15ac5384163"
"reference": "afc10b9c6b5196e0fecbc3bd373c7b4482e5b6b5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/routing/zipball/8b0faa681c4ee14701e76a7056fef15ac5384163",
"reference": "8b0faa681c4ee14701e76a7056fef15ac5384163",
"url": "https://api.github.com/repos/symfony/routing/zipball/afc10b9c6b5196e0fecbc3bd373c7b4482e5b6b5",
"reference": "afc10b9c6b5196e0fecbc3bd373c7b4482e5b6b5",
"shasum": ""
},
"require": {
......@@ -2635,20 +2685,20 @@
"uri",
"url"
],
"time": "2019-08-26T07:50:50+00:00"
"time": "2019-11-08T17:25:00+00:00"
},
{
"name": "symfony/translation",
"version": "v4.3.4",
"version": "v4.3.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
"reference": "28498169dd334095fa981827992f3a24d50fed0f"
"reference": "bbce239b35b0cd47bd75848b23e969f17dd970e7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/28498169dd334095fa981827992f3a24d50fed0f",
"reference": "28498169dd334095fa981827992f3a24d50fed0f",
"url": "https://api.github.com/repos/symfony/translation/zipball/bbce239b35b0cd47bd75848b23e969f17dd970e7",
"reference": "bbce239b35b0cd47bd75848b23e969f17dd970e7",
"shasum": ""
},
"require": {
......@@ -2711,20 +2761,20 @@
],
"description": "Symfony Translation Component",
"homepage": "https://symfony.com",
"time": "2019-08-26T08:55:16+00:00"
"time": "2019-11-06T23:21:49+00:00"
},
{
"name": "symfony/translation-contracts",
"version": "v1.1.6",
"version": "v1.1.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation-contracts.git",
"reference": "325b17c24f3ee23cbecfa63ba809c6d89b5fa04a"
"reference": "364518c132c95642e530d9b2d217acbc2ccac3e6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation-contracts/zipball/325b17c24f3ee23cbecfa63ba809c6d89b5fa04a",
"reference": "325b17c24f3ee23cbecfa63ba809c6d89b5fa04a",
"url": "https://api.github.com/repos/symfony/translation-contracts/zipball/364518c132c95642e530d9b2d217acbc2ccac3e6",
"reference": "364518c132c95642e530d9b2d217acbc2ccac3e6",
"shasum": ""
},
"require": {
......@@ -2768,20 +2818,20 @@
"interoperability",
"standards"
],
"time": "2019-08-02T12:15:04+00:00"
"time": "2019-09-17T11:12:18+00:00"
},
{
"name": "symfony/var-dumper",
"version": "v3.4.31",
"version": "v3.4.34",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "5408ad7194737ee1bc5ab7a9683fb6925f92c3e4"
"reference": "569e261461600810845a8305ca3f64abd3e712c0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/5408ad7194737ee1bc5ab7a9683fb6925f92c3e4",
"reference": "5408ad7194737ee1bc5ab7a9683fb6925f92c3e4",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/569e261461600810845a8305ca3f64abd3e712c0",
"reference": "569e261461600810845a8305ca3f64abd3e712c0",
"shasum": ""
},
"require": {
......@@ -2837,25 +2887,27 @@
"debug",
"dump"
],
"time": "2019-08-26T07:50:50+00:00"
"time": "2019-10-10T11:03:19+00:00"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
"version": "2.2.1",
"version": "2.2.2",
"source": {
"type": "git",
"url": "https://github.com/tijsverkoyen/CssToInlineStyles.git",
"reference": "0ed4a2ea4e0902dac0489e6436ebcd5bbcae9757"
"reference": "dda2ee426acd6d801d5b7fd1001cde9b5f790e15"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/0ed4a2ea4e0902dac0489e6436ebcd5bbcae9757",
"reference": "0ed4a2ea4e0902dac0489e6436ebcd5bbcae9757",
"url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/dda2ee426acd6d801d5b7fd1001cde9b5f790e15",
"reference": "dda2ee426acd6d801d5b7fd1001cde9b5f790e15",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-libxml": "*",
"php": "^5.5 || ^7.0",
"symfony/css-selector": "^2.7 || ^3.0 || ^4.0"
"symfony/css-selector": "^2.7 || ^3.0 || ^4.0 || ^5.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
......@@ -2884,7 +2936,7 @@
],
"description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.",
"homepage": "https://github.com/tijsverkoyen/CssToInlineStyles",
"time": "2017-11-27T11:13:29+00:00"
"time": "2019-10-24T08:53:34+00:00"
},
{
"name": "vlucas/phpdotenv",
......@@ -2941,16 +2993,16 @@
"packages-dev": [
{
"name": "doctrine/instantiator",
"version": "1.2.0",
"version": "1.3.0",
"source": {
"type": "git",
"url": "https://github.com/doctrine/instantiator.git",
"reference": "a2c590166b2133a4633738648b6b064edae0814a"
"reference": "ae466f726242e637cebdd526a7d991b9433bacf1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/a2c590166b2133a4633738648b6b064edae0814a",
"reference": "a2c590166b2133a4633738648b6b064edae0814a",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/ae466f726242e637cebdd526a7d991b9433bacf1",
"reference": "ae466f726242e637cebdd526a7d991b9433bacf1",
"shasum": ""
},
"require": {
......@@ -2993,7 +3045,7 @@
"constructor",
"instantiate"
],
"time": "2019-03-17T17:37:11+00:00"
"time": "2019-10-21T16:45:58+00:00"
},
{
"name": "filp/whoops",
......@@ -3518,22 +3570,22 @@
},
{
"name": "phpspec/prophecy",
"version": "1.8.1",
"version": "1.9.0",
"source": {
"type": "git",
"url": "https://github.com/phpspec/prophecy.git",
"reference": "1927e75f4ed19131ec9bcc3b002e07fb1173ee76"
"reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/1927e75f4ed19131ec9bcc3b002e07fb1173ee76",
"reference": "1927e75f4ed19131ec9bcc3b002e07fb1173ee76",
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/f6811d96d97bdf400077a0cc100ae56aa32b9203",
"reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203",
"shasum": ""
},
"require": {
"doctrine/instantiator": "^1.0.2",
"php": "^5.3|^7.0",
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
"sebastian/comparator": "^1.1|^2.0|^3.0",
"sebastian/recursion-context": "^1.0|^2.0|^3.0"
},
......@@ -3577,7 +3629,7 @@
"spy",
"stub"
],
"time": "2019-06-13T12:50:23+00:00"
"time": "2019-10-03T11:07:50+00:00"
},
{
"name": "phpunit/php-code-coverage",
......
<?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>
<title>{{$title}}</title>
<meta http-equiv="content-Type" content="text/html;charset=UTF8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<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')
@show
<link rel="stylesheet" href="{{asset('css/bootstrap.css')}}">
<link rel="stylesheet" href="{{asset('css/slider_video.css')}}">
......@@ -58,10 +62,11 @@
<!-- Modal START -->
@include('modal')
<!-- Modal END -->
@yield('content')
@section('content')
@show
</div>
<!--<script src="{{asset('js/play-video.js') }}"></script>-->
@section('script')
@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 @@
<div class="form-group row">
<label for="inputEmail3" class="col-sm-2 col-form-label">目的串流</label>
<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 class="form-group row">
......@@ -45,6 +45,18 @@
</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">
<label for="inputPassword3" class="col-sm-2 col-form-label">是否輸出</label>
<div class="col-sm-10">
......@@ -55,35 +67,25 @@
</div>
<div class="form-check form-check-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>
</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">
<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="form-check form-check-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>
</div>
<div class="form-check form-check-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>
</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(); ?>">
<div class="col-lg-12">
<div class="thumbnail">
......@@ -74,7 +74,7 @@
<td>{{$peoples->work}}</td>
<td>{{$peoples->phone}}</td>
<td>
<form action="delete" method="POST">
<form action="{{route('delete')}}" method="POST">
<input type = "hidden" name = "_token" value = "<?php echo csrf_token(); ?>">
<button type="submit" class="btn btn-primary" value="{{$peoples->id}}" name='delete'>刪除</button>
......@@ -101,7 +101,7 @@
<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(); ?>">
<fieldset>
<!-- 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>
<input class="form-control" id="myInput" type="text" placeholder="Search..">
<br>
......@@ -47,8 +47,8 @@
<!-- </form>-->
<div class="container" >
<div class="form-group">
<h3>每頁</h3> <!-- Show Numbers Of Rows -->
<div class="col-sm-10">
<!-- Show Numbers Of Rows -->
<div class="col-sm-2"><h3>每頁</h3>
<select class="form-control" name="state" id="maxRows">
<option value="5000">All</option>
<option value="5">5</option>
......@@ -57,8 +57,9 @@
<option value="20">20</option>
<option value="50">50</option>
</select>
<h3></h3>
</div>
<h3></h3>
<!-- Start Pagination -->
<div class='pagination-container' style="text-align:right">
......@@ -91,80 +92,5 @@ $(document).ready(function(){
});
});
</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();
}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
}
</script>
\ No newline at end of file
<script src="{{asset('js/pagination.js')}}"></script>
\ No newline at end of file
@extends('layouts.template')
@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')}}">
@stop
@section('content')
@include('video_replay.layout.menubtn')
<div class="collapse" id="collapseExample" style="margin: 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">
<label for="cam_id">Camera_ID</label>
<input type="text" class="form-control" id="cam_id" name="camera_id" placeholder="XXXnnnn"required>
......
@extends('layouts.template')
@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.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>
<!-- videojs-flash -->
<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>
<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>
<link rel="stylesheet" href="{{asset('css/video_replay.css')}}">
@stop
......@@ -28,7 +28,7 @@
</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() }}
<div style="color:#000" class="row">
<div class="col-md-6">
......@@ -229,7 +229,7 @@
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+=("<source src=\""+urls[(i*columns_cam+j)]+"\"");
str+=("type='video/rtmp'>");
str+=("type=\"application/x-mpegURL\">");
str+=("</video>");
str+=("</div>");
console.log(urls[(i*columns_cam+j)]);
......
......@@ -33,7 +33,7 @@
</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;">
<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="col-auto">
<div class="row">
......@@ -69,7 +69,7 @@
</form>
</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_submit" type="submit">
</form>
......@@ -146,7 +146,7 @@
<script>
$.ajax({
type: "GET",
url: "http://60.249.6.104:10300/storage/list",
url: "http://192.168.5.217:8001/storage/list",
dataType: 'json',
success: function(data)
{
......@@ -155,7 +155,7 @@
for (var k in data) {
var txt='';
for (i in data[k][0]){
if (i <9 ){ continue;}
if (i <6 ){ continue;}
txt+=data[k][0][i];
}
txt=txt.toLocaleUpperCase();
......
@extends('layouts.template')
@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>
<!-- 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>
......@@ -54,7 +53,7 @@
</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() }}
<div class="row" >
<div class="col-xs-6 col-md-3">
......
......@@ -14,11 +14,12 @@
use Illuminate\Auth\Middleware\Authenticate ;
Route::get('/','PageController@page')->name('/');
Route::get('page','PageController@page');
Route::get('health','PageController@health');
Route::get('car_sys','PageController@car_sys');
Route::get('video_replay','PageController@video_replay');
Route::get('new','PageController@new');
Route::get('smart_parking','Parking\IndexController@index');
Route::get('people','PageController@people');
Route::get('attendance','AttendanceController@atten');
Route::post('attend','AttendanceController@attend');
Route::post('user','AttendanceController@user');
......@@ -31,8 +32,6 @@ Route::post('login','ProcessController@login')->name('login');
Route::get('logout','ProcessController@logout')->name('logout');
/////////////////////////////////////////video
Route::group(['prefix'=>'/index','namespace' => 'Video','middleware'=>'auth'],function(){
Route::get('/',function (){return view('index',['title'=>'歡迎使用影像調閱系統']);})->name('index');
......@@ -87,19 +86,41 @@ Route::get('/playback',function(){
});
///////////////////////////////////////////HRM
Route::group(['prefix'=>'HRM'],function (){
Route::get('/','PageController@HRM');
Route::get('human_management','PageController@HRM');
Route::get('HRM','PageController@HRM');
// Route::group(['prefix'=>'HRM'],function (){
// Route::get('/','PageController@HRM');
// Route::get('human_management','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