MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/public_html/ingresar_inicios_disc.php
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;

require_once("Conectarse.php");

$dia = date("d");
$mes = date("m"); 
$ano = date("Y");

//$misql = mysql_query("select codigo from Usuarios where Cedula = $cf", $dbi);

$resul = mysql_query('SELECT codigo FROM Usuarios WHERE Cedula = "' . $HTTP_GET_VARS["cf"]  . '" ');
			if (!$resul) {
				die('Invalid query: ' . mysql_error());
			}
if($resul){list($codigo_funcionario) = mysql_fetch_row($resul);}

//$sql = "select cedula, nombre, numerocontrato, tipocontrato, tipo_afiliado, codigo_sucursal, direccion, telefono, celular, ciudad from asjudinet_cartera where cedula = $id";
//$control = mysql_query($sql, $dbi) or die(mysql_error());
$control = mysql_query('SELECT cedula, nombre, numerocontrato, tipocontrato, tipo_afiliado, codigo_sucursal, direccion, telefono, celular, ciudad FROM asjudinet_cartera WHERE cedula = "' . $HTTP_GET_VARS["id"]  . '" ');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}	 
if ((mysql_num_rows($control)!=0)) 
{	 
     list($cedula, $nombre, $contrato, $tipo, $tipo_afi, $cod_s, $dir, $tel, $cel, $ciudad) = mysql_fetch_row($control);
   /*  $tres=substr($fecha_actuacion, 0, 4);
     $dos=substr($fecha_actuacion, 5, 2);
     $uno=substr($fecha_actuacion, 8, 2);
     $fecha_actuacion = ($uno."-".$dos."-".$tres);	*/
	  	$eldia = $_POST[dia_act];
		$elmes = $_POST[mes_act];
		$elano = $_POST[ano_act];
		$fecha_actuacion = ($_POST[eldia]."-".$_POST[elmes]."-".$_POST[elano]);
	 
	// $misql2 = mysql_query("select nombre from sucursal  where codigo = $cod_s", $dbi);
$misql2 = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "' . $_POST[cod_s] . '" ');
			if (!$misql2) {
				die('Invalid query: ' . mysql_error());
			}
     if($misql2){list($nombre_s) = mysql_fetch_row($misql2);}
}

if(isset($_POST["guardar"]))
{
     // $mysql = "select * from procesos where cedula = '$cedula' and numero_proceso = '$numero_proceso'";
      //$control = mysql_query($mysql, $dbi) or die(mysql_error());
	  
	  $resu2 = mysql_query('SELECT * FROM procesos WHERE cedula = "' . $_POST[cedula] . '" and numero_proceso = "' . $_POST[numero_proceso] . '"');
			if (!$resu2) {
				die('Invalid query: ' . mysql_error());
			}	 
      if ((mysql_num_rows($resu2)==0)) 
      {	  
          /*  $fecha = $dia."-".$mes."-".$ano;
            $uno=substr($fecha, 0, 2);
            $dos=substr($fecha, 3, 2);
            $tres=substr($fecha, 6, 4);
            $fecha_actuacion = ($tres."-".$dos."-".$uno);*/

	$fecha = ($_POST[dia_act]."-".$_POST[mes_act]."-".$_POST[ano_act]);
		$eldia = $_POST[dia_act];
		$elmes = $_POST[mes_act];
		$elano = $_POST[ano_act];
		$fecha_actuacion = ($_POST[eldia]."-".$_POST[elmes]."-".$_POST[elano]);
		
		// Aqui se soluciona lo de la fecha
		$nuevafecha = $_POST[ano]."-".$_POST[mes]."-".$_POST[dia];

            $clase_negocio = strtoupper($clase_negocio);
            $despacho_judicial = strtoupper($despacho_judicial);	  
            $ciudad_despacho = strtoupper($ciudad_despacho);	  	  
        	  //guarda procesos
	       mysql_query("INSERT INTO procesos (cedula, numero_proceso, tipo_proceso, numero_contrato, tipo_contrato, tipo_afiliado, codigo_sucursal, clase_negocio, despacho_judicial, ciudad_despacho, calidad_juridica_afiliado, tipo_orden, numero_carpeta, ultimo_folio, codigo_abogado, fecha_actuacion, actividad_proceso, estado_proceso, fecha_diagnostico) VALUES ('" . $_POST["cedula"] . "', '" . $_POST["numero_proceso"] . "', '" . $_POST["tipo_proceso"] . "', '" . $_POST["numero_contrato"] . "', '" . $_POST["tipo_contrato"] . "', '" . $_POST["tipo_afiliado"] . "', '" . $_POST["codigo_sucursal"] . "', '" . $_POST["clase_negocio"] . "', '" . $_POST["despacho_judicial"] . "', '" . $_POST["ciudad_despacho"] . "',  '" . $_POST["calidad_juridica_afiliado"] . "', 'INICIO', '" . $_POST["numero_carpeta"] . "', '" . $_POST["folio1"] . "', '" . $_POST["codigo_abogado"] . "', '$nuevafecha', '" . $_POST["actividad_proceso"] . "', '" . $_POST["estado_proceso"] . "', '" . $_POST["fecha_diagnostico"] . "')");	 
            //guardar actuaciones	
			  
            mysql_query("INSERT INTO actuaciones (id, cedula, numero_proceso, folio1, folio2, actuacion, fecha, tipo_orden, codigo_funcionario) VALUES ('','" . $_POST["cedula"] . "', '" . $_POST["numero_proceso"] . "', '" . $_POST["folio1"] . "', '" . $_POST["folio2"] . "', '" . $_POST["actuacion"] . "', '$nuevafecha', 'INICIO', '" . $_POST["codigo_funcionario"] . "')");
						 
         //   mysql_query("update procesos set ultimo_folio = $folio2, fecha_actuacion = '$fecha_actuacion' where cedula = $cedula and numero_proceso = $numero_proceso", $dbi);   
           
		   	$calificacion = mysql_query("INSERT INTO calificacion_servicio_juridico  (cedula, numero_proceso, numero_contrato, tipo_contrato, fecha_inicio, estado) VALUES  ('" . $_POST["cedula"] . "', '" . $_POST["numero_proceso"] . "', '" . $_POST["numero_contrato"] . "', '" . $_POST["tipo_contrato"] . "', '$nuevafecha' , '0')");

if (!$calificacion) {
				die('Invalid query res calificacion: ' . mysql_error());
			}
			 
		   
			
			 mysql_query(" UPDATE procesos set  ultimo_folio = '" . $_POST[folio2] . "', fecha_actuacion = '$nuevafecha', WHERE cedula = '" . $_POST[cedula] . "' and numero_proceso =  '" . $_POST[numero_proceso] . "' ");
			

			 echo "<script>alert('Los datos fueron grabados correctamente');</script>";	  
	  }
	  else
	  {
          echo "<script>alert('Ya existe ese inicio con número de cédula y número de proceso');</script>";	  
	  }
			
}

//$canproc = "select count(numero_proceso) as canproceso from procesos where cedula = $cedula";
//$can = mysql_query($canproc, $dbi);

$can = mysql_query('SELECT count(numero_proceso) as canproceso FROM procesos WHERE cedula = "' ."$cedula". '" ');
			if (!$can) {
				die('Invalid query: ' . mysql_error());
			}
if($can)
{
     list($vigentes)  = mysql_fetch_row($can);
}
else
{
     $vigentes = 0;
}	 	 

//$con = "SELECT * FROM asjudinet_abogados where vigentes = '1' order by nombre_completo";
//$misql = mysql_query($con, $dbi) or die(mysql_error());

$misql = mysql_query('SELECT * FROM asjudinet_abogados  WHERE vigentes = "1" order by nombre_completo ');
			if (!$misql) {
				die('Invalid query: ' . mysql_error());
			}
$row = mysql_fetch_assoc($misql);
$total = mysql_num_rows($misql);  

//$query_sql = "SELECT * FROM sucursal order by nombre";
//$sql = mysql_query($query_sql, $dbi) or die(mysql_error());


$sql = mysql_query('SELECT * FROM sucursal order by nombre ');
			if (!$sql) {
				die('Invalid query: ' . mysql_error());
			}
$row_sql = mysql_fetch_assoc($sql);
$totalRows_sql = mysql_num_rows($sql);  

?>
<html>
<head>
<title>VENTANA PARA EL INGRESO DE INICIOS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
.titulos {font: 16px; color: red; font-family:Arial; font-weight:bold}
.boton {  background-color: #FFCCCC; color:#FFFFFF; width:150px; border: 4px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 13px; font-family: Arial; color:#0000CC; display: block;}
.fecha {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #000099; width:10px display: block;}
.campo {background-color: #FFFFCC; border:1px solid #990000; font-family:Arial;  font-size:11px; height: inherit}
.lista { background-color:#99FFFF; font-family: Arial; font-size: 11px;	color: #990000;}
.label {background-color: #00CCFF ; font-size: 14px; font-family: Arial; color:#0000CC; display: block;}
.area {background-color: #CCFFCC; font-size: 13px; width:40px font-family: Arial; color:#0000CC; display: block;}
.variables {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #003333 ; width:10px display: block; border: 2px solid #006633;}
.sel { background-color:#DDFFFF; width:400px; border: 1px solid #0099FF; font-family:Arial; font-style:italic; color:#990000 }
.sel2{ background-color:#DDFFFF; border: 1px solid #0099FF; font-family:Arial; font-style:italic; font-weight:bold; color:#990000 }
.seleccion { background-color: #CCFFCC; width:340px; border: 1px solid #0099FF; font-family:Arial; color:#990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; }
.letras {background-color: #99CCFF; font-size: 10px; font-family: Arial; color:#0000CC; display: block;}
.campo2 {background-color: #99CCCC; border:1px solid #0066FF; font-family:Arial; font-size:10px; height: inherit}
.sel3{ background-color:#DDFFFF; font-family:Arial; font-size:10px; color: #000066 }
body {
	background-image: url(fondo_argollado.gif);
}
.Estilo10 {font-size: 11px; font-family: Arial, Helvetica, sans-serif; }
-->
</style>
<script languaje="JavaScript">
function Mostrar_Fecha()
{
         var mydate=new Date()
         var year=mydate.getYear()
         if (year < 1000)
                 year+=1900
                 var day=mydate.getDay()
                 var month=mydate.getMonth()
                 var daym=mydate.getDate()
                 if (daym<10)
                    daym="0"+daym
                    var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
                    var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
                    document.write("<b><font face='Arial, Helvetica, sans-serif'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></b>")
}					
</script>
<script Language="JavaScript">
<!--
function validar()
{

  if (formulario.folio2.value == "")
  {
    alert("Falta ingresar el Folio2");
    formulario.folio2.focus();
    return (false);
  }   

	if(formulario.folio2.value < pf)
	{	 
     	   alert('El folio2 no debe ser menor que el folio1');
           formulario.folio2.focus();
           return (false);	
	}	

  if (formulario.actuacion.value == "")
  {
    alert("Falta ingresar la actuación");
    formulario.actuacion.focus();
    return (false);
  }

  if (formulario.codigo_funcionario.value == "")
  {
    alert("Falta seleccionar el nombre del funcionario");
    formulario.codigo_funcionario.focus();
    return (false);
  }

return (true);
}
//--></script>

<SCRIPT LANGUAGE='JavaScript'>
var default1 = "VENTANA PARA EL INGRESO DE ACTUACIONES"; // only shown once at page load
var text1 = "El primer encabezado muestra en detalle los datos del proceso seleccionado";
var text2 = "la segunda parte muestra el formulario para el ingreso de revistas";
var text3 = "No se le olvide tener en cuenta el número del folio que se entrega en el juzgado";
var changeRate = 3000; // 1000 = 1 second
var messageNumber = 0;

function changeStatus()
{
  if (messageNumber == 0) {
     window.status=default1;
     document.title=default1;
    }
  else if (messageNumber == 1) {
     window.status=text1;
    }
  else if (messageNumber == 2) {
     window.status=text2;
     }
  else if (messageNumber == 3) {
     window.status=text3;
     messageNumber = 0;
     }
  messageNumber++;
  setTimeout("changeStatus();",changeRate);
}
changeStatus(); // leave here to run right away
// -->
</SCRIPT>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="document.formulario.folio1.focus()">
<form name="formulario" action="" method="post" onSubmit="return validar(this)">
<input name="codigo_funcionario" type="hidden" value="<?php echo $codigo_funcionario; ?>">
<table width="719" height="398" border="0" align="center" cellpadding="2" cellspacing="2">
  <tr bgcolor="#FFFFCC">
    <td width="666" class="titulos"><div align="center">VISUALIZACION DE DATOS DEL PROCESO SELECCIONADO </div></td>
  </tr>
  <tr bgcolor="#ECE9D8">
    <td height="8" class="fecha"><div align="center">
      <script languaje="JavaScript">Mostrar_Fecha()</script>
    </div></td>
  </tr>
  <tr bgcolor="#ECE9D8">
    <td height="9"><table width="666" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="549" class="letras"><table width="662" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="62" height="19" class="letras"><div align="right">C&eacute;dula:</div></td>
            <td width="60"><input name="id" type="text" class="campo2" value="<?php echo $id; ?>" size="15" maxlength="15" readonly=""></td>
            <td width="59" class="letras"><div align="right">Nombre:</div></td>
            <td width="206"><input name="nombre" type="text" class="campo2" value="<?php echo $nombre; ?>" size="51" maxlength="50" readonly=""></td>
            <td width="82" class="letras"><div align="right">Contrato:</div></td>
            <td width="60"><input name="numero_contrato" type="text" class="campo2" value="<?php echo $contrato; ?>" size="6" maxlength="7" readonly=""></td>
            <td width="62" class="letras"><div align="right">Tipo:</div></td>
            <td width="71"><input name="tipo_contrato" type="text" class="campo2" value="<?php echo $tipo; ?>" size="4" maxlength="4" readonly=""></td>
          </tr>
        </table></td>
        </tr>
      <tr>
        <td class="letras"><div align="right"></div>          <div align="right">
          <table width="662" border="0" align="left" cellpadding="0" cellspacing="0">
            <tr>
              <td width="101" class="letras"><div align="right">Tipo de afiliado: </div></td>
              <td width="80"><input name="tipo_afiliado" type="text" class="campo2" value="<?php echo $tipo_afi; ?>" size="20" maxlength="20" readonly=""></td>
              <td width="63" class="letras"><div align="right">Sucursal:</div></td>
              <td width="138"><input name="sucursal" type="text" class="campo2" id="sucursal" value="<?php echo $nombre_s; ?>" size="30" maxlength="30" readonly=""></td>
              <td width="95" class="letras"><div align="right">Direcci&oacute;n:</div></td>
              <td width="185"><input name="direccion" type="text" class="campo2" id="direccion" value="<?php echo $dir; ?>" size="40" maxlength="40" readonly=""></td>
            </tr>
          </table>
        </div></td>
        </tr>
      <tr>
        <td class="letras"><div align="right"></div>          <div align="right">
          <table width="662" border="0" align="left" cellpadding="0" cellspacing="0">
            <tr>
              <td width="61" class="letras"><div align="right">Ciudad:</div></td>
              <td width="120"><input name="ciudad" type="text" class="campo2" id="ciudad2" value="<?php echo $ciudad; ?>" size="30" maxlength="30" readonly=""></td>
              <td width="63" class="letras"><div align="right">Tel&eacute;fono:</div></td>
              <td width="80"><input name="telefono" type="text" class="campo2" id="telefono3" value="<?php echo $tel; ?>" size="20" maxlength="20" readonly=""></td>
              <td width="112" class="letras"><div align="right">Celular:</div></td>
              <td width="226"><input name="celular" type="text" class="campo2" id="celular2" value="<?php echo $cel; ?>" size="20" maxlength="20" readonly=""></td>
            </tr>
          </table>
        </div>          <div align="right"></div></td>
        </tr>
      <tr>
        <td><table width="666" border="1" cellspacing="0" cellpadding="0">
          <tr class="letras">
            <td width="171" class="letras">Procesos Vigentes: </td>
            <td width="169"><input name="vigentes" type="text" class="campo2" id="vigentes" value="<?php echo $vigentes; ?>" size="2" maxlength="2" readonly=""></td>
            <td width="188" class="letras">Procesos Hist&oacute;ricos: </td>
            <td width="138"><input name="historicos" type="text" class="campo2" id="tipo3" value="<?php echo $historicos; ?>" size="2" maxlength="2" readonly=""></td>
          </tr>
        </table></td>
        </tr>
    </table></td>
  </tr>
  <tr bgcolor="#FFCC99">
    <td height="260" bgcolor="#FFFFFF"><fieldset>
   <legend><span class="texto">Datos del proceso:</span></legend>
   <table width="725" height="219" border="0" align="center" cellpadding="0" cellspacing="1">
     <tr bgcolor="#FFFFFF">
       <td width="218"><div align="left"><span class="label">C&eacute;dula (Titular- Beneficiario):</span></div></td>
       <td width="60"><input name="cedula" type="text" class="campo" id="cedula" value="<?php echo $cedula; ?>" size="15" maxlength="15" readonly=""></td>
       <td width="167"><div align="center"><span class="label">N&uacute;mero de Proceso:</span></div></td>
       <td><input name="numero_proceso" type="text" class="campo" size="6" maxlength="6"> </td>
       </tr>
     <tr bgcolor="#FFFFFF">
       <td><span class="label">Tipo de proceso:</span></td>
       <td colspan="2"><select name="tipo_proceso" class="sel3" id="tipo_proceso">
         <option value="DISCIPLINARIO">DISCIPLINARIO</option>		 
       </select>          </td>
	   <td colspan="2"><span class="label">Fecha Diagnostico:</span></td>
	   <td><input name="fecha_diagnostico" type="text" class="campo" id="fecha_diagnostico" size="10" maxlength="10"></td>

       </tr>
	   
	   
	   	   
	   
     <tr bgcolor="#FFFFFF">
       <td><span class="label">Clase de negocio:</span></td>
       <td colspan="3"><input name="clase_negocio" type="text" class="campo" id="clase_negocio" size="50" maxlength="50"></td>
     </tr>
     <tr bgcolor="#FFFFFF">
       <td><span class="label">Despacho judicial:</span></td>
       <td colspan="3"><input name="despacho_judicial" type="text" class="campo" id="despacho_judicial" size="50" maxlength="50"></td>
     </tr>
     <tr bgcolor="#FFFFFF">
       <td><span class="label">Ciudad del despacho :</span></td>
       <td colspan="3"><input name="ciudad_despacho" type="text" class="campo" id="despacho_judicial4" size="50" maxlength="50"></td>
       </tr>
     <tr bgcolor="#FFFFFF">
       <td><span class="label">Calidad jur&iacute;dica afiliado:</span></td>
       <td colspan="3"><span class="Estilo10">
         <select name="calidad_juridica_afiliado" class="sel3">
           <option value="" selected>--CALIDAD JURIDICA AFILIADO--</option>
           <option value="SINDICADO">SINDICADO</option>
           <option value="PERJUDICADO">PERJUDICADO</option>
           <option value="DEMANDADO">DEMANDADO</option>
           <option value="DEMANDANTE">DEMANDANTE</option>
              </select>
       </span></td>
       </tr>
     <tr bgcolor="#FFFFFF">
       <td><span class="label">N&uacute;mero carpeta:</span></td>
       <td><input name="numero_carpeta" type="text" class="campo" id="numero_carpeta" size="6" maxlength="6"></td>
       <td><span class="label">Tipo afiliado :</span></td>
       <td><select name="tipo_afiliado" class="sel3" id="tipo_afiliado">
         <option value="TITULAR">TITULAR</option>
         <option value="BENEFICIARIO">BENEFICIARIO</option>
       </select></td>
       </tr>
     <tr bgcolor="#FFFFFF">
       <td><span class="label">Abogado:</span></td>
       <td colspan="3"><select name="codigo_abogado" class="campo">
         <option value="">--SELECCIONE NOMBRE DEL ABOGADO--</option>
         <?php
     do {  
?>
         <option value="<?php echo $row['codigo_abogado'];?>"><?php echo $row['nombre_completo']?></option>
         <?php
} while ($row = mysql_fetch_assoc($misql));
  $rows = mysql_num_rows($misql);
  if($rows > 0) {
      mysql_data_seek($misql, 0);
       $lineas = mysql_fetch_assoc($misql);
  }
?>
       </select></td>
     </tr>
     <tr bgcolor="#FFFFFF">
       <td><span class="label">Nombre de la sucursal :</span></td>
       <td colspan="3"><select name="codigo_sucursal" class="campo">
    <option value="">--SELECCIONE SUCURSAL--</option>
    <?php
     do {  
?>
    <option value="<?php echo $row_sql['codigo'];?>"><?php echo $row_sql['nombre']?></option>
    <?php
} while ($row_sql = mysql_fetch_assoc($sql));
  $rows = mysql_num_rows($sql);
  if($rows > 0) {
      mysql_data_seek($sql, 0);
       $row_sql = mysql_fetch_assoc($sql);
  }
?>       </select></td>
       </tr>
     <tr bgcolor="#FFFFFF">
       <td><span class="label">Actividad del proceso:</span></td>
       <td><select name="actividad_proceso" class="sel3">
         <option value="ACTIVO">ACTIVO</option><option value="INACTIVO">INACTIVO</option></select></td>
       <td><span class="label">Estado del proceso:</span></td>
       <td><select name="estado_proceso" class="sel3">
         <option value="VIGENTE">VIGENTE</option><option value="HISTORICO">HISTORICO</option></select>       </tr>
   </table> 
   </fieldset></td>
  </tr>
</table>
   <table width="670" height="161" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#ECE9D8">
  <tr bgcolor="#FFFFCC">
    <td colspan="7" class="titulos"><div align="center">INGRESE LOS DATOS DEL INICIO DEL PROCESO </div></td>
  </tr>
  <tr>
    <td width="88" class="lista"><div align="center">FOLIOS</div></td>
    <td width="35" class="lista"><div align="center">DEL:</div></td>
    <td width="61"><div align="center">
      <input name="folio1" type="text" class="area" id="folio1" size="4" maxlength="4">
    </div></td>
    <td width="35" class="lista"><div align="center">AL:</div></td>
    <td width="62"><div align="center">
      <input name="folio2" type="text" class="area" id="folio2" size="4" maxlength="4">
    </div></td>
    <td width="130" class="lista"><div align="center">FECHA ACTUACION: </div></td>
    <td width="215" bgcolor="#CCFFFF">
	  <div align="center">
        <input name="dia" type="text" class="variables" id="dia" value="<?php echo $dia ?>" size="2" maxlength="2" readonly="">
        <input name="mes" type="text" class="variables" id="mes" value="<?php echo $mes ?>" size="2" maxlength="2" readonly="">
	    <input name="ano" type="text" class="variables" id="ano" value="<?php echo $ano ?>" size="4" maxlength="4" readonly="">
      </div></td>
  </tr>
  <tr>
    <td colspan="6" rowspan="2" bgcolor="#DDFFFF"><textarea name="actuacion" cols="90" rows="3" id="actuacion" class="sel"></textarea></td>
    <td class="fecha">Tipo de orden: </td>
  </tr>
  <tr>
    <td><select name="tipo_orden" class="sel2" id="tipo_orden">
	        <option value="INICIO">INICIO</option>
	</select></td>
  </tr>
  <tr bgcolor="#FFCC99"> 
    <td height="30" colspan="7"><div align="right">
      <input name = "guardar" type="submit" class="boton2" value="Guardar datos">
      <input name="button" type="reset" class="boton2"  onclick="formulario.folio1.focus();" value="Limpiar">
    </div></td>
    </tr>
</table>
</form>
</body>
</html>