Está en la página 1de 8

<!

-- <div class="mobile">
<div class="card-body table-responsive p-
0">
<table class="table table-sm">

<thead>
<tr>
<th width="1px"></th>
<th>
<center>Nombre</center>
</th>
<th>

<center>Detalle</center>
</th>
</tr>
</thead>
<tbody>
<?php

if (!$mesAnio == "") {
$query = 'SELECT * FROM
licitacion WHERE fechaInicio LIKE "%' . $mesAnio . '%" ORDER BY fechaInicio DESC';
} else {
$query = 'SELECT * FROM
licitacion ORDER BY fechaInicio DESC';
}

$res = mysqli_query($conexion,
$query);
while ($row = $res-
>fetch_assoc()) {
?>
<?php
if ($row['habilitar']) {
$color = '#7bf2ab';
} else {
$color = '#f27b7b';
}
?>
<tr>
<td style="width: 1px;
background: <?php echo $color; ?>"></td>
<td align="justify">
<?php
$nuevoNom =
mb_strtoupper($row['nombre']);
echo $nuevoNom;

?>
</td>
<td>
<?php if
($row['fechaInicio'] == 0) {
echo "No
registra fecha";
} else {
$fecha =
date('d/m/Y H:i', strtotime(str_replace('/', '-', $row['fechaInicio'])));
echo 'Fecha:
' . $fecha;
} ?>

<br>
<br>

<center>
<?php
$idLicitacion =
$row['id'];
$idLicitacion =
trim($idLicitacion);
$enlaceVV =
$row['enlace'];
$enlaceVV =
trim($enlaceVV);
if ($enlaceVV
== "" || $enlaceVV == " " || $enlaceVV == " ") {
?>
<center><?
php echo "Link de Conferencia No Encontrado"; ?></center>
<?php
} else {

date_default_timezone_set("America/Santiago");
$fechaNow =
date("Y-m-d H:i:s");
if
($fechaNow < $row['fechaTermino']) {

?>

<form
class="" action="../videollamada/vidllaBJ.php" method="post">

<input type="hidden" name="LicitacionVisita" value="Licitacion">

<input type="hidden" name="idLicitacion" value="<?php echo $idLicitacion; ?>">

<input type="submit" id="inputMozi" class="btn btn-block btn-outline-info"


style="float: right;" value="Ir a Licitacion">

</form>

<?php
} else {
echo
'Finalizado';
}
}
?>

</center>
<br>
<br>
<center>
<?php
$idLicitacion =
$row['id'];
$idLicitacion =
trim($idLicitacion);
if
($idLicitacion == "" || $idLicitacion == " " || $idLicitacion == " ") {
?>
<center><?
php echo "Error al Cargar Datos."; ?></center>
<?php
} else {

?>

<form
class="" action="../detaLicit/detaLicit.php" method="post">

<input
type="hidden" name="LicitacionVisita" value="Licitacion">
<input
type="hidden" name="idLicitacion" value="<?php echo $idLicitacion; ?>">
<input
type="submit" id="inputMozi" class="btn btn-block btn-outline-info" value="Datos">

</form>

<?php

}
?>

</center>
<center>
<?php
$idLicitacion =
$row['id'];
$idLicitacion =
trim($idLicitacion);
if
($idLicitacion == "" || $idLicitacion == " " || $idLicitacion == " ") {
?>
<center><?
php echo "Error al Cargar Informe."; ?></center>
<?php
} else {

?>

<form
class="" action="../lic-pdf/TyC_Detalle.php" method="post">
<input
type="hidden" name="idLicitacion" value="<?php echo $idLicitacion; ?>">
<input
type="submit" class="btn btn-block btn-outline-info" value="Ver Informe">
</form>
<?php

}
?>

</center>
</td>

</tr>

<?php

?>
</table>

<br>

</div>
</div>
<div class="mobile1">
<div class="card-body table-responsive p-
0">
<table class="table table-hover">
<thead>
<tr>
<th> </th>
<th>

<center>Licitación</center>
</th>
<th>
<center>Nombre</center>
</th>
<th>
<center>Fecha de
Inicio</center>
</th>
<th>
<center>Fecha de
Termino</center>
</th>
<th>

<center>Detalle</center>
</th>
<th>

<center>Informe</center>
</th>
</tr>
</thead>
<tbody>
<?php
if (!$mesAnio == "") {
$query = 'SELECT * FROM
licitacion WHERE fechaInicio LIKE "%' . $mesAnio . '%" ORDER BY fechaInicio DESC';
} else {
$query = 'SELECT * FROM
licitacion ORDER BY fechaInicio DESC';
}

$res = mysqli_query($conexion,
$query);
while ($row = $res-
>fetch_assoc()) {
?>
<?php
if ($row['habilitar']) {
$color = '#7bf2ab';
} else {
$color = '#f27b7b';
}
?>
<tr>
<td style="width:0.1vw;
background: <?php echo $color; ?>; "></td>
<td>
<center>
<?php
$idLicitacion =
$row['id'];
$idLicitacion =
trim($idLicitacion);
$enlaceVV =
$row['enlace'];
$enlaceVV =
trim($enlaceVV);
if ($enlaceVV
== "" || $enlaceVV == " " || $enlaceVV == " ") {
?>
<center><?
php echo "Link de Conferencia No Encontrado"; ?></center>
<?php
} else {

date_default_timezone_set("America/Santiago");
$fechaNow =
date("Y-m-d H:i:s");
if
($fechaNow < $row['fechaTermino']) {

?>

<form
class="" action="../videollamada/vidllaBJ.php" method="post">

<input type="hidden" name="LicitacionVisita" value="Licitacion">


<input type="hidden" name="idLicitacion" value="<?php echo $idLicitacion; ?>">

<input type="submit" id="inputMozi" class="btn btn-block btn-outline-info"


value="Ir a Licitacion">

</form>

<?php
} else {
echo
'Finalizado';
}
}
?>

</center>
</td>
<td align="justify">
<?php
$nuevoNom =
mb_strtoupper($row['nombre']);
echo $nuevoNom;

?>
</td>
<td>
<center>
<?php if
($row['fechaInicio'] == 0) {
echo "No
registra fecha";
} else {
$fecha =
date('d/m/Y H:i', strtotime(str_replace('/', '-', $row['fechaInicio'])));
echo
$fecha;
} ?>
</center>
</td>
<td>
<center>
<?php if
($row['fechaTermino'] == 0) {
echo "No
registra fecha";
} else {
$fecha =
date('d/m/Y H:i', strtotime(str_replace('/', '-', $row['fechaTermino'])));
echo
$fecha;
} ?>
</center>
</td>

<td>
<center>
<?php
$idLicitacion =
$row['id'];
$idLicitacion =
trim($idLicitacion);
if
($idLicitacion == "" || $idLicitacion == " " || $idLicitacion == " ") {
?>
<center><?
php echo "Error al Cargar Datos."; ?></center>
<?php
} else {

?>

<form
class="" action="../detaLicit/detaLicit.php" method="post">

<input
type="hidden" name="LicitacionVisita" value="Licitacion">
<input
type="hidden" name="idLicitacion" value="<?php echo $idLicitacion; ?>">
<input
type="submit" id="inputMozi" class="btn btn-block btn-outline-info" value="Datos">

</form>

<?php

}
?>

</center>
</td>
<td>
<center>
<?php
$idLicitacion =
$row['id'];
$idLicitacion =
trim($idLicitacion);
if
($idLicitacion == "" || $idLicitacion == " " || $idLicitacion == " ") {
?>
<center><?
php echo "Error al Cargar Informe."; ?></center>
<?php
} else {

?>

<form
style="margin: 0; text-align: center;" class="" action="../lic-pdf/TyC_Detalle.php"
method="post">
<input
type="hidden" name="idLicitacion" value="<?php echo $idLicitacion; ?>">
<input
type="submit" class="btn btn-block btn-outline-info" value="Ver Informe">
</form>
<?php

}
?>

</center>
</td>

</tr>
<?php

?>

</tbody>
</table>
</div>
</div> -->

También podría gustarte