</head>
<body onLoad="writetostatus('<?php print "Base de Datos: ".$_SESSION["ls_database"].". Usuario: ".$_SESSION["la_logusr"];?>')">
<?php
require_once("class_folder/sigesp_soc_c_aceptacion_orden_servicio.php");
$io_soc=new sigesp_soc_c_aceptacion_orden_servicio("../");
uf_limpiarvariables();
switch($ls_operacion){
  case 'CARGAR':
	uf_soc_load_ordenes_servicio();
  break;
  case 'PROCESAR':
    uf_load_variables();
	$lb_valido=$io_fecha->uf_valida_fecha_mes($ls_codemp,$ld_fecope);
	if ($lb_valido)
	   {
         $io_soc->uf_aceptar_orden_servicio($ls_tipope,$li_totrows,$la_seguridad);
	   }
	else
	   {
	     $io_msg->message("El mes no esta abierto");
	   }	 
  break;
}  
?>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" class="contorno">
  <tr>
    <td height="30" class="cd-logo"><img src="../shared/imagebank/header.jpg" alt="Encabezado" width="800" height="40" /></td>
  </tr>
  <td height="20" colspan="12" bgcolor="#E7E7E7">
    <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">			
      <td width="430" height="20" bgcolor="#E7E7E7" class="descripcion_sistema">Ordenes de Compra</td>