コード例 #1
0
ファイル: dbcContent.php プロジェクト: Corsol/webDBDocs
            if ($i == 1) {
                $class = "start";
            } else {
                if ($i == count($row)) {
                    $class .= " end";
                }
            }
            echo '<th class="' . $class . ' top">
				' . $key . '
			</th>';
            $i++;
        }
        echo '</tr>';
        $sql = "SELECT * FROM " . $GLOBALS["dbcSchema"] . ".dbc_" . $_GET["dbcName"];
        $res = $dataManager->executeQuery($sql, false);
        while ($row = $dataManager->getNext($res)) {
            //print_r($row);
            echo '<tr>';
            $i = 1;
            foreach ($row as $cell) {
                $class = "cell";
                if ($i == 1) {
                    $class = "start";
                } else {
                    if ($i == count($row)) {
                        $class .= " end";
                    }
                }
                echo ' <td class="' . $class . '">
					' . $cell . '
				</td>';
コード例 #2
0
ファイル: dbStructure.php プロジェクト: Corsol/webDBDocs
            <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                <span class="ui-dialog-title">
                	Documented tables
                </span>
            </div>
            <div class="ui-dialog-content ui-widget-content" style="width: auto; height: auto; text-align: left; height: 700px; overflow:auto" id="divTables">
            	<div id="divList">
	            <ul>
<?php 
$dataManager = new DataManager();
$dataManager->dbName = $_GET["database"];
$dataManager->connect();
$sql = "SELECT * FROM " . $dataManager->dbName . ".dbdocstable";
$resource = $dataManager->executeQuery($sql, false);
if ($resource) {
    while ($row = $dataManager->getNext($resource)) {
        echo '<li><a href="#divTab" onclick="showDetails(\'' . $row["tableName"] . '\')">' . $row["tableName"] . '</a></li>';
    }
} else {
    echo "No dbdocstable found for docs!";
}
$dataManager->disconnect();
?>
	            </ul>
                <div id="divTab" style="display: none; width: 0px; height: 0px;">
                </div>
                </div>
            </div>
        </div>
    </div>
	<div style="display:table-cell; padding: 5px; vertical-align: top;  width:75%">