177 lines
7.0 KiB
PHP
177 lines
7.0 KiB
PHP
<?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".
|
|
* ****************************************************************************** */
|
|
global $sugar_config;
|
|
|
|
|
|
|
|
|
|
$viewdefs['EcmKpkw']['EditView'] = array(
|
|
'templateMeta' => array(
|
|
'form' => array(
|
|
'enctype' => 'multipart/form-data',
|
|
'hidden' => array(
|
|
'<input type="hidden" id="template_id" name="template_id" value="97700b0d-fbe9-e366-4016-4b260f058a47">',
|
|
'<input type="hidden" name="parent_type" id="parent_type" value="Accounts">',
|
|
'<input type="hidden" name="ecmlanguage" id="ecmlanguage" value=\'\'>',
|
|
'<input type="hidden" name="kasier" id="kasier" value="{$USER_ID}">',
|
|
),
|
|
'buttons'=>array(
|
|
'SAVE',
|
|
//array('customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="return SaveForm();" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">'),
|
|
array('customCode' => '<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="window.location=\'index.php?module=EcmKpkw&action=index\';" type="button" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">'),
|
|
//array('customCode' => '<input class="button" onclick="test();" type="button" name="button" value="test">'),
|
|
//todo: create 'cancel function in js
|
|
),
|
|
),
|
|
'maxColumns' => '3',
|
|
'widths' => array(
|
|
array(
|
|
'label' => '10',
|
|
'field' => '30',
|
|
),
|
|
array(
|
|
'label' => '10',
|
|
'field' => '30',
|
|
),
|
|
array(
|
|
'label' => '10',
|
|
'field' => '30',
|
|
),
|
|
),
|
|
'includes' => array(
|
|
array('file'=>'include/JSON.js'),
|
|
array('file'=>'include/javascript/quicksearch.js'),
|
|
array('file'=>'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js'),
|
|
array('file'=>'modules/EcmKpkw/AjaxSearch/AjaxSearch.js'),
|
|
array('file'=>'modules/EcmKpkw/formloader.js'),
|
|
array('file'=>'modules/EcmKpkw/MyTable.js'),
|
|
array('file'=>'modules/EcmKpkw/EcmKpkw.js'),
|
|
array('file'=>'modules/EcmProducts/mintajax.js'),
|
|
array('file'=>'modules/EcmProducts/helper.js'),
|
|
),
|
|
),
|
|
'panels' => array(
|
|
|
|
'LBL_EDIT_INFORMATION' => array(
|
|
array(
|
|
'ecmkpkw_name',
|
|
'description',
|
|
|
|
),
|
|
array(
|
|
array(
|
|
'name' => 'document_no',
|
|
'tabIndex' => '1',
|
|
'customCode' => '<div id="tst" style="display:none;"></div><input readonly="readonly" type="text" name="document_no" id="document_no" value=\'{$fields.document_no.value}\'>
|
|
<input type="hidden" name="number" id="number" value=\'{$fields.number.value}\'>'
|
|
),),
|
|
array(
|
|
0=>'parent_name',
|
|
1=>'document',
|
|
2=>'',
|
|
),
|
|
array(
|
|
0=>'dir',
|
|
1=>'',
|
|
2=>'',
|
|
),
|
|
array(
|
|
0=>'amount',
|
|
1=>'currency_id',
|
|
2=>'',
|
|
),
|
|
array(
|
|
array('name'=>'currency_value','label'=>'LBL_CURRENCY_VALUE'),
|
|
'register_date',
|
|
),
|
|
array(
|
|
array('name'=>'ecmcash_id','label'=>'LBL_CASH','customCode' => '{$CASH}'),
|
|
),
|
|
array(
|
|
array(
|
|
'name' => 'to_informations',
|
|
'allCols' => true,
|
|
'hideLabel' => true,
|
|
'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;margin-bottom: 15px;margin-top:15px"></div><h4>{$MOD.LBL_TO_INFORMATIONS}</h4>'
|
|
),
|
|
),
|
|
|
|
array (
|
|
0=>array(
|
|
'name' => 'parent_name_copy',
|
|
'customCode' => '<input type="text" name="parent_name_copy" id="parent_name_copy" value="{$fields.parent_name.value}" readOnly="readonly" style="vertical-align:top;width:350px;margin-left:2px" />'
|
|
),
|
|
/*1=>array(
|
|
'name' => 'index_dbf',
|
|
'customCode' => '<input type="text" name="index_dbf" id="index_dbf" value="{$fields.index_dbf.value}" size="30" />'
|
|
),*/
|
|
1=>'',
|
|
2=>'',
|
|
),
|
|
array (
|
|
array(
|
|
'name' => 'parent_address_street',
|
|
'tabIndex' => '1',
|
|
//'customCode' => '<textarea tabindex="1" id="parent_address_street" name="parent_address_street" rows="2" cols="45" maxlength="150" >{$fields.parent_address_street.value}</textarea>',
|
|
'customCode' => '<input id="parent_address_street" name="parent_address_street" maxlength="150" value="{$fields.parent_address_street.value}" style="vertical-align:top;width:250px;margin-left:2px">',
|
|
),
|
|
),
|
|
array (
|
|
array(
|
|
'name' => 'parent_address_postalcode',
|
|
'tabIndex' => '1',
|
|
'customCode' => '<input maxlength="8" type="text" name="parent_address_postalcode" id="parent_address_postalcode" value="{$fields.parent_address_postalcode.value}" style="vertical-align:top;width:50px;margin-left:2px" />'
|
|
),
|
|
),
|
|
array (
|
|
array(
|
|
'name' => 'parent_address_city',
|
|
'tabIndex' => '1',
|
|
'customCode' => '<input type="text" name="parent_address_city" id="parent_address_city" value="{$fields.parent_address_city.value}" style="margin-left:2px;vertical-align:top;width:150px;" />'
|
|
),
|
|
),
|
|
array (
|
|
array(
|
|
'name' => 'parent_address_country',
|
|
'tabIndex' => '1',
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
|