Esempio n. 1
0
    $showTime = '<div class="time" align="center">' . $GLOBALS['traduct']->get(213) . ' ' . $SQLiteQuery->queryTime . ' ' . $GLOBALS['traduct']->get(214) . '</div>';
    if ($allFullText) {
        $caption = '<a href="main.php?dbsel=' . $GLOBALS["dbsel"] . '&amp;' . $linkItem . '&amp;action=browseItem&amp;fullText=0" target="main">' . displayPics("nofulltext.png", $GLOBALS['traduct']->get(225)) . '</a>';
    } else {
        $caption = '<a href="?dbsel=' . $GLOBALS["dbsel"] . '&amp;' . $linkItem . '&amp;action=browseItem&amp;fullText=1">' . displayPics("fulltext.png", $GLOBALS['traduct']->get(226)) . '</a>';
    }
    if ($allHTML) {
        $capHTML = '<a href="main.php?dbsel=' . $GLOBALS["dbsel"] . '&amp;' . $linkItem . '&amp;action=browseItem&amp;HTMLon=0" target="main">' . displayPics("HTML_on.png", "HTML") . '</a>';
    } else {
        $capHTML = '<a href="main.php?dbsel=' . $GLOBALS["dbsel"] . '&amp;' . $linkItem . '&amp;action=browseItem&amp;HTMLon=1" target="main">' . displayPics("HTML_off.png", "Texte") . '</a>';
    }
    //    $DbGrid->addCaption("top", '<div><div style="float: left">'.$caption.str_repeat('&nbsp;', 3).$capHTML.'</div>'.$showTime.'</div>');
    $capTable = '<div><div style="float: left">' . $caption . str_repeat('&nbsp;', 3) . $capHTML . '</div>' . $showTime . '</div>';
    $DbGrid->build();
    if (!isset($noDisplay) || !$noDisplay) {
        displayQuery($DbGrid->getRealQuery());
    }
    if ($DbGrid->getNbRecord()) {
        echo '<table align="center"><tr><td>' . $capTable . '</td></tr><tr><td>';
        $DbGrid->show();
        echo '<!-- browse.php -->' . "\n";
        echo '<div class="BrowseOptions">';
        if (empty($view) && (!$workDb->isReadOnly() && displayCondition("properties"))) {
            echo '<hr width="60%">
					<form name="addView" action="main.php?dbsel=' . $GLOBALS['dbsel'] . '" method="POST" target="main">
					<table class="BrowseOption"><tr><td>
					&nbsp;&raquo;&nbsp;' . $GLOBALS['traduct']->get(97) . '
					<input type="text" class="text" name="ViewName" value="" /> ' . $GLOBALS['traduct']->get(98) . '
					<input class="button" type="submit" value="' . $GLOBALS['traduct']->get(69) . '" />
					</td></tr></table>
					<input type="hidden" name="action" value="save" />