Merge remote branch 'origin/master'
[phpmyadmin/dkf.git] / libraries / display_pdf_schema.lib.php
blobad12fc3d6de0902e7f6805de5b309807268d8db4
1 <!-- PDF schema -->
2 <form method="post" action="pdf_schema.php">
3 <fieldset>
4 <legend>
5 <?php
6 echo PMA_generate_common_hidden_inputs($db);
7 if ($cfg['PropertiesIconic']) {
8 echo '<img class="icon" src="' . $pmaThemeImage . 'b_view.png"'
9 .' alt="" width="16" height="16" />';
11 echo __('Display PDF schema');
12 ?>:
13 </legend>
14 <?php
15 if (isset($test_rs)) {
17 <label for="pdf_page_number_opt"><?php echo __('Page number:'); ?></label>
18 <select name="pdf_page_number" id="pdf_page_number_opt">
19 <?php
20 while ($pages = @PMA_DBI_fetch_assoc($test_rs)) {
21 echo ' <option value="' . $pages['page_nr'] . '">'
22 . $pages['page_nr'] . ': ' . htmlspecialchars($pages['page_descr']) . '</option>' . "\n";
23 } // end while
24 PMA_DBI_free_result($test_rs);
25 unset($test_rs);
27 </select><br />
28 <?php } else { ?>
29 <input type="hidden" name="pdf_page_number" value="<?php echo htmlspecialchars($chpage); ?>" />
30 <?php } ?>
32 <input type="checkbox" name="show_grid" id="show_grid_opt" />
33 <label for="show_grid_opt"><?php echo __('Show grid'); ?></label><br />
34 <input type="checkbox" name="show_color" id="show_color_opt"
35 checked="checked" />
36 <label for="show_color_opt"><?php echo __('Show color'); ?></label><br />
37 <input type="checkbox" name="show_table_dimension" id="show_table_dim_opt" />
38 <label for="show_table_dim_opt"><?php echo __('Show dimension of tables'); ?>
39 </label><br />
40 <input type="checkbox" name="all_tab_same_wide" id="all_tab_same_wide" />
41 <label for="all_tab_same_wide"><?php echo __('Display all tables with the same width'); ?>
42 </label><br />
43 <input type="checkbox" name="with_doc" id="with_doc" checked="checked" />
44 <label for="with_doc"><?php echo __('Data Dictionary'); ?></label><br />
45 <input type="checkbox" name="show_keys" id="show_keys" />
46 <label for="show_keys"><?php echo __('Only show keys'); ?></label><br />
48 <label for="orientation_opt"><?php echo __('Data Dictionary Format'); ?></label>
49 <select name="orientation" id="orientation_opt">
50 <option value="L"><?php echo __('Landscape');?></option>
51 <option value="P"><?php echo __('Portrait');?></option>
52 </select><br />
54 <label for="paper_opt"><?php echo __('Paper size'); ?></label>
55 <select name="paper" id="paper_opt">
56 <?php
57 foreach ($cfg['PDFPageSizes'] AS $key => $val) {
58 echo '<option value="' . $val . '"';
59 if ($val == $cfg['PDFDefaultPageSize']) {
60 echo ' selected="selected"';
62 echo ' >' . $val . '</option>' . "\n";
65 </select>
66 </fieldset>
67 <fieldset class="tblFooters">
68 <input type="submit" value="<?php echo __('Go'); ?>" />
69 </fieldset>
70 </form>