<?php require_once('../Connections/localhost.php'); ?><?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
}
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ?
intval($theValue) : "NULL"; break;
case "double":
$theValue = ($theValue != "") ?
doubleval($theValue) : "NULL"; break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$maxRows_DetailRS1 = 10;
$pageNum_DetailRS1 = 0;
if (isset($_GET['pageNum_DetailRS1'])) { $pageNum_DetailRS1 = $_GET['pageNum_DetailRS1'];
}
$startRow_DetailRS1 = $pageNum_DetailRS1 * $maxRows_DetailRS1;
$colname_DetailRS1 = "-1";
if (isset($_GET['recordID'])) { $colname_DetailRS1 = $_GET['recordID'];
}
$query_DetailRS1 = sprintf("SELECT * FROM presupuestos WHERE Nombre = %s", GetSQLValueString
($colname_DetailRS1, "text")); $query_limit_DetailRS1 = sprintf("%s LIMIT %d, %d", $query_DetailRS1, $startRow_DetailRS1, $maxRows_DetailRS1);
if (isset($_GET['totalRows_DetailRS1'])) { $totalRows_DetailRS1 = $_GET['totalRows_DetailRS1'];
} else {
}
$totalPages_DetailRS1 = ceil($totalRows_DetailRS1/$maxRows_DetailRS1)-1; ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<style type="text/css">
.titulo {
border-radius: 8px;
color: #FFF;
font-weight: bold;
}
.datos {
border-radius: 8px;
color: #FFF;
}
</style>
</head>
<body>
<table border="0" align="center" cellpadding="10" cellspacing="2">
<tr>
<td bgcolor="#0000CC" class="titulo">Nombre</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Nombre']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Fecha</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Fecha']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Numero de Oferta</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Numero de Oferta']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Atencion</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Atencion']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua source 1</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua source 1']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 3</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 3']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 4</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 4']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 5</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 5']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 6</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 6']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 7</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 7']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 8</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 8']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 9</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 9']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 10</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 10']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 11</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 11']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 12</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 12']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 13</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 13']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 14</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 14']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 15</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 15']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 16</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 16']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 17</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 17']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 18</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 18']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 19</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 19']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 20</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 20']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 21</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 21']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 22</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 22']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 23</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 23']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Lengua target 24</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Lengua target 24']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Precio por palabra</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Precio por palabra']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Nombre del archivo</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Nombre del archivo']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Numero de palabras nuevas</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Numero de palabras nuevas']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Numero de palabras coincidentes</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Numero de palabras coincidentes']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Numero de palabras repetidas</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Numero de palabras repetidas']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Importe total</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Importe total']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Plazo</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Plazo']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">IVA</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['IVA']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Datos de facturacion</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Datos de facturacion']; ?></td>
</tr>
<tr>
<td bgcolor="#0000CC" class="titulo">Nota</td>
<td bgcolor="#0066FF" class="datos"><?php echo $row_DetailRS1['Nota']; ?></td>
</tr>
</table>
[COLOR="Red"]
<script type="text/javascript">
var filas = document.getElementsByTagName("tr"),
total = filas.length,
boton = document.getElementsByTagName("button")[0];
boton.addEventListener("click", function(){
for (i = 0; i < total; i++){
var celda = filas[i].getElementsByTagName("td")[0];
if (!celda.innerHTML.length)
filas[i].style.height = "none";
}
}, false);
</script>
[/COLOR]
<button>Eliminar</button>
</body>
</html><?php
?>
</br></br>
<input type="button" value="Volver atrás" onClick="location.href='http://localhost/SIENS/admin/VistaPresupuestos(pgmaestra).php';" style="font-family: Verdana; font-size: 10 pt"/>