<?php
 
session_start();
$com = "M";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");
include("DF30000.inc");
?>

<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<?php
 
$ayuda = 'DXB0000_MO.php';
include("DYAYUDA.php");
?>
<body
<?php
 
if(isset($_POST['bot3'])){
	echo ' onLoad="deshab()"';
}
?>
>
<?php

if ($_POST['bot']==""){
	echo '<h2>!!! SELECCIONA UN REGISTRO... ACTUALIZANDO !!!</h2>';
	echo '<meta content="1; url=DXB0000_PR.php"  HTTP-EQUIV="REFRESH">';
}else{
	
	include('DXB0000_CL.php');
	$varible_clase = new proEsp();
	$res=$varible_clase->lista_busqueda($_POST["bot"]);
	$reg=mysqli_fetch_array($res);
?>
<form name="frm1" method="post" action="">
<input name="bot" type="hidden" 
<?php
 
if(isset($_POST['bot'])){ 
	echo 'value="' . $_POST['bot'] .  '"';
}
?>
>
  <table width="400"  align="center">
    <tr>
      <th>PROCESOS ESPECIALES </th>
    </tr>
  </table>
  <table width="400"  align="center">
    <tr>
      <td width="64">Modulo</td>
      <td width="382"> 
        <input name="t2" type="text" id="t2" 
		<?php
 
		if(isset($_POST['bot'])){
		echo 'value="'.$reg['modulo'].'"';
		}
		?>
		>      </td>
    </tr>
    <tr>
      <td>Proceso</td>
      <td><input name="proceso" type="text" id="proceso" value="<?php
 echo $reg['proceso'];?>"></td>
    </tr>
    <tr>
      <td>Personal:</td>
      <td><input name="personal" type="text" id="personal" value="<?php
 echo $reg['personal'];?>"></td>
    </tr>
    </tr>
  </table>
  <table width="400"  align="center">
    <tr>
      <td><div align="center">
         
        <input type="button" name="Submit" value="Modificar" onClick="openpage('DXB0000_MC.php','_self')"/>
        
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 
		<input type="button" name="Submit2" value="Regresar" onClick=		"openpage('DXB0000_PR.php','_self')"/>
		
      </div></td>
    </tr>
  </table>
</form>
     <?php
 
if(isset($_POST['bot3'])){
	echo '<div align="center">
	<form id="form1" name="form1" action="DXB0000_PR.php" target="_self">
		<input type="submit" name="submit" value="Regresar">
	</form>
	</div>';
	
}
mysqli_close($con);
}
?>
</body>
</html>
