init
This commit is contained in:
82
include/SugarObjects/templates/company/Company.php
Executable file
82
include/SugarObjects/templates/company/Company.php
Executable file
@@ -0,0 +1,82 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
require_once('include/SugarObjects/templates/basic/Basic.php');
|
||||
class Company extends Basic{
|
||||
|
||||
function Company(){
|
||||
parent::SugarBean();
|
||||
$this->emailAddress = new SugarEmailAddress();
|
||||
}
|
||||
function save($check_notify=false) {
|
||||
$this->add_address_streets('billing_address_street');
|
||||
$this->add_address_streets('shipping_address_street');
|
||||
$ori_in_workflow = empty($this->in_workflow) ? false : true;
|
||||
$this->emailAddress->handleLegacySave($this, $this->module_dir);
|
||||
parent::save($check_notify);
|
||||
$override_email = array();
|
||||
if(!empty($this->email1_set_in_workflow)) {
|
||||
$override_email['emailAddress0'] = $this->email1_set_in_workflow;
|
||||
}
|
||||
if(!empty($this->email2_set_in_workflow)) {
|
||||
$override_email['emailAddress1'] = $this->email2_set_in_workflow;
|
||||
}
|
||||
if(!isset($this->in_workflow)) {
|
||||
$this->in_workflow = false;
|
||||
}
|
||||
if($ori_in_workflow === false || !empty($override_email)){
|
||||
$this->emailAddress->save($this->id, $this->module_dir, $override_email,'','','','',$this->in_workflow);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
function retrieve($id = -1, $encode=true) {
|
||||
$ret_val = parent::retrieve($id, $encode);
|
||||
$this->emailAddress->handleLegacyRetrieve($this);
|
||||
return $ret_val;
|
||||
}
|
||||
|
||||
function get_list_view_data() {
|
||||
|
||||
global $system_config;
|
||||
global $current_user;
|
||||
$temp_array = $this->get_list_view_array();
|
||||
$temp_array['EMAIL1'] = $this->emailAddress->getPrimaryAddress($this);
|
||||
$temp_array['EMAIL1_LINK'] = $current_user->getEmailLink('email1', $this, '', '', 'ListView');
|
||||
return $temp_array;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
43
include/SugarObjects/templates/company/config.php
Executable file
43
include/SugarObjects/templates/company/config.php
Executable file
@@ -0,0 +1,43 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
/*
|
||||
* Created on Aug 2, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
?>
|
||||
61
include/SugarObjects/templates/company/language/application/en_us.lang.php
Executable file
61
include/SugarObjects/templates/company/language/application/en_us.lang.php
Executable file
@@ -0,0 +1,61 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
/*
|
||||
* Created on Aug 14, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
$app_list_strings = array (
|
||||
|
||||
strtolower($object_name).'_type_dom' =>
|
||||
array (
|
||||
'' => '',
|
||||
'Analyst' => 'Analyst',
|
||||
'Competitor' => 'Competitor',
|
||||
'Customer' => 'Customer',
|
||||
'Integrator' => 'Integrator',
|
||||
'Investor' => 'Investor',
|
||||
'Partner' => 'Partner',
|
||||
'Press' => 'Press',
|
||||
'Prospect' => 'Prospect',
|
||||
'Reseller' => 'Reseller',
|
||||
'Other' => 'Other',
|
||||
),
|
||||
|
||||
);
|
||||
?>
|
||||
53
include/SugarObjects/templates/company/language/application/pl_pl.lang.php
Executable file
53
include/SugarObjects/templates/company/language/application/pl_pl.lang.php
Executable file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Enterprise Subscription
|
||||
* Agreement ("License") which can be viewed at
|
||||
* http://www.sugarcrm.com/crm/products/sugar-enterprise-eula.html
|
||||
* By installing or using this file, You have unconditionally agreed to the
|
||||
* terms and conditions of the License, and You may not use this file except in
|
||||
* compliance with the License. Under the terms of the license, You shall not,
|
||||
* among other things: 1) sublicense, resell, rent, lease, redistribute, assign
|
||||
* or otherwise transfer Your rights to the Software, and 2) use the Software
|
||||
* for timesharing or service bureau purposes such as hosting the Software for
|
||||
* commercial gain and/or for the benefit of a third party. Use of the Software
|
||||
* may be subject to applicable fees and any use of the Software without first
|
||||
* paying applicable fees is strictly prohibited. You do not have the right to
|
||||
* remove SugarCRM copyrights from the source code or user interface.
|
||||
*
|
||||
* All copies of the Covered Code must include on each user interface screen:
|
||||
* (i) the "Powered by SugarCRM" logo and
|
||||
* (ii) the SugarCRM copyright notice
|
||||
* in the same form as they appear in the distribution. See full license for
|
||||
* requirements.
|
||||
*
|
||||
* Your Warranty, Limitations of liability and Indemnity are expressly stated
|
||||
* in the License. Please refer to the License for the specific language
|
||||
* governing these rights and limitations under the License. Portions created
|
||||
* by SugarCRM are Copyright (C) 2004-2007 SugarCRM, Inc.; All Rights Reserved.
|
||||
********************************************************************************/
|
||||
/*
|
||||
* Created on Aug 14, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
$app_list_strings = array (
|
||||
|
||||
strtolower($object_name).'_type_dom' =>
|
||||
array (
|
||||
'' => '',
|
||||
'Analyst' => 'Analityk',
|
||||
'Competitor' => 'Konkurent',
|
||||
'Customer' => 'Klient',
|
||||
'Integrator' => 'Integrator',
|
||||
'Investor' => 'Inwestor',
|
||||
'Partner' => 'Partner',
|
||||
'Press' => 'Prasa',
|
||||
'Prospect' => 'Potencjalny',
|
||||
'Reseller' => 'Reseller',
|
||||
'Other' => 'Inny',
|
||||
),
|
||||
|
||||
);
|
||||
?>
|
||||
133
include/SugarObjects/templates/company/language/en_us.lang.php
Executable file
133
include/SugarObjects/templates/company/language/en_us.lang.php
Executable file
@@ -0,0 +1,133 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
|
||||
$mod_strings = array (
|
||||
'ACCOUNT_REMOVE_PROJECT_CONFIRM' => 'Are you sure you want to remove this account from this project?',
|
||||
'ERR_DELETE_RECORD' => 'A record number must be specified to delete the account.',
|
||||
'LBL_ACCOUNT_NAME' => 'Company Name:',
|
||||
'LBL_ACCOUNT' => 'Company:',
|
||||
'LBL_ACTIVITIES_SUBPANEL_TITLE'=>'Activities',
|
||||
'LBL_ADDRESS_INFORMATION' => 'Address Information',
|
||||
'LBL_ANNUAL_REVENUE' => 'Annual Revenue:',
|
||||
'LBL_ANY_ADDRESS' => 'Any Address:',
|
||||
'LBL_ANY_EMAIL' => 'Any Email:',
|
||||
'LBL_ANY_PHONE' => 'Any Phone:',
|
||||
'LBL_ASSIGNED_TO_NAME' => 'User:',
|
||||
'LBL_RATING'=>'Rating',
|
||||
'LBL_ASSIGNED_USER'=>'Assigned to:',
|
||||
'LBL_ASSIGNED_TO_ID' => 'Assigned to:',
|
||||
'LBL_BILLING_ADDRESS_CITY' => 'Billing City:',
|
||||
'LBL_BILLING_ADDRESS_COUNTRY' => 'Billing Country:',
|
||||
'LBL_BILLING_ADDRESS_POSTALCODE' => 'Billing Postal Code:',
|
||||
'LBL_BILLING_ADDRESS_STATE' => 'Billing State:',
|
||||
'LBL_BILLING_ADDRESS_STREET_2' =>'Billing Street 2',
|
||||
'LBL_BILLING_ADDRESS_STREET_3' =>'Billing Street 3',
|
||||
'LBL_BILLING_ADDRESS_STREET_4' =>'Billing Street 4',
|
||||
'LBL_BILLING_ADDRESS_STREET' => 'Billing Street:',
|
||||
'LBL_BILLING_ADDRESS' => 'Billing Address:',
|
||||
'LBL_ACCOUNT_INFORMATION' => 'Company Information',
|
||||
'LBL_CITY' => 'City:',
|
||||
'LBL_CONTACTS_SUBPANEL_TITLE' => 'Contacts',
|
||||
'LBL_COUNTRY' => 'Country:',
|
||||
'LBL_DATE_ENTERED' => 'Date Created:',
|
||||
'LBL_DATE_MODIFIED' => 'Date Modified:',
|
||||
'LBL_DEFAULT_SUBPANEL_TITLE' => 'Accounts',
|
||||
'LBL_DESCRIPTION_INFORMATION' => 'Description Information',
|
||||
'LBL_DESCRIPTION' => 'Description:',
|
||||
'LBL_DUPLICATE' => 'Possible Duplicate Account',
|
||||
'LBL_EMAIL' => 'Email Address:',
|
||||
'LBL_EMPLOYEES' => 'Employees:',
|
||||
'LBL_FAX' => 'Fax:',
|
||||
'LBL_INDUSTRY' => 'Industry:',
|
||||
'LBL_LIST_ACCOUNT_NAME' => 'Account Name',
|
||||
'LBL_LIST_CITY' => 'City',
|
||||
'LBL_LIST_EMAIL_ADDRESS' => 'Email Address',
|
||||
'LBL_LIST_PHONE' => 'Phone',
|
||||
'LBL_LIST_STATE' => 'State',
|
||||
'LBL_LIST_WEBSITE' => 'Website',
|
||||
'LBL_MEMBER_OF' => 'Member of:',
|
||||
'LBL_MEMBER_ORG_FORM_TITLE' => 'Member Organizations',
|
||||
'LBL_MEMBER_ORG_SUBPANEL_TITLE'=>'Member Organizations',
|
||||
'LBL_NAME'=>'Name:',
|
||||
'LBL_OTHER_EMAIL_ADDRESS' => 'Other Email:',
|
||||
'LBL_OTHER_PHONE' => 'Other Phone:',
|
||||
'LBL_OWNERSHIP' => 'Ownership:',
|
||||
'LBL_PARENT_ACCOUNT_ID' => 'Parent Account ID',
|
||||
'LBL_PHONE_ALT' => 'Alternate Phone:',
|
||||
'LBL_PHONE_FAX' => 'Phone Fax:',
|
||||
'LBL_PHONE_OFFICE' => 'Office Phone:',
|
||||
'LBL_PHONE' => 'Phone:',
|
||||
'LBL_EMAIL_ADDRESS'=>'Email Address(es)',
|
||||
'LBL_POSTAL_CODE' => 'Postal Code:',
|
||||
'LBL_PUSH_BILLING' => 'Push Billing',
|
||||
'LBL_PUSH_SHIPPING' => 'Push Shipping',
|
||||
'LBL_SAVE_ACCOUNT' => 'Save Account',
|
||||
'LBL_SHIPPING_ADDRESS_CITY' => 'Shipping City:',
|
||||
'LBL_SHIPPING_ADDRESS_COUNTRY' => 'Shipping Country:',
|
||||
'LBL_SHIPPING_ADDRESS_POSTALCODE' => 'Shipping Postal Code:',
|
||||
'LBL_SHIPPING_ADDRESS_STATE' => 'Shipping State:',
|
||||
'LBL_SHIPPING_ADDRESS_STREET_2' => 'Shipping Street 2',
|
||||
'LBL_SHIPPING_ADDRESS_STREET_3' => 'Shipping Street 3',
|
||||
'LBL_SHIPPING_ADDRESS_STREET_4' => 'Shipping Street 4',
|
||||
'LBL_SHIPPING_ADDRESS_STREET' => 'Shipping Street:',
|
||||
'LBL_SHIPPING_ADDRESS' => 'Shipping Address:',
|
||||
|
||||
'LBL_STATE' => 'State:',
|
||||
'LBL_TICKER_SYMBOL' => 'Ticker Symbol:',
|
||||
'LBL_TYPE' => 'Type:',
|
||||
'LBL_USERS_ASSIGNED_LINK'=>'Assigned Users',
|
||||
'LBL_USERS_CREATED_LINK'=>'Created By Users',
|
||||
'LBL_USERS_MODIFIED_LINK'=>'Modified Users',
|
||||
'LBL_VIEW_FORM_TITLE' => 'Account View',
|
||||
'LBL_WEBSITE' => 'Website:',
|
||||
|
||||
'LNK_ACCOUNT_LIST' => 'Accounts',
|
||||
'LNK_NEW_ACCOUNT' => 'Create Account',
|
||||
|
||||
'MSG_DUPLICATE' => 'Creating this account may potentially create a duplicate account. You may either select an account from the list below or you may click on Save to continue creating a new account with the previously entered data.',
|
||||
'MSG_SHOW_DUPLICATES' => 'Creating this account may potentially create a duplicate account. You may either click on Save to continue creating this new account with the previously entered data or you may click Cancel.',
|
||||
|
||||
'NTC_COPY_BILLING_ADDRESS' => 'Copy billing address to shipping address',
|
||||
'NTC_COPY_BILLING_ADDRESS2' => 'Copy to shipping',
|
||||
'NTC_COPY_SHIPPING_ADDRESS' => 'Copy shipping address to billing address',
|
||||
'NTC_COPY_SHIPPING_ADDRESS2' => 'Copy to billing',
|
||||
'NTC_DELETE_CONFIRMATION' => 'Are you sure you want to delete this record?',
|
||||
'NTC_REMOVE_ACCOUNT_CONFIRMATION' => 'Are you sure you want to remove this record?',
|
||||
'NTC_REMOVE_MEMBER_ORG_CONFIRMATION' => 'Are you sure you want to remove this record as a member organization?',
|
||||
);
|
||||
|
||||
|
||||
126
include/SugarObjects/templates/company/language/pl_pl.lang.php
Executable file
126
include/SugarObjects/templates/company/language/pl_pl.lang.php
Executable file
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Enterprise Subscription
|
||||
* Agreement ("License") which can be viewed at
|
||||
* http://www.sugarcrm.com/crm/products/sugar-enterprise-eula.html
|
||||
* By installing or using this file, You have unconditionally agreed to the
|
||||
* terms and conditions of the License, and You may not use this file except in
|
||||
* compliance with the License. Under the terms of the license, You shall not,
|
||||
* among other things: 1) sublicense, resell, rent, lease, redistribute, assign
|
||||
* or otherwise transfer Your rights to the Software, and 2) use the Software
|
||||
* for timesharing or service bureau purposes such as hosting the Software for
|
||||
* commercial gain and/or for the benefit of a third party. Use of the Software
|
||||
* may be subject to applicable fees and any use of the Software without first
|
||||
* paying applicable fees is strictly prohibited. You do not have the right to
|
||||
* remove SugarCRM copyrights from the source code or user interface.
|
||||
*
|
||||
* All copies of the Covered Code must include on each user interface screen:
|
||||
* (i) the "Powered by SugarCRM" logo and
|
||||
* (ii) the SugarCRM copyright notice
|
||||
* in the same form as they appear in the distribution. See full license for
|
||||
* requirements.
|
||||
*
|
||||
* Your Warranty, Limitations of liability and Indemnity are expressly stated
|
||||
* in the License. Please refer to the License for the specific language
|
||||
* governing these rights and limitations under the License. Portions created
|
||||
* by SugarCRM are Copyright (C) 2004-2007 SugarCRM, Inc.; All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
$mod_strings = array (
|
||||
'ACCOUNT_REMOVE_PROJECT_CONFIRM' => 'Czy na pewno chcesz usunąć to konto z projektu?',
|
||||
'ERR_DELETE_RECORD' => 'Musisz podać numer rekordu, aby usunąć to konto.',
|
||||
'LBL_ACCOUNT_NAME' => 'Nazwa firmy:',
|
||||
'LBL_ACCOUNT' => 'Firma:',
|
||||
'LBL_ACTIVITIES_SUBPANEL_TITLE'=>'Działania',
|
||||
'LBL_ADDRESS_INFORMATION' => 'Informacje adresowe',
|
||||
'LBL_ANNUAL_REVENUE' => 'Roczne przychody :',
|
||||
'LBL_ANY_ADDRESS' => 'Dowolny adres:',
|
||||
'LBL_ANY_EMAIL' => 'Dowolny adres email:',
|
||||
'LBL_ANY_PHONE' => 'Dowolny telefon:',
|
||||
'LBL_ASSIGNED_TO_NAME' => 'Przydzielone do:',
|
||||
'LBL_RATING'=>'Rating',
|
||||
'LBL_ASSIGNED_USER'=>'Przydzielone do użytkownika:',
|
||||
'LBL_ASSIGNED_TO_ID' => 'Przydzielone do:',
|
||||
'LBL_BILLING_ADDRESS_CITY' => 'Adres korespondencyjny miasto:',
|
||||
'LBL_BILLING_ADDRESS_COUNTRY' => 'Adres korespondencyjny kraj:',
|
||||
'LBL_BILLING_ADDRESS_POSTALCODE' => 'Adres korespondencyjny kod pocztowy:',
|
||||
'LBL_BILLING_ADDRESS_STATE' => 'Adres korespondencyjny woj.:',
|
||||
'LBL_BILLING_ADDRESS_STREET_4' => 'Adres korespondencyjny ulica 4:',
|
||||
'LBL_BILLING_ADDRESS_STREET_3' => 'Adres Korespondencyjny ulica 3:',
|
||||
'LBL_BILLING_ADDRESS_STREET_2' => 'Adres Korespondencyjny ulica 2:',
|
||||
'LBL_BILLING_ADDRESS_STREET' => 'Adres Korespondencyjny ulica:',
|
||||
'LBL_BILLING_ADDRESS' => 'Adres korespondencyjny:',
|
||||
'LBL_ACCOUNT_INFORMATION' => 'Informacje o firmie',
|
||||
'LBL_CITY' => 'Miasto:',
|
||||
'LBL_CONTACTS_SUBPANEL_TITLE' => 'Kontakty',
|
||||
'LBL_COUNTRY' => 'Kraj:',
|
||||
'LBL_DATE_ENTERED' => 'Data wprowadzenia:',
|
||||
'LBL_DATE_MODIFIED' => 'Data modyfikacji:',
|
||||
'LBL_DEFAULT_SUBPANEL_TITLE' => 'Klienci',
|
||||
'LBL_DESCRIPTION_INFORMATION' => 'Informacje opisujące',
|
||||
'LBL_DESCRIPTION' => 'Opis:',
|
||||
'LBL_DUPLICATE' => 'Prawdopodobnie rekord juz istnieje',
|
||||
'LBL_EMAIL' => 'Email:',
|
||||
'LBL_EMPLOYEES' => 'Pracownicy:',
|
||||
'LBL_FAX' => 'Fax:',
|
||||
'LBL_INDUSTRY' => 'Branża:',
|
||||
'LBL_ACCOUNT_NAME' => 'Nazwa klienta:',
|
||||
'LBL_LIST_CITY' => 'Miasto',
|
||||
'LBL_LIST_EMAIL_ADDRESS' => 'Adresy email',
|
||||
'LBL_LIST_PHONE' => 'Telefon',
|
||||
'LBL_LIST_STATE' => 'Województwo',
|
||||
'LBL_LIST_WEBSITE' => 'Strona WWW',
|
||||
'LBL_MEMBER_OF' => 'Członek:',
|
||||
'LBL_MEMBER_ORG_FORM_TITLE' => 'Członek organizacji',
|
||||
'LBL_MEMBER_ORG_SUBPANEL_TITLE'=> 'Członek organizacji',
|
||||
'LBL_NAME'=>'Nazwa:',
|
||||
'LBL_OTHER_EMAIL_ADDRESS' => 'E-mail 2:',
|
||||
'LBL_OTHER_PHONE' => 'Telefon 2:',
|
||||
'LBL_OWNERSHIP' => 'Własność:',
|
||||
'LBL_PARENT_ACCOUNT_ID' => 'ID klienta nadrzędnego',
|
||||
'LBL_PHONE_ALT' => 'Alternatywny numer tel.:',
|
||||
'LBL_PHONE_FAX' => 'Fax do biura:',
|
||||
'LBL_PHONE_OFFICE' => 'Telefon do biura:',
|
||||
'LBL_PHONE' => 'Telefon:',
|
||||
'LBL_POSTAL_CODE' => 'Kod pocztowy:',
|
||||
'LBL_PUSH_BILLING' => 'Kopiuj adres korespond.',
|
||||
'LBL_PUSH_SHIPPING' => 'Kopiuj adres dostawy',
|
||||
'LBL_SAVE_ACCOUNT' => 'Zachowaj klienta',
|
||||
'LBL_SHIPPING_ADDRESS_CITY' => 'Adres dostawy miasto:',
|
||||
'LBL_SHIPPING_ADDRESS_COUNTRY' => 'Adres dostawy kraj:',
|
||||
'LBL_SHIPPING_ADDRESS_POSTALCODE' => 'Adres dostawy kod pocztowy:',
|
||||
'LBL_SHIPPING_ADDRESS_STATE' => 'Adres dostawy woj.:',
|
||||
'LBL_SHIPPING_ADDRESS_STREET_2' => 'Adres dostawy ulica:',
|
||||
'LBL_SHIPPING_ADDRESS_STREET_3' => 'Adres dostawy ulica:',
|
||||
'LBL_SHIPPING_ADDRESS_STREET_4' => 'Adres dostawy ulica:',
|
||||
'LBL_SHIPPING_ADDRESS_STREET' => 'Adres dostawy ulica:',
|
||||
'LBL_SHIPPING_ADDRESS' => 'Adres dostawy:',
|
||||
|
||||
'LBL_STATE' => 'Województwo:',
|
||||
'LBL_TEAMS_LINK'=>'Zespoły',
|
||||
'LBL_TICKER_SYMBOL' => 'Symbol wprowadzającego:',
|
||||
'LBL_TYPE' => 'Typ:',
|
||||
'LBL_USERS_ASSIGNED_LINK'=>'Przydzielony użytkownik',
|
||||
'LBL_USERS_CREATED_LINK'=>'Utworzone przez użytkowników',
|
||||
'LBL_USERS_MODIFIED_LINK'=>'Zmodyfikowane przez użytkowników',
|
||||
'LBL_VIEW_FORM_TITLE' => 'Widok klienta',
|
||||
'LBL_WEBSITE' => 'Strona WWW:',
|
||||
|
||||
'LNK_ACCOUNT_LIST' => 'Klienci',
|
||||
'LNK_NEW_ACCOUNT' => 'Dodaj klienta',
|
||||
|
||||
'MSG_DUPLICATE' => 'Stworzenie tego wpisu może spowodować zduplikowanie danych. Możesz wybrac jedną z poniższych możliwości, lub kliknąć na [Dodaj klienta], aby utworzyć nowego klienta, korzystając z danych wprowadzonych wcześniej.',
|
||||
'MSG_SHOW_DUPLICATES' => 'Wprowadzając tego użytkownika prawdopodobnie powielasz istniejące dane. Możesz wybrać dane z listy lub kliknąć [Dodaj Klienta] aby kontynuować wprowadzanie danych zachowując wartości z formularza.',
|
||||
|
||||
'NTC_COPY_BILLING_ADDRESS' => 'Kopiuj adres fakturowania do adresu dostawy',
|
||||
'NTC_COPY_BILLING_ADDRESS2' => 'Kopiuj do adresu dostawy',
|
||||
'NTC_COPY_SHIPPING_ADDRESS' => 'Kopiuj adres dostawy do adresu fakturowania',
|
||||
'NTC_COPY_SHIPPING_ADDRESS2' => 'Kopiuj do adresu fakturowania',
|
||||
'NTC_DELETE_CONFIRMATION' => 'Czy na pewno chcesz usunąć ten rekord?',
|
||||
'NTC_REMOVE_ACCOUNT_CONFIRMATION' => 'Czy na pewno chcesz usunąć ten rekord?',
|
||||
'NTC_REMOVE_MEMBER_ORG_CONFIRMATION' => 'Czy na pewno chcesz usunąć informacje o członkostwie?',
|
||||
|
||||
);
|
||||
|
||||
|
||||
66
include/SugarObjects/templates/company/metadata/SearchFields.php
Executable file
66
include/SugarObjects/templates/company/metadata/SearchFields.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/*
|
||||
* Created on Aug 2, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
|
||||
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".
|
||||
********************************************************************************/
|
||||
$module_name = '<module_name>';
|
||||
$searchFields[$module_name] =
|
||||
array (
|
||||
'name' => array( 'query_type'=>'default'),
|
||||
'account_type'=> array('query_type'=>'default', 'options' => 'account_type_dom', 'template_var' => 'ACCOUNT_TYPE_OPTIONS'),
|
||||
'industry'=> array('query_type'=>'default', 'options' => 'industry_dom', 'template_var' => 'INDUSTRY_OPTIONS'),
|
||||
'annual_revenue'=> array('query_type'=>'default'),
|
||||
'address_street'=> array('query_type'=>'default','db_field'=>array('billing_address_street','shipping_address_street')),
|
||||
'address_city'=> array('query_type'=>'default','db_field'=>array('billing_address_city','shipping_address_city')),
|
||||
'address_state'=> array('query_type'=>'default','db_field'=>array('billing_address_state','shipping_address_state')),
|
||||
'address_postalcode'=> array('query_type'=>'default','db_field'=>array('billing_address_postalcode','shipping_address_postalcode')),
|
||||
'address_country'=> array('query_type'=>'default','db_field'=>array('billing_address_country','shipping_address_country')),
|
||||
'rating'=> array('query_type'=>'default'),
|
||||
'phone'=> array('query_type'=>'default','db_field'=>array('phone_office')),
|
||||
'email'=> array('query_type'=>'default','db_field'=>array('email1','email2')),
|
||||
'website'=> array('query_type'=>'default'),
|
||||
'ownership'=> array('query_type'=>'default'),
|
||||
'employees'=> array('query_type'=>'default'),
|
||||
'ticker_symbol'=> array('query_type'=>'default'),
|
||||
'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
|
||||
'assigned_user_id'=> array('query_type'=>'default'),
|
||||
);
|
||||
?>
|
||||
58
include/SugarObjects/templates/company/metadata/dashletviewdefs.php
Executable file
58
include/SugarObjects/templates/company/metadata/dashletviewdefs.php
Executable file
@@ -0,0 +1,58 @@
|
||||
<?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 $current_user;
|
||||
$dashletData['<module_name>Dashlet']['searchFields'] = array('date_entered' => array('default' => ''),
|
||||
'date_modified' => array('default' => ''),
|
||||
'assigned_user_id' => array('type' => 'assigned_user_name',
|
||||
'default' => $current_user->name));
|
||||
$dashletData['<module_name>Dashlet']['columns'] = array( 'name' => array('width' => '40',
|
||||
'label' => 'LBL_LIST_NAME',
|
||||
'link' => true,
|
||||
'default' => true),
|
||||
'date_entered' => array('width' => '15',
|
||||
'label' => 'LBL_DATE_ENTERED',
|
||||
'default' => true),
|
||||
'date_modified' => array('width' => '15',
|
||||
'label' => 'LBL_DATE_MODIFIED'),
|
||||
'created_by' => array('width' => '8',
|
||||
'label' => 'LBL_CREATED'),
|
||||
'assigned_user_name' => array('width' => '8',
|
||||
'label' => 'LBL_LIST_ASSIGNED_USER'),
|
||||
);
|
||||
85
include/SugarObjects/templates/company/metadata/detailviewdefs.php
Executable file
85
include/SugarObjects/templates/company/metadata/detailviewdefs.php
Executable file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/*
|
||||
* Created on Aug 2, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
/*********************************************************************************
|
||||
* 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".
|
||||
********************************************************************************/
|
||||
$module_name = '<module_name>';
|
||||
$_object_name = '<_object_name>';
|
||||
$viewdefs[$module_name]['DetailView'] = array(
|
||||
'templateMeta' => array('form' => array('buttons'=>array('EDIT', 'DUPLICATE', 'DELETE', 'FIND_DUPLICATES')),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array('label' => '10', 'field' => '30'),
|
||||
array('label' => '10', 'field' => '30')
|
||||
),
|
||||
),
|
||||
'panels' => array(
|
||||
array('name', 'phone_office'),
|
||||
array(array('name'=>'website', 'type'=>'link'), 'phone_fax'),
|
||||
array('ticker_symbol', array('name'=>'phone_alternate', 'label'=>'LBL_OTHER_PHONE')),
|
||||
array('', 'employees'),
|
||||
array('ownership', 'rating'),
|
||||
array('industry'),
|
||||
array($_object_name . '_type', 'annual_revenue'),
|
||||
array('team_name',
|
||||
array('name'=>'date_modified', 'label'=>'LBL_DATE_MODIFIED', 'customCode'=>'{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}')),
|
||||
array(array('name'=>'assigned_user_name', 'label'=>'LBL_ASSIGNED_TO'),
|
||||
array('name'=>'date_entered', 'customCode'=>'{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}')),
|
||||
array (
|
||||
array (
|
||||
'name' => 'billing_address_street',
|
||||
'label'=> 'LBL_BILLING_ADDRESS',
|
||||
'type' => 'address',
|
||||
'displayParams'=>array('key'=>'billing'),
|
||||
),
|
||||
array (
|
||||
'name' => 'shipping_address_street',
|
||||
'label'=> 'LBL_SHIPPING_ADDRESS',
|
||||
'type' => 'address',
|
||||
'displayParams'=>array('key'=>'shipping'),
|
||||
),
|
||||
),
|
||||
|
||||
array('description'),
|
||||
array('email1'),
|
||||
),
|
||||
|
||||
|
||||
);
|
||||
?>
|
||||
97
include/SugarObjects/templates/company/metadata/editviewdefs.php
Executable file
97
include/SugarObjects/templates/company/metadata/editviewdefs.php
Executable file
@@ -0,0 +1,97 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
/*
|
||||
* Created on Aug 2, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
$module_name = '<module_name>';
|
||||
$_object_name = '<_object_name>';
|
||||
$viewdefs[$module_name]['EditView'] = array(
|
||||
'templateMeta' => array(
|
||||
'form' => array('buttons'=>array('SAVE', 'CANCEL')),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array('label' => '10', 'field' => '30'),
|
||||
array('label' => '10', 'field' => '30'),
|
||||
),
|
||||
'includes'=> array(
|
||||
array('file'=>'modules/Accounts/Account.js'),
|
||||
),
|
||||
),
|
||||
|
||||
'panels' => array(
|
||||
'lbl_account_information'=>array(
|
||||
array('name','phone_office'),
|
||||
array('website', 'phone_fax'),
|
||||
array('ticker_symbol', 'phone_alternate'),
|
||||
array('rating', 'employees'),
|
||||
array('ownership','industry'),
|
||||
|
||||
array($_object_name . '_type', 'annual_revenue'),
|
||||
array('assigned_user_name'),
|
||||
),
|
||||
'lbl_address_information'=>array(
|
||||
array (
|
||||
array (
|
||||
'name' => 'billing_address_street',
|
||||
'hideLabel'=> true,
|
||||
'type' => 'address',
|
||||
'displayParams'=>array('key'=>'billing', 'rows'=>2, 'cols'=>30, 'maxlength'=>150),
|
||||
),
|
||||
array (
|
||||
'name' => 'shipping_address_street',
|
||||
'hideLabel' => true,
|
||||
'type' => 'address',
|
||||
'displayParams'=>array('key'=>'shipping', 'copy'=>'billing', 'rows'=>2, 'cols'=>30, 'maxlength'=>150),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
'lbl_email_addresses'=>array(
|
||||
array('email1')
|
||||
),
|
||||
|
||||
'lbl_description_information' =>array(
|
||||
array('description'),
|
||||
),
|
||||
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
121
include/SugarObjects/templates/company/metadata/listviewdefs.php
Executable file
121
include/SugarObjects/templates/company/metadata/listviewdefs.php
Executable file
@@ -0,0 +1,121 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
$module_name = '<module_name>';
|
||||
$OBJECT_NAME = '<OBJECT_NAME>';
|
||||
$listViewDefs[$module_name] = array(
|
||||
'NAME' => array(
|
||||
'width' => '40',
|
||||
'label' => 'LBL_ACCOUNT_NAME',
|
||||
'link' => true,
|
||||
'default' => true),
|
||||
'BILLING_ADDRESS_CITY' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_CITY',
|
||||
'default' => true
|
||||
),
|
||||
'PHONE_OFFICE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PHONE',
|
||||
'default' => true),
|
||||
$OBJECT_NAME . '_TYPE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_TYPE'),
|
||||
'INDUSTRY' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_INDUSTRY'),
|
||||
'ANNUAL_REVENUE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_ANNUAL_REVENUE'),
|
||||
'PHONE_FAX' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PHONE_FAX'),
|
||||
'BILLING_ADDRESS_STREET' => array(
|
||||
'width' => '15',
|
||||
'label' => 'LBL_BILLING_ADDRESS_STREET'),
|
||||
'BILLING_ADDRESS_STATE' => array(
|
||||
'width' => '7',
|
||||
'label' => 'LBL_BILLING_ADDRESS_STATE'),
|
||||
'BILLING_ADDRESS_POSTALCODE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_BILLING_ADDRESS_POSTALCODE'),
|
||||
'BILLING_ADDRESS_COUNTRY' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_BILLING_ADDRESS_COUNTRY'),
|
||||
'SHIPPING_ADDRESS_STREET' => array(
|
||||
'width' => '15',
|
||||
'label' => 'LBL_SHIPPING_ADDRESS_STREET'),
|
||||
'SHIPPING_ADDRESS_CITY' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SHIPPING_ADDRESS_CITY'),
|
||||
'SHIPPING_ADDRESS_STATE' => array(
|
||||
'width' => '7',
|
||||
'label' => 'LBL_SHIPPING_ADDRESS_STATE'),
|
||||
'SHIPPING_ADDRESS_POSTALCODE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SHIPPING_ADDRESS_POSTALCODE'),
|
||||
'SHIPPING_ADDRESS_COUNTRY' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_SHIPPING_ADDRESS_COUNTRY'),
|
||||
'PHONE_ALTERNATE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_PHONE_ALT'),
|
||||
'WEBSITE' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_WEBSITE'),
|
||||
'OWNERSHIP' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_OWNERSHIP'),
|
||||
'EMPLOYEES' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_EMPLOYEES'),
|
||||
'TICKER_SYMBOL' => array(
|
||||
'width' => '10',
|
||||
'label' => 'LBL_TICKER_SYMBOL'),
|
||||
'EMAIL1' => array(
|
||||
'width' => '15%',
|
||||
'label' => 'LBL_EMAIL_ADDRESS',
|
||||
'sortable' => false,
|
||||
'link' => true,
|
||||
'customCode' => '{$EMAIL1_LINK}{$EMAIL1}</a>',
|
||||
'default' => true
|
||||
),
|
||||
'ASSIGNED_USER_NAME' => array(
|
||||
'width' => '2',
|
||||
'label' => 'LBL_ASSIGNED_USER',
|
||||
'default' => true),
|
||||
);
|
||||
?>
|
||||
51
include/SugarObjects/templates/company/metadata/metafiles.php
Executable file
51
include/SugarObjects/templates/company/metadata/metafiles.php
Executable file
@@ -0,0 +1,51 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
/*
|
||||
* Created on August 2 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
$module_name = '<module_name>';
|
||||
$metafiles[$module_name] = array(
|
||||
'detailviewdefs' => 'modules/'.$module_name.'/metadata/detailviewdefs.php',
|
||||
'editviewdefs' => 'modules/'. $module_name. '/metadata/editviewdefs.php',
|
||||
'listviewdefs' => 'modules/'. $module_name. '/metadata/listviewdefs.php',
|
||||
'searchdefs' => 'modules/'. $module_name. '/metadata/searchdefs.php',
|
||||
'popupdefs' => 'modules/'. $module_name. '/metadata/popupdefs.php',
|
||||
'searchfields' => 'modules/'. $module_name. '/metadata/SearchFields.php',
|
||||
);
|
||||
?>
|
||||
64
include/SugarObjects/templates/company/metadata/popupdefs.php
Executable file
64
include/SugarObjects/templates/company/metadata/popupdefs.php
Executable file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/*
|
||||
* Created on Aug 2, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
|
||||
|
||||
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".
|
||||
********************************************************************************/
|
||||
$module_name = '<module_name>';
|
||||
$object_name = '<object_name>';
|
||||
$_module_name = '<_module_name>';
|
||||
$popupMeta = array('moduleMain' => $module_name,
|
||||
'varName' => $object_name,
|
||||
'orderBy' => $_module_name.'.name',
|
||||
'whereClauses' =>
|
||||
array('name' => $_module_name.'.name',
|
||||
'billing_address_city' => $_module_name.'.billing_address_city',
|
||||
'phone_office' => $_module_name.'.phone_office'),
|
||||
'searchInputs' =>
|
||||
array('name',
|
||||
'billing_address_city',
|
||||
'phone_office',
|
||||
'industry'
|
||||
|
||||
),
|
||||
);
|
||||
?>
|
||||
|
||||
73
include/SugarObjects/templates/company/metadata/quickcreatedefs.php
Executable file
73
include/SugarObjects/templates/company/metadata/quickcreatedefs.php
Executable file
@@ -0,0 +1,73 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
/*
|
||||
* Created on Aug 2, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
$module_name = '<module_name>';
|
||||
$_object_name = '<_object_name>';
|
||||
$viewdefs[$module_name]['QuickCreate'] = array(
|
||||
'templateMeta' => array(
|
||||
'form' => array('buttons'=>array('SAVE', 'CANCEL')),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array('label' => '10', 'field' => '30'),
|
||||
array('label' => '10', 'field' => '30'),
|
||||
),
|
||||
'includes'=> array(
|
||||
array('file'=>'modules/Accounts/Account.js'),
|
||||
),
|
||||
),
|
||||
|
||||
'panels' => array(
|
||||
'lbl_account_information'=>array(
|
||||
array(array('name'=>'name', 'displayParams'=>array('required'=>true)), 'assigned_user_name'),
|
||||
array('website',
|
||||
),
|
||||
array('industry', array('name'=>'phone_office')),
|
||||
array($_object_name . '_type', 'phone_fax'),
|
||||
array('annual_revenue', ''),
|
||||
),
|
||||
'lbl_email_addresses'=>array(
|
||||
array('email1')
|
||||
),
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
77
include/SugarObjects/templates/company/metadata/searchdefs.php
Executable file
77
include/SugarObjects/templates/company/metadata/searchdefs.php
Executable file
@@ -0,0 +1,77 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
/*
|
||||
* Created on Aug 2, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
$module_name = '<module_name>';
|
||||
$_module_name = '<_module_name>';
|
||||
$searchdefs[$module_name] = array(
|
||||
'templateMeta' => array(
|
||||
'maxColumns' => '3',
|
||||
'widths' => array('label' => '10', 'field' => '30'),
|
||||
),
|
||||
'layout' => array(
|
||||
'basic_search' => array(
|
||||
'name',
|
||||
array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
|
||||
),
|
||||
'advanced_search' => array(
|
||||
'name',
|
||||
array('name' => 'address_street', 'label' =>'LBL_ANY_ADDRESS', 'type' => 'name'),
|
||||
array('name' => 'phone', 'label' =>'LBL_ANY_PHONE', 'type' => 'name'),
|
||||
'website',
|
||||
array('name' => 'address_city', 'label' =>'LBL_CITY', 'type' => 'name'),
|
||||
array('name' => 'email', 'label' =>'LBL_ANY_EMAIL', 'type' => 'name'),
|
||||
'annual_revenue',
|
||||
array('name' => 'address_state', 'label' =>'LBL_STATE', 'type' => 'name'),
|
||||
'employees',
|
||||
'industry',
|
||||
array('name' => 'address_postalcode', 'label' =>'LBL_POSTAL_CODE', 'type' => 'name'),
|
||||
'ticker_symbol',
|
||||
$_module_name . '_type',
|
||||
array('name' => 'address_country', 'label' =>'LBL_COUNTRY', 'type' => 'name'),
|
||||
'rating',
|
||||
array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
|
||||
'ownership',
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
|
||||
|
||||
79
include/SugarObjects/templates/company/metadata/subpanels/default.php
Executable file
79
include/SugarObjects/templates/company/metadata/subpanels/default.php
Executable file
@@ -0,0 +1,79 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
$module_name = '<module_name>';
|
||||
$subpanel_layout = array(
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => $module_name),
|
||||
),
|
||||
|
||||
'where' => '',
|
||||
|
||||
'list_fields' => array(
|
||||
'name'=>array(
|
||||
'vname' => 'LBL_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '45%',
|
||||
),
|
||||
'industry'=>array(
|
||||
'vname' => 'LBL_INDUSTRY',
|
||||
'width' => '15%',
|
||||
),
|
||||
'phone_office'=>array(
|
||||
'vname' => 'LBL_PHONE_OFFICE',
|
||||
'width' => '15%',
|
||||
),
|
||||
'assigned_user_name' => array (
|
||||
'name' => 'assigned_user_name',
|
||||
'vname' => 'LBL_ASSIGNED_USER',
|
||||
),
|
||||
'edit_button'=>array(
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'module' => $module_name,
|
||||
'width' => '4%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'module' => $module_name,
|
||||
'width' => '5%',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
364
include/SugarObjects/templates/company/vardefs.php
Executable file
364
include/SugarObjects/templates/company/vardefs.php
Executable file
@@ -0,0 +1,364 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
$vardefs= array (
|
||||
'fields' => array (
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'name',
|
||||
'dbType' => 'varchar',
|
||||
'vname' => 'LBL_NAME',
|
||||
'len' => 150,
|
||||
'comment' => 'Name of the Company',
|
||||
'unified_search' => true,
|
||||
'audited' => true,
|
||||
'required'=>true,
|
||||
'importable' => 'required',
|
||||
'merge_filter' => 'selected', //field will be enabled for merge and will be a part of the default search criteria..other valid values for this property are enabled and disabled, default value is disabled.
|
||||
//property value is case insensitive.
|
||||
),
|
||||
|
||||
strtolower($object_name).'_type' =>
|
||||
array (
|
||||
'name' => strtolower($object_name).'_type',
|
||||
'vname' => 'LBL_TYPE',
|
||||
'type' => 'enum',
|
||||
'options' => strtolower($object_name).'_type_dom',
|
||||
'len'=>50,
|
||||
'comment' => 'The Company is of this type',
|
||||
),
|
||||
'industry' =>
|
||||
array (
|
||||
'name' => 'industry',
|
||||
'vname' => 'LBL_INDUSTRY',
|
||||
'type' => 'enum',
|
||||
'options' => 'industry_dom',
|
||||
'len'=>50,
|
||||
'comment' => 'The company belongs in this industry',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'annual_revenue' =>
|
||||
array (
|
||||
'name' => 'annual_revenue',
|
||||
'vname' => 'LBL_ANNUAL_REVENUE',
|
||||
'type' => 'varchar',
|
||||
'len' => 25,
|
||||
'comment' => 'Annual revenue for this company',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'phone_fax' =>
|
||||
array (
|
||||
'name' => 'phone_fax',
|
||||
'vname' => 'LBL_FAX',
|
||||
'type' => 'phone',
|
||||
'dbType' => 'varchar',
|
||||
'len' => 25,
|
||||
'unified_search' => true,
|
||||
'comment' => 'The fax phone number of this company',
|
||||
),
|
||||
|
||||
'billing_address_street' =>
|
||||
array (
|
||||
'name' => 'billing_address_street',
|
||||
'vname' => 'LBL_BILLING_ADDRESS_STREET',
|
||||
'type' => 'varchar',
|
||||
'len' => '150',
|
||||
'comment' => 'The street address used for billing address',
|
||||
'group'=>'billing_address',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'billing_address_street_2' =>
|
||||
array (
|
||||
'name' => 'billing_address_street_2',
|
||||
'vname' => 'LBL_BILLING_ADDRESS_STREET_2',
|
||||
'type' => 'varchar',
|
||||
'len' => '150',
|
||||
'source'=>'non-db',
|
||||
),
|
||||
'billing_address_street_3' =>
|
||||
array (
|
||||
'name' => 'billing_address_street_3',
|
||||
'vname' => 'LBL_BILLING_ADDRESS_STREET_3',
|
||||
'type' => 'varchar',
|
||||
'len' => '150',
|
||||
'source'=>'non-db',
|
||||
),
|
||||
'billing_address_street_4' =>
|
||||
array (
|
||||
'name' => 'billing_address_street_4',
|
||||
'vname' => 'LBL_BILLING_ADDRESS_STREET_4',
|
||||
'type' => 'varchar',
|
||||
'len' => '150',
|
||||
'source'=>'non-db',
|
||||
),
|
||||
'billing_address_city' =>
|
||||
array (
|
||||
'name' => 'billing_address_city',
|
||||
'vname' => 'LBL_BILLING_ADDRESS_CITY',
|
||||
'type' => 'varchar',
|
||||
'len' => '100',
|
||||
'comment' => 'The city used for billing address',
|
||||
'group'=>'billing_address',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'billing_address_state' =>
|
||||
array (
|
||||
'name' => 'billing_address_state',
|
||||
'vname' => 'LBL_BILLING_ADDRESS_STATE',
|
||||
'type' => 'varchar',
|
||||
'len' => '100',
|
||||
'group'=>'billing_address',
|
||||
'comment' => 'The state used for billing address',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'billing_address_postalcode' =>
|
||||
array (
|
||||
'name' => 'billing_address_postalcode',
|
||||
'vname' => 'LBL_BILLING_ADDRESS_POSTALCODE',
|
||||
'type' => 'varchar',
|
||||
'len' => '20',
|
||||
'group'=>'billing_address',
|
||||
'comment' => 'The postal code used for billing address',
|
||||
'merge_filter' => 'enabled',
|
||||
|
||||
),
|
||||
'billing_address_country' =>
|
||||
array (
|
||||
'name' => 'billing_address_country',
|
||||
'vname' => 'LBL_BILLING_ADDRESS_COUNTRY',
|
||||
'type' => 'varchar',
|
||||
'group'=>'billing_address',
|
||||
'comment' => 'The country used for the billing address',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'rating' =>
|
||||
array (
|
||||
'name' => 'rating',
|
||||
'vname' => 'LBL_RATING',
|
||||
'type' => 'varchar',
|
||||
'len' => 25,
|
||||
'comment' => 'An arbitrary rating for this company for use in comparisons with others',
|
||||
),
|
||||
'phone_office' =>
|
||||
array (
|
||||
'name' => 'phone_office',
|
||||
'vname' => 'LBL_PHONE_OFFICE',
|
||||
'type' => 'phone',
|
||||
'dbType' => 'varchar',
|
||||
'len' => 25,
|
||||
'audited'=>true,
|
||||
'unified_search' => true,
|
||||
'comment' => 'The office phone number',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'phone_alternate' =>
|
||||
array (
|
||||
'name' => 'phone_alternate',
|
||||
'vname' => 'LBL_PHONE_ALT',
|
||||
'type' => 'phone',
|
||||
'group'=>'phone_office',
|
||||
'dbType' => 'varchar',
|
||||
'len' => 25,
|
||||
'unified_search' => true,
|
||||
'comment' => 'An alternate phone number',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'website' =>
|
||||
array (
|
||||
'name' => 'website',
|
||||
'vname' => 'LBL_WEBSITE',
|
||||
'type' => 'url',
|
||||
'dbType' => 'varchar',
|
||||
'len' => 255,
|
||||
'comment' => 'URL of website for the company',
|
||||
),
|
||||
'ownership' =>
|
||||
array (
|
||||
'name' => 'ownership',
|
||||
'vname' => 'LBL_OWNERSHIP',
|
||||
'type' => 'varchar',
|
||||
'len' => 100,
|
||||
'comment' => '',
|
||||
),
|
||||
'employees' =>
|
||||
array (
|
||||
'name' => 'employees',
|
||||
'vname' => 'LBL_EMPLOYEES',
|
||||
'type' => 'varchar',
|
||||
'len' => 10,
|
||||
'comment' => 'Number of employees, varchar to accomodate for both number (100) or range (50-100)',
|
||||
),
|
||||
'ticker_symbol' =>
|
||||
array (
|
||||
'name' => 'ticker_symbol',
|
||||
'vname' => 'LBL_TICKER_SYMBOL',
|
||||
'type' => 'varchar',
|
||||
'len' => 10,
|
||||
'comment' => 'The stock trading (ticker) symbol for the company',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'shipping_address_street' =>
|
||||
array (
|
||||
'name' => 'shipping_address_street',
|
||||
'vname' => 'LBL_SHIPPING_ADDRESS_STREET',
|
||||
'type' => 'varchar',
|
||||
'len' => 150,
|
||||
'group'=>'shipping_address',
|
||||
'comment' => 'The street address used for for shipping purposes',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'shipping_address_street_2' =>
|
||||
array (
|
||||
'name' => 'shipping_address_street_2',
|
||||
'vname' => 'LBL_SHIPPING_ADDRESS_STREET_2',
|
||||
'type' => 'varchar',
|
||||
'len' => 150,
|
||||
'source'=>'non-db',
|
||||
),
|
||||
'shipping_address_street_3' =>
|
||||
array (
|
||||
'name' => 'shipping_address_street_3',
|
||||
'vname' => 'LBL_SHIPPING_ADDRESS_STREET_3',
|
||||
'type' => 'varchar',
|
||||
'len' => 150,
|
||||
'source'=>'non-db',
|
||||
),
|
||||
'shipping_address_street_4' =>
|
||||
array (
|
||||
'name' => 'shipping_address_street_4',
|
||||
'vname' => 'LBL_SHIPPING_ADDRESS_STREET_4',
|
||||
'type' => 'varchar',
|
||||
'len' => 150,
|
||||
'source'=>'non-db',
|
||||
),
|
||||
'shipping_address_city' =>
|
||||
array (
|
||||
'name' => 'shipping_address_city',
|
||||
'vname' => 'LBL_SHIPPING_ADDRESS_CITY',
|
||||
'type' => 'varchar',
|
||||
'len' => 100,
|
||||
'group'=>'shipping_address',
|
||||
'comment' => 'The city used for the shipping address',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'shipping_address_state' =>
|
||||
array (
|
||||
'name' => 'shipping_address_state',
|
||||
'vname' => 'LBL_SHIPPING_ADDRESS_STATE',
|
||||
'type' => 'varchar',
|
||||
'len' => 100,
|
||||
'group'=>'shipping_address',
|
||||
'comment' => 'The state used for the shipping address',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'shipping_address_postalcode' =>
|
||||
array (
|
||||
'name' => 'shipping_address_postalcode',
|
||||
'vname' => 'LBL_SHIPPING_ADDRESS_POSTALCODE',
|
||||
'type' => 'varchar',
|
||||
'len' => 20,
|
||||
'group'=>'shipping_address',
|
||||
'comment' => 'The zip code used for the shipping address',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
'shipping_address_country' =>
|
||||
array (
|
||||
'name' => 'shipping_address_country',
|
||||
'vname' => 'LBL_SHIPPING_ADDRESS_COUNTRY',
|
||||
'type' => 'varchar',
|
||||
'group'=>'shipping_address',
|
||||
'comment' => 'The country used for the shipping address',
|
||||
'merge_filter' => 'enabled',
|
||||
),
|
||||
|
||||
|
||||
'email1' => array(
|
||||
'name' => 'email1',
|
||||
'vname' => 'LBL_EMAIL',
|
||||
'group'=>'email1',
|
||||
'type' => 'varchar',
|
||||
'function' => array(
|
||||
'name' => 'getEmailAddressWidget',
|
||||
'returns' => 'html'
|
||||
),
|
||||
'source' => 'non-db',
|
||||
'studio' => array('editField' => true),
|
||||
),
|
||||
|
||||
'email_addresses_primary' =>
|
||||
array (
|
||||
'name' => 'email_addresses_primary',
|
||||
'type' => 'link',
|
||||
'relationship' => strtolower($object_name).'_email_addresses_primary',
|
||||
'source' => 'non-db',
|
||||
'vname' => 'LBL_EMAIL_ADDRESS_PRIMARY',
|
||||
'duplicate_merge' => 'disabled',
|
||||
),
|
||||
|
||||
'email_addresses' =>
|
||||
array (
|
||||
'name' => 'email_addresses',
|
||||
'type' => 'link',
|
||||
'relationship' => strtolower($object_name).'_email_addresses',
|
||||
'source' => 'non-db',
|
||||
'vname' => 'LBL_EMAIL_ADDRESSES',
|
||||
'reportable'=>false,
|
||||
'unified_search' => true,
|
||||
'rel_fields' => array('primary_address' => array('type'=>'bool')),
|
||||
),
|
||||
),
|
||||
'relationships'=>array(
|
||||
strtolower($module).'_email_addresses' =>
|
||||
array(
|
||||
'lhs_module'=> $module, 'lhs_table'=> strtolower($module), 'lhs_key' => 'id',
|
||||
'rhs_module'=> 'EmailAddresses', 'rhs_table'=> 'email_addresses', 'rhs_key' => 'id',
|
||||
'relationship_type'=>'many-to-many',
|
||||
'join_table'=> 'email_addr_bean_rel', 'join_key_lhs'=>'bean_id', 'join_key_rhs'=>'email_address_id',
|
||||
'relationship_role_column'=>'bean_module',
|
||||
'relationship_role_column_value'=>$module
|
||||
),
|
||||
strtolower($module).'_email_addresses_primary' =>
|
||||
array('lhs_module'=> $module, 'lhs_table'=> strtolower($module), 'lhs_key' => 'id',
|
||||
'rhs_module'=> 'EmailAddresses', 'rhs_table'=> 'email_addresses', 'rhs_key' => 'id',
|
||||
'relationship_type'=>'many-to-many',
|
||||
'join_table'=> 'email_addr_bean_rel', 'join_key_lhs'=>'bean_id', 'join_key_rhs'=>'email_address_id',
|
||||
'relationship_role_column'=>'primary_address',
|
||||
'relationship_role_column_value'=>'1'
|
||||
),
|
||||
)
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user