if ($_POST["opciones"] == 'valor') {
         $valor = addslashes($_POST["valor"]);
         $ut = $utd->queryByValor($valor);
     } elseif ($_POST["opciones"] == 'fecha') {
         $inicio = addslashes($_POST["inicio"]);
         $fin = addslashes($_POST["fin"]);
         $ut = $utd->queryByFecha($inicio, $fin);
     }
     if (!$ut) {
         $sts = 'NRF';
         //NRF: NOT REGISTER FOUND
         $mensaje = new Mensaje($sts);
         $mensaje->showMensaje();
     } else {
         $mensaje = new Mensaje();
         $mensaje->showUpdateUt($ut);
     }
 } else {
     if ($_POST["option"] == 'preupd') {
         $id = $_POST['id'];
         $ut = $utd->obtener($id);
         $mensaje = new Mensaje();
         $mensaje->showUpdateForm($ut);
     } else {
         if ($_POST["option"] == 'update') {
             $id = $_POST['data-id'];
             $inicio = $_POST['inicio'];
             $fin = $_POST['fin'];
             $valor = $_POST['valor'];
             $ut->__SET('id', $id);
             $ut->__SET('inicio', $inicio);