foreach ($allTables as $k => $table) { $db->setQuery(sprintf($infoQuery, $dbName, $dbPrefix . $table->name)); $status = $db->loadAssocList(); $db->setQuery(sprintf($columnQuery, $dbPrefix . $table->name)); $fields = $db->loadAssocList(); $table->status = isset($status[0]) ? $status[0] : array(); $table->hasInstall = array_key_exists($table->name, $discoveredTables) ? $discoveredTables[$table->name]->install : false; $table->isRegistered = array_key_exists($table->name, $this->project->tables) ? true : false; $table->inDB = in_array($dbPrefix . $table->name, $dbTables) ? true : false; if (count($fields)) { $table->addFields($fields); } $tables[] = $table; } //foreach $autocodeList = EcrProjectHelper::getAutoCodeList(); ?> <input type="hidden" name="table_name" id="table_name" /> <div id="addElementMessage"></div> <div id="addBox"> <div class="closeButton" onclick="document.id('addBox').style.display='none';">X</div> <div id="addPartShow" > <strong style="color: red;"><?php echo jgettext('Select an element'); ?> </strong> </div> </div>