Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smsManager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
smsManager
Commits
d8f8224c
Commit
d8f8224c
authored
May 22, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backend-contador en index
parent
756e0683
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
13 deletions
+30
-13
app/Resources/views/backend/home/includes/cuadroPortalCautivo.html.twig
...views/backend/home/includes/cuadroPortalCautivo.html.twig
+21
-12
src/BackendBundle/Controller/HomeController.php
src/BackendBundle/Controller/HomeController.php
+9
-1
No files found.
app/Resources/views/backend/home/includes/cuadroPortalCautivo.html.twig
View file @
d8f8224c
<!-- begin col-
3
-->
<div
class=
"col-md-
3
col-sm-6"
>
<!-- begin col-
2
-->
<div
class=
"col-md-
2
col-sm-6"
>
<div
class=
"widget widget-stats bg-red"
>
<div
class=
"stats-icon stats-icon-lg"
><i
class=
"fa fa-download fa-fw"
></i></div>
<div
class=
"stats-title"
>
% Descargas/Aperturas
</div>
...
...
@@ -11,9 +11,9 @@
<div
class=
"stats-desc"
></div>
</div>
</div>
<!-- end col-
3
-->
<!-- begin col-
3
-->
<div
class=
"col-md-
3
col-sm-6"
>
<!-- end col-
2
-->
<!-- begin col-
2
-->
<div
class=
"col-md-
2
col-sm-6"
>
<div
class=
"widget widget-stats bg-green"
>
<div
class=
"stats-icon stats-icon-lg"
><i
class=
"fa fa-upload fa-fw"
></i></div>
<div
class=
"stats-title"
>
Total Cargado
</div>
...
...
@@ -24,9 +24,9 @@
<div
class=
"stats-desc"
>
{{
totalCargadoPor
}}
%
</div>
</div>
</div>
<!-- end col-
3
-->
<!-- begin col-
3
-->
<div
class=
"col-md-
3
col-sm-6"
>
<!-- end col-
2
-->
<!-- begin col-
2
-->
<div
class=
"col-md-
2
col-sm-6"
>
<div
class=
"widget widget-stats bg-blue"
>
<div
class=
"stats-icon stats-icon-lg"
><i
class=
"fa fa-globe fa-fw"
></i></div>
<div
class=
"stats-title"
>
Total Aperturas
</div>
...
...
@@ -37,9 +37,9 @@
<div
class=
"stats-desc"
>
{{
totalAperturaPor
}}
%
</div>
</div>
</div>
<!-- end col-
3
-->
<!-- begin col-
3
-->
<div
class=
"col-md-
3
col-sm-6"
>
<!-- end col-
2
-->
<!-- begin col-
2
-->
<div
class=
"col-md-
2
col-sm-6"
>
<div
class=
"widget widget-stats bg-purple"
>
<div
class=
"stats-icon stats-icon-lg"
><i
class=
"fa fa-download fa-fw"
></i></div>
<div
class=
"stats-title"
>
Total Descargas
</div>
...
...
@@ -50,5 +50,14 @@
<div
class=
"stats-desc"
>
{{
totalDescargaPor
}}
%
</div>
</div>
</div>
<!-- end col-3 -->
<!-- end col-2 -->
<!-- begin col-2 -->
<div
class=
"col-md-2 col-sm-6"
>
<div
class=
"widget widget-stats bg-purple"
>
<div
class=
"stats-icon stats-icon-lg"
><i
class=
"fa fa-exchange-alt fa-fw"
></i></div>
<div
class=
"stats-title"
>
Total Migraciones Realizadas
</div>
<div
class=
"stats-number"
>
{{
totalMigraciones
}}
</div>
</div>
</div>
<!-- end col-2 -->
src/BackendBundle/Controller/HomeController.php
View file @
d8f8224c
...
...
@@ -12,10 +12,12 @@ use AppBundle\Model\UsuarioMcafee;
use
AppBundle\Model\UsuarioMcafeeQuery
;
use
AppBundle\Model\TrackingQuery
;
use
AppBundle\Model\Tracking
;
use
AppBundle\Model\McafeeUltimoProcesoMigracionQuery
;
use
AppBundle\Lib\CsvResponse
;
class
HomeController
extends
Controller
{
private
function
getTotalCargado
()
{
...
...
@@ -44,6 +46,7 @@ class HomeController extends Controller
$totalCargado
=
$this
->
getTotalCargado
();
$totalApertura
=
0
;
$totalDescarga
=
0
;
$totalMigraciones
=
0
;
$totalCargadoPor
=
0
;
$totalAperturaPor
=
0
;
...
...
@@ -178,8 +181,12 @@ class HomeController extends Controller
$arrayDispositivoAcumuladoGrafico
[]
=
array
(
$array
[
'nombre'
],
$array
[
Tracking
::
TIPO_PORTALCAUTIVO
][
'porcentaje'
],
$array
[
'aperturadescarga'
]);
endforeach
;
//----------- TOTAL MIGRACIONES REALIZADAS ------------------
$migracionesRealizadas
=
McafeeUltimoProcesoMigracionQuery
::
create
()
->
find
();
foreach
(
$migracionesRealizadas
as
$index
=>
$migracion
)
:
$totalMigraciones
=
$totalMigraciones
+
$migracion
->
getMupCantidadProcesados
();
endforeach
;
//$log->debug(print_r($arrayCampanaDispositivoAcumulado,true));
$log
->
debug
(
'fin peticion...'
);
...
...
@@ -189,6 +196,7 @@ class HomeController extends Controller
'totalCargado'
=>
$totalCargado
,
'totalApertura'
=>
$totalApertura
,
'totalDescarga'
=>
$totalDescarga
,
'totalMigraciones'
=>
$totalMigraciones
,
'totalCargadoPor'
=>
$totalCargadoPor
,
'totalAperturaPor'
=>
$totalAperturaPor
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment