function HTMLlistaTermsTargetVocabularios($tvocab_id, $from = "0")
{
    $ARRAYtargetVocabulary = ARRAYtargetVocabulary($tvocab_id);
    $from = is_numeric($from) ? $from : '0';
    $from = $from < $ARRAYtargetVocabulary[cant] ? $from : '0';
    if ($ARRAYtargetVocabulary[cant] > 20) {
        $linkMore = $from < $ARRAYtargetVocabulary[cant] - 20 ? '<a href="admin.php?doAdmin=seeTermsTargetVocabulary&amp;tvocab_id=' . $ARRAYtargetVocabulary[tvocab_id] . '&amp;f=' . ($from + 20) . '"> + 20</a>' : "";
        $linkLess = $from > 0 ? '<a href="admin.php?doAdmin=seeTermsTargetVocabulary&amp;tvocab_id=' . $ARRAYtargetVocabulary[tvocab_id] . '&amp;f=' . ($from - 20) . '"> - 20</a>' : "";
        $linkFirst = $from > 0 ? '<a href="admin.php?doAdmin=seeTermsTargetVocabulary&amp;tvocab_id=' . $ARRAYtargetVocabulary[tvocab_id] . '&amp;f=0"><<</a> &middot; ' : "";
        $linkLast = $from < $ARRAYtargetVocabulary[cant] - 20 ? ' &middot; <a href="admin.php?doAdmin=seeTermsTargetVocabulary&amp;tvocab_id=' . $ARRAYtargetVocabulary[tvocab_id] . '&amp;f=' . ($ARRAYtargetVocabulary[cant] - 20) . '">>></a>' : "";
        $next20 = $from + 20 < $ARRAYtargetVocabulary[cant] ? $from + 20 : $ARRAYtargetVocabulary[cant];
        $labelShow = $from > 0 ? ' | ' . $from . ' - ' . $next20 . ' | ' : $from . ' - ' . $next20 . ' | ';
    }
    $sql = SQLtargetTermsVocabulary($tvocab_id, $from);
    $rows .= '<tbody>';
    while ($array = $sql->FetchRow()) {
        $last_term_update = $array[cuando_last] ? $array[cuando_last] : $array[cuando];
        if ($_GET["doAdmin2"] == 'checkDateTermsTargetVocabulary') {
            $iUpd = 0;
            $dataSimpleChkUpdateTterm = dataSimpleChkUpdateTterm("tematres", $array[tterm_uri]);
            /*
            		El término no existe m�s en el vocabulario de destino
            */
            if (!$dataSimpleChkUpdateTterm->result->term->tema_id) {
                $linkUpdateTterm["{$array['tterm_uri']}"] .= '<ul class="errorNoImage">';
                $linkUpdateTterm["{$array['tterm_uri']}"] .= '<li><strong>' . ucfirst(LABEL_notFound) . '</strong></li>';
                $linkUpdateTterm["{$array['tterm_uri']}"] .= '<li>[<a href="admin.php?doAdmin=seeTermsTargetVocabulary&amp;doAdmin2=checkDateTermsTargetVocabulary&amp;tvocab_id=' . $ARRAYtargetVocabulary[tvocab_id] . '&amp;f=' . $from . '&amp;tterm_id=' . $array[tterm_id] . '&amp;tema=' . $array[tema_id] . '&amp;taskrelations=delTgetTerm" title="' . ucfirst(LABEL_borraRelacion) . '">' . ucfirst(LABEL_borraRelacion) . '</a>]</li>';
                $linkUpdateTterm["{$array['tterm_uri']}"] .= '</ul>';
            } elseif ($dataSimpleChkUpdateTterm->result->term->date_mod > $last_term_update) {
                $iUpd = ++$iUpd;
                $ARRAYupdateTterm["{$array['tterm_uri']}"]["string"] = FixEncoding((string) $dataSimpleChkUpdateTterm->result->term->string);
                $ARRAYupdateTterm["{$array['tterm_uri']}"]["date_mod"] = $dataSimpleChkUpdateTterm->result->term->date_mod;
                $linkUpdateTterm["{$array['tterm_uri']}"] .= '<ul class="warningNoImage">';
                $linkUpdateTterm["{$array['tterm_uri']}"] .= '<li><strong>' . $ARRAYupdateTterm["{$array['tterm_uri']}"]["string"] . '</strong></li>';
                $linkUpdateTterm["{$array['tterm_uri']}"] .= '<li>' . $ARRAYupdateTterm["{$array['tterm_uri']}"]["date_mod"] . '</li>';
                $linkUpdateTterm["{$array['tterm_uri']}"] .= '<li>[<a href="admin.php?doAdmin=seeTermsTargetVocabulary&amp;doAdmin2=checkDateTermsTargetVocabulary&amp;tvocab_id=' . $ARRAYtargetVocabulary[tvocab_id] . '&amp;f=' . $from . '&amp;tterm_id=' . $array[tterm_id] . '&amp;tgetTerm_id=' . $array[tterm_id] . '&amp;tema=' . $array[tema_id] . '&amp;taskrelations=updTgetTerm" title="' . ucfirst(LABEL_actualizar) . '">' . ucfirst(LABEL_actualizar) . '</a>]</li>';
                $linkUpdateTterm["{$array['tterm_uri']}"] .= '<li>[<a href="admin.php?doAdmin=seeTermsTargetVocabulary&amp;doAdmin2=checkDateTermsTargetVocabulary&amp;tvocab_id=' . $ARRAYtargetVocabulary[tvocab_id] . '&amp;f=' . $from . '&amp;tterm_id=' . $array[tterm_id] . '&amp;tema=' . $array[tema_id] . '&amp;taskrelations=delTgetTerm" title="' . ucfirst(LABEL_borraRelacion) . '">' . ucfirst(LABEL_borraRelacion) . '</a>]</li>';
                $linkUpdateTterm["{$array['tterm_uri']}"] .= '</ul>';
            }
        }
        $rows .= '<tr>';
        $rows .= '<td class="izq"><a href="index.php?tema=' . $array[tema_id] . '" title="' . LABEL_verDetalle . ' ' . $array[tema] . '">' . $array[tema] . '</a></td>';
        $rows .= '<td class="izq">';
        $rows .= '<a href="' . $array[tterm_url] . '" title="' . LABEL_verDetalle . ' ' . FixEncoding($array[tterm_string]) . '" >' . FixEncoding($array[tterm_string]) . '</a>';
        $rows .= ' ' . $linkUpdateTterm["{$array['tterm_uri']}"] . '</td>';
        $rows .= '<td class="izq">' . $last_term_update . '</td>';
        $rows .= '</tr>';
    }
    $rows .= '</tbody>';
    $rows .= '<tfoot>';
    $rows .= '<tr>';
    $rows .= '<td class="izq" colspan="3">' . $ARRAYtargetVocabulary[cant] . ' ' . FORM_LABEL_Terminos . ': ' . $linkFirst . $linkLess . ' ' . $labelShow . ' ' . $linkMore . $linkLast . ' ';
    if ($ARRAYtargetVocabulary[cant] > 0) {
        $rows .= '&middot;  <a href="admin.php?doAdmin=seeTermsTargetVocabulary&amp;doAdmin2=checkDateTermsTargetVocabulary&amp;tvocab_id=' . $ARRAYtargetVocabulary[tvocab_id] . '&amp;f=' . $from . '">' . ucfirst(LABEL_ShowTargetTermsforUpdate) . '</a>';
    }
    if (isset($iUpd)) {
        $rows .= ': ' . $iUpd . ' ' . LABEL_targetTermsforUpdate;
    }
    $rows .= '</td>';
    $rows .= '</tr>';
    $rows .= '</tfoot>';
    $rows .= '</table> </div>       ';
    $thead .= '<div class="table-responsive"> ';
    $thead .= '<table class="table table-striped table-bordered table-condensed table-hover"  summary="' . LABEL_lcConfig . '">';
    $thead .= '<thead>';
    $thead .= '<tr>';
    $thead .= '<th class="izq" colspan="3"><a href="admin.php" title="' . ucfirst(LABEL_lcConfig) . '">' . ucfirst(LABEL_lcConfig) . '</a> &middot; ' . $ARRAYtargetVocabulary[tvocab_title] . ' &middot ' . ($ARRAYtargetVocabulary["tvocab_status"] == '1' ? LABEL_enable : LABEL_disable) . '</th>';
    $thead .= '</tr>';
    $thead .= '<tr>';
    $thead .= '<th class="izq" colspan="3">' . $ARRAYtargetVocabulary[cant] . ' ' . FORM_LABEL_Terminos . ': ' . $linkFirst . $linkLess . ' ' . $labelShow . ' ' . $linkMore . $linkLast . ' ';
    if ($ARRAYtargetVocabulary[cant] > 0) {
        $thead .= '&middot;  <a href="admin.php?doAdmin=seeTermsTargetVocabulary&amp;doAdmin2=checkDateTermsTargetVocabulary&amp;tvocab_id=' . $ARRAYtargetVocabulary[tvocab_id] . '&amp;f=' . $from . '">' . ucfirst(LABEL_ShowTargetTermsforUpdate) . '</a>';
    }
    if (isset($iUpd)) {
        $thead .= ': ' . $iUpd . ' ' . LABEL_targetTermsforUpdate;
    }
    $thead .= '</th>';
    $thead .= '</tr>';
    $thead .= '<tr>';
    $thead .= '<th>' . ucfirst(LABEL_Termino) . '</th>';
    $thead .= '<th>' . ucfirst($ARRAYtargetVocabulary[tvocab_label]) . '</th>';
    $thead .= '<th>' . ucfirst(LABEL_Fecha) . '</th>';
    $thead .= '</tr>';
    $thead .= '</thead>';
    $rows = $thead . $rows;
    return $rows;
}
function HTMLcheckTargetTerm($array)
{
    $dataSimpleChkUpdateTterm = dataSimpleChkUpdateTterm("tematres", $array["tterm_uri"]);
    if ($dataSimpleChkUpdateTterm->result->term->term_id) {
        $tterm_string = (string) $dataSimpleChkUpdateTterm->result->term->string;
        $tterm_id = (int) $dataSimpleChkUpdateTterm->result->term->term_id;
        $tterm_date = $dataSimpleChkUpdateTterm->result->term->date_mod;
    }
    $last_term_update = $array["cuando_last"] ? $array["cuando_last"] : $array["cuando"];
    /*
    El término no existe más en el vocabulario de destino
    */
    if ($tterm_id < 1) {
        $rows .= '<ul class="errorNoImage list-unstyled">';
        $rows .= '<li><strong>' . ucfirst(LABEL_notFound) . '</strong></li>';
        $rows .= '<li><a href="index.php?tvocab_id=' . $array["tvocab_id"] . '&amp;tterm_id=' . $array["tterm_id"] . '&amp;tema=' . $array["tema_id"] . '&amp;taskrelations=delTgetTerm" class="eliminar" title="' . ucfirst(LABEL_borraRelacion) . '">' . ucfirst(LABEL_borraRelacion) . '</a></li>';
        $rows .= '</ul>';
    } elseif ($tterm_date > $last_term_update) {
        $ARRAYupdateTterm["{$array['tterm_uri']}"]["string"] = FixEncoding($tterm_string);
        $ARRAYupdateTterm["{$array['tterm_uri']}"]["date_mod"] = $tterm_date;
        $rows .= '<ul class="warningNoImage list-unstyled">';
        $rows .= '<li><strong>' . $tterm_string . '</strong></li>';
        $rows .= '<li>' . $tterm_date . '</li>';
        $rows .= '<li><a href="index.php?tvocab_id=' . $array["tvocab_id"] . '&amp;tterm_id=' . $array["tterm_id"] . '&amp;tgetTerm_id=' . $array["tterm_id"] . '&amp;tema=' . $array["tema_id"] . '&amp;taskrelations=updTgetTerm" class="btn btn-success btn-xs" title="' . ucfirst(LABEL_actualizar) . '">' . ucfirst(LABEL_actualizar) . '</a></li>';
        $rows .= '<li><a href="index.php?tvocab_id=' . $array["tvocab_id"] . '&amp;tterm_id=' . $array["tterm_id"] . '&amp;tema=' . $array["tema_id"] . '&amp;taskrelations=delTgetTerm" title="' . ucfirst(LABEL_borraRelacion) . '" class="btn btn-danger btn-xs">' . ucfirst(LABEL_borraRelacion) . '</a></li>';
        $rows .= '</ul>';
    } else {
        $rows = '<span class="successNoImage">' . LABEL_termUpdated . '</span>';
    }
    return $rows;
}