<?php
	require 'cn2.php';
	
	$tel_id= $_POST['tel_id'];
	$tel_user= $_POST["tel_user"];
	$tel_sucursal= $_POST["tel_sucursal"];
	$tel_area= $_POST["tel_area"];
	$tel_equipo= $_POST["tel_equipo"];
	$tel_imei= $_POST["tel_imei"];
	$tel_num= $_POST["tel_num"];
	$tel_sim= $_POST["tel_sim"];
	$tel_costo= $_POST["tel_costo"];
	$tel_acce= $_POST["tel_acce"];


	
	$sql ="UPDATE v_phone2 SET tel_id='$tel_id', tel_user='$tel_user', tel_sucursal='$tel_sucursal',tel_area='$tel_area', tel_equipo='$tel_equipo', tel_imei='$tel_imei', tel_num='$tel_num', tel_sim='$tel_sim', tel_costo='$tel_costo', tel_acce='$tel_acce' WHERE tel_imei='$tel_imei'";
	
	

	$resultado = $mysqli->query($sql);

?>

<html lang="es">
	<head>
		
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link href="css/bootstrap.min.css" rel="stylesheet">
		<link href="css/bootstrap-theme.css" rel="stylesheet">
		<script src="js/jquery-3.1.1.min.js"></script>
		<script src="js/bootstrap.min.js"></script>	
	</head>
	
	<body>
		<div class="container">
			<div class="row">
				<div class="row" style="text-align:center">
					<?php if($resultado) { ?>
						<h3>REGISTRO MODIFICADO</h3>
						<?php } else { ?>
						<h3>ERROR AL MODIFICAR</h3>
					<?php } ?>
					
					<a href="cel.php" class="btn btn-primary">Regresar</a>
					
				</div>
			</div>
		</div>
	</body>
</html>