Exemplo n.º 1
0
    if ($_GET[form_id] == $thissearch[form][name]) {
        $error = check_form($thissearch[form], $_GET, $page);
        if ($error == 1) {
            if (count($_GET[ref_prat][realval]) == 1 && strlen($_GET[ref_prat][realval]) > 0) {
                $PAGE_ELEMENT[PAGE][1][0][param] = $_GET[ref_prat][realval][0];
                $PAGE[PAGE_INTITLE] .= " &nbsp;&nbsp;<span > ( <a href='{$mailto}'>" . DOCUMENT_NEW_GMAIL . "</a> )\r\n\r\n( <a target=\"\" href=\"#\" onclick=\"javascript:ApriPopUp('{$StGcal}')\">" . DOCUMENT_GCAL . "</a> )\r\n</span>";
            }
            //INIZIO PAGINA
            print '
 <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<iframe style="display: inline;" id="Fr1" name="Frame1" src=' . $url . ' height="399" width="100%" frameborder=0 MARGINWIDTH="0" marginheight="0" ></iframe> 
<br>
			';
            //FINE PAGINA
            if (strlen($_GET[testo]) > 4) {
                $resfile = searchDocuments($_GET[testo]);
                if (count($resfile) == 0) {
                    $_GET[testo] = "";
                } else {
                    $_GET[testo] = $resfile;
                }
            } else {
                $_GET[testo] = "";
            }
        } else {
            print draw_form($thissearch[form], $module, $error, $_GET);
        }
    } else {
        print draw_form($thissearch[form], $module, "", $_GET);
        //print menage_search($thissearch[search]);
    }
Exemplo n.º 2
0
#!/usr/bin/php

<?php 
include 'functions.php';
getTextfromSXW('/www/htdocs/cw-portal.com/framework/tmp/document/nuovosistema-123-1.sxw');
$ret = searchDocuments('aliquam');
print_r($ret);
?>