#5344 validation of PDF fields for the open version

This commit is contained in:
Jorge Rincon 2023-04-26 13:05:50 +02:00
parent 3a318436a9
commit b6e0dd5998
1 changed files with 23 additions and 17 deletions

View File

@ -38,6 +38,9 @@ require_once $config['homedir'].'/include/db/oracle.php';
// Login check. // Login check.
check_login(); check_login();
// Validate enterprise.
$is_enterprise = enterprise_installed();
if (! check_acl($config['id_user'], 0, 'RW') if (! check_acl($config['id_user'], 0, 'RW')
&& ! check_acl($config['id_user'], 0, 'RM') && ! check_acl($config['id_user'], 0, 'RM')
) { ) {
@ -3645,25 +3648,28 @@ $class = 'databox filters';
?> ?>
</td> </td>
</tr> </tr>
<?php
<tr id="row_landscape" class="datos"> if ($is_enterprise) {
<td class="bolder">
<?php
echo __('Show item in landscape format (only PDF)');
?> ?>
</td> <tr id="row_landscape" class="datos">
<td><?php html_print_checkbox_switch('landscape', 1, $landscape); ?></td> <td class="bolder">
</tr> <?php
echo __('Show item in landscape format (only PDF)');
<tr id="row_pagebreak" class="datos"> ?>
<td class="bolder"> </td>
<td><?php html_print_checkbox_switch('landscape', 1, $landscape); ?></td>
</tr>
<tr id="row_pagebreak" class="datos">
<td class="bolder">
<?php
echo __('Page break at the end of the item (only PDF)');
?>
</td>
<td><?php html_print_checkbox_switch('pagebreak', 1, $pagebreak); ?></td>
</tr>
<?php <?php
echo __('Page break at the end of the item (only PDF)'); }
?> ?>
</td>
<td><?php html_print_checkbox_switch('pagebreak', 1, $pagebreak); ?></td>
</tr>
<tr id="row_agents_inventory_display_options" class="datos"> <tr id="row_agents_inventory_display_options" class="datos">
<td class="bolder"> <td class="bolder">
<?php <?php