}
            echo "\t\t<td class=\"tabprop\" align='center'><a href=\"" . $linkBase . "\" class=\"propItem\">" . displayPics("properties.png", $traduct->get(61)) . "</a></td>\n";
            if (!$workDb->isReadOnly() && displayCondition("del")) {
                $stringConf = $traduct->get(120) . " " . ($item != "Trigger" ? $traduct->get(122) : $traduct->get(121)) . " " . $itemTranslated[$item] . " " . $itemName . "?";
                echo "\t\t<td class=\"tabprop\" align='center'><a href=\"#\" onClick=\"javascript:if(confirm('" . $stringConf . "')) parent.main.location='" . $linkBase . "&amp;action=delete';\" class=\"propItem\">" . displayPics("delete_table.png", $traduct->get(86)) . "</a></td>\n";
            } else {
                echo "\t\t<td class=\"tabprop\" align='center'><i>" . displayPics("delete_table_off.png", $traduct->get(86)) . "</i></td>\n";
            }
            if (isset($nbEnr) && $nbEnr && $item == "Table") {
                if (!$workDb->isReadOnly() && displayCondition("empty")) {
                    echo "\t\t<td class=\"tabprop\" align='center'><a href=\"#\" onClick=\"javascript:if(confirm('" . $traduct->get(123) . " " . $itemName . "?')) parent.main.location='" . $linkBase . "&amp;action=empty';\" class=\"propItem\">" . displayPics("edittrash.png", $traduct->get(77)) . "</a></td>\n";
                } else {
                    echo "\t\t<td class=\"tabprop\" align='center'><i>" . displayPics("edittrash_off.png", $traduct->get(77)) . "</i></td>\n";
                }
            } elseif ($item == "Table") {
                echo "\t\t<td class=\"tabprop\" align='center'><span style='color: gray'>" . displayPics("edittrash_off.png", $traduct->get(77)) . "</span></td>\n";
            }
            if ($item == 'Table' || $item == 'View') {
                echo '		<td class="tabprop" align="center">' . $nbEnr . '</td>
					</tr>';
            }
        }
        echo '	<tr>
					<td align="center" class="tabproptitle" style="white-space: nowrap">' . $totItem . ' ' . $itemTranslated[$item] . $traduct->get(228) . '</td>
					<td colspan="' . $colspan . '" class="tabproptitle">&nbsp;</td>' . "\n";
        if ($item == 'Table' || $item == 'View') {
            echo '		<td align="center" class="tabproptitle">' . $totEnr . '</td>' . "\n";
        }
        echo ' </tr>';
        echo '</table>';
    } else {
    /**
     * View all privileges information
     *
     * @access public
     */
    function viewPrivileges($withFormUser = false, $withFormGroupe = false)
    {
        $query = '	SELECT user_id, user_name AS ' . quotes($GLOBALS['traduct']->get(163)) . ',
						user_login AS ' . quotes($GLOBALS['traduct']->get(164)) . ',
						groupe_name AS ' . quotes($GLOBALS['traduct']->get(165)) . '
					FROM users, groupes WHERE user_groupe_id=groupe_id;';
        include_once INCLUDE_LIB . 'SQLiteToGrid.class.php';
        $tabUser = new SQLiteToGrid($GLOBALS['db'], $query, 'PrivUser', true, 10, '95%');
        $tabUser->enableSortStyle(false);
        $tabUser->hideColumn(0);
        $tabUser->setGetVars('?action=auth');
        if ($tabUser->getNbRecord() <= 10) {
            $tabUser->disableNavBarre();
        }
        $tabUser->addCalcColumn($GLOBALS['traduct']->get(33), '	<a href="?action=auth&amp;auth_action=modifyUser&amp;user=#%0%#" class="Browse">' . displayPics('edit.png', $GLOBALS['traduct']->get(14)) . '</a>&nbsp;
											<a href="?action=auth&amp;auth_action=deleteUser&amp;user=#%0%#" class="Browse">' . displayPics('edittrash.png', $GLOBALS['traduct']->get(15)) . '</a>&nbsp;
											<a href="?action=auth&amp;auth_action=passwdUser&amp;user=#%0%#" class="Browse">' . displayPics('encrypted.png', $GLOBALS['traduct']->get(157)) . '</a>&nbsp;', 'center', 999);
        $tabUser->addCaption('bottom', '<a href="?action=auth&amp;auth_action=addUser" class="Browse">' . $GLOBALS['traduct']->get(159) . '</a>');
        $tabUser->disableOnClick();
        $tabUser->build();
        // ------------------------------------------------------------------------
        $query = 'SELECT groupe_id, groupe_name AS ' . quotes($GLOBALS['traduct']->get(163)) . ',
						CASE properties WHEN 1 THEN ' . quotes($GLOBALS['traduct']->get(191)) . ' ELSE ' . quotes($GLOBALS['traduct']->get(192)) . ' END AS ' . quotes($GLOBALS['traduct']->get(61)) . ',
						CASE execSQL WHEN 1 THEN ' . quotes($GLOBALS['traduct']->get(191)) . ' ELSE ' . quotes($GLOBALS['traduct']->get(192)) . ' END AS ' . quotes($GLOBALS['traduct']->get(166)) . ',
						CASE data WHEN 1 THEN ' . quotes($GLOBALS['traduct']->get(191)) . ' ELSE ' . quotes($GLOBALS['traduct']->get(192)) . ' END AS ' . quotes($GLOBALS['traduct']->get(167)) . ',
						CASE export WHEN 1 THEN ' . quotes($GLOBALS['traduct']->get(191)) . ' ELSE ' . quotes($GLOBALS['traduct']->get(192)) . ' END AS ' . quotes($GLOBALS['traduct']->get(168)) . ',
						CASE empty WHEN 1 THEN ' . quotes($GLOBALS['traduct']->get(191)) . ' ELSE ' . quotes($GLOBALS['traduct']->get(192)) . ' END AS ' . quotes($GLOBALS['traduct']->get(169)) . ',
						CASE del WHEN 1 THEN ' . quotes($GLOBALS['traduct']->get(191)) . ' ELSE ' . quotes($GLOBALS['traduct']->get(192)) . ' END AS ' . quotes($GLOBALS['traduct']->get(170)) . '
					FROM groupes;';
        include_once INCLUDE_LIB . 'SQLiteToGrid.class.php';
        $tabGroupe = new SQLiteToGrid($GLOBALS['db'], $query, 'PrivGroupe', true, 10, '95%');
        $tabGroupe->enableSortStyle(false);
        $tabGroupe->hideColumn(0);
        $tabGroupe->setGetVars('?action=auth');
        if ($tabGroupe->getNbRecord() <= 10) {
            $tabGroupe->disableNavBarre();
        }
        $tabGroupe->addCalcColumn($GLOBALS['traduct']->get(33), '	<a href="?action=auth&amp;auth_action=modifyGroupe&amp;groupe=#%0%#" class="Browse">' . displayPics('edit.png', $GLOBALS['traduct']->get(14)) . '</a>&nbsp;
											<a href="?action=auth&amp;auth_action=deleteGroupe&amp;groupe=#%0%#" class="Browse">' . displayPics('edittrash.png', $GLOBALS['traduct']->get(15)) . '</a>&nbsp;', 'center', 999);
        $tabGroupe->addCaption('bottom', '<a href="?action=auth&amp;auth_action=addGroupe" class="Browse">' . $GLOBALS['traduct']->get(160) . '</a>');
        $tabGroupe->disableOnClick();
        $tabGroupe->build();
        echo '<table align="center" class="Browse"><tr><td align="center" valign="top">';
        echo '<div class="Rights"><div style="text-align: center;">' . $GLOBALS['traduct']->get(161) . '</div>';
        $tabUser->show();
        if ($withFormUser) {
            echo '<hr style="border: 1px dashed black; width: 90%;">';
            $this->formUser();
        }
        if (isset($_REQUEST['auth_action']) && $_REQUEST['auth_action'] == 'passwdUser') {
            echo '<hr style="border: 1px dashed black; width: 90%;">';
            $this->changePasswd();
        }
        echo '</div></td>';
        echo '<td align="center" valign="top">';
        echo '<div class="Rights"><div align="center">' . $GLOBALS['traduct']->get(162) . '</div>';
        $tabGroupe->show();
        if ($withFormGroupe) {
            echo '<hr style="border: 1px dashed black; width: 90%;">';
            $this->formGroupe();
        }
        echo '</div></td></tr></table>';
    }
Example #3
0
            $modifyLink = "<a href=\"main.php?dbsel=" . $GLOBALS["dbsel"] . "&amp;table=" . $accessResult . "&amp;action=modifyElement&amp;query=#%QUERY%#&amp;pos=#%POS%#&amp;currentPage=browseItem\" class=\"Browse\" target=\"main\">" . displayPics("edit.png", $GLOBALS["traduct"]->get(14)) . "</a>";
        } else {
            $modifyLink = displayPics("edit_off.png", $GLOBALS["traduct"]->get(14));
        }
        $DbGrid->addCalcColumn($GLOBALS["traduct"]->get(33), "<div class=\"BrowseImages\">" . $modifyLink . "&nbsp;" . $deleteLink . "</div>", "center", 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">
<?php

require 'includes/bebo_api.php';
require 'includes/functions.php';
if ($_GET['stepone']) {
    // Define Keys
    $api_key = "";
    $api_secret = "";
    // instantiate api
    $bebo = new Bebo($api_key, $api_secret);
    // Require that user authorise app on their profile -> punts them to Bebo website
    $userID = $bebo->require_add();
    // Main function which generates page on Bebo with a full list of their image URL's
    displayPics($bebo);
} else {
    header("Location: index.php");
}
                        foreach ($list as $Name) {
                            $actionLink = '<a href="main.php?dbsel=' . $dbsel . '&amp;' . strtolower($item) . '=' . urlencode($Name) . '" target="main" class="item">';
                            echo "\n\t\t" . '<tr>';
                            echo '<td class="image" style="white-space: nowrap">' . $actionLink . displayPics(strtolower($item) . 's.png') . '</a>';
                            if ($item != 'Function' && $item != 'Trigger') {
                                echo '<a href="main.php?dbsel=' . $dbsel . '&amp;' . strtolower($item) . '=' . urlencode($Name) . '&amp;action=browseItem" target="main">' . displayPics('browse.png', '', 0, 10) . '</a>';
                            } else {
                                echo displayPics('nobrowse.png');
                            }
                            echo '</td>';
                            echo '<td class="item" style="white-space: nowrap">';
                            echo $actionLink . $Name . '</a></td>' . "\n\t\t" . '</tr>';
                        }
                    } elseif (DISPLAY_EMPTY_ITEM_LEFT) {
                        $actionLink = '<a href="main.php?dbsel=' . $dbsel . '&amp;action=add_' . strtolower($item) . '" target="main" class="item">';
                        echo "\n\t\t" . '<tr>' . '<td class="image" style="white-space: nowrap" width="35">' . $actionLink . displayPics(strtolower($item) . 's.png') . '</a>' . displayPics('nobrowse.png') . '</td>' . '<td class="' . strtolower($item) . '" style="white-space: nowrap">';
                        if (!$workDb->isReadOnly() && displayCondition('properties')) {
                            echo $actionLink . '+ ' . $itemTranslated[$item] . '</a></td>';
                        } else {
                            echo '<span class="item"><i>+ ' . $itemTranslated[$item] . '</i></span>';
                        }
                        echo "\n\t\t" . '</tr>';
                    }
                }
                echo "\n\t\t" . '</table>';
                echo "\n\t" . '</td></tr>';
            }
        }
    }
}
?>
    /**
     * Display Form for select table records
     *
     * @access public
     * @param string $req query where the record is
     * @param integer $numId Number of the query record
     * @param boolean $error if true, display POST value
     */
    function form()
    {
        echo '<!-- SQLiteSelect.class.php : form() -->' . "\n";
        echo '<center><h4>' . $GLOBALS["traduct"]->get(201) . '</h4>' . "\n";
        echo '<form name="select" action="main.php?dbsel=' . $GLOBALS['dbsel'] . '&amp;table=' . $this->table . '" method="POST" target="main">' . "\n";
        echo '	<table class="Insert" cellpadding="2" cellspacing="0" width="80%">
					<thead>
					<tr>
						<td align="center" class="Browse">' . $GLOBALS["traduct"]->get(73) . '</td>
						<td align="center" class="Browse">' . $GLOBALS['traduct']->get(27) . '</td>
						<td align="center" class="Browse">' . $GLOBALS['traduct']->get(28) . '</td>
						<td align="center" class="Browse">' . $GLOBALS['traduct']->get(202) . '</td>
						<td align="center" class="Browse">' . $GLOBALS['traduct']->get(50) . '</td>
					</tr>
					</thead>';
        reset($this->infoTable);
        if (!isset($tabData)) {
            $tabData = array();
        }
        while (list($cid, $tabInfo) = each($this->infoTable)) {
            $this->lineElement($tabInfo, $tabData);
        }
        echo '	<tr>
					<td style="text-align:left" colspan="10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . displayPics('arrow_ltr.gif') . '&nbsp;
					<a href="#" onClick="javascript:setCheckBox(\'select\',\'showField\',true);" class="Browse">' . $GLOBALS['traduct']->get(34) . '</a>&nbsp;/&nbsp;
					<a href="#" onClick="javascript:setCheckBox(\'select\', \'showField\', false);" class="Browse">' . $GLOBALS['traduct']->get(35) . '</a>';
        echo '	<tr>
					<td colspan="4">&nbsp;</td><td class="TitleHeader" style="text-align:left">' . $GLOBALS["traduct"]->get(203) . '</td>
				</tr>' . "\n";
        echo '	<tr>
					<td colspan="3">&nbsp;</td>' . "\n" . '
					<td style="text-align:right; white-space: nowrap">
						<label for="AND">' . $GLOBALS["traduct"]->get(204) . '</label><input type="radio" name="operSuppl" id="AND" value="AND" checked="checked"><br/>
						<label for="OR">' . $GLOBALS["traduct"]->get(205) . '</label><input type="radio" name="operSuppl" id="OR" value="OR">
					</td>
					<td style="text-align:left">
						<textarea name="CondSuppl" cols="' . TEXTAREA_NB_COLS . '" rows="4"></textarea>
					</td>
				</tr>';
        echo '</table>';
        if (isset($req)) {
            echo '<input type="hidden" name="numId" value="' . $numId . '">' . "\n";
            echo '<input type="hidden" name="req" value="' . urlencode($req) . '">' . "\n";
        }
        echo '<input type="hidden" name="action" value="selectElement">' . "\n";
        if (isset($_REQUEST['currentPage'])) {
            echo '<input type="hidden" name="currentPage" value="' . $_REQUEST['currentPage'] . '">' . "\n";
        }
        echo '<input class="button" type="submit" value="' . $GLOBALS["traduct"]->get(201) . '" onclick="document.tabprop.submit();">';
        echo '</form>';
        echo '</center>';
        return;
    }
Example #7
0
    /**
     * Database attachment management and display
     *
     * @access public	
     */
    function attachDb()
    {
        // save form result Or Del attach database
        if (isset($_REQUEST['attach_action']) && $_REQUEST['attachId']) {
            switch ($_REQUEST['attach_action']) {
                case 'add':
                    $query = 'INSERT INTO attachment (base_id, attach_id) VALUES (' . quotes($GLOBALS['dbsel']) . ', ' . quotes($_REQUEST['attachId']) . ');';
                    break;
                case 'del':
                    $query = 'DELETE FROM attachment WHERE id=' . quotes($_REQUEST['attachId']) . ';';
                    break;
            }
            $GLOBALS['db']->query($query);
        }
        //echo "<script type=\"text/javascript\">parent.left.location.reload();</script>";
        // display attach database attach and form to add it
        $out = '<table width="80%"><tr><td align="center">';
        $out .= '<fieldset><legend>' . $GLOBALS['traduct']->get(146) . '</legend>
					<table class="Browse" cellspacing="0" width="200">
						<thead>
							<tr class="Browse">
								<td colspan=2 align="center" class="tapPropTitle">' . $GLOBALS['traduct']->get(131) . '</td>
							</tr>
						</thead>' . "\n";
        $tabAttach = SQLiteDbConnect::getAttachDb();
        $tabAttachId = array();
        foreach ($tabAttach as $attach_id => $attachInfo) {
            $tabAttachId[] = $attach_id;
            $color = $attach_id % 2 ? '#f7f3ef' : '#e7dfce';
            $out .= '		<tr class="Browse" bgcolor="' . $color . '">
							<td class="Browse">' . $attachInfo['name'] . '</td><td class="Browse" align="center"><a href="?dbsel=' . $GLOBALS['dbsel'] . '&amp;action=options&amp;options_action=attach&amp;attach_action=del&amp;attachId=' . $attachInfo['id'] . '">' . displayPics("supprime.gif", $GLOBALS['traduct']->get(86)) . '</a></td>
						</tr>' . "\n";
        }
        $query = 'SELECT * FROM database';
        $tabDb = $GLOBALS['db']->array_query($query, SQLITE_ASSOC);
        $out .= '			<tr class="Browse">
							<form name="attachDb" method="POST">
							<td style="padding:5px" colspan="2" align="center">
								<select name="attachId">
								<option value="">' . $GLOBALS['traduct']->get(227) . '</option>' . "\n";
        foreach ($tabDb as $dbInfo) {
            if (!in_array($dbInfo['id'], $tabAttachId) && $dbInfo['id'] != $GLOBALS['dbsel']) {
                $tempDb = $GLOBALS["SQLiteFactory"]->sqliteGetInstance($dbInfo["location"]);
                if (is_object($tempDb)) {
                    $versionNum = $tempDb->getVersion();
                    if ($versionNum == $this->connId->connId->getVersion()) {
                        $out .= '<option value="' . $dbInfo['id'] . '">' . $dbInfo['name'] . '</option>';
                    }
                }
            }
        }
        $out .= '						</select>
									<input class="button" type="submit" value="' . $GLOBALS['traduct']->get(43) . '">
							</td>
							<input type="hidden" name="dbsel" value="' . $GLOBALS['dbsel'] . '">
							<input type="hidden" name="action" value="options">
							<input type="hidden" name="options_action" value="attach">
							<input type="hidden" name="attach_action" value="add">
							</form>
						</tr>';
        $out .= '			</table>
				</fieldset>
			</td></tr></table>';
        return $out;
    }
    /**
     * Display one index properties
     */
    function linePropView($i, $info)
    {
        static $indexI;
        if ($indexI == '') {
            $indexI = 0;
        }
        if ($indexI % 2) {
            $localBgColor = $GLOBALS['browseColor1'];
        } else {
            $localBgColor = $GLOBALS['browseColor2'];
        }
        echo '	<tr bgcolor="' . $localBgColor . '" ' . 'onMouseOver="' . "setRowColor(this, {$indexI}, 'over', '{$localBgColor}', '" . $GLOBALS['browseColorOver'] . "', '" . $GLOBALS["browseColorClick"] . "')\" " . 'onMouseOut="' . "setRowColor(this, {$indexI}, 'out', '{$localBgColor}', '" . $GLOBALS["browseColorOver"] . "', '" . $GLOBALS["browseColorClick"] . "')\">\n" . '
					<td align="left" class="Index">' . $info['name'] . '</td>
					<td align="left" class="Index">' . $info['type'] . '</td>
					<td align="right" class="Index">' . implode('<br>', $info['champ']) . '</td>';
        if (strtoupper($i) != 'PRIMARY') {
            echo '		<td align="center" class="Index">';
            if (!$GLOBALS['workDb']->isReadOnly() && displayCondition('properties')) {
                echo '<a href="main.php?dbsel=' . $GLOBALS['dbsel'] . '&amp;table=' . $this->table . '&amp;index_action=modify&amp;indexSeq=' . $i . '" class="Browse" target="main">' . displayPics('edit.png', $GLOBALS['traduct']->get(14)) . '</a>';
            } else {
                echo '<i>' . displayPics('edit_off.png', $GLOBALS['traduct']->get(14)) . '</i>';
            }
            echo '</td>';
            echo '		<td align="center" class="Index">';
            if (!$GLOBALS['workDb']->isReadOnly() && displayCondition('properties')) {
                echo "<a href=\"#\" onClick=\"javascript:if(confirm('" . addslashes($GLOBALS['traduct']->get(92)) . " \\'" . $info['name'] . "\\'')) parent.main.location='main.php?dbsel=" . $GLOBALS['dbsel'] . "&amp;table=" . $this->table . "&amp;index_action=delete&amp;indexSeq=" . $i . "';" . '" class="Browse">' . displayPics('edittrash.png', $GLOBALS['traduct']->get(15)) . '</a>';
            } else {
                echo '<i>' . displayPics('edittrash_off.png', $GLOBALS['traduct']->get(15)) . '</i>';
            }
            echo '</td>';
        } else {
            echo '		<td align="center" class="Index">&nbsp;</td>';
            echo '		<td align="center" class="Index">&nbsp;</td>';
        }
        echo '	</tr>';
        $indexI++;
    }
 /**
  * Display one column properties
  *
  * @access private
  * @param integer $index Number of column
  */
 function linePropView($index)
 {
     if ($index % 2) {
         $localBgColor = $GLOBALS['browseColor1'];
     } else {
         $localBgColor = $GLOBALS['browseColor2'];
     }
     $textConfirm = $GLOBALS['traduct']->get(39) . '\\n' . $this->infoTable[$index]['name'] . '?';
     if (!$this->infoTable[$index]['notnull']) {
         $defltValue = '<i>NULL</i>';
     } elseif ($this->infoTable[$index]['dflt_value'] == '') {
         $defltValue = '&nbsp;';
     } else {
         $defltValue = $this->infoTable[$index]['dflt_value'];
     }
     $out = '';
     $out .= "\t<tr bgcolor='" . $localBgColor . "' onMouseOver=\"setRowColor(this, {$index}, 'over', '" . $localBgColor . "', '" . $GLOBALS['browseColorOver'] . "', '" . $GLOBALS['browseColorClick'] . "')\"\r\n\t\t\t\t\t\t\t\t\tonMouseOut=\"setRowColor(this, {$index}, 'out', '" . $localBgColor . "', '" . $GLOBALS['browseColorOver'] . "', '" . $GLOBALS['browseColorClick'] . "')\">\n";
     if (!$GLOBALS['workDb']->isReadOnly() && displayCondition("properties")) {
         $out .= '<td align="center" class="Browse"><input type="checkbox" name="modify[' . $index . ']"></td>' . "\n";
     }
     $out .= '<td align="left" class="Browse">' . $this->infoTable[$index]['name'] . '</td>' . "\n";
     $out .= '<td align="left" class="Browse">' . strtoupper($this->infoTable[$index]['type']) . '</td>' . "\n";
     $out .= '<td align="center" class="Browse">' . (!$this->infoTable[$index]['notnull'] ? $GLOBALS['traduct']->get(40) : $GLOBALS['traduct']->get(41)) . '</td>' . "\n";
     $out .= '<td align="right" class="Browse">' . $defltValue . '</td>' . "\n";
     $out .= '<td align="center" class="Browse" width="7%">';
     if (!$GLOBALS['workDb']->isReadOnly() && displayCondition("properties")) {
         $out .= "<a href=\"#\" onClick=\"javascript:setTableAction('tabprop', " . $index . ", 'modify');\" class=\"Browse\">" . displayPics("edit.png", $GLOBALS['traduct']->get(14)) . "</a>";
     } else {
         $out .= "<i>" . displayPics("edit_off.png", $GLOBALS['traduct']->get(14)) . "</i>";
     }
     $out .= '</td>' . "\n";
     $out .= '<td align="center" class="Browse" width="7%">';
     if (!$GLOBALS['workDb']->isReadOnly() && displayCondition("properties")) {
         $out .= "<a href=\"#\" onClick=\"javascript:if(confirm('" . $textConfirm . "')) setTableAction('tabprop', " . $index . ", 'delete');\" class=\"Browse\">" . displayPics("deletecol.png", $GLOBALS['traduct']->get(15)) . "</a>";
     } else {
         $out .= "<i>" . displayPics("deletecol_off.png", $GLOBALS['traduct']->get(15)) . "</i>";
     }
     $out .= '</td>' . "\n";
     $out .= '<td align="center" class="Browse" width="7%">';
     if (!$GLOBALS['workDb']->isReadOnly() && displayCondition("properties")) {
         $out .= "<a href=\"#\" onClick=\"javascript:setTableAction('tabprop', " . $index . ", 'unique');\" class=\"Browse\">" . displayPics("unique.png", $GLOBALS['traduct']->get(197)) . "</a>";
     } else {
         $out .= "<i>" . displayPics("unique_off.png", $GLOBALS['traduct']->get(197)) . "</i>";
     }
     $out .= '</td>' . "\n";
     $out .= '<td align="center" class="Browse" width="7%">';
     if (!$GLOBALS['workDb']->isReadOnly() && displayCondition("properties")) {
         $out .= "<a href=\"#\" onClick=\"javascript:setTableAction('tabprop', " . $index . ", 'index');\" class=\"Browse\">" . displayPics("index.png", $GLOBALS['traduct']->get(198)) . "</a>";
     } else {
         $out .= "<i>" . displayPics("index_off.png", $GLOBALS['traduct']->get(198)) . "</i>";
     }
     $out .= '</td>' . "\n";
     $out .= '<td align="center" class="Browse" width="7%">';
     if ($this->tablePrimary && isset($this->infoTable[$index]['primary']) && $this->infoTable[$index]['primary']) {
         if (!$GLOBALS['workDb']->isReadOnly() && displayCondition("properties")) {
             $out .= "<a href=\"#\" onClick=\"javascript:setTableAction('tabprop', " . $index . ", 'noprimary');\" class=\"Browse\">" . displayPics("primaire.png", $GLOBALS['traduct']->get(42)) . "</a>";
         } else {
             $out .= "<i>" . displayPics("primaire_off.png", $GLOBALS['traduct']->get(42)) . "</i>";
         }
     } elseif ($this->tablePrimary && (!isset($this->infoTable[$index]['primary']) || !$this->infoTable[$index]['primary'])) {
         $out .= '&nbsp;';
     } elseif (!$this->tablePrimary) {
         if (!$GLOBALS['workDb']->isReadOnly() && displayCondition("properties")) {
             $out .= "<a href=\"#\" onClick=\"javascript:setTableAction('tabprop', " . $index . ", 'addprimary');\" class=\"Browse\">" . displayPics("primaire.png", $GLOBALS['traduct']->get(42)) . "</a>";
         } else {
             $out .= '<i>' . displayPics("primaire.png", $GLOBALS['traduct']->get(42)) . '</i>';
         }
     }
     $out .= '</td>';
     $out .= '	</tr>';
     return $out;
 }