<?php
 
session_start();
$com = "M";
include("DMMYSQLG.php");
include("DSA3000.php");
require_once("DFJQUERY.inc");
?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<?php

if ($_REQUEST['bot']==""){
	echo '<h2>!!! SELECCIONE UN REGISTRO !!!</h2>';
	echo '<meta content="1; url=CO10100_PR.php"  HTTP-EQUIV="REFRESH">';
}else{
	if(!isset($_REQUEST['tap2'])){
		include('CO10100_CL.php');
		$varible_clase = new clase();
		$res=$varible_clase->lista_busqueda($_REQUEST["bot"]);
		$reg=mysqli_fetch_array($res);
		$_REQUEST['tap2']=$reg['np_desc1'];
		$_REQUEST['nparte1']=$reg['nparte1'];
		$_REQUEST['ctosmes']=$reg['ctosmes'];
		$_REQUEST['ctosdia']=$reg['ctosdia'];
		$_REQUEST['ctosano']=$reg['ctosano'];
		$_REQUEST['ingdia']=$reg['ingdia'];
		$_REQUEST['ingmes']=$reg['ingmes'];
		$_REQUEST['ingano']=$reg['ingano'];
		$_REQUEST['paxdia']=$reg['paxdia'];
		$_REQUEST['paxmes']=$reg['paxmes'];
		$_REQUEST['paxano']=$reg['paxano'];
		$_REQUEST['stipodaily']=$reg['stipodaily'];
		}
?>
<style type="text/css">
<!--
.Estilo19 {font-size: 16px}
.Estilo20 {
	color: #FFFFFF;
	font-weight: bold;
}
.Estilo21 {color: #FFFFFF}
-->
</style>
<script language="javascript">
function ocultaMuestra(divVent){
	if(divVent.style.display=='none'){
		divVent.style.display='';

	}else{
		divVent.style.display='none';

	}
}	
	</script>
<body>

<form name="frm1" method="post" action="" enctype="multipart/form-data">
  <p>
    <input name="bot" type="hidden" value="<?php
 echo $_REQUEST['bot'];?>"> 
  </p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <table width="431"  align="center" bordercolor="#FF6600" bordercolordark="#FF6600">
    <tr>
      <th colspan="4">CONSULTAR TIEMPO</th>
    </tr>
    <tr>
      <td width="85" style="#6E4940"><span class="Estilo20">CODIGO</span></td>
      <td width="330" colspan="3"><span class="Estilo19">
        <input name="tclave" type="text" id="tclave" tabindex="20" disabled="disabled" size="15" value="<?php
 echo $_REQUEST['nparte1'];?>">
      </span></td>
    </tr>
  </table>
  <div id="divVent" style="display:">
    <table width="431"  align="center" bordercolor="#FF6600" bordercolordark="#FF6600" >
      <tr>
        <td width="85" style="#6E4940"><span class="Estilo20">DESCRIPCION</span></td>
        <td width="330" style="#6E4940"><span class="Estilo21">
          <label>
          <input name="tap2" id="tap2" disabled="disabled" type="text" tabindex="2" value="<?php
 echo $_REQUEST['tap2'];?>"
		  onBlur="may(this)" size="50"
		 <?php
 
		if(isset($_REQUEST['bot'])){
		echo 'value="'.$reg['np_desc1'].'"';
		}
		?>>
          </label>
        </span></td>
      </tr>
      <tr>
        <td height="29" colspan="2">
          <div align="center">
            <input type="button" name="bot4" value="Regresar" onClick="openpage('CO10100_PR.php','_self')" class="bot_WsW"/>
          </div></td>
      </tr>
    </table>
  </div>
  <div id="divArt" style="display:none">
</form>
    <?php
 
if(isset($_POST['bot3'])){
	echo '<div align="center"
<?php
 mysqli_close($con);?>>
	<form id="form1" name="form1" action="CO10100_PR.php" target="_self">
		<input type="submit" name="submit" value="Regresar">
	</form>
	</div>';
	
}
?>
 <?php
 
}
?>
</body>
</html>
<?php
 mysqli_close($con);?>

</body>
</html>



