getHeader(); $header->enablePrintView(); $relation = new Relation(); /** * Gets the relations settings */ $cfgRelation = $relation->getRelationsParam(); /** * Check parameters */ PhpMyAdmin\Util::checkParameters(array('db')); /** * Defines the url to return to in case of error in a sql statement */ $err_url = 'db_sql.php' . Url::getCommon(array('db' => $db)); if ($cfgRelation['commwork']) { $comment = $relation->getDbComment($db); /** * Displays DB comment */ if ($comment) { echo '
' , __('Database comment')
, '
' , htmlspecialchars($comment) , '
' , __('Column') , ' | '; echo '' , __('Type') , ' | '; echo '' , __('Null') , ' | '; echo '' , __('Default') , ' | '; if ($have_rel) { echo '' , __('Links to') , ' | ' , "\n"; } echo '' , __('Comments') , ' | ' , "\n"; if ($cfgRelation['mimework']) { echo 'MIME | ' , "\n"; } echo '
---|---|---|---|---|---|---|
'; echo htmlspecialchars($column_name); if (isset($pk_array[$row['Field']])) { echo ' (' , __('Primary') , ')'; } echo ' | '; echo '' , $type , ' | '; echo ''; echo (($row['Null'] == 'NO') ? __('No') : __('Yes')); echo ' | '; echo ''; if (isset($row['Default'])) { echo $row['Default']; } echo ' | '; if ($have_rel) { echo ''; if ($foreigner = $relation->searchColumnInForeigners($res_rel, $column_name)) { echo htmlspecialchars( $foreigner['foreign_table'] . ' -> ' . $foreigner['foreign_field'] ); } echo ' | ' , "\n"; } echo ''; if (isset($comments[$column_name])) { echo htmlspecialchars($comments[$column_name]); } echo ' | ' , "\n"; if ($cfgRelation['mimework']) { $mime_map = Transformations::getMIME($db, $table, true); echo ''; if (isset($mime_map[$column_name])) { echo htmlspecialchars( str_replace('_', '/', $mime_map[$column_name]['mimetype']) ); } echo ' | ' , "\n"; } echo '