rendered paste body<?php
require('/home/juanx2/public_html/intranet/Configuracion/conexion.php');
require('/home/juanx2/public_html/intranet/Configuracion/session_administracion.php');
require('/home/juanx2/public_html/intranet/Configuracion/funciones.php');
$roles=array("ADMINISTRADOR","ADMINISTRACION");
validar_roles($_SESSION['rol'],$roles);
?>
<!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"><!-- InstanceBegin template="/Templates/PlantillaIntranet.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title><?php require('/home/juanx2/public_html/intranet/Configuracion/title.php'); ?></title>
<!-- InstanceEndEditable -->
<link href="/Estilo/estilo.css" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.borde_tabla { border: thin solid #105D8C;
}
-->
</style>
<script src="../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<!-- InstanceEndEditable -->
</head>
<body>
<div class="titular"></div>
<div><!-- InstanceBeginEditable name="Menu" --><?php require('/home/juanx2/public_html/intranet/Configuracion/menu.php'); ?><!-- InstanceEndEditable --></div>
<div class="titulos"><!-- InstanceBeginEditable name="TituloPagina" -->EDITAR SERVICIO<!-- InstanceEndEditable --></div>
<div class="contenido"><!-- InstanceBeginEditable name="Contenido" -->
<P style="margin-top:50px">
<form id="form1" name="form1" method="post" action="agregar_servicio_code.php">
<table width="250" border="1" align="center" cellpadding="1" cellspacing="1">
<tr class="tabla_cabecera">
<td colspan="2">EDICIÓN DE DATOS DEL SERVICIO</td>
</tr>
<tr>
<td>Código</td>
<td><input name="codigo" type="text" id="codigo" size="40" maxlength="40" value="<?php echo $articulo[0]; ?>" /></td>
</tr>
<tr>
<td>Servicio</td>
<td><input name="servicio" type="text" id="servicio" size="40" maxlength="40" value="<?php echo $articulo[1]; ?>" /></td>
</tr>
<tr>
<td>Activo</td>
<td>
<select name="activo" id="activo">
<option value="1" <?php if($articulo[3]=="1"){echo "selected='selected'";}?> >Sí</option>
<option value="0" <?php if($articulo[3]=="0"){echo "selected='selected'";}?> >No</option>
</select>
</td>
</tr>
<tr>
<td>Precio</td>
<td><input name="precio" type="text" id="precio" size="10" maxlength="10" value="<?php echo $articulo[2]; ?>" /></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="Buscar" id="Buscar" value="Guardar" />
<input type="hidden" name="codigo" id="codigo" value="<?php echo $_GET['codigo'] ?>" /></td>
</tr>
</table>
</form>
</P>
<div class="error" align="center" style="margin-top:20px"><?php echo $_GET['msg']?></div>
<!-- InstanceEndEditable --></div>
</body>
<!-- InstanceEnd --></html>