Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$searchFields['EcmFkVatKinds'] =
array (
'ecmfkvatkind_name' => array( 'query_type'=>'default'),
'category_id'=> array('query_type'=>'default', 'options' => 'ecmfkvatkind_category_dom', 'template_var' => 'CATEGORY_OPTIONS'),
'subcategory_id'=> array('query_type'=>'default', 'options' => 'ecmfkvatkind_subcategory_dom', 'template_var' => 'SUBCATEGORY_OPTIONS'),
'active_date'=> array('query_type'=>'default'),
'exp_date'=> array('query_type'=>'default'),
);
?>

View File

@@ -0,0 +1,331 @@
<?php
/* * *******************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
*
* "Powered by SugarCRM".
* ****************************************************************************** */
$viewdefs['EcmFkVatKinds']['DetailView'] = array(
'templateMeta' => array(
'maxColumns' => '2',
'form' => array(
'hidden' => array(
'<input type="hidden" name="items_list" id="items_list" value="{$POSITION_LIST}"/>',
'<input type="hidden" name="record" id="record" value="{$RECORD}"/>',
'<input type="hidden" name="i_type" id="i_type" value="{$fields.type.value}"/>',
),
),
'widths' => array(
array(
'label' => '10',
'field' => '30',
),
array(
'label' => '10',
'field' => '30',
),
),
'includes' => array(
array(
'file' => 'include/JSON.js',
),
array(
'file' => 'modules/EcmFkVatKinds/MyTable.js',
),
array(
'file' => 'modules/EcmFkVatKinds/EcmFkVatKinds.js',
),
array(
'file' => 'modules/EcmFkVatKinds/EcmFkVatKindsDetailView.js',
),
array(
'file' => 'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js',
),
),
),
'panels' => array(
'LBL_ECMFKBOOK_DETAILS' => array(
// 'id',
array(
// 'created_by_name',
array (
'label' => 'LBL_CREATED_BY_NAME',
'customCode' => '{if $fields.created_by_name.value}{$fields.created_by_name.value}{else}-{/if}',
),
// 'modified_by_name',
array (
'label' => 'LBL_MODIFIED_BY_NAME',
'customCode' => '{if $fields.modified_by_name.value}{$fields.modified_by_name.value}{else}-{/if}',
),
),
array(
// 'date_entered',
array (
'label' => 'LBL_DATE_ENTERED',
'customCode' => '{if $fields.date_entered.value}{$fields.date_entered.value}{else}nigdy{/if}',
),
// 'date_modified',
array (
'label' => 'LBL_DATE_MODIFIED',
'customCode' => '{if $fields.date_modified.value}{$fields.date_modified.value}{else}nigdy{/if}',
),
),
array(
'type',
'position',
),
array(
'name',
// '',
),
/*
array(
'title_1',
'',
),
array(
'col_1_1',
'col_2_1',
),
array(
'title_2',
'',
),
array(
'col_1_2',
'col_2_2',
),
array(
'title_3',
'',
),
array(
'col_1_3',
'col_2_3',
),
array(
'title_4',
'',
),
array(
'col_1_4',
'col_2_4',
),
array(
'title_5',
'',
),
array(
'col_1_5',
'col_2_5',
),
*/
array(
// 'acc',
'acc_code',
// '',
),
/*
array(
'order_1',
'order_2',
),
array(
'order_3',
'order_4',
),
array(
'order_5',
'',
),
*/
array(
// 'ident_k',
// 'ident_k_name',
'ident_k_filter',
// 'id_dok',
// '',
),
// array(
// 'order_ue',
// '',
// ),
/*
array(
'nr_1',
'nr_2',
),
*/
// array(
// 'temp_vat',
// '',
// ),
/*
array(
'p_1',
'p_2',
),
array(
'p_3',
'p_4',
),
array(
'p_5',
'',
),
*/
// array(
// 'spr_dok',
// 'kp_date',
// ),
array(
'orientation',
// '',
),
array(
// 'deleted',
array (
'label' => 'LBL_DELETED',
'customCode' => '{if $fields.deleted.value}Tak{else}Nie{/if}',
),
// '',
),
),
'LBL_ITEMS' => array(
array(
array(
'name' => 'position_list',
'allCols' => true,
'hideLabel' => true,
'customCode' =>
'
<link rel="stylesheet" type="text/css" href="modules/EcmFkVatRegisters/MyTable.css" />
<!--<link rel="stylesheet" type="text/css" href="modules/EcmFkVatTables/AjaxSearch/AjaxSearch.css" />-->
<div style="width: 100%; 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="itemsTableDIV">
<table class="positions" style="width: 100%;" id="itemsTable">
<thead id="head">
<tr id="tr">
<td width="20%">{$MOD.LBL_EDITABLE_TITLE}</td>
<td>{$MOD.LBL_EDITABLE_COL}</td>
<td width="10%">{$MOD.LBL_EDITABLE_ORDER}</td>
<!--<td>{$MOD.LBL_EDITABLE_P}</td>-->
<!--<td width="5%">{$MOD.LBL_EDITABLE_OPTIONS}</td>-->
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
',
),
),
),
'LBL_PREVIEW_TAB' => array(
array(
array(
'name' => 'preview_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' =>
'
<table>
<tr>
<td>
Wydruk:
</td>
<td>
<select id="preview_type" name="preview_type" onChange="preview_pdf();">
{$OPTIONS}
</select>
</td>
<td>
Od:
</td>
<td>
<input autocomplete="off" name="date_from" id="date_from" value="{$date_from}" title="" tabindex="" size="11" maxlength="10" type="text" class="passable">
<img src="themes/default/images/jscalendar.gif" alt="Enter Date" id="date_from_trigger" align="absmiddle" border="0">
<script type="text/javascript">
{literal}
Calendar.setup ({
inputField : \'date_from\',
daFormat : \'%d.%m.%Y\',
button : \'date_from_trigger\',
singleClick : true,
dateStr : \'\',
step : 1
});
{/literal}
</script>
</td>
<td>
Do:
</td>
<td>
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="" tabindex="" size="11" maxlength="10" type="text" class="passable">
<img src="themes/default/images/jscalendar.gif" alt="Enter Date" id="date_to_trigger" align="absmiddle" border="0">
<script type="text/javascript">
{literal}
Calendar.setup ({
inputField : \'date_to\',
daFormat : \'%d.%m.%Y\',
button : \'date_to_trigger\',
singleClick : true,
dateStr : \'\',
step : 1
});
{/literal}
</script>
</td>
<td>
Dokumenty sprawdzone:
</td>
<td>
<input type="checkbox" id="doc_checked" name="doc_checked" value="1" {$DOC_CHECKED}/>
</td>
<td>
<input type="button" class="button" onClick="preview_pdf();" value="Generuj"/>
</td>
</tr>
</table>
<hr>
<span id="previewPDF" width="100%" height="100%"></span>
',
),
),
),
),
);

View File

@@ -0,0 +1,273 @@
<?php
/* * *******************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
*
* "Powered by SugarCRM".
* ****************************************************************************** */
$viewdefs['EcmFkVatKinds']['EditView'] = array(
'templateMeta' => array(
'form' => array(
'buttons' => array(
array(
'customCode' => '
<input type="submit" name="save" class="button" value="Zapisz" onclick="/*updatePositions();*/ saveItems(true); this.form.action.value=\'Save\'; /*return false;*/" />
',
),
'CANCEL',
),
'enctype' => 'multipart/form-data',
'hidden' => array(
'<input type="hidden" name="items_list" id="items_list" value="{$POSITION_LIST}"/>',
'<input type="hidden" name="translations" id="translations" value="{$TRANSLATIONS}"/>',
),
),
'maxColumns' => '2',
'widths' => array(
array(
'label' => '10',
'field' => '30',
),
array(
'label' => '10',
'field' => '30',
),
),
/*
'javascript' =>
'
<script type="text/javascript" src="include/javascript/popup_parent_helper.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/jsolait/init.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/jsolait/lib/urllib.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/javascript/jsclass_base.js"></script>
<script type="text/javascript" src="include/javascript/jsclass_async.js"></script>
<script type="text/javascript" src="include/JSON.js?s={$SUGAR_VERSION}"></script>
<script type="text/javascript" src="modules/EcmFkVatKinds/EcmFkVatKinds.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="modules/EcmFkVatKinds/EcmFkVatKindsEditView.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
',
*/
'includes' => array(
array(
'file' => 'include/JSON.js',
),
/*
array(
'file' => 'include/javascript/quicksearch.js',
),
array(
'file' => 'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js',
),
array(
'file' => 'modules/EcmFkVatKinds/AjaxSearch/AjaxSearch.js',
),
array(
'file' => 'modules/EcmFkVatKinds/formloader.js',
),
*/
array(
'file' => 'modules/EcmFkVatKinds/MyTable.js',
),
array(
'file' => 'modules/EcmFkVatKinds/EcmFkVatKinds.js',
),
array(
'file' => 'modules/EcmFkVatKinds/EcmFkVatKindsEditView.js',
),
array(
'file' => 'modules/EcmProducts/mintajax.js',
),
array(
'file' => 'modules/EcmProducts/helper.js',
),
),
),
'panels' => array(
'LBL_ECMFKBOOK_DETAILS' => array(
// array(
// 'created_by',
// 'modified_user_id',
// ),
// array(
// 'date_entered',
// 'date_modified',
// ),
array(
'type',
'position',
),
array(
'name',
// '',
),
/*
array(
'title_1',
'',
),
array(
'col_1_1',
'col_2_1',
),
array(
'title_2',
'',
),
array(
'col_1_2',
'col_2_2',
),
array(
'title_3',
'',
),
array(
'col_1_3',
'col_2_3',
),
array(
'title_4',
'',
),
array(
'col_1_4',
'col_2_4',
),
array(
'title_5',
'',
),
array(
'col_1_5',
'col_2_5',
),
*/
array(
// 'acc',
'acc_code',
// '',
),
/*
array(
'order_1',
'order_2',
),
array(
'order_3',
'order_4',
),
array(
'order_5',
'',
),
*/
array(
// 'ident_k',
// 'ident_k_name',
'ident_k_filter',
// 'id_dok',
// '',
),
// array(
// 'order_ue',
// '',
// ),
/*
array(
'nr_1',
'nr_2',
),
*/
// array(
// 'temp_vat',
// '',
// ),
/*
array(
'p_1',
'p_2',
),
array(
'p_3',
'p_4',
),
array(
'p_5',
'',
),
*/
// array(
// 'spr_dok',
// 'kp_date',
// ),
array(
'orientation',
// '',
),
array(
'deleted',
// '',
),
),
'LBL_ITEMS' => array(
array(
array(
'name' => 'position_list',
'allCols' => true,
'hideLabel' => true,
'customCode' =>
'
<link rel="stylesheet" type="text/css" href="modules/EcmFkVatTables/MyTable.css" />
<!--<link rel="stylesheet" type="text/css" href="modules/EcmFkVatTables/AjaxSearch/AjaxSearch.css" />-->
<div style="width: 100%; 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="itemsTableDIV">
<table class="positions" style="width: 100%;" id="itemsTable">
<thead id="head">
<tr id="tr">
<td width="20%">{$MOD.LBL_EDITABLE_TITLE}</td>
<td>{$MOD.LBL_EDITABLE_COL}</td>
<td width="10%">{$MOD.LBL_EDITABLE_ORDER}</td>
<!--<td>{$MOD.LBL_EDITABLE_P}</td>-->
<td width="5%">{$MOD.LBL_EDITABLE_OPTIONS}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
',
),
),
),
),
);

View File

@@ -0,0 +1,413 @@
<?php
if (!defined('sugarEntry') || !sugarEntry)
die('Not A Valid Entry Point');
/* * *******************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
*
* "Powered by SugarCRM".
* ****************************************************************************** */
$def = array(
'ID' => array(
'label' => 'LBL_ID',
'link' => false,
'default' => true,
'bold' => false,
),
'DELETED' => array(
'label' => 'LBL_DELETED',
'link' => false,
'default' => true,
'bold' => false,
),
'DATE_ENTERED' => array(
'label' => 'LBL_DATE_ENTERED',
'link' => false,
'default' => true,
'bold' => false,
),
'DATE_MODIFIED' => array(
'label' => 'LBL_DATE_MODIFIED',
'link' => false,
'default' => true,
'bold' => false,
),
'CREATED_BY' => array(
'label' => 'LBL_CREATED_BY',
'link' => false,
'default' => true,
'bold' => false,
),
'MODIFIED_BY' => array(
'label' => 'LBL_MODIFIED_BY',
'link' => false,
'default' => true,
'bold' => false,
),
'TYPE' => array(
'label' => 'LBL_TYPE',
'link' => false,
'default' => true,
'bold' => false,
),
'POSITION' => array(
'label' => 'LBL_POSITION',
'link' => false,
'default' => true,
'bold' => false,
),
'NAME' => array(
'label' => 'LBL_NAME',
'link' => true,
'default' => true,
'bold' => false,
),
'TITLE_1' => array(
'label' => 'LBL_TITLE_1',
'link' => false,
'default' => true,
'bold' => false,
),
'COL_1_1' => array(
'label' => 'LBL_COL_1_1',
'link' => false,
'default' => true,
'bold' => false,
),
'COL_2_1' => array(
'label' => 'LBL_COL_2_1',
'link' => false,
'default' => true,
'bold' => false,
),
'TITLE_2' => array(
'label' => 'LBL_TITLE_2',
'link' => false,
'default' => true,
'bold' => false,
),
'COL_1_2' => array(
'label' => 'LBL_COL_1_2',
'link' => false,
'default' => true,
'bold' => false,
),
'COL_2_2' => array(
'label' => 'LBL_COL_2_2',
'link' => false,
'default' => true,
'bold' => false,
),
'TITLE_3' => array(
'label' => 'LBL_TITLE_3',
'link' => false,
'default' => true,
'bold' => false,
),
'COL_1_3' => array(
'label' => 'LBL_COL_1_3',
'link' => false,
'default' => true,
'bold' => false,
),
'COL_2_3' => array(
'label' => 'LBL_COL_2_3',
'link' => false,
'default' => true,
'bold' => false,
),
'TITLE_4' => array(
'label' => 'LBL_TITLE_4',
'link' => false,
'default' => true,
'bold' => false,
),
'COL_1_4' => array(
'label' => 'LBL_COL_1_4',
'link' => false,
'default' => true,
'bold' => false,
),
'COL_2_4' => array(
'label' => 'LBL_COL_2_4',
'link' => false,
'default' => true,
'bold' => false,
),
'TITLE_5' => array(
'label' => 'LBL_TITLE_5',
'link' => false,
'default' => true,
'bold' => false,
),
'COL_1_5' => array(
'label' => 'LBL_COL_1_5',
'link' => false,
'default' => true,
'bold' => false,
),
'COL_2_5' => array(
'label' => 'LBL_COL_2_5',
'link' => false,
'default' => true,
'bold' => false,
),
'ACC' => array(
'label' => 'LBL_ACC',
'link' => false,
'default' => true,
'bold' => false,
),
'ACC_CODE' => array(
'label' => 'LBL_ACC_CODE',
'link' => false,
'default' => true,
'bold' => false,
),
'ORDER_1' => array(
'label' => 'LBL_ORDER_1',
'link' => false,
'default' => true,
'bold' => false,
),
'ORDER_2' => array(
'label' => 'LBL_ORDER_2',
'link' => false,
'default' => true,
'bold' => false,
),
'ORDER_3' => array(
'label' => 'LBL_ORDER_3',
'link' => false,
'default' => true,
'bold' => false,
),
'ORDER_4' => array(
'label' => 'LBL_ORDER_4',
'link' => false,
'default' => true,
'bold' => false,
),
'ORDER_5' => array(
'label' => 'LBL_ORDER_5',
'link' => false,
'default' => true,
'bold' => false,
),
'IDENT_K' => array(
'label' => 'LBL_IDENT_K',
'link' => false,
'default' => true,
'bold' => false,
),
'ID_DOK' => array(
'label' => 'LBL_ID_DOK',
'link' => false,
'default' => true,
'bold' => false,
),
'ORDER_UE' => array(
'label' => 'LBL_ORDER_UE',
'link' => false,
'default' => true,
'bold' => false,
),
'NR_1' => array(
'label' => 'LBL_NR_1',
'link' => false,
'default' => true,
'bold' => false,
),
'NR_2' => array(
'label' => 'LBL_NR_2',
'link' => false,
'default' => true,
'bold' => false,
),
'TEMP_VAT' => array(
'label' => 'LBL_TEMP_VAT',
'link' => false,
'default' => true,
'bold' => false,
),
'P_1' => array(
'label' => 'LBL_P_1',
'link' => false,
'default' => true,
'bold' => false,
),
'P_2' => array(
'label' => 'LBL_P_2',
'link' => false,
'default' => true,
'bold' => false,
),
'P_3' => array(
'label' => 'LBL_P_3',
'link' => false,
'default' => true,
'bold' => false,
),
'P_4' => array(
'label' => 'LBL_P_4',
'link' => false,
'default' => true,
'bold' => false,
),
'P_5' => array(
'label' => 'LBL_P_5',
'link' => false,
'default' => true,
'bold' => false,
),
'SPR_DOK' => array(
'label' => 'LBL_SPR_DOK',
'link' => false,
'default' => true,
'bold' => false,
),
'KP_DATE' => array(
'label' => 'LBL_KP_DATE',
'link' => false,
'default' => true,
'bold' => false,
),
);
// Describe on table:
//
// id
// deleted
// date_entered
// date_modified
// created_by
// modified_user_id
// type
// position
// name
// title_1
// col_1_1
// col_2_1
// title_2
// col_1_2
// col_2_2
// title_3
// col_1_3
// col_2_3
// title_4
// col_1_4
// col_2_4
// title_5
// col_1_5
// col_2_5
// acc
// order_1
// order_2
// order_3
// order_4
// order_5
// ident_k
// id_dok
// order_ue
// nr_1
// nr_2
// temp_vat
// p_1
// p_2
// p_3
// p_4
// p_5
// spr_dok
// kp_date
$list = array(
// 'ID' => null,
// 'DELETED' => null,
// 'DATE_ENTERED' => null,
// 'DATE_MODIFIED' => null,
// 'CREATED_BY' => null,
// 'MODIFIED_BY' => null,
'TYPE' => null,
'POSITION' => null,
'NAME' => null,
// 'TITLE_1' => null,
// 'COL_1_1' => null,
// 'COL_2_1' => null,
// 'TITLE_2' => null,
// 'COL_1_2' => null,
// 'COL_2_2' => null,
// 'TITLE_3' => null,
// 'COL_1_3' => null,
// 'COL_2_3' => null,
// 'TITLE_4' => null,
// 'COL_1_4' => null,
// 'COL_2_4' => null,
// 'TITLE_5' => null,
// 'COL_1_5' => null,
// 'COL_2_5' => null,
// 'ACC' => null,
// 'ACC_CODE' => null,
// 'ORDER_1' => null,
// 'ORDER_2' => null,
// 'ORDER_3' => null,
// 'ORDER_4' => null,
// 'ORDER_5' => null,
// 'IDENT_K' => null,
// 'ID_DOK' => null,
// 'ORDER_UE' => null,
// 'NR_1' => null,
// 'NR_2' => null,
// 'TEMP_VAT' => null,
// 'P_1' => null,
// 'P_2' => null,
// 'P_3' => null,
// 'P_4' => null,
// 'P_5' => null,
// 'SPR_DOK' => null,
// 'KP_DATE' => null,
);
array_walk($list, function(&$value, $key) use ($def) {
$value = $def[$key];
});
// dump($list);
// $listViewDefs['EcmFkVatKinds'] = array_intersect_key($def, $list);
$listViewDefs['EcmFkVatKinds'] = $list;
// echo '<pre>' . var_export($listViewDefs['EcmFkVatKinds'], true) . '</pre>';
// exit;

View File

@@ -0,0 +1,137 @@
<?php
if (!defined('sugarEntry') || !sugarEntry)
die('Not A Valid Entry Point');
/* * *******************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
*
* "Powered by SugarCRM".
* ****************************************************************************** */
global $mod_strings;
$popupMeta = array(
'moduleMain' => 'EcmFkVatKind',
'varName' => 'BANK_ACCOUNT',
'orderBy' => 'name',
'whereClauses' => array(
// 'code' => 'ecmFkVatKinds.code',
),
'searchInputs' => array(
// 'code',
// 'billing_address_city',
// 'phone_office',
),
'create' => array(
'formBase' => 'EcmFkVatKindFormBase.php',
'formBaseClass' => 'EcmFkVatKindFormBase',
'getFormBodyParams' => array(
'',
'',
'EcmFkVatKindSave',
),
'createButton' => $mod_strings['LNK_NEW_ACCOUNT'],
),
'listviewdefs' => array(
'TYPE' => array (
'label' => 'LBL_TYPE',
'link' => false,
'default' => true,
'bold' => false,
),
'POSITION' => array (
'label' => 'LBL_POSITION',
'link' => false,
'default' => true,
'bold' => false,
),
'NAME' => array (
'label' => 'LBL_NAME',
'link' => true,
'default' => true,
'bold' => false,
),
'ACC' => array (
'label' => 'LBL_ACC',
'link' => false,
'default' => true,
'bold' => false,
),
),
'searchdefs' => array(
// 'id',
// 'deleted',
// 'date_entered',
// 'date_modified',
// 'created_by',
// 'modified_user_id',
'type',
'position',
'name',
// 'title_1',
// 'col_1_1',
// 'col_2_1',
// 'title_2',
// 'col_1_2',
// 'col_2_2',
// 'title_3',
// 'col_1_3',
// 'col_2_3',
// 'title_4',
// 'col_1_4',
// 'col_2_4',
// 'title_5',
// 'col_1_5',
// 'col_2_5',
// 'acc',
// 'order_1',
// 'order_2',
// 'order_3',
// 'order_4',
// 'order_5',
// 'ident_k',
// 'id_dok',
// 'order_ue',
// 'nr_1',
// 'nr_2',
// 'temp_vat',
// 'p_1',
// 'p_2',
// 'p_3',
// 'p_4',
// 'p_5',
// 'spr_dok',
// 'kp_date',
)
);

View File

@@ -0,0 +1,106 @@
<?php
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$viewdefs['EcmFkVatKinds']['QuickCreate'] = array(
'templateMeta' => array('form' => array('enctype'=>'multipart/form-data',
'hidden'=>array('<input type="hidden" name="old_id" value="{$fields.ecmfkvatkind_revision_id.value}">',
'<input type="hidden" name="parent_id" value="{$smarty.request.parent_id}">',
'<input type="hidden" name="parent_type" value="{$smarty.request.parent_type}">',)),
'maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
'includes' =>
array (
array('file' => 'include/javascript/popup_parent_helper.js'),
array('file' => 'include/jsolait/init.js'),
array('file' => 'include/jsolait/lib/urllib.js'),
array('file' => 'include/javascript/jsclass_base.js'),
array('file' => 'include/javascript/jsclass_async.js'),
array('file' => 'modules/EcmFkVatKinds/ecmfkvattables.js'),
),
),
'panels' =>array (
'default' =>
array (
array (
array('name'=>'uploadfile',
'customCode' => '<input type="hidden" name="escaped_ecmfkvatkind_name"><input name="uploadfile" type="file" size="30" maxlength="" onchange="setvalue(this);" value="{$fields.filename.value}">{$fields.filename.value}',
'displayParams'=>array('required'=>true),
),
'status_id',
),
array (
'ecmfkvatkind_name',
array('name'=>'revision',
'customCode' => '<input name="revision" type="text" value="{$fields.revision.value}">'
),
),
array (
array (
'name' => 'template_type',
'label' => 'LBL_DET_TEMPLATE_TYPE',
),
array (
'name' => 'is_template',
'label' => 'LBL_DET_IS_TEMPLATE',
),
),
array (
array('name'=>'active_date','displayParams'=>array('required'=>true)),
'category_id',
),
array (
'exp_date',
'subcategory_id',
),
array (
array('name'=>'description', 'displayParams'=>array('rows'=>10, 'cols'=>120)),
),
),
)
);
?>

View File

@@ -0,0 +1,141 @@
<?php
/* * *******************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
*
* "Powered by SugarCRM".
* ****************************************************************************** */
$searchdefs['EcmFkVatKinds'] = array(
'templateMeta' => array(
'maxColumns' => '2',
'widths' => array(
'label' => '10',
'field' => '30',
),
),
'layout' => array(
'basic_search' => array(
// 'id',
// 'deleted',
// 'date_entered',
// 'date_modified',
// 'created_by',
// 'modified_user_id',
'type',
'position',
'name',
// 'title_1',
// 'col_1_1',
// 'col_2_1',
// 'title_2',
// 'col_1_2',
// 'col_2_2',
// 'title_3',
// 'col_1_3',
// 'col_2_3',
// 'title_4',
// 'col_1_4',
// 'col_2_4',
// 'title_5',
// 'col_1_5',
// 'col_2_5',
// 'acc',
// 'order_1',
// 'order_2',
// 'order_3',
// 'order_4',
// 'order_5',
// 'ident_k',
// 'id_dok',
// 'order_ue',
// 'nr_1',
// 'nr_2',
// 'temp_vat',
// 'p_1',
// 'p_2',
// 'p_3',
// 'p_4',
// 'p_5',
// 'spr_dok',
// 'kp_date',
),
/*
'advanced_search' => array(
// 'id',
// 'deleted',
// 'date_entered',
// 'date_modified',
// 'created_by',
// 'modified_user_id',
'type',
'position',
'name',
// 'title_1',
// 'col_1_1',
// 'col_2_1',
// 'title_2',
// 'col_1_2',
// 'col_2_2',
// 'title_3',
// 'col_1_3',
// 'col_2_3',
// 'title_4',
// 'col_1_4',
// 'col_2_4',
// 'title_5',
// 'col_1_5',
// 'col_2_5',
'acc',
// 'order_1',
// 'order_2',
// 'order_3',
// 'order_4',
// 'order_5',
// 'ident_k',
// 'id_dok',
// 'order_ue',
// 'nr_1',
// 'nr_2',
// 'temp_vat',
// 'p_1',
// 'p_2',
// 'p_3',
// 'p_4',
// 'p_5',
'spr_dok',
'kp_date',
),
*/
),
);

View File

@@ -0,0 +1,66 @@
<?php
if (!defined('sugarEntry') || !sugarEntry)
die('Not A Valid Entry Point');
/* * *******************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
*
* "Powered by SugarCRM".
* ****************************************************************************** */
$GLOBALS['studioDefs']['EcmFkVatKinds'] = array(
'LBL_DETAILVIEW' => array(
'template' => 'xtpl',
'template_file' => 'modules/EcmFkVatKinds/DetailView.html',
'php_file' => 'modules/EcmFkVatKinds/DetailView.php',
'type' => 'DetailView',
),
'LBL_EDITVIEW' => array(
'template' => 'xtpl',
'template_file' => 'modules/EcmFkVatKinds/EditView.html',
'php_file' => 'modules/EcmFkVatKinds/EditView.php',
'type' => 'EditView',
),
'LBL_LISTVIEW' => array(
'template' => 'listview',
'meta_file' => 'modules/EcmFkVatKinds/listviewdefs.php',
'type' => 'ListView',
),
'LBL_SEARCHFORM' => array(
'template' => 'xtpl',
'template_file' => 'modules/EcmFkVatKinds/SearchForm.html',
'php_file' => 'modules/EcmFkVatKinds/ListView.php',
'type' => 'SearchForm',
),
);

View File

@@ -0,0 +1,52 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$layout_defs['EcmFkVatKinds'] = array(
// list of what Subpanels to show in the DetailView
'subpanel_setup' => array(
'therevisions' => array(
'order' => 10,
'sort_order' => 'desc',
'sort_by' => 'revision',
'module' => 'EcmFkVatKindRevisions',
'subpanel_name' => 'default',
'title_key' => 'LBL_DOC_REV_HEADER',
'get_subpanel_data' => 'revisions',
'fill_in_additional_fields'=>true,
),
),
);

View File

@@ -0,0 +1,90 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$subpanel_layout = array(
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'EcmFkVatKinds','field_to_name_array'=>array('ecmfkvattable_revision_id'=>'REL_ATTRIBUTE_document_revision_id')),
),
'where' => '',
'list_fields'=> array(
'ecmfkvatkind_name'=> array(
'name' => 'ecmfkvatkind_name',
'vname' => 'LBL_LIST_DOCUMENT_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '30%',
),
'is_template'=>array(
'name' => 'is_template',
'vname' => 'LBL_LIST_IS_TEMPLATE',
'width' => '5%',
'widget_type'=>'checkbox',
),
'template_type'=>array(
'name' => 'template_types',
'vname' => 'LBL_LIST_TEMPLATE_TYPE',
'width' => '15%',
),
'latest_revision'=>array(
'name' => 'latest_revision',
'vname' => 'LBL_LATEST_REVISION',
'width' => '10%',
'sortable' => false
),
'edit_button'=>array(
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'module' => 'EcmFkVatKinds',
'width' => '5%',
),
'remove_button'=>array(
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButton',
'module' => 'EcmFkVatKinds',
'width' => '5%',
),
'ecmfkvatkind_revision_id'=>array(
'usage'=>'query_only'
),
),
);
?>

View File

@@ -0,0 +1,110 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$subpanel_layout = array(
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'EcmFkVatKinds','field_to_name_array'=>array('ecmfkvattable_revision_id'=>'REL_ATTRIBUTE_document_revision_id')),
),
'where' => '',
'list_fields'=> array(
'object_image'=>array(
'vname' => 'LBL_OBJECT_IMAGE',
'widget_class' => 'SubPanelIcon',
'width' => '2%',
'image2'=>'attachment',
'image2_url_field'=>array('id_field'=>'selected_revision_id','filename_field'=>'selected_revision_filename'),
'attachment_image_only'=>true,
),
'ecmfkvatkind_name'=> array(
'name' => 'ecmfkvatkind_name',
'vname' => 'LBL_LIST_DOCUMENT_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '30%',
),
'is_template'=>array(
'name' => 'is_template',
'vname' => 'LBL_LIST_IS_TEMPLATE',
'width' => '5%',
'widget_type'=>'checkbox',
),
'template_type'=>array(
'name' => 'template_types',
'vname' => 'LBL_LIST_TEMPLATE_TYPE',
'width' => '15%',
),
'selected_revision_name'=>array(
'name' => 'selected_revision_name',
'vname' => 'LBL_LIST_SELECTED_REVISION',
'width' => '10%',
),
'latest_revision_name'=>array(
'name' => 'latest_revision_name',
'vname' => 'LBL_LIST_LATEST_REVISION',
'width' => '10%',
),
'get_latest'=>array(
'widget_class' => 'SubPanelGetLatestButton',
'module' => 'EcmFkVatKinds',
'width' => '5%',
),
'load_signed'=>array(
'widget_class' => 'SubPanelLoadSignedButton',
'module' => 'EcmFkVatKinds',
'width' => '5%',
),
'edit_button'=>array(
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'module' => 'EcmFkVatKinds',
'width' => '5%',
),
'remove_button'=>array(
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButton',
'module' => 'EcmFkVatKinds',
'width' => '5%',
),
),
);
?>