Optimised scanning and importing
This commit is contained in:
@@ -1,75 +0,0 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<?php $data = [
|
||||
'ID'=>'id',
|
||||
'Signature'=>'signature',
|
||||
'Date Created'=>'datecreated',
|
||||
'File Created'=>'created',
|
||||
'File Modified'=>'modified',
|
||||
'Filename'=>'filepath',
|
||||
'Filesize'=>'filesize',
|
||||
'Width'=>'width',
|
||||
'Height'=>'height',
|
||||
'Make'=>'make',
|
||||
'Model'=>'model',
|
||||
'Duplicates'=>'duplicates',
|
||||
'Is Duplicate'=>'duplicate',
|
||||
'Flagged'=>'flag',
|
||||
'Delete'=>'remove',
|
||||
];?>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-11 col-md-offset-1">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
Permanently Delete Photos
|
||||
</div>
|
||||
|
||||
<div class="text-center">{{ $videos->links() }}</div>
|
||||
<div class="panel-body">
|
||||
@if ($videos->count())
|
||||
<form action="{{ url('/v/deletes') }}" method="POST">
|
||||
<table class="table table-striped table-condensed table-hover">
|
||||
@foreach ($data as $k=>$v)
|
||||
<tr>
|
||||
<th>{{ $k }}</th>
|
||||
@foreach ($videos as $o)
|
||||
<?php
|
||||
switch ($v) :
|
||||
case 'id': $x=$o->id; $y=sprintf('<input type="hidden" name="video[]" value="%s"><a href="%s">%s</a>',$o->id,url('/v/info/'.$o->id),$o->id); break;
|
||||
case 'signature': $x=$y=$o->signature(TRUE); break;
|
||||
case 'datecreated': $x=$y=$o->date_taken(); break;
|
||||
case 'created': $x=$y=$o->file_date('c',TRUE); break;
|
||||
case 'modified': $x=$y=$o->file_date('m',TRUE); break;
|
||||
case 'filepath': $x=$y=$o->file_path(TRUE); break;
|
||||
case 'filesize': $x=$y=$o->file_size(); break;
|
||||
case 'width':
|
||||
case 'height':
|
||||
case 'orientation':
|
||||
case 'make':
|
||||
case 'model': $y=$o->{$v}; break;
|
||||
case 'duplicates': $x=$y='';foreach($o->list_duplicate() as $id) $y.=($y ? '|' : '').sprintf('<a href="%s">%s</a>',url('/v/info/'.$id),$id); break;
|
||||
case 'flag':
|
||||
case 'remove':
|
||||
case 'duplicate': $y=sprintf('<input type="checkbox" name="%s[%s]" value="1"%s>',$v,$o->id,$o->{$v} ? ' checked="checked"' : ''); break;
|
||||
endswitch ?>
|
||||
<td><?php echo $y; ?></td>
|
||||
@endforeach {{-- video --}}
|
||||
</tr>
|
||||
@endforeach {{-- data --}}
|
||||
</table>
|
||||
<input type="hidden" name="pagenext" value="{{ $videos->hasMorePages() ? $videos->currentPage()+1 : NULL }}">
|
||||
<button class="btn btn-default">Confirm Delete</button>
|
||||
{{ csrf_field() }}
|
||||
</form>
|
||||
@else
|
||||
NONE!
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
@@ -5,6 +5,7 @@
|
||||
'ID'=>'id',
|
||||
'Video'=>'video',
|
||||
'Signature'=>'signature',
|
||||
'File Signature'=>'file_signature',
|
||||
'Length'=>'length',
|
||||
'Date Created'=>'datecreated',
|
||||
'File Created'=>'created',
|
||||
@@ -58,6 +59,7 @@ case 'id': $x=$id; $y=sprintf('<a href="%s">%s</a>',url('/v/info/'.$o->id),$o->i
|
||||
case 'video': $x=$o->signature(TRUE);$y=$o->view();; break;
|
||||
case 'length': $x=$y=$o->length; break;
|
||||
case 'signature': $x=$y=$o->signature(TRUE); break;
|
||||
case 'file_signature': $x=$y=$o->file_signature(TRUE); break;
|
||||
case 'datecreated': $x=$y=$o->date_taken(); break;
|
||||
case 'created': $x=$y=$o->file_date('c',TRUE); break;
|
||||
case 'modified': $x=$y=$o->file_date('m',TRUE); break;
|
||||
|
@@ -6,7 +6,7 @@
|
||||
<div class="col-md-10 col-md-offset-1">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
Video {{ $video->id }}<?php if ($video->remove) : ?> - <strong>PENDING DELETE</strong><?php endif?>
|
||||
Video {{ $video->id }}<?php if ($video->remove) : ?> - <strong>PENDING DELETE</strong><?php endif?><?php if ($video->duplicate) : ?> - <strong>DUPLICATE</strong><?php endif?>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
@@ -39,6 +39,8 @@
|
||||
<dt>Date Taken</dt><dd>{{ $video->date_taken() }}<dd>
|
||||
<dt>Camera</dt><dd>{{ $video->make }}<dd>
|
||||
<dt>Model</dt><dd>{{ $video->model }}<dd>
|
||||
<dt>Software</dt><dd>{{ $video->software }}<dd>
|
||||
<dt>Identifier</dt><dd>{{ $video->identifier }}<dd>
|
||||
<br/>
|
||||
<dt>Location</dt><dd>
|
||||
<?php if ($video->gps() == 'UNKNOWN') : ?>
|
||||
@@ -60,6 +62,14 @@
|
||||
</script>
|
||||
<?php endif ?>
|
||||
</dd>
|
||||
@if($x = $video->list_duplicate())
|
||||
<dt>Duplicates</dt><dd>
|
||||
@php
|
||||
$y=''; foreach($video->list_duplicate() as $id) $y.=($y ? '|' : '').sprintf('<a href="%s">%s</a>',url('/v/info/'.$id),$id);
|
||||
echo($y);
|
||||
@endphp
|
||||
</dd>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user