Mejoras menores

prueba de css
parent 11054eaf
......@@ -247,12 +247,12 @@ class CampaniaApiController extends ApiController {
reset($contenidosHead);
if ($key === key($contenidosHead)){
$html = $html."<div id ='fila_head_".$contenidoHead->getCcoFila()."' class='row'>";
$html = $html."<div id ='".$contenidoHead->getCcoFila()."' class='row'>";
$log->debug("KEY $key | HTML $html");
}else if($key != key($contenidosHead) && $fila != $contenidoHead->getCcoFila()){
$html = "";
$html = $html."</div><div id ='fila_head_".$contenidoHead->getCcoFila()."' class='row'>";
$html = $html."</div><div id ='".$contenidoHead->getCcoFila()."' class='row'>";
$log->debug("KEY $key | HTML $html");
}else if($key != key($contenidosHead) && $fila == $contenidoHead->getCcoFila()){
......@@ -293,7 +293,6 @@ class CampaniaApiController extends ApiController {
$indice = 0;
$arrayBodyContenido = array();
$fila = 0;
$html = "";
$query = CampaniaContenidoQuery::create()
->filterByCcoEliminado(CampaniaContenido::ELIMINADO_FALSE)
->filterByCcoEstado(CampaniaContenido::ESTADO_ACTIVO)
......@@ -314,24 +313,8 @@ class CampaniaApiController extends ApiController {
$contenidosBody = $query->orderByCcoFila('asc')->orderByCcoColumna('asc')->find();
$log->debug("generando html relacionado al body de la campaña...");
foreach ($contenidosBody as $key => $contenidoBody):
foreach ($contenidosBody as $contenidoBody):
$log->debug("id de la fila : " . $contenidoBody->getCcoFila());
reset($contenidosBody);
if ($key === key($contenidosBody)){
$html = $html."<div id ='fila_body_".$contenidoBody->getCcoFila()."' class='row'>";
$log->debug("KEY $key | HTML $html");
}else if($key != key($contenidosBody) && $fila != $contenidoBody->getCcoFila()){
$html = "";
$html = $html."</div><div id ='fila_body_".$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->setId($contenidoBody->getCcoId());
......@@ -340,19 +323,12 @@ class CampaniaApiController extends ApiController {
$szerContenidoBody->setTipo($contenidoBody->getCcoTipo());
$html = $html . "". $this->htmlTypeAnalizer($contenidoBody, $template);
$html = $this->htmlTypeAnalizer($contenidoBody, $template);
$szerContenidoBody->setContenido($html);
$arrayBodyContenido[$indice] = $szerContenidoBody;
$indice++;
$fila = $contenidoBody->getCcoFila();
end($contenidosBody);
if ($key === key($contenidosBody)){
$html = $html . "</div>";
$log->debug("KEY $key | HTML $html");
}
endforeach;
......@@ -365,7 +341,6 @@ class CampaniaApiController extends ApiController {
$indice = 0;
$arrayFooterContenido = array();
$fila = 0;
$html = "";
$query = CampaniaContenidoQuery::create()
->filterByCcoEliminado(CampaniaContenido::ELIMINADO_FALSE)
->filterByCcoEstado(CampaniaContenido::ESTADO_ACTIVO)
......@@ -386,23 +361,9 @@ class CampaniaApiController extends ApiController {
$contenidosFooter = $query->orderByCcoFila('asc')->orderByCcoColumna('asc')->find();
$log->debug("generando html relacionado al footer de la campaña...");
foreach ($contenidosFooter as $key => $contenidoFooter):
foreach ($contenidosFooter as $contenidoFooter):
$log->debug("id de la fila : " . $contenidoFooter->getCcoFila());
reset($contenidosFooter);
if ($key === key($contenidosFooter)){
$html = $html."<div id ='fila_footer_".$contenidoFooter->getCcoFila()."' class='row'>";
$log->debug("KEY $key | HTML $html");
}else if($key != key($contenidosFooter) && $fila != $contenidoFooter->getCcoFila()){
$html = "";
$html = $html."</div><div id ='fila_footer_".$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->setId($contenidoFooter->getCcoId());
$szerContenidoFooter->setFila($contenidoFooter->getCcoFila());
......@@ -410,19 +371,12 @@ class CampaniaApiController extends ApiController {
$szerContenidoFooter->setTipo($contenidoFooter->getCcoTipo());
$html = $html . "". $this->htmlTypeAnalizer($contenidoFooter, $template);
$html = $this->htmlTypeAnalizer($contenidoFooter, $template);
$szerContenidoFooter->setContenido($html);
$arrayFooterContenido[$indice] = $szerContenidoFooter;
$indice++;
$fila = $contenidoFooter->getCcoFila();
end($contenidosFooter);
if ($key === key($contenidosFooter)){
$html = $html . "</div>";
$log->debug("KEY $key | HTML $html");
}
endforeach;
......
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