This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

View File

@@ -0,0 +1,250 @@
<?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".
********************************************************************************/
class LanguageManager{
/**
* Called from VardefManager to allow for caching a lang file for a module
* @param module - the name of the module we are working with
* @param templates - an array of templates this module uses
*/
function createLanguageFile($module , $templates=array('default'), $refresh = false){
global $mod_strings, $current_language;
if(!empty($GLOBALS['sugar_config']['developerMode']) || !empty($_SESSION['developerMode'])){
$refresh = true;
}
$temp_mod_strings = $mod_strings;
$lang = $current_language;
if(empty($lang))
$lang = $GLOBALS['sugar_config']['default_language'];
static $createdModules = array();
if(empty($createdModules[$module]) && ($refresh || !file_exists($GLOBALS['sugar_config']['cache_dir'].'modules/'.$module.'/language/'.$lang.'.lang.php'))){
$loaded_mod_strings = array();
$loaded_mod_strings = LanguageManager::loadTemplateLanguage($module , $templates, $lang , $loaded_mod_strings);
$createdModules[$module] = true;
LanguageManager::refreshLanguage($module,$lang, $loaded_mod_strings);
}
}
/**
* Load the module tempalte lauguage files
* @param module - the name of the module we are working with
* @param templates - an array of templates this module uses
* @param lang - current language this module use
* @param loaded_mod_strings - the string that we will add the module template language into
*/
function loadTemplateLanguage($module , $templates , $lang, $loaded_mod_strings){
$templates = array_reverse($templates);
foreach($templates as $template){
$temp = LanguageManager::addTemplate($module,$lang, $template);
$loaded_mod_strings = sugarArrayMerge($loaded_mod_strings, $temp);
}
return $loaded_mod_strings;
}
function addTemplate($module, $lang, $template){
if($template == 'default')$template = 'basic';
$templates = array();
$fields = array();
if(empty($templates[$template])){
$path = 'include/SugarObjects/templates/' . $template . '/language/'.$lang.'.lang.php';
if(file_exists($path)){
require($path);
$templates[$template] = $mod_strings;
}else{
$path = 'include/SugarObjects/implements/' . $template . '/language/'.$lang.'.lang.php';
if(file_exists($path)){
require($path);
$templates[$template] = $mod_strings;
}
}
}
if(!empty($templates[$template])){
return $templates[$template];
}
}
function saveCache($module,$lang, $loaded_mod_strings, $additonal_objects= array()){
if(empty($lang))
$lang = $GLOBALS['sugar_config']['default_language'];
$file = create_cache_directory('modules/' . $module . '/language/'.$lang.'.lang.php');
write_array_to_file('mod_strings',$loaded_mod_strings, $file);
include($file);
// put the item in the sugar cache.
$key = "LanguageManager.$module.$lang";
sugar_cache_put($key,$loaded_mod_strings);
}
/**
* clear out the language cache.
* @param string module_dir the module_dir to clear, if not specified then clear
* clear vardef cache for all modules.
* @param string lang the name of the object we are clearing this is for sugar_cache
*/
function clearLanguageCache($module_dir = '', $lang = ''){
if(empty($lang))
$lang = $GLOBALS['sugar_config']['default_language'];
//if we have a module name specified then just remove that vardef file
//otherwise go through each module and remove the vardefs.php
if(!empty($module_dir)){
LanguageManager::_clearCache($module_dir, $lang);
}else{
global $beanList;
foreach($beanList as $module_dir => $object_name){
LanguageManager::_clearCache($module_dir, $lang);
}
}
}
/**
* PRIVATE function used within clearLanguageCache so we do not repeat logic
* @param string module_dir the module_dir to clear
* @param string lang the name of the language file we are clearing this is for sugar_cache
*/
function _clearCache($module_dir = '', $lang){
if(!empty($module_dir) && !empty($lang)){
$file = $GLOBALS['sugar_config']['cache_dir'].'modules/'.$module_dir.'/language/'.$lang.'.lang.php';
if(file_exists($file)){
unlink($file);
$key = "LanguageManager.$module_dir.$lang";
sugar_cache_clear($key);
}
}
}
/**
* Given a module, search all of the specified locations, and any others as specified
* in order to refresh the cache file
*
* @param string $module the given module we want to load the vardefs for
* @param string $lang the given language we wish to load
* @param array $additional_search_paths an array which allows a consumer to pass in additional vardef locations to search
*/
function refreshLanguage($module, $lang, $loaded_mod_strings = array(), $additional_search_paths = null){
// Some of the vardefs do not correctly define dictionary as global. Declare it first.
$lang_paths = array(
'modules/'.$module.'/language/'.$lang.'.lang.php',
'modules/'.$module.'/language/'.$lang.'.lang.override.php',
'custom/modules/'.$module.'/Ext/Language/'.$lang.'.lang.ext.php',
'custom/modules/'.$module.'/language/'.$lang.'.lang.php',
);
#27023, if this module template language file was not attached , get the template from this module vardef cache file if exsits and load the template language files.
static $createdModules;
if(empty($createdModules[$module]) && isset($GLOBALS['beanList'][$module])){
$object = $GLOBALS['beanList'][$module];
if ($object == 'aCase')
$object = 'Case';
if(!empty($GLOBALS["dictionary"]["$object"]["templates"])){
$templates = $GLOBALS["dictionary"]["$object"]["templates"];
$loaded_mod_strings = LanguageManager::loadTemplateLanguage($module , $templates, $lang , $loaded_mod_strings);
$createdModules[$module] = true;
}
}
//end of fix #27023
// Add in additional search paths if they were provided.
if(!empty($additional_search_paths) && is_array($additional_search_paths))
{
$lang_paths = array_merge($lang_paths, $additional_search_paths);
}
//search a predefined set of locations for the vardef files
foreach($lang_paths as $path){
if(file_exists($path)){
require($path);
if(!empty($mod_strings)){
if (function_exists('sugarArrayMergeRecursive')){
$loaded_mod_strings = sugarArrayMergeRecursive($loaded_mod_strings, $mod_strings);
}
else{
$loaded_mod_strings = sugarArrayMerge($loaded_mod_strings, $mod_strings);
}
}
}
}
//great! now that we have loaded all of our vardefs.
//let's go save them to the cache file.
if(!empty($loaded_mod_strings))
LanguageManager::saveCache($module, $lang, $loaded_mod_strings);
}
function loadModuleLanguage($module, $lang, $refresh=false){
//here check if the cache file exists, if it does then load it, if it doesn't
//then call refreshVardef
//if either our session or the system is set to developerMode then refresh is set to true
// Retrieve the vardefs from cache.
$key = "LanguageManager.$module.$lang";
if(!$refresh)
{
$return_result = sugar_cache_retrieve($key);
if(!empty($return_result)){
return $return_result;
}
}
// Some of the vardefs do not correctly define dictionary as global. Declare it first.
if($refresh || !file_exists($GLOBALS['sugar_config']['cache_dir'].'modules/'.$module.'/language/'.$lang.'.lang.php')){
LanguageManager::refreshLanguage($module, $lang);
}
//at this point we should have the cache/modules/... file
//which was created from the refreshVardefs so let's try to load it.
if(file_exists($GLOBALS['sugar_config']['cache_dir'].'modules/'. $module . '/language/'.$lang.'.lang.php')){
global $mod_strings;
require($GLOBALS['sugar_config']['cache_dir'].'modules/'. $module . '/language/'.$lang.'.lang.php');
// now that we hae loaded the data from disk, put it in the cache.
if(!empty($mod_strings))
sugar_cache_put($key,$mod_strings);
if(!empty($_SESSION['translation_mode'])){
$mod_strings = array_map('translated_prefix', $mod_strings);
}
return $mod_strings;
}
}
}
function translated_prefix($key){
return '[translated]' . $key;
}

View File

@@ -0,0 +1,77 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
class SugarConfig
{
var $_cached_values = array();
function getInstance() {
static $instance = null;
if (is_null($instance)) {
$instance = new SugarConfig();
}
return $instance;
}
function get($key, $default = null) {
if (!isset($this->_cached_values[$key])) {
if (!class_exists('SugarArray', true)) {
require 'include/utils/array_utils.php';
}
$this->_cached_values[$key] = isset($GLOBALS['sugar_config']) ?
SugarArray::staticGet($GLOBALS['sugar_config'], $key, $default) :
$default;
}
return $this->_cached_values[$key];
}
function clearCache($key = null) {
if (is_null($key)) {
$this->_cached_values = array();
} else {
unset($this->_cached_values[$key]);
}
}
}

View File

@@ -0,0 +1,76 @@
<?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".
********************************************************************************/
class SugarRegistry
{
private static $_instances = array();
private $_data = array();
public function __construct() {
}
public static function getInstance($name = 'default') {
if (!isset(self::$_instances[$name])) {
self::$_instances[$name] = new self();
}
return self::$_instances[$name];
}
public function __get($key) {
return isset($this->_data[$key]) ? $this->_data[$key] : null;
}
public function __set($key, $value) {
$this->_data[$key] = $value;
}
public function __isset($key) {
return isset($this->_data[$key]);
}
public function __unset($key) {
unset($this->_data[$key]);
}
public function addToGlobals() {
foreach ($this->_data as $k => $v) {
$GLOBALS[$k] = $v;
}
}
}

View File

@@ -0,0 +1,100 @@
<?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".
********************************************************************************/
/**
* Provide application specific logic to the session object.
*
*/
class SugarSession{
private static $_instance;
public static $sessionId;
/**
* When constructing the session object, be sure to check if the session_id() already exists as is the case of session.auto_start = 1
*
*/
public function __construct(){
}
public function setSessionId($sessionId){
self::$sessionId = session_id($sessionId);
}
public function start(){
$session_id = session_id();
if(empty($session_id)){
session_start();
self::$sessionId = session_id();
}else{
self::$sessionId = $session_id;
}
}
public static function getInstance(){
if(!isset(self::$_instance)){
$className = __CLASS__;
self::$_instance = new $className();
}
return self::$_instance;
}
public function destroy(){
foreach ($_SESSION as $var => $val) {
$_SESSION[$var] = null;
}
session_destroy();
}
public function __clone(){
}
public function __get($var){
return (!empty($_SESSION[$var]) ? $_SESSION[$var] : '');
}
public function __set($var, $val){
return ($_SESSION[$var] = $val);
}
public function __destruct(){
session_write_close();
}
}
?>

View File

@@ -0,0 +1,276 @@
<?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".
* ****************************************************************************** */
class VardefManager {
static $custom_disabled_modules = array();
/**
* this method is called within a vardefs.php file which extends from a SugarObject.
* It is meant to load the vardefs from the SugarObject.
*/
static function createVardef($module, $object, $templates = array('default'), $object_name = false) {
global $dictionary;
//reverse the sort order so priority goes highest to lowest;
$templates = array_reverse($templates);
foreach ($templates as $template) {
VardefManager::addTemplate($module, $object, $template, $object_name);
}
LanguageManager::createLanguageFile($module, $templates);
if (isset(VardefManager::$custom_disabled_modules[$module])) {
$vardef_paths = array(
'custom/modules/' . $module . '/Ext/Vardefs/vardefs.ext.php',
'custom/Extension/modules/' . $module . '/Ext/Vardefs/vardefs.php'
);
//search a predefined set of locations for the vardef files
foreach ($vardef_paths as $path) {
if (file_exists($path)) {
require($path);
}
}
}
}
/**
* Enables/Disables the loading of custom vardefs for a module.
* @param String $module Module to be enabled/disabled
* @param Boolean $enable true to enable, false to disable
* @return null
*/
public static function setCustomAllowedForModule($module, $enable) {
if ($enable && isset($custom_disabled_modules[$module])) {
unset($custom_disabled_modules[$module]);
} else if (!$enable) {
$custom_disabled_modules[$module] = true;
}
}
static function addTemplate($module, $object, $template, $object_name = false) {
if ($template == 'default')
$template = 'basic';
$templates = array();
$fields = array();
if (empty($object_name))
$object_name = $object;
$_object_name = strtolower($object_name);
if (!empty($GLOBALS['dictionary'][$object]['table'])) {
$table_name = $GLOBALS['dictionary'][$object]['table'];
} else {
$table_name = strtolower($module);
}
if (empty($templates[$template])) {
$path = 'include/SugarObjects/templates/' . $template . '/vardefs.php';
if (file_exists($path)) {
require($path);
$templates[$template] = $vardefs;
} else {
$path = 'include/SugarObjects/implements/' . $template . '/vardefs.php';
if (file_exists($path)) {
require($path);
$templates[$template] = $vardefs;
}
}
}
if (!empty($templates[$template])) {
if (empty($GLOBALS['dictionary'][$object]['fields']))
$GLOBALS['dictionary'][$object]['fields'] = array();
if (empty($GLOBALS['dictionary'][$object]['relationships']))
$GLOBALS['dictionary'][$object]['relationships'] = array();
if (empty($GLOBALS['dictionary'][$object]['indices']))
$GLOBALS['dictionary'][$object]['indices'] = array();
$GLOBALS['dictionary'][$object]['fields'] = array_merge($templates[$template]['fields'], $GLOBALS['dictionary'][$object]['fields']);
if (!empty($templates[$template]['relationships']))
$GLOBALS['dictionary'][$object]['relationships'] = array_merge($templates[$template]['relationships'], $GLOBALS['dictionary'][$object]['relationships']);
if (!empty($templates[$template]['indices']))
$GLOBALS['dictionary'][$object]['indices'] = array_merge($templates[$template]['indices'], $GLOBALS['dictionary'][$object]['indices']);
// maintain a record of this objects inheritance from the SugarObject templates...
$GLOBALS['dictionary'][$object]['templates'][$template] = $template;
}
}
/**
* Save the dictionary object to the cache
* @param string $module the name of the module
* @param string $object the name of the object
*/
static function saveCache($module, $object, $additonal_objects = array()) {
$file = create_cache_directory('modules/' . $module . '/' . $object . 'vardefs.php');
write_array_to_file('GLOBALS["dictionary"]["' . $object . '"]', $GLOBALS['dictionary'][$object], $file);
include($file);
// put the item in the sugar cache.
$key = "VardefManager.$module.$object";
$data = $GLOBALS['dictionary'][$object];
sugar_cache_put($key, $data);
}
/**
* clear out the vardef cache. If we receive a module name then just clear the vardef cache for that module
* otherwise clear out the cache for every module
* @param string module_dir the module_dir to clear, if not specified then clear
* clear vardef cache for all modules.
* @param string object_name the name of the object we are clearing this is for sugar_cache
*/
static function clearVardef($module_dir = '', $object_name = '') {
//if we have a module name specified then just remove that vardef file
//otherwise go through each module and remove the vardefs.php
if (!empty($module_dir) && !empty($object_name)) {
VardefManager::_clearCache($module_dir, $object_name);
} else {
global $beanList;
foreach ($beanList as $module_dir => $object_name) {
VardefManager::_clearCache($module_dir, $object_name);
}
}
}
/**
* PRIVATE function used within clearVardefCache so we do not repeat logic
* @param string module_dir the module_dir to clear
* @param string object_name the name of the object we are clearing this is for sugar_cache
*/
static function _clearCache($module_dir = '', $object_name = '') {
if (!empty($module_dir) && !empty($object_name)) {
if ($object_name == 'aCase') {
$object_name = 'Case';
}
$file = $GLOBALS['sugar_config']['cache_dir'] . 'modules/' . $module_dir . '/' . $object_name . 'vardefs.php';
if (file_exists($file)) {
unlink($file);
$key = "VardefManager.$module_dir.$object_name";
sugar_cache_clear($key);
}
}
}
/**
* Given a module, search all of the specified locations, and any others as specified
* in order to refresh the cache file
*
* @param string $module the given module we want to load the vardefs for
* @param string $object the given object we wish to load the vardefs for
* @param array $additional_search_paths an array which allows a consumer to pass in additional vardef locations to search
*/
static function refreshVardefs($module, $object, $additional_search_paths = null, $cacheCustom = true) {
// Some of the vardefs do not correctly define dictionary as global. Declare it first.
global $dictionary;
$vardef_paths = array(
'modules/' . $module . '/vardefs.php',
'custom/modules/' . $module . '/Ext/Vardefs/vardefs.ext.php',
'custom/Extension/modules/' . $module . '/Ext/Vardefs/vardefs.php'
);
// Add in additional search paths if they were provided.
if (!empty($additional_search_paths) && is_array($additional_search_paths)) {
$vardef_paths = array_merge($vardef_paths, $additional_search_paths);
}
//search a predefined set of locations for the vardef files
foreach ($vardef_paths as $path) {
if (file_exists($path)) {
require($path);
}
}
//load custom fields into the vardef cache
if ($cacheCustom) {
require_once("modules/DynamicFields/DynamicField.php");
$df = new DynamicField($module);
$df->buildCache($module);
}
//great! now that we have loaded all of our vardefs.
//let's go save them to the cache file.
if (!empty($GLOBALS['dictionary'][$object]))
VardefManager::saveCache($module, $object);
}
/**
* load the vardefs for a given module and object
* @param string $module the given module we want to load the vardefs for
* @param string $object the given object we wish to load the vardefs for
* @param bool $refresh whether or not we wish to refresh the cache file.
*/
static function loadVardef($module, $object, $refresh = false) {
//here check if the cache file exists, if it does then load it, if it doesn't
//then call refreshVardef
//if either our session or the system is set to developerMode then refresh is set to true
if (!empty($GLOBALS['sugar_config']['developerMode']) || !empty($_SESSION['developerMode'])) {
$refresh = true;
}
// Retrieve the vardefs from cache.
$key = "VardefManager.$module.$object";
if (!$refresh) {
$return_result = sugar_cache_retrieve($key);
if (!empty($return_result)) {
$GLOBALS['dictionary'][$object] = $return_result;
return;
}
}
// Some of the vardefs do not correctly define dictionary as global. Declare it first.
global $dictionary;
if (empty($GLOBALS['dictionary'][$object]) || $refresh) {
//if the consumer has demanded a refresh or the cache/modules... file
//does not exist, then we should do out and try to reload things
if ($refresh || !file_exists($GLOBALS['sugar_config']['cache_dir'] . 'modules/' . $module . '/' . $object . 'vardefs.php')) {
VardefManager::refreshVardefs($module, $object);
}
//at this point we should have the cache/modules/... file
//which was created from the refreshVardefs so let's try to load it.
if (file_exists($GLOBALS['sugar_config']['cache_dir'] . 'modules/' . $module . '/' . $object . 'vardefs.php')) {
include_once($GLOBALS['sugar_config']['cache_dir'] . 'modules/' . $module . '/' . $object . 'vardefs.php');
// now that we hae loaded the data from disk, put it in the cache.
if (!empty($GLOBALS['dictionary'][$object]))
sugar_cache_put($key, $GLOBALS['dictionary'][$object]);
}
}
}
}

View File

@@ -0,0 +1,39 @@
<?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".
********************************************************************************/
$mod_strings = array(
'LBL_ASSIGNED_TO_ID'=>'Assigned User Id',
'LBL_ASSIGNED_TO_NAME' => 'User',
);

View File

@@ -0,0 +1,31 @@
<?php
/*********************************************************************************
* 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(
'LBL_ASSIGNED_TO_ID'=>'ID przydzielonego użytkownika',
'LBL_ASSIGNED_TO_NAME' => 'Przydzielone do',
);

View File

@@ -0,0 +1,148 @@
<?php
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2012 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(
'assigned_user_id' =>
array (
'name' => 'assigned_user_id',
'rname' => 'user_name',
'id_name' => 'assigned_user_id',
'vname' => 'LBL_ASSIGNED_TO_ID',
'group'=>'assigned_user_name',
'type' => 'relate',
'table' => 'users',
'module' => 'Users',
'reportable'=>true,
'isnull' => 'false',
'dbType' => 'id',
'audited'=>true,
'comment' => 'User ID assigned to record',
'duplicate_merge'=>'disabled'
),/*
'assigned_user_id2' =>
array (
'name' => 'assigned_user_id2',
'rname' => 'full_name',
'id_name' => 'assigned_user_id2',
'vname' => 'LBL_ASSIGNED_TO_ID',
'group'=>'assigned_user_name',
'type' => 'relate',
'table' => 'users',
'module' => 'Users',
'reportable'=>true,
'isnull' => 'false',
'dbType' => 'id',
'audited'=>true,
'comment' => 'User ID assigned to record',
'duplicate_merge'=>'disabled'
),*/
'assigned_user_name' =>
array (
'name' => 'assigned_user_name',
'link'=>'assigned_user_link' ,
'vname' => 'LBL_ASSIGNED_TO_NAME',
'rname' => 'user_name',
'type' => 'relate',
'reportable'=>false,
'source'=>'non-db',
'table' => 'users',
'id_name' => 'assigned_user_id',
'module'=>'Users',
'duplicate_merge'=>'disabled'
),/*
'assigned_user_name2' =>
array (
'name' => 'assigned_user_name2',
'link'=>'assigned_user_link2' ,
'vname' => 'LBL_ASSIGNED_TO_NAME',
'rname' => 'full_name',
'type' => 'relate',
'reportable'=>false,
'source'=>'non-db',
'table' => 'users',
'id_name' => 'assigned_user_id2',
'module'=>'Users',
'duplicate_merge'=>'disabled'
),*/
'assigned_user_link' =>
array (
'name' => 'assigned_user_link',
'type' => 'link',
'relationship' => strtolower($module).'_assigned_user',
'vname' => 'LBL_ASSIGNED_TO_USER',
'link_type' => 'one',
'module'=>'Users',
'bean_name'=>'User',
'source'=>'non-db',
'duplicate_merge'=>'enabled',
'rname' => 'user_name',
'id_name' => 'assigned_user_id',
'table' => 'users',
),/*
'assigned_user_link2' =>
array (
'name' => 'assigned_user_link2',
'type' => 'link',
'relationship' => strtolower($module).'_assigned_user',
'vname' => 'LBL_ASSIGNED_TO_USER',
'link_type' => 'one',
'module'=>'Users',
'bean_name'=>'User',
'source'=>'non-db',
'duplicate_merge'=>'enabled',
'rname' => 'user_name',
'id_name' => 'assigned_user_id2',
'table' => 'users',
), */
),
'relationships'=>array(
strtolower($module).'_assigned_user' =>
array('lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
'rhs_module'=> $module , 'rhs_table'=> strtolower($module), 'rhs_key' => 'assigned_user_id',
'relationship_type'=>'one-to-many'),
/* strtolower($module).'_assigned_user2' =>
array('lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
'rhs_module'=> $module , 'rhs_table'=> strtolower($module), 'rhs_key' => 'assigned_user_id',
'relationship_type'=>'one-to-many'),
*/
)
);
?>

View File

@@ -0,0 +1,39 @@
<?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".
********************************************************************************/
$mod_strings = array(
'LBL_TEAM'=>'Teams',
'LBL_TEAMS'=>'Teams',
);

View File

@@ -0,0 +1,33 @@
<?php
/*********************************************************************************
* 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(
'LBL_TEAM'=>'Zespół',
'LBL_TEAM_ID'=>'ID Zespołu',
);

View File

@@ -0,0 +1,74 @@
<?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".
********************************************************************************/
$vardefs = array(
'fields' => array(
),
'relationships'=>array(
strtolower($module).'_team_count_relationship' =>
array(
'lhs_module'=> 'Teams',
'lhs_table'=> 'team_sets',
'lhs_key' => 'id',
'rhs_module'=> $module,
'rhs_table'=> $table_name,
'rhs_key' => 'team_set_id',
'relationship_type'=>'one-to-many'
),
strtolower($module).'_teams' =>
array (
'lhs_module' => $module,
'lhs_table' => $table_name,
'lhs_key' => 'team_set_id',
'rhs_module' => 'Teams',
'rhs_table' => 'teams',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'team_sets_teams',
'join_key_lhs' => 'team_set_id',
'join_key_rhs' => 'team_id',
),
),
'indices' => array(
array(
'name' => 'idx_'.strtolower($table_name).'_tmst_id',
'type' => 'index',
'fields' => array('team_set_id')
),
)
);
?>

View File

@@ -0,0 +1,50 @@
<?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".
********************************************************************************/
class Basic extends SugarBean{
function Basic(){
parent::SugarBean();
}
function get_summary_text()
{
return "$this->name";
}
function create_export_query($order_by, $where){
return $this->create_new_list_query($order_by, $where, array(), array(), 0, '', false, $this, true);
}
}

View File

@@ -0,0 +1,51 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
global $app_strings;
$dashletMeta['<module_name>Dashlet'] = array('module' => '<module_name>',
'title' => translate('LBL_HOMEPAGE_TITLE', '<module_name>'),
'description' => 'A customizable view into <module_name>',
'icon' => 'icon_<module_name>_32.gif',
'category' => 'Module Views');

View File

@@ -0,0 +1,62 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
require_once('include/Dashlets/DashletGeneric.php');
require_once('modules/<module_name>/<object_name>.php');
class <module_name>Dashlet extends DashletGeneric {
function <module_name>Dashlet($id, $def = null) {
global $current_user, $app_strings;
require('modules/<module_name>/metadata/dashletviewdefs.php');
parent::DashletGeneric($id, $def);
if(empty($def['title'])) $this->title = translate('LBL_HOMEPAGE_TITLE', '<module_name>');
$this->searchFields = $dashletData['<module_name>Dashlet']['searchFields'];
$this->columns = $dashletData['<module_name>Dashlet']['columns'];
$this->seedBean = new <object_name>();
}
}

View File

@@ -0,0 +1,54 @@
<?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".
********************************************************************************/
$mod_strings = array(
'LBL_ID'=>'ID',
'LBL_DATE_ENTERED'=>'Date Created',
'LBL_DATE_MODIFIED'=>'Date Modified',
'LBL_MODIFIED'=>'Modified By',
'LBL_MODIFIED_ID'=>'Modified By Id',
'LBL_MODIFIED_NAME'=>'Modified By Name',
'LBL_CREATED'=>'Created By',
'LBL_CREATED_ID'=>'Created By Id',
'LBL_DESCRIPTION'=>'Description',
'LBL_DELETED'=>'Deleted',
'LBL_NAME'=>'Name',
'LBL_CREATED_USER'=>'Created by User',
'LBL_MODIFIED_USER'=>'Modified by User',
'LBL_LIST_NAME'=>'Name',
);

View File

@@ -0,0 +1,46 @@
<?php
/*********************************************************************************
* 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(
'LBL_ID'=>'ID',
'LBL_DATE_ENTERED'=>'Data utworzenia',
'LBL_DATE_MODIFIED'=>'Data modyfikacji',
'LBL_MODIFIED'=>'Zmodyfikowane przez',
'LBL_MODIFIED_ID'=>'ID modyfikującego',
'LBL_MODIFIED_NAME'=>'Nazwa modyfikującego',
'LBL_CREATED'=>'Utworzone przez',
'LBL_CREATED_ID'=>'ID tworzącego',
'LBL_DESCRIPTION'=>'Opis',
'LBL_DELETED'=>'Usunięto',
'LBL_NAME'=>'Nazwa',
'LBL_CREATED_USER'=>'Stworzone przez użytkownika',
'LBL_MODIFIED_USER'=>'Zmodyfikowane przez użytkownika',
);

View File

@@ -0,0 +1,44 @@
<?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>';
$searchFields[$module_name] =
array (
'name' => 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'),
);
?>

View File

@@ -0,0 +1,59 @@
<?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'),
);

View File

@@ -0,0 +1,72 @@
<?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".
********************************************************************************/
$module_name = '<module_name>';
$viewdefs[$module_name]['DetailView'] = array(
'templateMeta' => array('form' => array('buttons'=>array('EDIT', 'DUPLICATE', 'DELETE',
)),
'maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
),
'panels' =>array (
array (
'name',
'assigned_user_name',
),
array (
array (
'name' => 'date_entered',
'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
'label' => 'LBL_DATE_ENTERED',
),
array (
'name' => 'date_modified',
'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
'label' => 'LBL_DATE_MODIFIED',
),
),
array (
'description',
),
)
);
?>

View File

@@ -0,0 +1,63 @@
<?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".
********************************************************************************/
$module_name = '<module_name>';
$viewdefs[$module_name]['EditView'] = array(
'templateMeta' => array('maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
),
'panels' =>array (
'default' =>
array (
array (
'name',
'assigned_user_name',
),
array (
'description',
),
),
),
);
?>

View File

@@ -0,0 +1,53 @@
<?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>';
$listViewDefs[$module_name] = array(
'NAME' => array(
'width' => '32',
'label' => 'LBL_NAME',
'default' => true,
'link' => true),
'ASSIGNED_USER_NAME' => array(
'width' => '9',
'label' => 'LBL_ASSIGNED_TO_NAME',
'default' => true),
);
?>

View 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',
);
?>

View File

@@ -0,0 +1,51 @@
<?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>';
$_module_name = '<_module_name>';
$popupMeta = array('moduleMain' => $module_name,
'varName' => $object_name,
'orderBy' => $_module_name.'.name',
'whereClauses' =>
array('name' => $_module_name . '.name',
),
'searchInputs'=> array($_module_name. '_number', 'name', 'priority','status'),
);
?>

View File

@@ -0,0 +1,59 @@
<?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".
********************************************************************************/
$module_name = '<module_name>';
$viewdefs[$module_name]['QuickCreate'] = array(
'templateMeta' => array('maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
),
'panels' =>array (
'default' =>
array (
array (
'name',
'assigned_user_name',
),
),
),
);
?>

View File

@@ -0,0 +1,59 @@
<?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 May 29, 2007
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
$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' => 'assigned_user_id', 'label' => 'LBL_ASSIGNED_TO', 'type' => 'enum', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
),
),
);
?>

View File

@@ -0,0 +1,70 @@
<?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%',
),
'date_modified'=>array(
'vname' => 'LBL_DATE_MODIFIED',
'width' => '45%',
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'module' => $module_name,
'width' => '4%',
),
'remove_button'=>array(
'widget_class' => 'SubPanelRemoveButton',
'module' => $module_name,
'width' => '5%',
),
),
);
?>

View File

@@ -0,0 +1,190 @@
<?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".
********************************************************************************/
$vardefs = array(
'fields' => array (
'id' =>
array (
'name' => 'id',
'vname' => 'LBL_ID',
'type' => 'id',
'required'=>true,
'reportable'=>true,
'comment' => 'Unique identifier'
),
'name'=>
array(
'name'=>'name',
'vname'=> 'LBL_NAME',
'type'=>'name',
'dbType' => 'varchar',
'len'=>255,
'unified_search' => true,
'required'=>true,
'importable' => 'required',
),
'date_entered' =>
array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'group'=>'created_by_name',
'comment' => 'Date record created',
),
'date_modified' =>
array (
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'group'=>'modified_by_name',
'comment' => 'Date record last modified',
),
'modified_user_id' =>
array (
'name' => 'modified_user_id',
'rname' => 'user_name',
'id_name' => 'modified_user_id',
'vname' => 'LBL_MODIFIED_ID',
'type' => 'assigned_user_name',
'table' => 'users',
'isnull' => 'false',
'group'=>'modified_by_name',
'dbType' => 'id',
'reportable'=>true,
'comment' => 'User who last modified record',
),
'modified_by_name' =>
array (
'name' => 'modified_by_name',
'vname' => 'LBL_MODIFIED_NAME',
'type' => 'relate',
'reportable'=>false,
'source'=>'non-db',
'rname'=>'user_name',
'table' => 'users',
'id_name' => 'modified_user_id',
'module'=>'Users',
'link'=>'modified_user_link',
'duplicate_merge'=>'disabled'
),
'created_by' =>
array (
'name' => 'created_by',
'rname' => 'user_name',
'id_name' => 'modified_user_id',
'vname' => 'LBL_CREATED_ID',
'type' => 'assigned_user_name',
'table' => 'users',
'isnull' => 'false',
'dbType' => 'id',
'group'=>'created_by_name',
'comment' => 'User who created record',
),
'created_by_name' =>
array (
'name' => 'created_by_name',
'vname' => 'LBL_CREATED',
'type' => 'relate',
'reportable'=>false,
'link' => 'created_by_link',
'rname' => 'user_name',
'source'=>'non-db',
'table' => 'users',
'id_name' => 'created_by',
'module'=>'Users',
'duplicate_merge'=>'disabled',
'importable' => 'false',
),
'description' =>
array (
'name' => 'description',
'vname' => 'LBL_DESCRIPTION',
'type' => 'text',
'comment' => 'Full text of the note',
'rows' => 6,
'cols' => 80,
),
'deleted' =>
array (
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'default' => '0',
'reportable'=>false,
'comment' => 'Record deletion indicator'
),
/////////////////RELATIONSHIP LINKS////////////////////////////
'created_by_link' =>
array (
'name' => 'created_by_link',
'type' => 'link',
'relationship' => strtolower($module) . '_created_by',
'vname' => 'LBL_CREATED_USER',
'link_type' => 'one',
'module'=>'Users',
'bean_name'=>'User',
'source'=>'non-db',
),
'modified_user_link' =>
array (
'name' => 'modified_user_link',
'type' => 'link',
'relationship' => strtolower($module). '_modified_user',
'vname' => 'LBL_MODIFIED_USER',
'link_type' => 'one',
'module'=>'Users',
'bean_name'=>'User',
'source'=>'non-db',
),
),
'indices' => array (
'id'=>array('name' =>strtolower($module).'pk', 'type' =>'primary', 'fields'=>array('id')),
),
'relationships'=>array(
strtolower($module).'_modified_user' =>
array('lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
'rhs_module'=> $module, 'rhs_table'=> strtolower($module), 'rhs_key' => 'modified_user_id',
'relationship_type'=>'one-to-many')
,strtolower($module).'_created_by' =>
array('lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
'rhs_module'=> $module, 'rhs_table'=> strtolower($module), 'rhs_key' => 'created_by',
'relationship_type'=>'one-to-many')
),
);
?>

View 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;
}
}
?>

View 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
*/
?>

View 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',
),
);
?>

View 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',
),
);
?>

View 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?',
);

View 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?',
);

View 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'),
);
?>

View 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'),
);

View 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'),
),
);
?>

View 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'),
),
)
);
?>

View 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),
);
?>

View 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',
);
?>

View 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'
),
);
?>

View 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')
),
)
);
?>

View 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',
),
),
);
?>

View 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%',
),
),
);
?>

View 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'
),
)
);
?>

View File

@@ -0,0 +1,98 @@
<?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".
********************************************************************************/
require_once('include/SugarObjects/templates/basic/Basic.php');
require_once('include/upload_file.php');
require_once('include/formbase.php');
class File extends Basic{
function File(){
parent::SugarBean();
}
//Must overwrite the save operation for uploaded file.
var $file_url;
var $file_url_noimage;
function save($check_notify=false){
if (!empty($this->uploadfile))
$this->filename = $this->uploadfile;
return parent::save($check_notify);
}
function fill_in_additional_detail_fields(){
global $theme;
global $current_language;
global $timedate;
global $app_list_strings;
$this->uploadfile = $this->filename;
$mod_strings = return_module_language($current_language, $this->object_name);
global $img_name;
global $img_name_bare;
if (!$this->file_ext) {
$img_name = SugarThemeRegistry::current()->getImageURL(strtolower($this->file_ext)."_image_inline.gif");
$img_name_bare = strtolower($this->file_ext)."_image_inline";
}
//set default file name.
if (!empty ($img_name) && file_exists($img_name)) {
$img_name = $img_name_bare;
} else {
$img_name = "def_image_inline"; //todo change the default image.
}
$this->file_url_noimage = basename(UploadFile :: get_url($this->filename, $this->id));
if(!empty($this->status_id)) {
$this->status = $app_list_strings['document_status_dom'][$this->status_id];
}
}
// need to override to have a name field created for this class
function retrieve($id = -1, $encode=true) {
$ret_val = parent::retrieve($id, $encode);
$this->_create_proper_name_field();
return $ret_val;
}
function _create_proper_name_field() {
global $locale;
$this->name = $this->document_name;
}
}
?>

View File

@@ -0,0 +1,70 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
require_once('include/upload_file.php');
require_once('include/formbase.php');
class FileController extends SugarController{
function action_save(){
$move=false;
$file = new File();
$file = populateFromPost('', $file);
$upload_file = new UploadFile('uploadfile');
$return_id ='';
if (isset($_FILES['uploadfile']) && $upload_file->confirm_upload())
{
$file->filename = $upload_file->get_stored_file_name();
$file->file_mime_type = $upload_file->mime_type;
$file->file_ext = $upload_file->file_ext;
$move=true;
}
$return_id = $file->save();
if ($move) {
$upload_file->final_move($file->id);
}
handleRedirect($return_id, $this->object_name);
}
}
?>

View File

@@ -0,0 +1,71 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$app_list_strings = array (
strtolower($object_name).'_category_dom' =>
array (
'' => '',
'Marketing' => 'Marketing',
'Knowledege Base' => 'Knowledge Base',
'Sales' => 'Sales',
),
strtolower($object_name).'_subcategory_dom' =>
array (
'' => '',
'Marketing Collateral' => 'Marketing Collateral',
'Product Brochures' => 'Product Brochures',
'FAQ' => 'FAQ',
),
strtolower($object_name).'_status_dom' =>
array (
'Active' => 'Active',
'Draft' => 'Draft',
'FAQ' => 'FAQ',
'Expired' => 'Expired',
'Under Review' => 'Under Review',
'Pending' => 'Pending',
),
);
?>

View 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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$mod_strings = array (
//module
'LBL_MODULE_NAME' => 'Documents',
'LBL_MODULE_TITLE' => 'Documents: Home',
'LNK_NEW_DOCUMENT' => 'Create Document',
'LNK_DOCUMENT_LIST'=> 'Documents List',
'LBL_SEARCH_FORM_TITLE'=> 'Document Search',
//vardef labels
'LBL_DOCUMENT_ID' => 'Document ID',
'LBL_NAME' => 'Document Name',
'LBL_DESCRIPTION' => 'Description',
'LBL_CATEGORY' => 'Category',
'LBL_SUBCATEGORY' => 'Sub Category',
'LBL_STATUS' => 'Status',
'LBL_IS_TEMPLATE'=>'Is a Template',
'LBL_TEMPLATE_TYPE'=>'Document Type',
'LBL_REVISION_NAME' => 'Revision Number',
'LBL_MIME' => 'Mime Type',
'LBL_REVISION' => 'Revision',
'LBL_DOCUMENT' => 'Related Document',
'LBL_LATEST_REVISION' => 'Latest Revision',
'LBL_CHANGE_LOG'=> 'Change Log',
'LBL_ACTIVE_DATE'=> 'Publish Date',
'LBL_EXPIRATION_DATE' => 'Expiration Date',
'LBL_FILE_EXTENSION' => 'File Extension',
'LBL_CAT_OR_SUBCAT_UNSPEC'=>'Unspecified',
//quick search
'LBL_NEW_FORM_TITLE' => 'New Document',
//document edit and detail view
'LBL_DOC_NAME' => 'Document Name:',
'LBL_FILENAME' => 'File Name:',
'LBL_DOC_VERSION' => 'Revision:',
'LBL_CATEGORY_VALUE' => 'Category:',
'LBL_SUBCATEGORY_VALUE'=> 'Sub Category:',
'LBL_DOC_STATUS'=> 'Status:',
'LBL_DET_TEMPLATE_TYPE'=>'Document Type:',
'LBL_DOC_DESCRIPTION'=>'Description:',
'LBL_DOC_ACTIVE_DATE'=> 'Publish Date:',
'LBL_DOC_EXP_DATE'=> 'Expiration Date:',
//document list view.
'LBL_LIST_FORM_TITLE' => 'Document List',
'LBL_LIST_DOCUMENT' => 'Document',
'LBL_LIST_CATEGORY' => 'Category',
'LBL_LIST_SUBCATEGORY' => 'Sub Category',
'LBL_LIST_REVISION' => 'Revision',
'LBL_LIST_LAST_REV_CREATOR' => 'Published By',
'LBL_LIST_LAST_REV_DATE' => 'Revision Date',
'LBL_LIST_VIEW_DOCUMENT'=>'View',
'LBL_LIST_DOWNLOAD'=> 'Download',
'LBL_LIST_ACTIVE_DATE' => 'Publish Date',
'LBL_LIST_EXP_DATE' => 'Expiration Date',
'LBL_LIST_STATUS'=>'Status',
//document search form.
'LBL_SF_DOCUMENT' => 'Document Name:',
'LBL_SF_CATEGORY' => 'Category:',
'LBL_SF_SUBCATEGORY'=> 'Sub Category:',
'LBL_SF_ACTIVE_DATE' => 'Publish Date:',
'LBL_SF_EXP_DATE'=> 'Expiration Date:',
'DEF_CREATE_LOG' => 'Document Created',
//error messages
'ERR_DOC_NAME'=>'Document Name',
'ERR_DOC_ACTIVE_DATE'=>'Publish Date',
'ERR_DOC_EXP_DATE'=> 'Expiration Date',
'ERR_FILENAME'=> 'File Name',
'LBL_TREE_TITLE' => 'Documents',
//sub-panel vardefs.
'LBL_LIST_DOCUMENT_NAME'=>'Document Name',
);
?>

View File

@@ -0,0 +1,56 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$searchFields['<module_name>'] =
array (
'document_name' => array( 'query_type'=>'default'),
'category_id'=> array('query_type'=>'default', 'options' => 'document_category_dom', 'template_var' => 'CATEGORY_OPTIONS'),
'subcategory_id'=> array('query_type'=>'default', 'options' => 'document_subcategory_dom', 'template_var' => 'SUBCATEGORY_OPTIONS'),
'active_date'=> array('query_type'=>'default'),
'exp_date'=> array('query_type'=>'default'),
);
?>

View File

@@ -0,0 +1,59 @@
<?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( 'document_name' => array('width' => '40',
'label' => 'LBL_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'),
);

View File

@@ -0,0 +1,99 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$module_name = '<module_name>';
$_object_name = '<_object_name>';
$viewdefs[$module_name]['DetailView'] = array(
'templateMeta' => array('maxColumns' => '2',
'form' => array(),
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
),
'panels' =>array (
array (
array (
'name' => 'document_name',
'label' => 'LBL_DOC_NAME',
),
array (
'name' => 'uploadfile',
'displayParams' => array('link'=>'uploadfile', 'id'=>'id'),
),
),
array (
'category_id',
'subcategory_id',
),
array (
'status',
),
array (
'active_date',
'exp_date',
),
array (
array('name'=>'assigned_user_name', 'label'=>'LBL_ASSIGNED_TO'),
),
array (
array (
'name' => 'description',
'label' => 'LBL_DOC_DESCRIPTION',
),
),
)
);
?>

View File

@@ -0,0 +1,105 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$module_name = '<module_name>';
$viewdefs[$module_name]['EditView'] = array(
'templateMeta' => array('form' => array('enctype'=>'multipart/form-data',
'hidden'=>array()),
'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="modules/Documents/documents.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>',
),
'panels' =>array (
'default' =>
array (
array (
'document_name',
array('name'=>'uploadfile',
'customCode' => '{if $fields.id.value!=""}
{assign var="type" value="hidden"}
{else}
{assign var="type" value="file"}
{/if}
<input name="uploadfile" type = {$type} size="30" maxlength="" onchange="setvalue(this);" value="{$fields.filename.value}">{$fields.filename.value}',
'displayParams'=>array('required'=>true),
),
),
array (
'category_id',
'subcategory_id',
),
array (
'assigned_user_name',
),
array (
'active_date',
'exp_date',
),
array('status_id'),
array (
array('name'=>'description'),
),
),
)
);
?>

View File

@@ -0,0 +1,85 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$module_name = '<module_name>';
$OBJECT_NAME = '<OBJECT_NAME>';
$listViewDefs[$module_name] = array(
'DOCUMENT_NAME' => array(
'width' => '40',
'label' => 'LBL_NAME',
'link' => true,
'default' => true),
'MODIFIED_BY_NAME' => array(
'width' => '10',
'label' => 'LBL_MODIFIED_USER',
'module' => 'Users',
'id' => 'USERS_ID',
'default' => false,
'sortable' => false,
'related_fields' => array('modified_user_id')),
'CATEGORY_ID' => array(
'width' => '40',
'label' => 'LBL_LIST_CATEGORY',
'default' => true),
'SUBCATEGORY_ID' => array(
'width' => '40',
'label' => 'LBL_LIST_SUBCATEGORY',
'default' => true),
'CREATED_BY_NAME' => array(
'width' => '2',
'label' => 'LBL_LIST_LAST_REV_CREATOR',
'default' => true,
'sortable' => false),
'ACTIVE_DATE' => array(
'width' => '10',
'label' => 'LBL_LIST_ACTIVE_DATE',
'default' => true),
'EXP_DATE' => array(
'width' => '10',
'label' => 'LBL_LIST_EXP_DATE',
'default' => true),
);
?>

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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$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',
);
?>

View File

@@ -0,0 +1,95 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$module_name = '<module_name>';
$viewdefs[$module_name]['QuickCreate'] = array(
'templateMeta' => array('form' => array('enctype'=>'multipart/form-data',
'hidden'=>array()),
'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="modules/Documents/documents.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>',
),
'panels' =>array (
'default' =>
array (
array (
'document_name',
'assigned_user_name',
),
array (
array('name'=>'uploadfile',
'customCode' => '{if $fields.id.value!=""}
{assign var="type" value="hidden"}
{else}
{assign var="type" value="file"}
{/if}
<input name="uploadfile" type = {$type} size="30" maxlength="" onchange="setvalue(this);" value="{$fields.filename.value}">{$fields.filename.value}',
'displayParams'=>array('required'=>true),
),
),
array (
'category_id',
'subcategory_id',
),
array (
array('name'=>'description', 'displayParams'=>array('rows'=>10, 'cols'=>120)),
),
),
)
);
?>

View File

@@ -0,0 +1,64 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$module_name='<module_name>';
$searchdefs[$module_name] = array(
'templateMeta' => array('maxColumns' => '3',
'widths' => array('label' => '10', 'field' => '30'),
),
'layout' => array(
'basic_search' => array(
'document_name',
),
'advanced_search' => array(
'document_name',
'category_id',
'subcategory_id',
'active_date',
'exp_date',
),
),
);
?>

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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$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(
'object_image'=>array(
'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,
),
'document_name'=> array(
'name' => 'document_name',
'vname' => 'LBL_LIST_DOCUMENT_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '45%',
),
'active_date' =>
array (
'name' => 'active_date',
'vname' => 'LBL_DOC_ACTIVE_DATE',
'width' => '45%',
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'module' => $module_name,
'width' => '5%',
),
'remove_button'=>array(
'widget_class' => 'SubPanelRemoveButton',
'module' => $module_name,
'width' => '5%',
),
),
);
?>

View File

@@ -0,0 +1,154 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$vardefs=array(
'fields' => array (
'document_name' =>
array (
'name' => 'document_name',
'vname' => 'LBL_NAME',
'type' => 'name',
'dbType' => 'varchar',
'len' => '255',
'required'=>true
),
'name'=>
array(
'name'=>'name',
'source'=>'non-db',
'type'=>'varchar'
),
'filename' =>
array (
'name' => 'filename',
'vname' => 'LBL_FILENAME',
'type' => 'varchar',
'required'=>true,
'importable' => 'required',
'len' => '255',
),
'file_ext' =>
array (
'name' => 'file_ext',
'vname' => 'LBL_FILE_EXTENSION',
'type' => 'varchar',
'len' => '25',
),
'file_mime_type' =>
array (
'name' => 'file_mime_type',
'vname' => 'LBL_MIME',
'type' => 'varchar',
'len' => '100',
),
'uploadfile' =>
array (
'name'=>'uploadfile',
'vname' => 'LBL_FILENAME',
'type' => 'file',
'source' => 'non-db',
),
'active_date' =>
array (
'name' => 'active_date',
'vname' => 'LBL_DOC_ACTIVE_DATE',
'type' => 'date',
'required'=>true,
'importable' => 'required',
),
'exp_date' =>
array (
'name' => 'exp_date',
'vname' => 'LBL_DOC_EXP_DATE',
'type' => 'date',
),
'category_id' =>
array (
'name' => 'category_id',
'vname' => 'LBL_SF_CATEGORY',
'type' => 'enum',
'len' => '25',
'options' => 'document_category_dom',
'reportable'=>false,
),
'subcategory_id' =>
array (
'name' => 'subcategory_id',
'vname' => 'LBL_SF_SUBCATEGORY',
'type' => 'enum',
'len' => '25',
'options' => 'document_subcategory_dom',
'reportable'=>false,
),
'status_id' =>
array (
'name' => 'status_id',
'vname' => 'LBL_DOC_STATUS',
'type' => 'enum',
'len' => '25',
'options' => 'document_status_dom',
'reportable'=>false,
),
'status' =>
array (
'name' => 'status',
'vname' => 'LBL_DOC_STATUS',
'type' => 'varchar',
'source' => 'non-db',
'Comment' => 'Document status for Meta-Data framework',
),
),
);
?>

View File

@@ -0,0 +1,62 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
require_once('include/MVC/View/views/view.edit.php');
class <module_name>View extends ViewEdit{
function <module_name>ViewEdit(){
parent::ViewEdit();
}
function display(){
if (isset($this->bean->id)) {
$this->ss->assign("FILE_OR_HIDDEN", "hidden");
if (empty($_REQUEST['isDuplicate']) || $_REQUEST['isDuplicate'] == 'false') {
$this->ss->assign("DISABLED", "disabled");
}
} else {
$this->ss->assign("FILE_OR_HIDDEN", "file");
}
parent::display();
}
}
?>

View File

@@ -0,0 +1,44 @@
<?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 Issue extends Basic{
function Issue(){
parent::SugarBean();
}
}
?>

View File

@@ -0,0 +1,38 @@
<?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".
********************************************************************************/
$config = array(
'image'=>'Cases'
);

View 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 14, 2007
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
$object_name = strtolower($object_name);
$app_list_strings = array (
$object_name.'_type_dom' =>
array (
'Administration' => 'Administration',
'Product' => 'Product',
'User' => 'User',
),
$object_name.'_status_dom' =>
array (
'New' => 'New',
'Assigned' => 'Assigned',
'Closed' => 'Closed',
'Pending Input' => 'Pending Input',
'Rejected' => 'Rejected',
'Duplicate' => 'Duplicate',
),
$object_name.'_priority_dom' =>
array (
'P1' => 'High',
'P2' => 'Medium',
'P3' => 'Low',
),
$object_name.'_resolution_dom' =>
array (
'' => '',
'Accepted' => 'Accepted',
'Duplicate' => 'Duplicate',
'Closed' => 'Closed',
'Out of Date' => 'Out of Date',
'Invalid' => 'Invalid',
),
);
?>

View File

@@ -0,0 +1,69 @@
<?php
/*********************************************************************************
* 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
*/
$object_name = strtolower($object_name);
$app_list_strings = array (
$object_name.'_type_dom' =>
array (
'Administration' => 'Administracja',
'Product' => 'Produkt',
'User' => 'Użytkownik',
),
$object_name.'_status_dom' =>
array (
'New' => 'Nowy',
'Assigned' => 'Przydzielony',
'Closed' => 'Zamknięty',
'Pending Input' => 'Oczekujący na wprowadzenie',
'Rejected' => 'Odmowa',
'Duplicate' => 'Duplikat',
),
$object_name.'_priority_dom' =>
array (
'P1' => 'Wysoki',
'P2' => 'Średni',
'P3' => 'Niski',
),
$object_name.'_resolution_dom' =>
array (
'' => '',
'Accepted' => 'Zaakceptowany',
'Duplicate' => 'Duplikat',
'Closed' => 'Zamknięty',
'Out of Date' => 'Przeterminowany',
'Invalid' => 'Nieprawidłowy',
),
);
?>

View File

@@ -0,0 +1,68 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$mod_strings = array (
'LBL_NAME' =>'Name',
'LBL_NUMBER' => 'Number:',
'LBL_STATUS' => 'Status:',
'LBL_PRIORITY' => 'Priority:',
'LBL_DESCRIPTION' => 'Description:',
'LBL_RESOLUTION' => 'Resolution',
'LBL_LAST_MODIFIED' => 'Last Modified',
'LBL_ASSIGNED_TO_ID'=>'Assigned To:',
'LBL_ASSIGNED_TO_NAME' => 'User:',
'LBL_WORK_LOG' => 'Work Log:',
'LBL_CREATED_BY' => 'Created by:',
'LBL_DATE_CREATED' => 'Date Created:',
'LBL_DATE_ENTERED' => 'Date Created:',
'LBL_DATE_MODIFIED'=>'Date Modified:',
'LBL_MODIFIED_BY' => 'Last Modified by:',
'LBL_ASSIGNED_USER' => 'Assigned User:',
'LBL_SYSTEM_ID' =>'System Id:',
'LBL_TYPE'=>'Type:',
'LBL_SUBJECT' => 'Subject:',
);
?>

View File

@@ -0,0 +1,61 @@
<?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.
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$mod_strings = array (
'LBL_NAME' =>'Nazwa',
'LBL_NUMBER' => 'Numer:',
'LBL_STATUS' => 'Status:',
'LBL_PRIORITY' => 'Priorytet:',
'LBL_DESCRIPTION' => 'Opis:',
'LBL_RESOLUTION' => 'Rozdzielnik',
'LBL_LAST_MODIFIED' => 'Ostatnio zmodyfikowany',
'LBL_ASSIGNED_TO_ID'=>'Przydzielony do (ID):',
'LBL_ASSIGNED_TO_NAME' => 'Przydzielony do:',
'LBL_WORK_LOG' => 'Dziennik pracy:',
'LBL_CREATED_BY' => 'Stworzony przez:',
'LBL_DATE_CREATED' => 'Stworzony (data):',
'LBL_DATE_ENTERED' => 'Wprowadzony:',
'LBL_DATE_MODIFIED'=>'Zmodyfikowany:',
'LBL_MODIFIED_BY' => 'Ostatnia modyfikacja przez:',
'LBL_ASSIGNED_USER' => 'Przydzielony użytkownik:',
'LBL_SYSTEM_ID' =>'ID systemu:',
'LBL_TEAM_NAME' =>'Nazwa zespołu:',
'LBL_TYPE'=>'Typ:',
'LBL_SUBJECT' => 'Temat:'
);
?>

View File

@@ -0,0 +1,49 @@
<?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>';
$searchFields[$module_name] =
array (
'name' => array( 'query_type'=>'default'),
'status'=> array('query_type'=>'default', 'options' => $_object_name.'_status_dom', 'template_var' => 'STATUS_OPTIONS'),
'priority'=> array('query_type'=>'default', 'options' => $_object_name. '_priority_dom', 'template_var' => 'PRIORITY_OPTIONS'),
'resolution'=> array('query_type'=>'default', 'options' => $_object_name. '_resolution_dom', 'template_var' => 'RESOLUTION_OPTIONS'),
$_object_name. '_number'=> array('query_type'=>'default','operator'=>'in'),
'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'),
);
?>

View 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'),
);

View File

@@ -0,0 +1,100 @@
<?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".
********************************************************************************/
$module_name = '<module_name>';
$_object_name = '<_object_name>';
$viewdefs[$module_name]['DetailView'] = array(
'templateMeta' => array('form' => array('buttons'=>array('EDIT', 'DUPLICATE', 'DELETE',
array('customCode'=>'<input title="{$APP.LBL_DUP_MERGE}" ' .
' accesskey="M" ' .
' class="button" ' .
' onclick="this.form.return_module.value=\'' . $module_name . '\';this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Step1\'; this.form.module.value=\'MergeRecords\';" ' .
' name="button" ' .
' value="{$APP.LBL_DUP_MERGE}" ' .
' type="submit">'),)),
'maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
),
'panels' =>array (
array (
$_object_name . '_number',
'assigned_user_name',
),
array (
'priority',
),
array (
'resolution',
'status',
),
array (
array (
'name' => 'date_entered',
'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
'label' => 'LBL_DATE_ENTERED',
),
array (
'name' => 'date_modified',
'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
'label' => 'LBL_DATE_MODIFIED',
),
),
array (
array (
'name' => 'name',
'label' => 'LBL_SUBJECT',
),
),
array (
'description',
),
array (
'work_log',
),
)
);
?>

View File

@@ -0,0 +1,86 @@
<?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".
********************************************************************************/
$module_name = '<module_name>';
$_object_name = '<_object_name>';
$viewdefs[$module_name]['EditView'] = array(
'templateMeta' => array('maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
),
'panels' =>array (
'default' =>
array (
array (
array (
'name' => $_object_name . '_number',
'type' => 'readonly',
),
'assigned_user_name',
),
array (
'priority',
),
array (
'resolution',
'status',
),
array (
array('name'=>'name', 'displayParams'=>array('size'=>60)),
),
array (
'description',
),
array (
'work_log',
),
),
),
);
?>

View File

@@ -0,0 +1,71 @@
<?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(
$OBJECT_NAME . '_NUMBER' => array(
'width' => '5',
'label' => 'LBL_NUMBER',
'link' => true,
'default' => true),
'NAME' => array(
'width' => '32',
'label' => 'LBL_SUBJECT',
'default' => true,
'link' => true),
'STATUS' => array(
'width' => '10',
'label' => 'LBL_STATUS',
'default' => true),
'PRIORITY' => array(
'width' => '10',
'label' => 'LBL_PRIORITY',
'default' => true),
'RESOLUTION' => array(
'width' => '10',
'label' => 'LBL_RESOLUTION',
'default' => true),
'ASSIGNED_USER_NAME' => array(
'width' => '9',
'label' => 'LBL_ASSIGNED_USER',
'default' => true),
);
?>

View 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',
);
?>

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".
********************************************************************************/
$module_name = '<module_name>';
$object_name = '<object_name>';
$_module_name = '<_module_name>';
$_object_name = '<_object_name>';
$popupMeta = array('moduleMain' => $module_name,
'varName' => $object_name,
'orderBy' => $_module_name . '.name',
'whereClauses' =>
array('name' => $_module_name. '.name',
$_object_name . '_number' => $_module_name. '.'. $_object_name.'_number'),
'searchInputs'=> array($_module_name . '_number', 'name', 'priority','status'),
);
?>

View File

@@ -0,0 +1,81 @@
<?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".
********************************************************************************/
$module_name = '<module_name>';
$_object_name = '<_object_name>';
$viewdefs[$module_name]['QuickCreate'] = array(
'templateMeta' => array('maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
),
'panels' =>array (
'default' =>
array (
array (
array (
'name' => $_object_name . '_number',
'type' => 'readonly',
),
'assigned_user_name',
),
array (
'priority',
),
array (
'status',
'resolution',
),
array (
array('name'=>'name', 'displayParams'=>array('size'=>60)),
),
array (
'description',
),
),
),
);
?>

View File

@@ -0,0 +1,64 @@
<?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 May 29, 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>';
$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(
$_object_name. '_number',
'name',
'resolution',
'status',
'priority',
array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
),
),
);
?>

View File

@@ -0,0 +1,89 @@
<?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>';
$subpanel_layout = array(
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => $module_name),
),
'where' => '',
'list_fields' => array(
$_object_name . '_number'=>array(
'vname' => 'LBL_NUMBER',
'width' => '5%',
),
'name'=>array(
'vname' => 'LBL_SUBJECT',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '45%',
),
'status'=>array(
'vname' => 'LBL_STATUS',
'width' => '15%',
),
'resolution'=>array(
'vname' => 'LBL_RESOLUTION',
'width' => '15%',
),
'priority'=>array(
'vname' => 'LBL_PRIORITY',
'width' => '11%',
),
'assigned_user_name' => array (
'name' => 'assigned_user_name',
'vname' => 'LBL_ASSIGNED_TO_NAME',
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'module' => $module_name,
'width' => '4%',
),
'remove_button'=>array(
'widget_class' => 'SubPanelRemoveButton',
'module' => $module_name,
'width' => '5%',
),
),
);
?>

View File

@@ -0,0 +1,129 @@
<?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".
********************************************************************************/
$vardefs = array (
'fields' => array (
$_object_name . '_number' => array (
'name' => $_object_name . '_number',
'vname' => 'LBL_NUMBER',
'type' => 'int',
'len' => 11,
'required' => true,
'auto_increment' => true,
'unified_search' => true,
'comment' => 'Visual unique identifier',
'duplicate_merge' => 'disabled',
'disable_num_format' => true,
),
'name' => array (
'name' => 'name',
'vname' => 'LBL_SUBJECT',
'type' => 'name',
'dbType' => 'varchar',
'len' => 255,
'audited' => true,
'unified_search' => true,
'comment' => 'The short description of the bug',
'merge_filter' => 'selected',
'required'=>true,
'importable' => 'required',
),
'type' =>
array (
'name' => 'type',
'vname' => 'LBL_TYPE',
'type' => 'enum',
'options' => strtolower($object_name) . '_type_dom',
'len'=>255,
'comment' => 'The type of issue (ex: issue, feature)',
'merge_filter' => 'enabled',
),
'status' => array (
'name' => 'status',
'vname' => 'LBL_STATUS',
'type' => 'enum',
'options' => strtolower($object_name) . '_status_dom',
'len' => 25,
'audited' => true,
'comment' => 'The status of the issue',
'merge_filter' => 'enabled',
),
'priority' => array (
'name' => 'priority',
'vname' => 'LBL_PRIORITY',
'type' => 'enum',
'options' => strtolower($object_name) . '_priority_dom',
'len' => 25,
'audited' => true,
'comment' => 'An indication of the priorty of the issue',
'merge_filter' => 'enabled',
),
'resolution' => array (
'name' => 'resolution',
'vname' => 'LBL_RESOLUTION',
'type' => 'enum',
'options' => strtolower($object_name) . '_resolution_dom',
'len' => 255,
'audited' => true,
'comment' => 'An indication of how the issue was resolved',
'merge_filter' => 'enabled',
),
//not in cases.
'work_log' => array (
'name' => 'work_log',
'vname' => 'LBL_WORK_LOG',
'type' => 'text',
'comment' => 'Free-form text used to denote activities of interest'
),
),
'indices'=>array(
'number'=>array('name' =>strtolower($module).'numk', 'type' =>'unique', 'fields'=>array($_object_name . '_number'))
),
);
?>

View File

@@ -0,0 +1,146 @@
<?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 Person extends Basic
{
var $picture;
function Person(){
parent::SugarBean();
$this->emailAddress = new SugarEmailAddress();
}
// need to override to have a name field created for this class
function retrieve($id = -1, $encode=true) {
$ret_val = parent::retrieve($id, $encode);
$this->_create_proper_name_field();
$this->emailAddress->handleLegacyRetrieve($this);
return $ret_val;
}
/**
* Generate the name field from the first_name and last_name fields.
*/
protected function _create_proper_name_field()
{
global $locale, $app_list_strings;
// Bug 38648 - If the given saluation doesn't exist in the dropdown, don't display it as part of the full name
$salutation = '';
if(isset($this->field_defs['salutation']['options'])
&& isset($app_list_strings[$this->field_defs['salutation']['options']])
&& isset($app_list_strings[$this->field_defs['salutation']['options']][$this->salutation]) ) {
$salutation = $app_list_strings[$this->field_defs['salutation']['options']][$this->salutation];
}
$full_name = $locale->getLocaleFormattedName($this->first_name, $this->last_name, $salutation, $this->title);
$this->name = $full_name;
$this->full_name = $full_name; //used by campaigns
}
function save($check_notify=false) {
$this->add_address_streets('primary_address_street');
$this->add_address_streets('alt_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->id;
}
function get_summary_text() {
$this->_create_proper_name_field();
return $this->name;
}
function get_list_view_data() {
global $system_config;
global $current_user;
$this->_create_proper_name_field();
$temp_array = $this->get_list_view_array();
$temp_array['NAME'] = $this->name;
$temp_array['EMAIL1'] = $this->emailAddress->getPrimaryAddress($this);
$this->email1 = $temp_array['EMAIL1'];
$temp_array['EMAIL1_LINK'] = $current_user->getEmailLink('email1', $this, '', '', 'ListView');
return $temp_array;
}
/**
* @see SugarBean::populateRelatedBean()
*/
public function populateRelatedBean(
SugarBean $newbean
)
{
parent::populateRelatedBean($newbean);
if ( $newbean instanceOf Company ) {
$newbean->phone_fax = $this->phone_fax;
$newbean->phone_office = $this->phone_work;
$newbean->phone_alternate = $this->phone_other;
$newbean->email1 = $this->email1;
$this->add_address_streets('primary_address_street');
$newbean->billing_address_street = $this->primary_address_street;
$newbean->billing_address_city = $this->primary_address_city;
$newbean->billing_address_state = $this->primary_address_state;
$newbean->billing_address_postalcode = $this->primary_address_postalcode;
$newbean->billing_address_country = $this->primary_address_country;
$this->add_address_streets('alt_address_street');
$newbean->shipping_address_street = $this->alt_address_street;
$newbean->shipping_address_city = $this->alt_address_city;
$newbean->shipping_address_state = $this->alt_address_state;
$newbean->shipping_address_postalcode = $this->alt_address_postalcode;
$newbean->shipping_address_country = $this->alt_address_country;
}
}
}
?>

View File

@@ -0,0 +1,38 @@
<?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".
********************************************************************************/
$config = array(
'image'=>'Contacts'
);

View File

@@ -0,0 +1,81 @@
<?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".
********************************************************************************/
$mod_strings = array(
'LBL_SALUTATION'=>'Salutation',
'LBL_NAME'=>'Name',
'LBL_FIRST_NAME'=>'First Name',
'LBL_LAST_NAME'=>'Last Name',
'LBL_TITLE'=>'Title',
'LBL_DEPARTMENT'=>'Department',
'LBL_DO_NOT_CALL'=>'Do Not Call',
'LBL_HOME_PHONE'=>'Home Phone',
'LBL_MOBILE_PHONE'=>'Mobile Phone',
'LBL_OFFICE_PHONE'=>'Office Phone',
'LBL_OTHER_PHONE'=>'Other Phone',
'LBL_FAX_PHONE'=>'Fax',
'LBL_EMAIL_ADDRESS'=>'Email Address(es)',
'LBL_PRIMARY_ADDRESS'=>'Primary Address',
'LBL_PRIMARY_ADDRESS_STREET'=>'Primary Address',
'LBL_PRIMARY_ADDRESS_STREET_2' => 'Primary Address Street 2:',
'LBL_PRIMARY_ADDRESS_STREET_3' => 'Primary Address Street 3:',
'LBL_PRIMARY_ADDRESS_CITY'=>'Primary City',
'LBL_PRIMARY_ADDRESS_STATE'=>'Primary State',
'LBL_PRIMARY_ADDRESS_POSTALCODE'=>'Primary Postal Code',
'LBL_PRIMARY_ADDRESS_COUNTRY' => 'Primary Address Country:',
'LBL_ALT_ADDRESS_STREET'=>'Alternate Address',
'LBL_ALT_ADDRESS_STREET_2' => 'Alternate Address Street 2:',
'LBL_ALT_ADDRESS_STREET_3' => 'Alternate Address Street 3:',
'LBL_ALT_ADDRESS_CITY'=>'Alternate City',
'LBL_ALT_ADDRESS_STATE'=>'Alternate State',
'LBL_ALT_ADDRESS_POSTALCODE'=>'Alternate Postal Code',
'LBL_ALT_ADDRESS_COUNTRY'=>'Alternate Country',
'LBL_COUNTRY'=>'Country',
'LBL_STREET'=>'Other Address',
'LBL_CITY'=>'City',
'LBL_STATE'=>'State',
'LBL_POSTALCODE'=>'Postal Code',
'LBL_POSTAL_CODE'=>'Postal Code',
'LBL_COUNTRY'=>'Country',
'LBL_CONTACT_INFORMATION'=>'Contact Information',
'LBL_ADDRESS_INFORMATION'=>'Address(es)',
'LBL_CONTACT_INFORMATION'=>'Contact Information',
'LBL_ASSIGNED_TO_NAME'=>'User',
'LBL_OTHER_EMAIL_ADDRESS' => 'Other Email:',
'LBL_ASSISTANT'=>'Assistant',
'LBL_ASSISTANT_PHONE'=>'Assistant Phone',
'LBL_WORK_PHONE'=>'Work Phone',
'LNK_IMPORT_VCARD' => 'Create From vCard',
);

View File

@@ -0,0 +1,73 @@
<?php
/*********************************************************************************
* 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(
'LBL_SALUTATION'=>'Pozdrowienie',
'LBL_NAME'=>'Nazwa',
'LBL_FIRST_NAME'=>'Imię',
'LBL_LAST_NAME'=>'Nazwisko',
'LBL_TITLE'=>'Tytuł',
'LBL_DEPARTMENT'=>'Departament',
'LBL_DO_NOT_CALL'=>'Nie dzownić',
'LBL_HOME_PHONE'=>'Telefon domowy',
'LBL_MOBILE_PHONE'=>'Tel. kom.',
'LBL_OFFICE_PHONE'=>'Tel. praca',
'LBL_OTHER_PHONE'=>'Inny tel.',
'LBL_FAX_PHONE'=>'Fax',
'LBL_EMAIL_ADDRESS'=>'Adresy poczty',
'LBL_PRIMARY_ADDRESS'=>'Podstawowy adres',
'LBL_PRIMARY_ADDRESS_STREET'=>'Podstawowy adres',
'LBL_PRIMARY_ADDRESS_STREET_2' => 'Podstawowy adres 2:',
'LBL_PRIMARY_ADDRESS_STREET_3' => 'Podstawowy adres 3:',
'LBL_PRIMARY_ADDRESS_CITY'=>'Miasto',
'LBL_PRIMARY_ADDRESS_STATE'=>'Wojewodztwo',
'LBL_PRIMARY_ADDRESS_POSTALCODE'=>'Kod pocztowy',
'LBL_PRIMARY_ADDRESS_COUNTRY' => 'Podstawowy adres kraj:',
'LBL_ALT_ADDRESS_COUNTRY'=>'Kraj',
'LBL_ALT_ADDRESS_STREET'=>'Inny adres',
'LBL_ALT_ADDRESS_STREET_2' => 'Inny adre 2:',
'LBL_ALT_ADDRESS_STREET_3' => 'Inny adres 3:',
'LBL_ALT_ADDRESS_CITY'=>'Miasto',
'LBL_ALT_ADDRESS_STATE'=>'Woj.',
'LBL_ALT_ADDRESS_POSTALCODE'=>'Kod pocztowy',
'LBL_ALT_ADDRESS_COUNTRY'=>'Kraj',
'LBL_COUNTRY'=>'Kraj',
'LBL_STREET'=>'Inny adres',
'LBL_CITY'=>'Miasto',
'LBL_STATE'=>'Woj.',
'LBL_POSTALCODE'=>'Kod pocztowy',
'LBL_POSTAL_CODE'=>'Kod pocztowy',
'LBL_COUNTRY'=>'Kraj',
'LBL_CONTACT_INFORMATION'=>'Informacje o kontakcie',
'LBL_ADDRESS_INFORMATION'=>'Adresy',
'LBL_CONTACT_INFORMATION'=>'Informacje o kontakcie',
'LBL_ASSIGNED_TO_NAME'=>'Przydzielony do',
'LBL_ASSISTANT'=>'Asystent',
'LBL_ASSISTANT_PHONE'=>'Tel. asystenta',
'LBL_WORK_PHONE'=>'Telefon do pracy',
'LNK_IMPORT_VCARD' => 'Utwórz z vCard',
);

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".
********************************************************************************/
$module_name = '<module_name>';
$searchFields[$module_name] =
array (
'first_name' => array( 'query_type'=>'default'),
'last_name'=> array('query_type'=>'default'),
'search_name'=> array('query_type'=>'default','db_field'=>array('first_name','last_name'),'force_unifiedsearch'=>true),
'do_not_call'=> array('query_type'=>'default', 'input_type' => 'checkbox', 'operator'=>'='),
'phone'=> array('query_type'=>'default','db_field'=>array('phone_mobile','phone_work','phone_other','phone_fax','assistant_phone')),
'address_street'=> array('query_type'=>'default','db_field'=>array('primary_address_street','alt_address_street')),
'address_city'=> array('query_type'=>'default','db_field'=>array('primary_address_city','alt_address_city')),
'address_state'=> array('query_type'=>'default','db_field'=>array('primary_address_state','alt_address_state')),
'address_postalcode'=> array('query_type'=>'default','db_field'=>array('primary_address_postalcode','alt_address_postalcode')),
'address_country'=> array('query_type'=>'default','db_field'=>array('primary_address_country','alt_address_country')),
'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
);
?>

View 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'),
);

View File

@@ -0,0 +1,134 @@
<?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".
********************************************************************************/
$module_name = '<module_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 (
array (
'name' => 'full_name',
'label' => 'LBL_NAME',
),
//'full_name',
array (
'name' => 'phone_work',
),
),
array (
'title',
array (
'name' => 'phone_mobile',
),
),
array (
'department',
array (
'name' => 'phone_home',
'label' => 'LBL_HOME_PHONE',
),
),
array (
NULL,
array (
'name' => 'phone_other',
'label' => 'LBL_OTHER_PHONE',
),
),
array (
array (
'name' => 'date_entered',
'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
'label' => 'LBL_DATE_ENTERED',
),
array (
'name' => 'phone_fax',
'label' => 'LBL_FAX_PHONE',
),
),
array (
array (
'name' => 'date_modified',
'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
'label' => 'LBL_DATE_MODIFIED',
),
'do_not_call',
),
array('assigned_user_name', ''),
array(
'email1'),
array (
array (
'name' => 'primary_address_street',
'label'=> 'LBL_PRIMARY_ADDRESS',
'type' => 'address',
'displayParams'=>array('key'=>'primary'),
),
array (
'name' => 'alt_address_street',
'label'=> 'LBL_ALT_ADDRESS',
'type' => 'address',
'displayParams'=>array('key'=>'alt'),
),
),
array (
'description',
),
)
);
?>

View File

@@ -0,0 +1,112 @@
<?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".
********************************************************************************/
$module_name = '<module_name>';
$viewdefs[$module_name]['EditView'] = array(
'templateMeta' => array('maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30'),
),
),
'panels' =>array (
'lbl_contact_information' =>
array (
array (
array (
'name' => 'first_name',
'customCode' => '{html_options name="salutation" options=$fields.salutation.options selected=$fields.salutation.value}&nbsp;<input name="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
),
'phone_work',
),
array (
'last_name',
'phone_mobile',
),
array (
'title',
'phone_home',
),
array (
'department',
'phone_other',
),
array (
'',
'phone_fax',
),
array (
'assigned_user_name',
'do_not_call',
),
array (
'description',
),
),
'lbl_email_addresses'=>array(
array('email1')
),
'lbl_address_information' =>
array (
array (
array (
'name' => 'primary_address_street',
'hideLabel' => true,
'type' => 'address',
'displayParams'=>array('key'=>'primary', 'rows'=>2, 'cols'=>30, 'maxlength'=>150),
),
array (
'name' => 'alt_address_street',
'hideLabel'=>true,
'type' => 'address',
'displayParams'=>array('key'=>'alt', 'copy'=>'primary', 'rows'=>2, 'cols'=>30, 'maxlength'=>150),
),
),
),
)
);
?>

View File

@@ -0,0 +1,99 @@
<?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>';
$listViewDefs[$module_name] = array(
'NAME' => array(
'width' => '20%',
'label' => 'LBL_NAME',
'link' => true,
'orderBy' => 'last_name',
'default' => true,
'related_fields' => array('first_name', 'last_name', 'salutation'),
),
'TITLE' => array(
'width' => '15%',
'label' => 'LBL_TITLE',
'default' => true),
'PHONE_WORK' => array(
'width' => '15%',
'label' => 'LBL_OFFICE_PHONE',
'default' => true),
'EMAIL1' => array(
'width' => '15%',
'label' => 'LBL_EMAIL_ADDRESS',
'sortable' => false,
'link' => true,
'customCode' => '{$EMAIL1_LINK}{$EMAIL1}</a>',
'default' => true
),
'DO_NOT_CALL' => array(
'width' => '10',
'label' => 'LBL_DO_NOT_CALL'),
'PHONE_HOME' => array(
'width' => '10',
'label' => 'LBL_HOME_PHONE'),
'PHONE_MOBILE' => array(
'width' => '10',
'label' => 'LBL_MOBILE_PHONE'),
'PHONE_OTHER' => array(
'width' => '10',
'label' => 'LBL_WORK_PHONE'),
'PHONE_FAX' => array(
'width' => '10',
'label' => 'LBL_FAX_PHONE'),
'ADDRESS_STREET' => array(
'width' => '10',
'label' => 'LBL_PRIMARY_ADDRESS_STREET'),
'ADDRESS_CITY' => array(
'width' => '10',
'label' => 'LBL_PRIMARY_ADDRESS_CITY'),
'ADDRESS_STATE' => array(
'width' => '10',
'label' => 'LBL_PRIMARY_ADDRESS_STATE'),
'ADDRESS_POSTALCODE' => array(
'width' => '10',
'label' => 'LBL_PRIMARY_ADDRESS_POSTALCODE'),
'DATE_ENTERED' => array(
'width' => '10',
'label' => 'LBL_DATE_ENTERED'),
'CREATED_BY_NAME' => array(
'width' => '10',
'label' => 'LBL_CREATED'),
);
?>

View 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 July 12, 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',
);
?>

View File

@@ -0,0 +1,50 @@
<?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>';
$_module_name = '<_module_name>';
$popupMeta = array('moduleMain' => $module_name,
'varName' => $object_name,
'orderBy' => $_module_name . '.first_name, '. $_module_name . '.last_name',
'whereClauses' =>
array('first_name' => $_module_name . '.first_name',
'last_name' => $_module_name . '.last_name',
),
'searchInputs' =>
array('first_name', 'last_name'),
);
?>

View File

@@ -0,0 +1,83 @@
<?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".
********************************************************************************/
$module_name = '<module_name>';
$viewdefs[$module_name]['QuickCreate'] = array(
'templateMeta' => array('maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30'),
),
),
'panels' =>array (
'lbl_contact_information' =>
array (
array (
array (
'name' => 'first_name',
'customCode' => '{html_options name="salutation" options=$fields.salutation.options selected=$fields.salutation.value}&nbsp;<input name="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
),
'assigned_user_name',
),
array (
array('name'=>'last_name', 'displayParams'=>array('required'=>true)),
),
array (
'title',
'phone_work',
),
array (
'department',
'phone_mobile',
),
array (
'phone_fax',
'',
),
),
'lbl_email_addresses'=>array(
array('email1')
),
)
);
?>

View File

@@ -0,0 +1,62 @@
<?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 May 29, 2007
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
$module_name = '<module_name>';
$searchdefs[$module_name] = array(
'templateMeta' => array('maxColumns' => '3',
'widths' => array('label' => '10', 'field' => '30'),
),
'layout' => array(
'basic_search' => array(
array('name'=>'search_name','label' =>'LBL_NAME', 'type' => 'name'),
array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
),
'advanced_search' => array(
'first_name',
'last_name',
'address_city',
'created_by_name',
'do_not_call',
),
),
);
?>

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' => 'People'),
),
'where' => '',
'list_fields' => array(
'first_name'=>array(
'name'=>'first_name',
'usage' => 'query_only',
),
'last_name'=>array(
'name'=>'last_name',
'usage' => 'query_only',
),
'name'=>array(
'name'=>'name',
'vname' => 'LBL_LIST_NAME',
'sort_by' => 'last_name',
'sort_order' => 'asc',
'widget_class' => 'SubPanelDetailViewLink',
'module' => 'Contacts',
'width' => '40%',
),
'email1'=>array(
'name'=>'email1',
'vname' => 'LBL_LIST_EMAIL',
'widget_class' => 'SubPanelEmailLink',
'width' => '35%',
),
'phone_work'=>array (
'name'=>'phone_work',
'vname' => 'LBL_LIST_PHONE',
'width' => '15%',
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'module' => 'Contacts',
'width' => '5%',
),
'remove_button'=>array(
'widget_class' => 'SubPanelRemoveButton',
'module' => 'Contacts',
'width' => '5%',
),
),
);
?>

View File

@@ -0,0 +1,418 @@
<?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".
********************************************************************************/
$vardefs =array(
'fields'=> array(
'salutation' =>
array (
'name' => 'salutation',
'vname' => 'LBL_SALUTATION',
'type' => 'enum',
'options' => 'salutation_dom',
'massupdate' => false,
'len' => '5',
'comment' => 'Contact salutation (e.g., Mr, Ms)'
),
'first_name' =>
array (
'name' => 'first_name',
'vname' => 'LBL_FIRST_NAME',
'type' => 'varchar',
'len' => '100',
'unified_search' => true,
'comment' => 'First name of the contact',
'merge_filter' => 'selected',
),
'last_name' =>
array (
'name' => 'last_name',
'vname' => 'LBL_LAST_NAME',
'type' => 'varchar',
'len' => '100',
'unified_search' => true,
'comment' => 'Last name of the contact',
'merge_filter' => 'selected',
'required'=>true,
'importable' => 'required',
),
'name' =>
array (
'name' => 'name',
'rname' => 'name',
'vname' => 'LBL_NAME',
'type' => 'name',
'fields' => array('first_name', 'last_name'),
'sort_on' => 'last_name',
'source' => 'non-db',
'group'=>'last_name',
'len' => '255',
'db_concat_fields'=> array(0=>'first_name', 1=>'last_name'),
'importable' => 'false',
),
'full_name' =>
array (
'name' => 'full_name',
'rname' => 'full_name',
'vname' => 'LBL_NAME',
'type' => 'fullname',
'fields' => array('first_name', 'last_name'),
'sort_on' => 'last_name',
'source' => 'non-db',
'group'=>'last_name',
'len' => '510',
'db_concat_fields'=> array(0=>'first_name', 1=>'last_name'),
),
'title' =>
array (
'name' => 'title',
'vname' => 'LBL_TITLE',
'type' => 'varchar',
'len' => '100',
'comment' => 'The title of the contact'
),
'department' =>
array (
'name' => 'department',
'vname' => 'LBL_DEPARTMENT',
'type' => 'varchar',
'len' => '255',
'comment' => 'The department of the contact',
'merge_filter' => 'enabled',
),
'do_not_call' =>
array (
'name' => 'do_not_call',
'vname' => 'LBL_DO_NOT_CALL',
'type' => 'bool',
'default' => '0',
'audited'=>true,
'comment' => 'An indicator of whether contact can be called'
),
'phone_home' =>
array (
'name' => 'phone_home',
'vname' => 'LBL_HOME_PHONE',
'type' => 'phone',
'dbType' => 'varchar',
'len' => '25',
'unified_search' => true,
'comment' => 'Home phone number of the contact',
'merge_filter' => 'enabled',
),
'phone_mobile' =>
array (
'name' => 'phone_mobile',
'vname' => 'LBL_MOBILE_PHONE',
'type' => 'phone',
'dbType' => 'varchar',
'len' => '25',
'unified_search' => true,
'comment' => 'Mobile phone number of the contact',
'merge_filter' => 'enabled',
),
'phone_work' =>
array (
'name' => 'phone_work',
'vname' => 'LBL_OFFICE_PHONE',
'type' => 'phone',
'dbType' => 'varchar',
'len' => '25',
'audited'=>true,
'unified_search' => true,
'comment' => 'Work phone number of the contact',
'merge_filter' => 'enabled',
),
'phone_other' =>
array (
'name' => 'phone_other',
'vname' => 'LBL_OTHER_PHONE',
'type' => 'phone',
'dbType' => 'varchar',
'len' => '25',
'unified_search' => true,
'comment' => 'Other phone number for the contact',
'merge_filter' => 'enabled',
),
'phone_fax' =>
array (
'name' => 'phone_fax',
'vname' => 'LBL_FAX_PHONE',
'type' => 'phone',
'dbType' => 'varchar',
'len' => '25',
'unified_search' => true,
'comment' => 'Contact fax number',
'merge_filter' => 'enabled',
),
'email1' =>
array(
'name' => 'email1',
'vname' => 'LBL_EMAIL_ADDRESS',
'type' => 'varchar',
'function' => array(
'name' => 'getEmailAddressWidget',
'returns' => 'html'),
'source' => 'non-db',
'group'=>'email1',
'merge_filter' => 'enabled',
'studio' => array('editField' => true),
),
'email2' =>
array(
'name' => 'email2',
'vname' => 'LBL_OTHER_EMAIL_ADDRESS',
'type' => 'varchar',
'function' => array(
'name' => 'getEmailAddressWidget',
'returns' => 'html'),
'source' => 'non-db',
'group'=>'email2',
'merge_filter' => 'enabled',
'studio' => 'false',
),
'invalid_email' =>
array(
'name' => 'invalid_email',
'vname' => 'LBL_INVALID_EMAIL',
'source' => 'non-db',
'type' => 'bool',
'massupdate' => false,
'studio' => 'false',
),
'email_opt_out' =>
array(
'name' => 'email_opt_out',
'vname' => 'LBL_EMAIL_OPT_OUT',
'source' => 'non-db',
'type' => 'bool',
'massupdate' => false,
'studio'=>'false',
),
'primary_address_street' =>
array (
'name' => 'primary_address_street',
'vname' => 'LBL_PRIMARY_ADDRESS_STREET',
'type' => 'varchar',
'len' => '150',
'group'=>'primary_address',
'comment' => 'Street address for primary address',
'merge_filter' => 'enabled',
),
'primary_address_street_2' =>
array (
'name' => 'primary_address_street_2',
'vname' => 'LBL_PRIMARY_ADDRESS_STREET_2',
'type' => 'varchar',
'len' => '150',
'source' => 'non-db',
),
'primary_address_street_3' =>
array (
'name' => 'primary_address_street_3',
'vname' => 'LBL_PRIMARY_ADDRESS_STREET_3',
'type' => 'varchar',
'len' => '150',
'source' => 'non-db',
),
'primary_address_city' =>
array (
'name' => 'primary_address_city',
'vname' => 'LBL_PRIMARY_ADDRESS_CITY',
'type' => 'varchar',
'len' => '100',
'group'=>'primary_address',
'comment' => 'City for primary address',
'merge_filter' => 'enabled',
),
'primary_address_state' =>
array (
'name' => 'primary_address_state',
'vname' => 'LBL_PRIMARY_ADDRESS_STATE',
'type' => 'varchar',
'len' => '100',
'group'=>'primary_address',
'comment' => 'State for primary address',
'merge_filter' => 'enabled',
),
'primary_address_postalcode' =>
array (
'name' => 'primary_address_postalcode',
'vname' => 'LBL_PRIMARY_ADDRESS_POSTALCODE',
'type' => 'varchar',
'len' => '20',
'group'=>'primary_address',
'comment' => 'Postal code for primary address',
'merge_filter' => 'enabled',
),
'primary_address_country' =>
array (
'name' => 'primary_address_country',
'vname' => 'LBL_PRIMARY_ADDRESS_COUNTRY',
'type' => 'varchar',
'group'=>'primary_address',
'comment' => 'Country for primary address',
'merge_filter' => 'enabled',
),
'alt_address_street' =>
array (
'name' => 'alt_address_street',
'vname' => 'LBL_ALT_ADDRESS_STREET',
'type' => 'varchar',
'len' => '150',
'group'=>'alt_address',
'comment' => 'Street address for alternate address',
'merge_filter' => 'enabled',
),
'alt_address_street_2' =>
array (
'name' => 'alt_address_street_2',
'vname' => 'LBL_ALT_ADDRESS_STREET_2',
'type' => 'varchar',
'len' => '150',
'source' => 'non-db',
),
'alt_address_street_3' =>
array (
'name' => 'alt_address_street_3',
'vname' => 'LBL_ALT_ADDRESS_STREET_3',
'type' => 'varchar',
'len' => '150',
'source' => 'non-db',
),
'alt_address_city' =>
array (
'name' => 'alt_address_city',
'vname' => 'LBL_ALT_ADDRESS_CITY',
'type' => 'varchar',
'len' => '100',
'group'=>'alt_address',
'comment' => 'City for alternate address',
'merge_filter' => 'enabled',
),
'alt_address_state' =>
array (
'name' => 'alt_address_state',
'vname' => 'LBL_ALT_ADDRESS_STATE',
'type' => 'varchar',
'len' => '100',
'group'=>'alt_address',
'comment' => 'State for alternate address',
'merge_filter' => 'enabled',
),
'alt_address_postalcode' =>
array (
'name' => 'alt_address_postalcode',
'vname' => 'LBL_ALT_ADDRESS_POSTALCODE',
'type' => 'varchar',
'len' => '20',
'group'=>'alt_address',
'comment' => 'Postal code for alternate address',
'merge_filter' => 'enabled',
),
'alt_address_country' =>
array (
'name' => 'alt_address_country',
'vname' => 'LBL_ALT_ADDRESS_COUNTRY',
'type' => 'varchar',
'group'=>'alt_address',
'comment' => 'Country for alternate address',
'merge_filter' => 'enabled',
),
'assistant' =>
array (
'name' => 'assistant',
'vname' => 'LBL_ASSISTANT',
'type' => 'varchar',
'len' => '75',
'unified_search' => true,
'comment' => 'Name of the assistant of the contact',
'merge_filter' => 'enabled',
),
'assistant_phone' =>
array (
'name' => 'assistant_phone',
'vname' => 'LBL_ASSISTANT_PHONE',
'type' => 'phone',
'dbType' => 'varchar',
'len' => '25',
'group'=>'assistant',
'unified_search' => true,
'comment' => 'Phone number of the assistant of the contact',
'merge_filter' => 'enabled',
),
'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'
),
)
);
?>

View File

@@ -0,0 +1,54 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
require_once('include/SugarObjects/templates/basic/Basic.php');
class Chance extends Basic{
function Chance(){
parent::SugarBean();
}
}
?>

View File

@@ -0,0 +1,103 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
require_once('include/SugarObjects/templates/basic/Basic.php');
class Sale extends Basic{
function Sale(){
parent::SugarBean();
}
function create_new_list_query($order_by, $where,$filter=array(),$params=array(), $show_deleted = 0,$join_type='', $return_array = false,$parentbean=null, $singleSelect = false)
{
//Ensure that amount is always on list view queries if amount_usdollar is as well.
if (!empty($filter) && isset($filter['amount_usdollar']) && !isset($filter['amount']))
{
$filter['amount'] = true;
}
return parent::create_new_list_query($order_by, $where, $filter, $params, $show_deleted, $join_type, $return_array, $parentbean, $singleSelect);
}
function fill_in_additional_list_fields()
{
parent::fill_in_additional_list_fields();
//Ensure that the amount_usdollar field is not null.
if (empty($this->amount_usdollar) && !empty($this->amount))
{
$this->amount_usdollar = $this->amount;
}
}
function fill_in_additional_detail_fields()
{
parent::fill_in_additional_detail_fields();
//Ensure that the amount_usdollar field is not null.
if (empty($this->amount_usdollar) && !empty($this->amount))
{
$this->amount_usdollar = $this->amount;
}
}
function save($check_notify = FALSE) {
//"amount_usdollar" is really amount_basecurrency. We need to save a copy of the amount in the base currency.
if(isset($this->amount) && !number_empty($this->amount)){
if (!number_empty($this->currency_id))
{
$currency = new Currency();
$currency->retrieve($this->currency_id);
$this->amount_usdollar = $currency->convertToDollar($this->amount);
}
else
{
$this->amount_usdollar = $this->amount;
}
}
return parent::save($check_notify);
}
}
?>

View File

@@ -0,0 +1,44 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
?>

View File

@@ -0,0 +1,55 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$app_list_strings = array (
strtolower($object_name).'_type_dom' =>
array (
'' => '',
'Existing Business' => 'Existing Business',
'New Business' => 'New Business',
),
);
?>

View 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-2008 SugarCRM, Inc.; All Rights Reserved.
********************************************************************************/
/*********************************************************************************
* $Id$
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************
* pl_pl.lang.ext.php,v for SugarCRM 4.5.1->>
* Translator: Krzysztof Morawski
* All Rights Reserved.
* Any bugs report welcome: krzysiek<at>kmmgroup<dot>pl
* Contributor(s): ______________________________________..
********************************************************************************/
$app_list_strings = array (
strtolower($object_name).'_type_dom' =>
array (
'' => '',
'Existing Business' => 'Trwająca transakcja',
'New Business' => 'Nowa transakcja',
),
);
?>

View File

@@ -0,0 +1,138 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$mod_strings = array (
'LBL_MODULE_NAME' => 'Sale',
'LBL_MODULE_TITLE' => 'Sale: Home',
'LBL_SEARCH_FORM_TITLE' => 'Sale Search',
'LBL_VIEW_FORM_TITLE' => 'Sale View',
'LBL_LIST_FORM_TITLE' => 'Sale List',
'LBL_SALE_NAME' => 'Sale Name:',
'LBL_SALE' => 'Sale:',
'LBL_NAME' => 'Sale Name',
'LBL_LIST_SALE_NAME' => 'Name',
'LBL_LIST_ACCOUNT_NAME' => 'Account Name',
'LBL_LIST_AMOUNT' => 'Amount',
'LBL_LIST_DATE_CLOSED' => 'Close',
'LBL_LIST_SALE_STAGE' => 'Sales Stage',
'LBL_ACCOUNT_ID'=>'Account ID',
'LBL_CURRENCY_ID'=>'Currency ID',
//DON'T CONVERT THESE THEY ARE MAPPINGS
'db_sales_stage' => 'LBL_LIST_SALES_STAGE',
'db_name' => 'LBL_NAME',
'db_amount' => 'LBL_LIST_AMOUNT',
'db_date_closed' => 'LBL_LIST_DATE_CLOSED',
//END DON'T CONVERT
'UPDATE' => 'Sale - Currency Update',
'UPDATE_DOLLARAMOUNTS' => 'Update U.S. Dollar Amounts',
'UPDATE_VERIFY' => 'Verify Amounts',
'UPDATE_VERIFY_TXT' => 'Verifies that the amount values in sales are valid decimal numbers with only numeric characters(0-9) and decimals(.)',
'UPDATE_FIX' => 'Fix Amounts',
'UPDATE_FIX_TXT' => 'Attempts to fix any invalid amounts by creating a valid decimal from the current amount. Any modified amount is backed up in the amount_backup database field. If you run this and notice bugs, do not rerun it without restoring from the backup as it may overwrite the backup with new invalid data.',
'UPDATE_DOLLARAMOUNTS_TXT' => 'Update the U.S. Dollar amounts for sales based on the current set currency rates. This value is used to calculate Graphs and List View Currency Amounts.',
'UPDATE_CREATE_CURRENCY' => 'Creating New Currency:',
'UPDATE_VERIFY_FAIL' => 'Record Failed Verification:',
'UPDATE_VERIFY_CURAMOUNT' => 'Current Amount:',
'UPDATE_VERIFY_FIX' => 'Running Fix would give',
'UPDATE_INCLUDE_CLOSE' => 'Include Closed Records',
'UPDATE_VERIFY_NEWAMOUNT' => 'New Amount:',
'UPDATE_VERIFY_NEWCURRENCY' => 'New Currency:',
'UPDATE_DONE' => 'Done',
'UPDATE_BUG_COUNT' => 'Bugs Found and Attempted to Resolve:',
'UPDATE_BUGFOUND_COUNT' => 'Bugs Found:',
'UPDATE_COUNT' => 'Records Updated:',
'UPDATE_RESTORE_COUNT' => 'Record Amounts Restored:',
'UPDATE_RESTORE' => 'Restore Amounts',
'UPDATE_RESTORE_TXT' => 'Restores amount values from the backups created during fix.',
'UPDATE_FAIL' => 'Could not update - ',
'UPDATE_NULL_VALUE' => 'Amount is NULL setting it to 0 -',
'UPDATE_MERGE' => 'Merge Currencies',
'UPDATE_MERGE_TXT' => 'Merge multiple currencies into a single currency. If there are multiple currency records for the same currency, you merge them together. This will also merge the currencies for all other modules.',
'LBL_ACCOUNT_NAME' => 'Account Name:',
'LBL_AMOUNT' => 'Amount:',
'LBL_AMOUNT_USDOLLAR' => 'Amount USD:',
'LBL_CURRENCY' => 'Currency:',
'LBL_DATE_CLOSED' => 'Expected Close Date:',
'LBL_TYPE' => 'Type:',
'LBL_CAMPAIGN' => 'Campaign:',
'LBL_LEADS_SUBPANEL_TITLE' => 'Leads',
'LBL_PROJECTS_SUBPANEL_TITLE' => 'Projects',
'LBL_NEXT_STEP' => 'Next Step:',
'LBL_LEAD_SOURCE' => 'Lead Source:',
'LBL_SALES_STAGE' => 'Sales Stage:',
'LBL_PROBABILITY' => 'Probability (%):',
'LBL_DESCRIPTION' => 'Description:',
'LBL_DUPLICATE' => 'Possible Duplicate Sale',
'MSG_DUPLICATE' => 'The Sale record you are about to create might be a duplicate of a sale record that already exists. Sale records containing similar names are listed below.<br>Click Save to continue creating this new Sale, or click Cancel to return to the module without creating the sale.',
'LBL_NEW_FORM_TITLE' => 'Create Sale',
'LNK_NEW_SALE' => 'Create Sale',
'LNK_SALE_LIST' => 'Sale',
'ERR_DELETE_RECORD' => 'A record number must be specified to delete the sale.',
'LBL_TOP_SALES' => 'My Top Open Sale',
'NTC_REMOVE_OPP_CONFIRMATION' => 'Are you sure you want to remove this contact from the sale?',
'SALE_REMOVE_PROJECT_CONFIRM' => 'Are you sure you want to remove this sale from the project?',
'LBL_DEFAULT_SUBPANEL_TITLE' => 'Sale',
'LBL_ACTIVITIES_SUBPANEL_TITLE'=>'Activities',
'LBL_HISTORY_SUBPANEL_TITLE'=>'History',
'LBL_RAW_AMOUNT'=>'Raw Amount',
'LBL_CONTACTS_SUBPANEL_TITLE' => 'Contacts',
'LBL_ASSIGNED_TO_NAME' => 'User:',
'LBL_LIST_ASSIGNED_TO_NAME' => 'Assigned User',
'LBL_MY_CLOSED_SALES' => 'My Closed Sales',
'LBL_TOTAL_SALES' => 'Total Sales',
'LBL_CLOSED_WON_SALES' => 'Closed Won Sales',
'LBL_ASSIGNED_TO_ID' =>'Assigned to ID',
'LBL_CREATED_ID'=>'Created by ID',
'LBL_MODIFIED_ID'=>'Modified by ID',
'LBL_MODIFIED_NAME'=>'Modified by User Name',
'LBL_SALE_INFORMATION'=>'Sale Information',
'LBL_CURRENCY_ID'=>'Currency ID',
'LBL_CURRENCY_NAME'=>'Currency Name',
'LBL_CURRENCY_SYMBOL'=>'Currency Symbol',
);
?>

View File

@@ -0,0 +1,134 @@
<?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-2008 SugarCRM, Inc.; All Rights Reserved.
********************************************************************************/
/*********************************************************************************
* $Id$
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
/*********************************************************************************
* pl_pl.lang.ext.php,v for SugarCRM 4.5.1->>
* Translator: Krzysztof Morawski
* All Rights Reserved.
* Any bugs report welcome: krzysiek<at>kmmgroup<dot>pl
* Contributor(s): ______________________________________..
********************************************************************************/
$mod_strings = array (
'LBL_MODULE_NAME' => 'Sprzedaż',
'LBL_MODULE_TITLE' => 'Sprzedaż: Strona główna',
'LBL_SEARCH_FORM_TITLE' => 'Wyszukiwanie w sprzedaży',
'LBL_VIEW_FORM_TITLE' => 'Widok sprzedaży',
'LBL_LIST_FORM_TITLE' => 'Lista sprzedaży',
'LBL_SALE_NAME' => 'Nazwa sprzedaży:',
'LBL_SALE' => 'Sprzedaż:',
'LBL_NAME' => 'Nazwa sprzedaży:',
'LBL_LIST_SALE_NAME' => 'Nazwa',
'LBL_LIST_ACCOUNT_NAME' => 'Nazwa klienta',
'LBL_LIST_AMOUNT' => 'Kwota',
'LBL_LIST_DATE_CLOSED' => 'Zamknięty',
'LBL_LIST_SALE_STAGE' => 'Etap sprzedaży',
'LBL_ACCOUNT_ID'=>'ID Klienta',
'LBL_CURRENCY_ID'=>'ID Waluty',
'LBL_TEAM_ID' =>'ID Zespołu',
//DON'T CONVERT THESE THEY ARE MAPPINGS
'db_sales_stage' => 'LBL_LIST_SALES_STAGE',
'db_name' => 'LBL_NAME',
'db_amount' => 'LBL_LIST_AMOUNT',
'db_date_closed' => 'LBL_LIST_DATE_CLOSED',
//END DON'T CONVERT
'UPDATE' => 'Sprzedaż - aktualizacja waluty',
'UPDATE_DOLLARAMOUNTS' => 'Aktualizacja kwoty w Dolarach amerykańskich',
'UPDATE_VERIFY' => 'Zweryfikuj kwoty',
'UPDATE_VERIFY_TXT' => 'Sprawdza, czy wartości kwot w module sprzedaży są wyrażeniami dziesiętnymi, złożonymi wyłącznie ze znaków numerycznych (0-9) i dziesiętnych(.)',
'UPDATE_FIX' => 'Popraw kwotowania',
'UPDATE_FIX_TXT' => 'Przeprowadza próbę naprawy niewłaściwych kwot przez stworzenie prawidłowych wyrażeń dziesiętnych. Każda modyfikacja kwoty jest zachowana w bazie, w polu amount_backup. Jeśli wykonasz tę operację i pojawi się błąd, nie uruchamiaj jej ponownie, zanim nie zostaną przywrócone poprzednie wartości. Inaczej można spowodować nadpisanie danych błędnymi wartościami.',
'UPDATE_DOLLARAMOUNTS_TXT' => 'Uaktualnia kwoty w dolarach amerykańskich dla sprzedaży, na podstawie ustawionych obecnie kursów waluty. Ta wartość jest używana do wykreślania wykresow i Widoku listy kwot waluty.',
'UPDATE_CREATE_CURRENCY' => 'Tworzę nową walutę:',
'UPDATE_VERIFY_FAIL' => 'Rekord nie przeszedł weryfikacji:',
'UPDATE_VERIFY_CURAMOUNT' => 'Bieżąca kwota:',
'UPDATE_VERIFY_FIX' => 'Wykonanie naprawy powinno dać',
'UPDATE_INCLUDE_CLOSE' => 'Również zamknięte rekordy',
'UPDATE_VERIFY_NEWAMOUNT' => 'Nowa kwota:',
'UPDATE_VERIFY_NEWCURRENCY' => 'Nowa waluta:',
'UPDATE_DONE' => 'Wykonano',
'UPDATE_BUG_COUNT' => 'Znaleziono błąd i podjęto próbę naprawy:',
'UPDATE_BUGFOUND_COUNT' => 'Znaleziono błąd:',
'UPDATE_COUNT' => 'Zaktualizowane rekordy:',
'UPDATE_RESTORE_COUNT' => 'Przywrócono kwoty rekordów:',
'UPDATE_RESTORE' => 'Przywróć kwoty',
'UPDATE_RESTORE_TXT' => 'Przywróć wartości kwot z backupu podczas naprawy.',
'UPDATE_FAIL' => 'Nie można zaktualizować - ',
'UPDATE_NULL_VALUE' => 'Jeśli kwota ma równać się 0, ustaw NULL -',
'UPDATE_MERGE' => 'Połącz waluty',
'UPDATE_MERGE_TXT' => 'Łączenie różnych walut w jedną. Jeśli istnieją rózne rekordy dla tej samej waluty, możesz połączyć je razem. To spowoduje również połączenie tych walut w innych modułach.',
'LBL_ACCOUNT_NAME' => 'Nazwa klienta:',
'LBL_AMOUNT' => 'Kwota:',
'LBL_AMOUNT_USDOLLAR' => 'Kwota w USD:',
'LBL_CURRENCY' => 'Waluta:',
'LBL_DATE_CLOSED' => 'Spodziewana data zakończenia:',
'LBL_TYPE' => 'Typ:',
'LBL_CAMPAIGN' => 'Kampania:',
'LBL_NEXT_STEP' => 'Następny krok:',
'LBL_LEAD_SOURCE' => 'Źródła kontaktu:',
'LBL_SALES_STAGE' => 'Etap sprzedaży:',
'LBL_PROBABILITY' => 'Prawdopodobieństwo (%):',
'LBL_DESCRIPTION' => 'Opis:',
'LBL_DUPLICATE' => 'Możliwość duplikacji sprzedaży',
'MSG_DUPLICATE' => 'Rekordy sprzedaży, które zamierzasz utworzyć mogą spowodować duplikację rekordów, które już istnieją. Rekordy sprzedaży, które zawierają podobne nazwy są wymienione poniżej.<br>kliknij Zachowaj, aby kontynuować tworzenie tej sprzedaży, lub klinij Skasuj, aby powrócić do modułu bez tworzenia sprzedaży.',
'LBL_NEW_FORM_TITLE' => 'Utwórz nową sprzedaż',
'LNK_NEW_SALE' => 'Utwórz sprzedaż',
'LNK_SALE_LIST' => 'Sprzedaż',
'ERR_DELETE_RECORD' => 'Musi być określony numer rekordu, aby usunąć tę sprzedaż.',
'LBL_TOP_SALES' => 'Moje najlepsze otwarte sprzedaże',
'NTC_REMOVE_OPP_CONFIRMATION' => 'Czy na pewno chcesz usunąć ten kontakt ze sprzedaży?',
'SALE_REMOVE_PROJECT_CONFIRM' => 'Czy na pewno chcesz usunąć tę sprzedaż z projektu?',
'LBL_DEFAULT_SUBPANEL_TITLE' => 'Sprzedaż',
'LBL_ACTIVITIES_SUBPANEL_TITLE'=>'Działania',
'LBL_HISTORY_SUBPANEL_TITLE'=>'Historia',
'LBL_RAW_AMOUNT'=>'Wstępna Kwota',
'LBL_LEADS_SUBPANEL_TITLE' => 'Adresy',
'LBL_CONTACTS_SUBPANEL_TITLE' => 'Kontakty',
'LBL_PROJECTS_SUBPANEL_TITLE' => 'Projekty',
'LBL_ASSIGNED_TO_NAME' => 'Przydzielone do:',
'LBL_LIST_ASSIGNED_TO_NAME' => 'Użytkownik przydzielony',
'LBL_MY_CLOSED_SALES' => 'Moje zamknięte sprzedaże',
'LBL_TOTAL_SALES' => 'Wszystkie Sprzedaże',
'LBL_CLOSED_WON_SALES' => 'Sprzedaże zakończone wygraną',
'LBL_ASSIGNED_TO_ID' =>'Przydzielone do (ID)',
'LBL_CREATED_ID'=>'Stworzone przez (ID)',
'LBL_MODIFIED_ID'=>'Zmodyfikowane (ID)',
'LBL_MODIFIED_NAME'=>'Nazwa użytkownika modyfikującego',
'LBL_SALE_INFORMATION'=>'Informacje o sprzedaży',
);
?>

View File

@@ -0,0 +1,60 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$module_name = '<module_name>';
$_module_name = '<_module_name>';
$searchFields[$module_name] =
array (
'name' => array( 'query_type'=>'default'),
/*'account_name'=> array('query_type'=>'default','db_field'=>array('accounts.name')),*/
'amount'=> array('query_type'=>'default'),
'next_step'=> array('query_type'=>'default'),
'probability'=> array('query_type'=>'default'),
'lead_source'=> array('query_type'=>'default', 'operator'=>'=', 'options' => 'lead_source_dom', 'template_var' => 'LEAD_SOURCE_OPTIONS'),
$_module_name.'_type'=> array('query_type'=>'default', 'operator'=>'=', 'options' => 'opportunity_type_dom', 'template_var' => 'TYPE_OPTIONS'),
'sales_stage'=> array('query_type'=>'default', 'operator'=>'=', 'options' => 'sales_stage_dom', 'template_var' => 'SALES_STAGE_OPTIONS', 'options_add_blank' => true),
'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'),
);
?>

View File

@@ -0,0 +1,59 @@
<?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'),
);

Some files were not shown because too many files have changed in this diff Show More