Mejoras menores

prueba de css
parent 0a831f22
......@@ -246,12 +246,13 @@ class CampaniaApiController extends ApiController {
foreach ($contenidosHead as $key => $contenidoHead):
$log->debug("id de la fila : " . $contenidoHead->getCcoFila());
$log->debug("valor fila actual $fila");
if($fila != $contenidoHead->getCcoFila()){
if($fila != 0) $html = $html."</div>";
if ($fila != $contenidoHead->getCcoFila()) {
if ($fila != 0)
$html = $html . "</div>";
$log->debug("generando nueva fila...");
$fila = $contenidoHead->getCcoFila();
$html = $html."<div id='fila_id_".$contenidoHead->getCcoId()."' class='row'>";
}else{
$html = $html . "<div id='fila_id_head" . $contenidoHead->getCcoId() . "' class='row'>";
}else {
$log->debug("misma fila para la seccion ");
}
......@@ -262,18 +263,18 @@ class CampaniaApiController extends ApiController {
$szerContenidoHead->setTipo($contenidoHead->getCcoTipo());
$html = $html ."". $this->htmlTypeAnalizer($contenidoHead, $template);
$html = $html . "" . $this->htmlTypeAnalizer($contenidoHead, $template);
$szerContenidoHead->setContenido($html);
$arrayHeadContenido[$indice] = $szerContenidoHead;
$indice++;
$fila = $contenidoHead->getCcoFila();
$html="";
$html = "";
if($indice == $contenidosHeadCount) {
if ($indice == $contenidosHeadCount) {
$log->debug("cerrando fila actual...");
$szerContenidoHead->setContenido($szerContenidoHead->getContenido(). "</div>");
$arrayHeadContenido[$indice - 1 ] = $szerContenidoHead;
$szerContenidoHead->setContenido($szerContenidoHead->getContenido() . "</div>");
$arrayHeadContenido[$indice - 1] = $szerContenidoHead;
}
......@@ -288,6 +289,7 @@ class CampaniaApiController extends ApiController {
$indice = 0;
$arrayBodyContenido = array();
$fila = 0;
$html = "";
$query = CampaniaContenidoQuery::create()
->filterByCcoEliminado(CampaniaContenido::ELIMINADO_FALSE)
->filterByCcoEstado(CampaniaContenido::ESTADO_ACTIVO)
......@@ -307,9 +309,21 @@ class CampaniaApiController extends ApiController {
}
$contenidosBody = $query->orderByCcoFila('asc')->orderByCcoColumna('asc')->find();
$contenidosBodyCount = $query->orderByCcoFila('asc')->orderByCcoColumna('asc')->count();
$log->debug("cantidad elementos body...$contenidosBodyCount");
$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("valor fila actual $fila");
if ($fila != $contenidoBody->getCcoFila()) {
if ($fila != 0)
$html = $html . "</div>";
$log->debug("generando nueva fila...");
$fila = $contenidoBody->getCcoFila();
$html = $html . "<div id='fila_id_body" . $contenidoBody->getCcoId() . "' class='row'>";
}else {
$log->debug("misma fila para la seccion ");
}
$szerContenidoBody = new szerBodyContenido();
$szerContenidoBody->setId($contenidoBody->getCcoId());
......@@ -318,13 +332,22 @@ class CampaniaApiController extends ApiController {
$szerContenidoBody->setTipo($contenidoBody->getCcoTipo());
$html = $this->htmlTypeAnalizer($contenidoBody, $template);
$html = $html . "" . $this->htmlTypeAnalizer($contenidoBody, $template);
$szerContenidoBody->setContenido($html);
$arrayBodyContenido[$indice] = $szerContenidoBody;
$indice++;
$fila = $contenidoBody->getCcoFila();
$html = "";
if ($indice == $contenidosBodyCount) {
$log->debug("cerrando fila actual...");
$szerContenidoBody->setContenido($szerContenidoBody->getContenido() . "</div>");
$arrayBodyContenido[$indice - 1] = $szerContenidoBody;
}
endforeach;
return $arrayBodyContenido;
......@@ -336,6 +359,7 @@ class CampaniaApiController extends ApiController {
$indice = 0;
$arrayFooterContenido = array();
$fila = 0;
$html = "";
$query = CampaniaContenidoQuery::create()
->filterByCcoEliminado(CampaniaContenido::ELIMINADO_FALSE)
->filterByCcoEstado(CampaniaContenido::ESTADO_ACTIVO)
......@@ -355,9 +379,21 @@ class CampaniaApiController extends ApiController {
}
$contenidosFooter = $query->orderByCcoFila('asc')->orderByCcoColumna('asc')->find();
$contenidosFooterCount = $query->orderByCcoFila('asc')->orderByCcoColumna('asc')->count();
$log->debug("cantidad elementos footer...$contenidosFooter");
$log->debug("generando html relacionado al footer de la campaña...");
foreach ($contenidosFooter as $contenidoFooter):
foreach ($contenidosFooter as $key => $contenidoFooter):
$log->debug("id de la fila : " . $contenidoFooter->getCcoFila());
$log->debug("valor fila actual $fila");
if ($fila != $contenidoFooter->getCcoFila()) {
if ($fila != 0)
$html = $html . "</div>";
$log->debug("generando nueva fila...");
$fila = $contenidoFooter->getCcoFila();
$html = $html . "<div id='fila_id_footer" . $contenidoFooter->getCcoId() . "' class='row'>";
}else {
$log->debug("misma fila para la seccion ");
}
$szerContenidoFooter = new szerFooterContenido();
$szerContenidoFooter->setId($contenidoFooter->getCcoId());
......@@ -366,13 +402,20 @@ class CampaniaApiController extends ApiController {
$szerContenidoFooter->setTipo($contenidoFooter->getCcoTipo());
$html = $this->htmlTypeAnalizer($contenidoFooter, $template);
$html = $html."".$this->htmlTypeAnalizer($contenidoFooter, $template);
$szerContenidoFooter->setContenido($html);
$arrayFooterContenido[$indice] = $szerContenidoFooter;
$indice++;
$html = "";
if ($indice == $contenidosFooterCount) {
$log->debug("cerrando fila actual...");
$szerContenidoFooter->setContenido($szerContenidoFooter->getContenido() . "</div>");
$arrayFooterContenido[$indice - 1] = $szerContenidoFooter;
}
endforeach;
return $arrayFooterContenido;
......
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