Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
musica_listas_umusic
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
musica_listas_umusic
Commits
4fcd8963
Commit
4fcd8963
authored
Aug 20, 2019
by
Ana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cambios
parent
8c9a065e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
17 deletions
+11
-17
src/BackendBundle/Repository/PluListaRepository.php
src/BackendBundle/Repository/PluListaRepository.php
+3
-1
src/FrontendBundle/Controller/IndexController.php
src/FrontendBundle/Controller/IndexController.php
+5
-3
templates/frontend/paginas/ingresar_numero.html.twig
templates/frontend/paginas/ingresar_numero.html.twig
+2
-12
templates/frontend/paginas/reproductor.html.twig
templates/frontend/paginas/reproductor.html.twig
+1
-1
No files found.
src/BackendBundle/Repository/PluListaRepository.php
View file @
4fcd8963
...
...
@@ -61,7 +61,9 @@ class PluListaRepository extends EntityRepository {
$qb
=
$this
->
getEntityManager
()
->
createQueryBuilder
();
$fechaActual
=
new
\DateTime
();
$listasUsuario
=
self
::
getListasUsuario
(
$msisdn
);
//$listasUsuario = self::getListasUsuario($msisdn);
$listasUsuario
=
''
;
$qb
->
select
(
array
(
'p'
))
->
from
(
'App:PluLista'
,
'p'
)
...
...
src/FrontendBundle/Controller/IndexController.php
View file @
4fcd8963
...
...
@@ -48,7 +48,7 @@ class IndexController extends AbstractController {
$log
->
debug
(
"generando registro de sesion en BD para el msisdn
$msisdn
...."
);
$this
->
generarRegistroSession
(
$em
,
$msisdn
);
}
}
/*
else if (!$session->get('msisdn') && $msisdn == "") {
}
else
if
(
!
$session
->
get
(
'msisdn'
)
&&
$msisdn
==
""
)
{
$log
->
debug
(
"3-No se pudo obtener el msisdn...."
);
$code
=
Utiles
::
generarCodiogUnico
(
$ip
);
//redirect a php que esta en otro servidor
...
...
@@ -57,7 +57,7 @@ class IndexController extends AbstractController {
));
$statusCode
=
302
;
return
new
RedirectResponse
(
$url
,
$statusCode
);
}
*/
}
if
(
$session
->
get
(
'msisdn'
)
==
""
)
{
...
...
@@ -67,6 +67,8 @@ class IndexController extends AbstractController {
##LOGICA DE LA VISTA##
$log
->
debug
(
"Cargando listas vigentes...."
);
$listas
=
$em
->
getRepository
(
PluLista
::
class
)
->
getListasVigentes
(
$msisdn
);
$log
->
debug
(
"Cargando listas vigentes...."
.
count
(
$listas
));
$listasFiltradas
=
array
();
foreach
(
$listas
as
$lista
)
:
if
(
$em
->
getRepository
(
PluLista
::
class
)
->
getCantCancionesAgregadas
(
$lista
->
getLisId
())
>=
1
&&
!
$em
->
getRepository
(
PluRelacionesListas
::
class
)
->
checkIsHija
(
$lista
->
getLisId
()))
{
...
...
@@ -84,7 +86,7 @@ class IndexController extends AbstractController {
}
endforeach
;
$log
->
debug
(
"Verificando listas hijas de listas contratadas vigentes
"
);
$log
->
debug
(
"Verificando listas hijas de listas contratadas vigentes
: "
.
count
(
$listasFiltradas
)
);
foreach
(
$listasFiltradasContratadas
as
$index
=>
$listaFiltradaContratada
)
:
$arrayHijos
=
$em
->
getRepository
(
PluRelacionesListas
::
class
)
->
getListaHija
(
$listaFiltradaContratada
->
getLisId
(),
$idListasContratadas
);
$listasFiltradas
=
array_merge
(
$listasFiltradas
,
$arrayHijos
);
...
...
templates/frontend/paginas/ingresar_numero.html.twig
View file @
4fcd8963
...
...
@@ -54,9 +54,9 @@
</header>
<!-- Bootstrap core JavaScript
-->
<!-- Bootstrap core JavaScript
<script src="vendor/jquery/jquery.min.js"></script>
<script
src=
"vendor/bootstrap/js/bootstrap.bundle.min.js"
></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
-->
<!-- nuevo codigo menu navegacion -->
...
...
@@ -70,16 +70,6 @@
</script>
<!-- código para filas clickeables -->
<script>
$
(
'
*[data-href]
'
).
on
(
"
click
"
,
function
(){
window
.
location
=
$
(
this
).
data
(
'
href
'
);
return
false
;
});
$
(
"
td > a
"
).
on
(
"
click
"
,
function
(
e
){
e
.
stopPropagation
();
});
</script>
{%
endblock
%}
\ No newline at end of file
templates/frontend/paginas/reproductor.html.twig
View file @
4fcd8963
...
...
@@ -41,7 +41,7 @@
<div
class=
"example container"
>
<ul
class=
"playlist"
>
{%
for
cancion
in
cancionesLista
%}
<li
class=
"cover"
data-cover=
"
http://newbackendcontenidos.gearlabs.cl/
{{
cancion.getCanPathImagenAlbum
()
}}
"
data-artist=
"
{{
cancion.getIdOriginal
()
.
getCon
()
.
getAlb
()
.
getAlbNombre
()
}}
"
><a
<li
class=
"cover"
data-cover=
""
data-artist=
"
{{
cancion.getIdOriginal
()
.
getCon
()
.
getAlb
()
.
getAlbNombre
()
}}
"
><a
href=
"
{%
if
isChrome
==
false
%}
http://newbackendcontenidos.gearlabs.cl/
{{
cancion.getCanPathArchivo
()
}}{%
else
%}
http://newbackendcontenidos.gearlabs.cl/
{{
cancion.getCanPathArchivoAlt
()
}}{%
endif
%}
"
>
{{
cancion.getIdOriginal
()
.
getCon
()
.
getConNombre
()
}}
</a></li>
{%
endfor
%}
</ul>
...
...
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