183 lines
6.2 KiB
PHP
183 lines
6.2 KiB
PHP
<?php
|
|
$viewdefs ['Documents'] = array (
|
|
'DetailView' => array (
|
|
'templateMeta' => array (
|
|
'maxColumns' => '2',
|
|
'form' => array (
|
|
'hidden' => array (
|
|
0 => '<input type="hidden" name="old_id" value="{$fields.document_revision_id.value}">'
|
|
),
|
|
'buttons' => array (
|
|
|
|
0 => array (
|
|
'customCode' => '{if $EDIT_ENABLE==1}<input title="Edytuj [Alt+E]" accesskey="E" class="button primary" onclick="this.form.return_module.value=\'Documents\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'EditView\';" type="submit" name="Edit" id="edit_button" value="Edytuj">{/if}'
|
|
),
|
|
1 => array (
|
|
'customCode' => '{if $EDIT_ENABLE==1}<input title="Usuń [Alt+D]" accesskey="E" class="button primary" onclick="{literal}var r = confirm(\'Czy napewno usunąć ten dokument?\');if (r == true) {$(\'#delete_button\').attr(\'type\',\'submit\');this.form.return_module.value=\'Documents\';this.form.return_action.value=\'ListView\'; this.form.return_id.value=\'{/literal}{$fields.id.value}{literal}\'; this.form.action.value=\'Delete\';} else {$(\'#delete_button\').attr(\'type\',\'button\');}{/literal}" type="submit" name="delete" id="delete_button" value="Usuń">{/if}'
|
|
)
|
|
)
|
|
),
|
|
'widths' => array (
|
|
0 => array (
|
|
'label' => '10',
|
|
'field' => '30'
|
|
),
|
|
1 => array (
|
|
'label' => '10',
|
|
'field' => '30'
|
|
)
|
|
)
|
|
),
|
|
'panels' => array (
|
|
'LBL_DOCUMENT_INFORMATION' => array (
|
|
0 => array (
|
|
0 => array (
|
|
'name' => 'filename',
|
|
'displayParams' => array (
|
|
'link' => 'filename',
|
|
'id' => 'document_revision_id'
|
|
)
|
|
),
|
|
1 => array (
|
|
'name' => 'status',
|
|
'comment' => 'Document status for Meta-Data framework',
|
|
'label' => 'LBL_DOC_STATUS'
|
|
)
|
|
),
|
|
1 => array (
|
|
0 => array (
|
|
'name' => 'document_name',
|
|
'label' => 'LBL_DOC_NAME'
|
|
),
|
|
1 => array (
|
|
'name' => 'revision',
|
|
'label' => 'LBL_DOC_VERSION'
|
|
)
|
|
),
|
|
2 => array (
|
|
0 => array (
|
|
'name' => 'active_date',
|
|
'label' => 'LBL_DOC_ACTIVE_DATE'
|
|
),
|
|
1 => array (
|
|
'name' => 'parent_name',
|
|
'label' => 'LBL_PARENT_NAME'
|
|
)
|
|
),
|
|
4 => array (
|
|
0 => array (
|
|
'name' => 'related_doc_name',
|
|
'comment' => 'The related document name for Meta-Data framework',
|
|
'label' => 'LBL_DET_RELATED_DOCUMENT'
|
|
),
|
|
1 => array (
|
|
'name' => 'related_doc_rev_number',
|
|
'comment' => 'The related document version number for Meta-Data framework',
|
|
'label' => 'LBL_DET_RELATED_DOCUMENT_VERSION'
|
|
)
|
|
),
|
|
5 => array (
|
|
0 => array (
|
|
'name' => 'value',
|
|
'label' => 'LBL_VALUE'
|
|
),
|
|
1 => array (
|
|
'name' => 'left_paid',
|
|
'label' => 'LBL_VALUE_PAID'
|
|
)
|
|
),
|
|
6 => array (
|
|
0 => array (
|
|
'name' => 'payment_date'
|
|
),
|
|
1 => array (
|
|
'name' => 'currency_id',
|
|
'label' => 'LBL_CURRENCY'
|
|
|
|
)
|
|
|
|
),
|
|
7 => array (
|
|
'corrected_document_name',
|
|
'currency_value'
|
|
),
|
|
|
|
8 => array (
|
|
0 => array (
|
|
|
|
'name' => 'items_list_panel',
|
|
'hideLabel' => false,
|
|
'label' => 'Powiązane z',
|
|
'customCode' => " {include file='modules/Documents/tpl/parentlist_DetailView.tpl'}"
|
|
/*
|
|
* <input type="hidden" name="websites_list" id="websites_list" value=\'{$WEBSITES_LIST}\'>
|
|
* <div style="width:30%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV2">
|
|
*
|
|
* </div><br>',
|
|
*/
|
|
|
|
),
|
|
1 => array (
|
|
'name' => 'items_list_panel',
|
|
'hideLabel' => false,
|
|
'label' => 'LBL_USERS_NAME',
|
|
'customCode' => " {include file='modules/Documents/tpl/userlist_DetailView.tpl'}"
|
|
/*
|
|
* <input type="hidden" name="websites_list" id="websites_list" value=\'{$WEBSITES_LIST}\'>
|
|
* <div style="width:30%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV2">
|
|
* </div><br>',
|
|
*/
|
|
)
|
|
|
|
),
|
|
9 => array (
|
|
0 => array (
|
|
'name' => 'document_date',
|
|
'label' => 'LBL_DOCUMENT_DATE'
|
|
),
|
|
1 => array (
|
|
'name' => 'document_type',
|
|
'label' => 'Typ faktury'
|
|
),
|
|
|
|
|
|
)
|
|
|
|
),
|
|
'LBL_PANEL_CATEGORIES' => array (
|
|
0 => array (
|
|
0 => array (
|
|
'name' => 'items_list_panel',
|
|
'allCols' => true,
|
|
'hideLabel' => true,
|
|
'customCode' => '{$POSITIONS3}'
|
|
)
|
|
)
|
|
),
|
|
'Stawki VAT' => array (
|
|
0 => array (
|
|
0 => array (
|
|
'name' => 'items_list_panel',
|
|
'allCols' => true,
|
|
'hideLabel' => true,
|
|
'customCode' => " {include file='modules/Documents/tpl/vatlist_DetailView.tpl'}"
|
|
)
|
|
)
|
|
),
|
|
'LBL_REVISIONS_PANEL' => array (
|
|
0 => array (
|
|
0 => array (
|
|
'name' => 'last_rev_created_name',
|
|
'label' => 'LBL_LAST_REV_CREATOR'
|
|
),
|
|
1 => array (
|
|
'name' => 'last_rev_create_date',
|
|
'label' => 'LBL_LAST_REV_CREATE_DATE'
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
);
|
|
?>
|