Viewing file: Diccionario.php (5.72 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php require ("ValueCss.php"); ?>
<?php require ("ValueJs.php"); ?>
<?php require ("ValuePhp.php"); ?>
<?php require ("ValueDb.php"); ?>
<?php require ("ValueDic.php"); ?>
<?php require ("Preparar.php"); ?>
<?php
$first = $HTTP_GET_VARS ["first"];
$element = $HTTP_GET_VARS ["element"];
$form = $HTTP_GET_VARS ["form"];
$i = $HTTP_GET_VARS ["i"];
$prefix = $HTTP_GET_VARS ["prefix"];
if ($first == ""){
$first = $HTTP_POST_VARS ["first"];
}
if ($element == ""){
$element = $HTTP_POST_VARS ["element"];
}
if ($form == ""){
$form = $HTTP_POST_VARS ["form"];
}
if ($i == ""){
$i = $HTTP_POST_VARS ["i"];
}
if ($prefix == ""){
$prefix = $HTTP_POST_VARS ["prefix"];
}
$pos = $i;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><?php echo "Diccionario de términos - " . $dics[$pos]; ?></title>
<link href="<?php echo $cssDiccionario; ?>" rel="stylesheet" type="text/css">
<script languaje="javascript" src="<?php echo $aceptarLimpiar; ?>"></script>
<script languaje="javascript" src="<?php echo $criterioDic; ?>"></script>
<script languaje="javascript" src="<?php echo $limpiarDic; ?>"></script>
<script languaje="javascript" src="<?php echo $go; ?>"></script>
<script languaje="javascript" src="<?php echo $diccionario; ?>"></script>
<script languaje="javascript" src="<?php echo $enter; ?>"></script>
</head>
<body class="body" onKeyPress="microsoftKeyPressDic();">
<form action="Diccionario.php" method="POST" name="FDic">
<center>
<table class="tablaFicha" cellpadding="0">
<tr>
<td class="trR1C1"><img border="0" src="imagenes/br1c1.gif"></td>
<td class="trR1C2"> </td>
<td class="trR1C3"><img border="0" src="imagenes/br1c3.gif"></td>
</tr>
<tr>
<td class="trR2C1"> </td>
<td class="trR2C2">
<table class="tablaContenido" cellpadding="0" border="1" bordercolor="#D5ECFF" cellspacing="0" style="border-collapse: collapse">
<tr>
<td class="contFichaHeader">DICCIONARIO DE TÉRMINOS</td>
</tr>
<tr>
<td class="contFichaHeader">
<img border="0" name="dic" src="imagenes/Turnbo1.gif">
</td>
</tr>
<tr>
<td class="contFichaHeader"><?php echo $dics[$pos]; ?><br><input class="inputs" type="text" name="termino" maxlength="255" size="42"></td>
</tr>
<tr>
<td class="contFichaHeader">Opción escogida<br><input class="inputs" type="text" name="resultado" maxlength="255" size="42"></td>
</tr>
<tr>
<td class="contFichaHeader">
<?php
$ts = "";
if ($first == "no") {
?>
<select class="inputs" size="12" name="listado" onChange="seleccionar(listado, resultado)" onDblclick="mover(listado, <?php echo $form; ?>, <?php echo $element; ?>);">
<?php
$termino = $HTTP_POST_VARS ["termino"];
$prp = new Preparar ();
$ts = $prp->prepararCadK1($termino, $prefix);
$sp = " ";
$pft = "\"pft=@" . $path . $pftDic . "\"";
$k1 = "\"k1=" . $ts . "\" count=30";
$cmd = $db . $sp . $pft . $sp . $k1;
system ($cmd);
?>
</select>
<?php
}
else {
?>
<select class="inputs" size="12" name="listado">
<option>Digite las iniciales del término</option>
<option>y presione buscar</option>
</select>
<?php
}
?>
</td>
</tr>
<tr>
<td>
<table class="tablaContenido" cellpadding="1">
<tr>
<td class="trAceptar">
<img border="0" name="img1" src="imagenes/aceptar1.gif" onmouseover="cambiarImagen(img1, 1);" onmouseout="restaurarImagen(img1, img2);" onmousedown="img1.src = 'imagenes/click.gif';" useMap="#map1">
<map name="map1">
<area onclick="GoDic(FDic, termino, resultado);" shape="rect" alt="Realizar la busqueda" coords="2, 2, 71, 19">
</map>
</td>
<td class="trLimpiar">
<img border="0" name="img2" src="imagenes/limpiar1.gif" onmouseover="cambiarImagen(img2, 2);" onmouseout="restaurarImagen(img1, img2);" onmousedown="img2.src = 'imagenes/click.gif';" useMap="#map2">
<map name="map2">
<area onclick="limpiarDic(termino, resultado);" shape="rect" alt="Limpiar el formulario" coords="2, 2, 71, 19">
</map>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="contFichaBody">Seleccione del listado alfabético el término que le interesa con doble click</td>
</tr>
</table>
</td>
<td class="trR2C3"> </td>
</tr>
<tr>
<td class="trR3C1"><img border="0" src="imagenes/br3c1.gif"></td>
<td class="trR3C2"><img border="0" src="imagenes/br3c2.gif"></td>
<td class="trR3C3"><img border="0" src="imagenes/br3c3.gif"></td>
</tr>
</table>
</center>
<input type="hidden" name="form" value="<?php echo $form; ?>">
<input type="hidden" name="element" value="<?php echo $element; ?>">
<input type="hidden" name="first" value="no">
<input type="hidden" name="prefix" value="<?php echo $prefix; ?>">
<input type="hidden" name="i" value="<?php echo $pos; ?>">
</form>
</body>
</html>
|