Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
backend-mcafee
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
backend-mcafee
Commits
ce564e70
Commit
ce564e70
authored
Oct 05, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mejoras menores
prueba de css
parent
b0dd1e85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
4 deletions
+50
-4
src/WsBundle/Controller/v1/CampaniaApiController.php
src/WsBundle/Controller/v1/CampaniaApiController.php
+50
-4
No files found.
src/WsBundle/Controller/v1/CampaniaApiController.php
View file @
ce564e70
...
@@ -293,6 +293,7 @@ class CampaniaApiController extends ApiController {
...
@@ -293,6 +293,7 @@ class CampaniaApiController extends ApiController {
$indice
=
0
;
$indice
=
0
;
$arrayBodyContenido
=
array
();
$arrayBodyContenido
=
array
();
$fila
=
0
;
$fila
=
0
;
$html
=
""
;
$query
=
CampaniaContenidoQuery
::
create
()
$query
=
CampaniaContenidoQuery
::
create
()
->
filterByCcoEliminado
(
CampaniaContenido
::
ELIMINADO_FALSE
)
->
filterByCcoEliminado
(
CampaniaContenido
::
ELIMINADO_FALSE
)
->
filterByCcoEstado
(
CampaniaContenido
::
ESTADO_ACTIVO
)
->
filterByCcoEstado
(
CampaniaContenido
::
ESTADO_ACTIVO
)
...
@@ -313,9 +314,25 @@ class CampaniaApiController extends ApiController {
...
@@ -313,9 +314,25 @@ class CampaniaApiController extends ApiController {
$contenidosBody
=
$query
->
orderByCcoFila
(
'asc'
)
->
orderByCcoColumna
(
'asc'
)
->
find
();
$contenidosBody
=
$query
->
orderByCcoFila
(
'asc'
)
->
orderByCcoColumna
(
'asc'
)
->
find
();
$log
->
debug
(
"generando html relacionado al body de la campaña..."
);
$log
->
debug
(
"generando html relacionado al body de la campaña..."
);
foreach
(
$contenidosBody
as
$contenidoBody
)
:
foreach
(
$contenidosBody
as
$
key
=>
$
contenidoBody
)
:
$log
->
debug
(
"id de la fila : "
.
$contenidoBody
->
getCcoFila
());
$log
->
debug
(
"id de la fila : "
.
$contenidoBody
->
getCcoFila
());
reset
(
$contenidosBody
);
if
(
$key
===
key
(
$contenidosBody
)){
$html
=
$html
.
"<div id ='"
.
$contenidoBody
->
getCcoFila
()
.
"' class='row'>"
;
$log
->
debug
(
"KEY
$key
| HTML
$html
"
);
}
else
if
(
$key
!=
key
(
$contenidosBody
)
&&
$fila
!=
$contenidoBody
->
getCcoFila
()){
$html
=
""
;
$html
=
$html
.
"</div><div id ='"
.
$contenidoBody
->
getCcoFila
()
.
"' class='row'>"
;
$log
->
debug
(
"KEY
$key
| HTML
$html
"
);
}
else
if
(
$key
!=
key
(
$contenidosBody
)
&&
$fila
==
$contenidoBody
->
getCcoFila
()){
$html
=
""
;
$log
->
debug
(
"KEY
$key
| HTML
$html
"
);
}
$szerContenidoBody
=
new
szerBodyContenido
();
$szerContenidoBody
=
new
szerBodyContenido
();
$szerContenidoBody
->
setId
(
$contenidoBody
->
getCcoId
());
$szerContenidoBody
->
setId
(
$contenidoBody
->
getCcoId
());
$szerContenidoBody
->
setFila
(
$contenidoBody
->
getCcoFila
());
$szerContenidoBody
->
setFila
(
$contenidoBody
->
getCcoFila
());
...
@@ -323,12 +340,19 @@ class CampaniaApiController extends ApiController {
...
@@ -323,12 +340,19 @@ class CampaniaApiController extends ApiController {
$szerContenidoBody
->
setTipo
(
$contenidoBody
->
getCcoTipo
());
$szerContenidoBody
->
setTipo
(
$contenidoBody
->
getCcoTipo
());
$html
=
$this
->
htmlTypeAnalizer
(
$contenidoBody
,
$template
);
$html
=
$
html
.
""
.
$
this
->
htmlTypeAnalizer
(
$contenidoBody
,
$template
);
$szerContenidoBody
->
setContenido
(
$html
);
$szerContenidoBody
->
setContenido
(
$html
);
$arrayBodyContenido
[
$indice
]
=
$szerContenidoBody
;
$arrayBodyContenido
[
$indice
]
=
$szerContenidoBody
;
$indice
++
;
$indice
++
;
$fila
=
$contenidoBody
->
getCcoFila
();
end
(
$contenidosBody
);
if
(
$key
===
key
(
$contenidosBody
)){
$html
=
$html
.
"</div>"
;
$log
->
debug
(
"KEY
$key
| HTML
$html
"
);
}
endforeach
;
endforeach
;
...
@@ -341,6 +365,7 @@ class CampaniaApiController extends ApiController {
...
@@ -341,6 +365,7 @@ class CampaniaApiController extends ApiController {
$indice
=
0
;
$indice
=
0
;
$arrayFooterContenido
=
array
();
$arrayFooterContenido
=
array
();
$fila
=
0
;
$fila
=
0
;
$html
=
""
;
$query
=
CampaniaContenidoQuery
::
create
()
$query
=
CampaniaContenidoQuery
::
create
()
->
filterByCcoEliminado
(
CampaniaContenido
::
ELIMINADO_FALSE
)
->
filterByCcoEliminado
(
CampaniaContenido
::
ELIMINADO_FALSE
)
->
filterByCcoEstado
(
CampaniaContenido
::
ESTADO_ACTIVO
)
->
filterByCcoEstado
(
CampaniaContenido
::
ESTADO_ACTIVO
)
...
@@ -363,7 +388,21 @@ class CampaniaApiController extends ApiController {
...
@@ -363,7 +388,21 @@ class CampaniaApiController extends ApiController {
$log
->
debug
(
"generando html relacionado al footer de la campaña..."
);
$log
->
debug
(
"generando html relacionado al footer de la campaña..."
);
foreach
(
$contenidosFooter
as
$contenidoFooter
)
:
foreach
(
$contenidosFooter
as
$contenidoFooter
)
:
$log
->
debug
(
"id de la fila : "
.
$contenidoFooter
->
getCcoFila
());
$log
->
debug
(
"id de la fila : "
.
$contenidoFooter
->
getCcoFila
());
reset
(
$contenidosFooter
);
if
(
$key
===
key
(
$contenidosFooter
)){
$html
=
$html
.
"<div id ='"
.
$contenidoFooter
->
getCcoFila
()
.
"' class='row'>"
;
$log
->
debug
(
"KEY
$key
| HTML
$html
"
);
}
else
if
(
$key
!=
key
(
$contenidosFooter
)
&&
$fila
!=
$contenidoFooter
->
getCcoFila
()){
$html
=
""
;
$html
=
$html
.
"</div><div id ='"
.
$contenidoFooter
->
getCcoFila
()
.
"' class='row'>"
;
$log
->
debug
(
"KEY
$key
| HTML
$html
"
);
}
else
if
(
$key
!=
key
(
$contenidosFooter
)
&&
$fila
==
$contenidoFooter
->
getCcoFila
()){
$html
=
""
;
$log
->
debug
(
"KEY
$key
| HTML
$html
"
);
}
$szerContenidoFooter
=
new
szerFooterContenido
();
$szerContenidoFooter
=
new
szerFooterContenido
();
$szerContenidoFooter
->
setId
(
$contenidoFooter
->
getCcoId
());
$szerContenidoFooter
->
setId
(
$contenidoFooter
->
getCcoId
());
$szerContenidoFooter
->
setFila
(
$contenidoFooter
->
getCcoFila
());
$szerContenidoFooter
->
setFila
(
$contenidoFooter
->
getCcoFila
());
...
@@ -371,12 +410,19 @@ class CampaniaApiController extends ApiController {
...
@@ -371,12 +410,19 @@ class CampaniaApiController extends ApiController {
$szerContenidoFooter
->
setTipo
(
$contenidoFooter
->
getCcoTipo
());
$szerContenidoFooter
->
setTipo
(
$contenidoFooter
->
getCcoTipo
());
$html
=
$this
->
htmlTypeAnalizer
(
$contenidoFooter
,
$template
);
$html
=
$
html
.
""
.
$
this
->
htmlTypeAnalizer
(
$contenidoFooter
,
$template
);
$szerContenidoFooter
->
setContenido
(
$html
);
$szerContenidoFooter
->
setContenido
(
$html
);
$arrayFooterContenido
[
$indice
]
=
$szerContenidoFooter
;
$arrayFooterContenido
[
$indice
]
=
$szerContenidoFooter
;
$indice
++
;
$indice
++
;
$fila
=
$contenidoFooter
->
getCcoFila
();
end
(
$contenidosFooter
);
if
(
$key
===
key
(
$contenidosFooter
)){
$html
=
$html
.
"</div>"
;
$log
->
debug
(
"KEY
$key
| HTML
$html
"
);
}
endforeach
;
endforeach
;
...
...
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