Exemplo n.º 1
0
	<div style="display:table-cell; padding: 5px; vertical-align: top;  width:25%">
        <div class="ui-dialog ui-widget ui-widget-content ui-corner-all" style="position: relative; margin-bottom: 10px;">
            <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>
Exemplo n.º 2
0
    } else {
        //echo '<p>Warning! Infommation not avaiable. Add into database</p>';
        echo "<b>**no DBC information got.</b>";
    }
    //$notes = str_replace($found, "TABELLA!",$notes);
}
if (isset($GLOBALS["dbcSchema"]) && $GLOBALS["dbcSchema"] != "") {
    ?>
	<br /><br />
	<h3>Content readed from database</h3>
	<br />
	
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tblFind">
<?php 
    $sql = "SELECT * FROM " . $GLOBALS["dbcSchema"] . ".dbc_" . $_GET["dbcName"];
    $row = $dataManager->executeQuery($sql);
    if ($row) {
        //print_r($row);
        echo '<tr>';
        $i = 1;
        foreach ($row as $key => $value) {
            $class = "cell";
            if ($i == 1) {
                $class = "start";
            } else {
                if ($i == count($row)) {
                    $class .= " end";
                }
            }
            echo '<th class="' . $class . ' top">
				' . $key . '
Exemplo n.º 3
0
$dataManager = new DataManager();
$dataManager->dbName = $_GET["database"];
$dataManager->connect();
$editType = $_GET["type"];
$editRowId = $_GET["id"];
if (isset($editRowId)) {
    $sql = "";
    switch ($editType) {
        case "dbdocstable":
            break;
        case "dbdocsubstable":
            break;
        case "dbdocsfields":
            if (!isset($_GET["applyModify"])) {
                $sql = "SELECT * FROM " . $dataManager->dbName . ".dbdocsfields WHERE fieldId = " . chkVars($editRowId);
                $row = $dataManager->executeQuery($sql);
                if ($row) {
                    ?>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tblFind">
        <tr>
            <th class="start top">
                Field ID
            </th>
            <td class="cell end top">
            	<?php 
                    echo $editRowId;
                    ?>
            </td>
        </tr>
        <tr>
            <th class="start">