Esempio n. 1
0
function Muestra()
{
    include "../../lib/php/messageResources.php";
    $INDEXIDIOMA = $_SESSION["idiomausuario"];
    $clasificacion = new Clasificacion();
    if (isset($_GET['c_id'])) {
        $clasificacion_id = $_GET['c_id'];
        $clasificacion->Load_Clasificacion($clasificacion_id);
    } else {
        header("Location: index.php");
    }
    $I = new Interfaz("Usuarios:: Editar Usuario", true);
    ?>
<style type="text/css">
<!--
.Estilo1 {color: #FF0000}
-->
</style>
<script src="../../lib/js/jquery/jquery-1.3.2.js" type="text/javascript"></script>
<script src="../../lib/js/validateForm.js" type="text/javascript"></script>
<script  src="js/validaform.js" type="text/javascript"></script>

<br><br>
	<form name="form1" method="post" action="">
		<table width="80%" align="center" cellpadding="4" cellspacing="4" border="0" bgcolor="#f4f4f4" style="padding-top: 20px;">
			<tr>
				<td align="right">&nbsp;</td>
				<td><strong><?php 
    echo $LABELINDEX[$INDEXIDIOMA][636];
    ?>
</strong></td>
		    </tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td>
					<input type="hidden" name="c_id" id="c_id" value="<?php 
    echo $clasificacion_id;
    ?>
" readonly="readonly" style="border-color:#FFFFFF" />
				</td>
		    </tr>
			<tr>
				<td align="right" width="30%"><?php 
    echo $LABELINDEX[$INDEXIDIOMA][327];
    ?>
<span class="Estilo1">*</span>: 	</td>
                <td> <input type="text" name="nombre" id="nombre" size="70" value="<?php 
    echo $clasificacion->Get_dato("c_nombre");
    ?>
"/>
				</td>
			</tr>
			<tr>
				<td align="right" width="30%"><?php 
    echo $LABELINDEX[$INDEXIDIOMA][28];
    ?>
: 			
				</td>
				<td> 
					<?php 
    if ($clasificacion->Get_dato("c_estatus") == "0") {
        ?>
					<input type="checkbox" name="estatus" id="estatus"/>
					<?php 
    } else {
        ?>
					<input type="checkbox" name="estatus" id="estatus" checked />
					<?php 
    }
    ?>
				</td>
			</tr>
			<tr>
				<td colspan="2">&nbsp;</td></tr>
			<tr>
				<td colspan="2" align="center">
					<input type="submit" value="<?php 
    echo $LABELINDEX[$INDEXIDIOMA][345];
    ?>
" name="Actualizar" onclick="return validate(); ">
				 	<input type="submit" value="<?php 
    echo $LABELINDEX[$INDEXIDIOMA][219];
    ?>
" name="Cancelar">				 	
				</td>
			</tr>
			</table>
</form>
<?php 
    $I->Footer();
}