$nu_expediente = null;
// Variables para la operacion del número de dr
$nu_dr_entidad = null;
$adjuntoArchivo = null;
if ($nu_operacion == 1) {
    $nu_expediente = $_POST['nu_expediente'];
} else {
    $nu_dr_entidad = $_POST['nu_dr_entidad'];
    $adjuntoArchivo = null;
}
// $nu_dr=null$_POST['nu_dr'];
// $nombreArchivo=null;
// $adjuntoArchivo=null;
sleep(2);
//actualiza los datos del registro
$objExpediente = new cEntidad();
$resultado = false;
$mensaje = "";
switch ($nu_operacion) {
    case 1:
        $resultado = $objExpediente->actualizar($id_expediente, $nu_expediente);
        $mensaje = "Expediente: <span class=\"Estilo5\">" . $nu_expediente . "</span> - Operacion: Actualizar";
        break;
    case 2:
        $resultado = $objExpediente->actualizar_dr($id_expediente, $nu_dr_entidad, "E");
        $mensaje = "DR: <span class=\"Estilo5\">" . $nu_dr_entidad . " - Operacion: Aprobar";
        break;
    case 3:
        $resultado = $objExpediente->actualizar_dr($id_expediente, $nu_dr_entidad, "F");
        $mensaje = "DR: <span class=\"Estilo5\">" . $nu_dr_entidad . "</span> - Operacion: Denegar";
        break;
<html>
	<head>
		<title>Listado de Registros SUCE</title>
		<script type="text/javascript" src="web_js/ajax.js"></script>
		<link rel="stylesheet" type="text/css" href="web_css/site.css" />
	</head>
	<body>
		<?php 
include_once "clases/cEntidad.php";
//consulta los datos del empleado por su id
$id_expediente = $_POST["id_expediente"];
$nu_operacion = $_POST["nu_operacion"];
$objentidad = new cEntidad();
$consulta = $objentidad->consultarid($id_expediente);
$row = mysql_fetch_array($consulta);
//valores de las consultas
$id_expediente = $row["id_expediente"];
$nu_suce = $row["nu_suce"];
$nu_orden = $row["nu_orden"];
$l_estado_pago = $row["l_estado_pago"];
$nu_expediente = $row["nu_expediente"];
$nu_dr = $row["nu_dr"];
$nu_dr_entidad = $row["nu_dr_entidad"];
//muestra los datos consultados en los campos del formulario
?>
		<form name="frmExpediente" action="" <?php 
if ($nu_operacion != 1) {
    echo "enctype=\"multipart/form-data\"";
}
?>
 onsubmit="enviarDatosFormato(); return false">
<?php

include_once "clases/cEntidad.php";
//consulta todos los procesados
$objentidad = new cEntidad();
$consulta = $objentidad->consultar();
//muestra los datos consultados
//haremos uso de tabla para tabular los resultados
?>
<table align="center">
	<thead>
		<tr>
			<th style="width: 150px;">Nro. ORDEN</th>
			<th style="width: 150px;">Nro. SUCE</th>
			<th>ESTADO</th>
			<th style="width: 150px;">NRO.EXPEDIENTE</th>
			<th style="width: 150px;">DR SCE</th>
			<th style="width: 150px;">DR ENTIDAD</th>
			<th colspan="3">OPERACIONES</th>
		</tr>
	</thead>

	<tbody>
		<?php 
while ($row = mysql_fetch_array($consulta)) {
    echo "<tr>";
    echo "<td style=\"text-align: center;\">" . $row['nu_orden'] . "</td>";
    echo "<td style=\"text-align: center;\">" . $row['nu_suce'] . "</td>";
    echo "<td style=\"text-align: center;\">" . $row['l_estado_pago'] . "</td>";
    echo "<td style=\"text-align: center;\">" . $row['nu_expediente'] . "</td>";
    echo "<td style=\"text-align: center;\">" . $row['nu_dr'] . "</td>";