patch #2122883 [PDF schema] Option to display just the keys
This commit is contained in:
@@ -24,6 +24,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
||||
- patch #2099962 [js] fix js error without frameset, thanks to Xuefer
|
||||
- patch #2099972 [structure] Display None when there is no default value,
|
||||
thanks to Xuefer - xuefer
|
||||
- patch #2122883 [PDF schema] Option to display just the keys,
|
||||
thanks to Samuel Sol Villar dos Santos - yohanleafheart
|
||||
|
||||
3.0.1.0 (not yet released)
|
||||
|
||||
|
@@ -630,6 +630,8 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?>
|
||||
</label><br />
|
||||
<input type="checkbox" name="with_doc" id="with_doc" checked="checked" />
|
||||
<label for="with_doc"><?php echo $strDataDict; ?></label><br />
|
||||
<input type="checkbox" name="show_keys" id="show_keys" />
|
||||
<label for="show_keys"><?php echo $strShowKeys; ?></label><br />
|
||||
|
||||
<label for="orientation_opt"><?php echo $strShowDatadictAs; ?></label>
|
||||
<select name="orientation" id="orientation_opt">
|
||||
|
@@ -1119,4 +1119,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1118,4 +1118,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1120,4 +1120,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1115,4 +1115,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1094,4 +1094,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1112,4 +1112,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1095,4 +1095,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1103,4 +1103,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1118,4 +1118,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1092,4 +1092,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1115,4 +1115,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1090,4 +1090,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1120,4 +1120,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1099,4 +1099,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1093,4 +1093,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1097,4 +1097,5 @@ $strPBXTRowFileGrowSize = 'Row file grow size'; //to translate
|
||||
$strPBXTTransactionBufferSizeDesc = 'The size of the global transaction log buffer (the engine allocates 2 buffers of this size). The default is 1MB.'; //to translate
|
||||
$strPBXTTransactionBufferSize = 'Transaction buffer size'; //to translate
|
||||
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1094,4 +1094,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1116,4 +1116,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -792,6 +792,7 @@ $strShowingBookmark = 'Showing bookmark';
|
||||
$strShowingPhp = 'Showing as PHP code';
|
||||
$strShowingRecords = 'Showing rows';
|
||||
$strShowingSQL = 'Showing SQL query';
|
||||
$strShowKeys = 'Only show keys';
|
||||
$strShowOpenTables = 'Show open tables';
|
||||
$strShowPHPInfo = 'Show PHP information';
|
||||
$strShow = 'Show';
|
||||
|
@@ -1100,4 +1100,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1094,4 +1094,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1091,4 +1091,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1093,4 +1093,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1120,4 +1120,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1100,4 +1100,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1117,4 +1117,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1112,4 +1112,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1120,4 +1120,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1103,4 +1103,5 @@ $strViewImage = 'View image'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1110,4 +1110,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1094,4 +1094,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1111,4 +1111,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1115,4 +1115,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1117,4 +1117,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1110,4 +1110,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1095,4 +1095,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1132,4 +1132,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1115,4 +1115,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1092,4 +1092,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1117,4 +1117,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1088,4 +1088,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1121,4 +1121,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1109,4 +1109,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1096,4 +1096,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1094,4 +1094,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1094,4 +1094,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1097,4 +1097,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1095,4 +1095,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1114,4 +1114,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1090,4 +1090,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1092,4 +1092,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1106,4 +1106,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1116,4 +1116,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1100,4 +1100,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -1114,4 +1114,5 @@ $strPlayAudio = 'Play audio'; //to translate
|
||||
$strViewVideo = 'View video'; //to translate
|
||||
$strDownloadFile = 'Download file'; //to translate
|
||||
$strLogServerHelp = 'You can enter hostname/IP address and port separated by space.'; //to translate
|
||||
$strShowKeys = 'Only show keys'; //to translate
|
||||
?>
|
||||
|
@@ -16,6 +16,7 @@ require_once './libraries/common.inc.php';
|
||||
*/
|
||||
require_once './libraries/relation.lib.php';
|
||||
require_once './libraries/transformations.lib.php';
|
||||
require_once './libraries/Index.class.php';
|
||||
|
||||
$cfgRelation = PMA_getRelationsParam();
|
||||
|
||||
@@ -616,7 +617,7 @@ class PMA_RT_Table {
|
||||
* @see PMA_PDF, PMA_RT_Table::PMA_RT_Table_setWidth,
|
||||
PMA_RT_Table::PMA_RT_Table_setHeight
|
||||
*/
|
||||
function __construct($table_name, $ff, &$same_wide_width)
|
||||
function __construct($table_name, $ff, &$same_wide_width, $show_keys)
|
||||
{
|
||||
global $pdf, $pdf_page_number, $cfgRelation, $db;
|
||||
|
||||
@@ -627,9 +628,19 @@ class PMA_RT_Table {
|
||||
$pdf->PMA_PDF_die(sprintf($GLOBALS['strPdfInvalidTblName'], $table_name));
|
||||
}
|
||||
// load fields
|
||||
//check to see if it will load all fields or only the foreign keys
|
||||
if($show_keys){
|
||||
$indexes = PMA_Index::getFromTable($this->table_name, $db);
|
||||
$all_columns = array();
|
||||
foreach($indexes as $index) {
|
||||
$all_columns = array_merge($all_columns, array_flip(array_keys($index->getColumns())));
|
||||
}
|
||||
$this->fields = array_keys($all_columns);
|
||||
}else{
|
||||
while ($row = PMA_DBI_fetch_row($result)) {
|
||||
$this->fields[] = $row[0];
|
||||
}
|
||||
}
|
||||
// height and width
|
||||
$this->PMA_RT_Table_setWidth($ff);
|
||||
$this->PMA_RT_Table_setHeight();
|
||||
@@ -952,13 +963,14 @@ class PMA_RT {
|
||||
* everywhere, due to some problems printing with color
|
||||
* @param boolean $ Whether to draw grids or not
|
||||
* @param boolean $ Whether all tables should have the same width or not
|
||||
* @param boolean $ Wheter to show all field or only the keys
|
||||
* @global object The current PDF document
|
||||
* @global string The current db name
|
||||
* @global array The relations settings
|
||||
* @access private
|
||||
* @see PMA_PDF
|
||||
*/
|
||||
function __construct($which_rel, $show_info = 0, $change_color = 0, $show_grid = 0, $all_tab_same_wide = 0, $orientation = 'L', $paper = 'A4')
|
||||
function __construct($which_rel, $show_info = 0, $change_color = 0, $show_grid = 0, $all_tab_same_wide = 0, $orientation = 'L', $paper = 'A4', $show_keys = 0)
|
||||
{
|
||||
global $pdf, $db, $cfgRelation, $with_doc;
|
||||
|
||||
@@ -1012,7 +1024,7 @@ class PMA_RT {
|
||||
|
||||
foreach ($alltables AS $table) {
|
||||
if (!isset($this->tables[$table])) {
|
||||
$this->tables[$table] = new PMA_RT_Table($table, $this->ff, $this->tablewidth);
|
||||
$this->tables[$table] = new PMA_RT_Table($table, $this->ff, $this->tablewidth, $show_keys);
|
||||
}
|
||||
|
||||
if ($this->same_wide) {
|
||||
@@ -1376,8 +1388,9 @@ $all_tab_same_wide = (isset($all_tab_same_wide) && $all_tab_same_wide == 'o
|
||||
$with_doc = (isset($with_doc) && $with_doc == 'on') ? 1 : 0;
|
||||
$orientation = (isset($orientation) && $orientation == 'P') ? 'P' : 'L';
|
||||
$paper = isset($paper) ? $paper : 'A4';
|
||||
$show_keys = (isset($show_keys) && $show_keys == 'on') ? 1 : 0;
|
||||
PMA_DBI_select_db($db);
|
||||
|
||||
$rt = new PMA_RT($pdf_page_number, $show_table_dimension, $show_color, $show_grid, $all_tab_same_wide, $orientation, $paper);
|
||||
$rt = new PMA_RT($pdf_page_number, $show_table_dimension, $show_color, $show_grid, $all_tab_same_wide, $orientation, $paper, $show_keys);
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user