mejora visula de tablas

This commit is contained in:
marian1010 2021-06-04 09:54:37 +02:00
parent a71a7b0df8
commit 50ea9b5a67
2 changed files with 10 additions and 6 deletions

View File

@ -27,19 +27,18 @@
}
.col7 .odd{
background: green;
background: rgba(144, 144, 144, 0.25);;
display: grid;
grid-column-start: 1;
grid-column-end: 8;
grid-template-columns: repeat(5,auto);
grid-template-columns: repeat(7,1fr);
}
.col7 .even{
background: pink;
display: grid;
grid-column-start: 1;
grid-column-end: 8;
grid-template-columns: repeat(5,auto);
grid-template-columns: repeat(7,1fr);
}
.tablelist.col7 a.h4long

View File

@ -240,9 +240,10 @@
<li class='title'>Editar</li>
<li class='title'>Eliminar</li>
";
$parity = "odd";
for($i = 0; $i < count($managers); $i++){
$reply.= '
<div class="'.$parity.'">
<li>'. $ids[$i] .'</li>
<li>'. $idscinemas[$i] .'</li>
<li>'. $usernames[$i] .'</li>
@ -265,7 +266,9 @@
<input type="submit" id="submit" value="Eliminar" name="delete_manager" class="primary" />
</form>
</li>
</div>
';
$parity = ($parity == "odd") ? "even" : "odd";
}
$reply.='</ul>
@ -400,7 +403,7 @@
<li class='title'>Editar</li>
<li class='title'>Eliminar</li>
";
$parity ="odd";
for($i = 0; $i < count($promos); $i++){
$reply.= '
<li>'. $ids[$i] .'</li>
@ -429,7 +432,9 @@
</form>
</li>
</li>
</div>
';
$parity = ($parity=="odd")? "even":"odd";
}
$reply.='</ul>