Add php files

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

View File

@@ -0,0 +1,372 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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: TODO: To be written.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
* ****************************************************************************** */
require_once('data/SugarBean.php');
require_once('include/utils.php');
require_once('include/upload_file.php');
// EcmPrivateDocument is used to store customer information.
class EcmPrivateDocument extends SugarBean {
var $field_name_map;
// Stored fields
var $id;
var $date_entered;
var $date_modified;
var $modified_user_id;
var $created_by;
var $created_by_name;
var $modified_by_name;
var $description;
var $name;
var $filename;
// handle to an upload_file object
// used in emails
var $file;
var $embed_flag; // inline image flag
var $parent_type;
var $parent_id;
var $contact_id;
var $portal_flag;
var $parent_name;
var $contact_name;
var $contact_phone;
var $contact_email;
var $file_mime_type;
var $module_dir = "EcmPrivateDocuments";
var $default_ecmprivatedocument_name_dom = array('Meeting ecmprivatedocuments', 'Reminder');
var $table_name = "ecmprivatedocuments";
var $new_schema = true;
var $object_name = "EcmPrivateDocument";
var $importable = true;
// This is used to retrieve related fields from form posts.
var $additional_column_fields = Array('contact_name', 'contact_phone', 'contact_email', 'parent_name', 'first_name', 'last_name');
function EcmPrivateDocument() {
parent::SugarBean();
}
function safeAttachmentName() {
global $sugar_config;
//get position of last "." in file name
$file_ext_beg = strrpos($this->filename, ".");
$file_ext = "";
//get file extension
if ($file_ext_beg > 0) {
$file_ext = substr($this->filename, $file_ext_beg + 1);
}
//check to see if this is a file with extension located in "badext"
foreach ($sugar_config['upload_badext'] as $badExt) {
if (strtolower($file_ext) == strtolower($badExt)) {
//if found, then append with .txt and break out of lookup
$this->name = $this->name . ".txt";
$this->file_mime_type = 'text/';
$this->filename = $this->filename . ".txt";
break; // no need to look for more
}
}
}
/**
* overrides SugarBean's method.
* If a system setting is set, it will mark all related ecmprivatedocuments as deleted, and attempt to delete files that are
* related to those ecmprivatedocuments
* @param string id ID
*/
function mark_deleted($id) {
global $sugar_config;
if ($this->parent_type == 'Emails') {
if (isset($sugar_config['email_default_delete_attachments']) && $sugar_config['email_default_delete_attachments'] == true) {
$removeFile = getcwd() . "/{$sugar_config['upload_dir']}{$id}";
if (file_exists($removeFile)) {
if (!unlink($removeFile)) {
$GLOBALS['log']->error("*** Could not unlink() file: [ {$removeFile} ]");
}
}
}
}
// delete ecmprivatedocument
parent::mark_deleted($id);
}
function deleteAttachment($isduplicate = "false") {
if ($this->ACLAccess('edit')) {
if ($isduplicate == "true") {
return true;
}
$removeFile = clean_path(getAbsolutePath("{$GLOBALS['sugar_config']['upload_dir']}{$this->id}"));
}
if (file_exists($removeFile)) {
if (!unlink($removeFile)) {
$GLOBALS['log']->error("*** Could not unlink() file: [ {$removeFile} ]");
} else {
$this->filename = '';
$this->file_mime_type = '';
$this->file = '';
$this->save();
return true;
}
}
return false;
}
function get_summary_text() {
return "$this->name";
}
function create_list_query($order_by, $where, $show_deleted = 0) {
$contact_required = ereg("contacts\.first_name", $where);
$contact_required = 1;
$query = "SELECT ";
$custom_join = $this->custom_fields->getJOIN();
if ($contact_required) {
$query .= "$this->table_name.*";
if (( $this->db->dbType == 'mysql' ) or ( $this->db->dbType == 'oci8' )) {
$query .= ", concat(concat(contacts.first_name , ' '), contacts.last_name) AS contact_name";
}
if ($this->db->dbType == 'mssql') {
$query .= ", contacts.first_name + ' ' + contacts.last_name AS contact_name";
}
$query .= ", contacts.assigned_user_id contact_name_owner";
if ($custom_join) {
$query .= $custom_join['select'];
}
$query.= " FROM ecmprivatedocuments ";
$query .= " LEFT JOIN contacts ON ecmprivatedocuments.contact_id=contacts.id ";
if ($custom_join) {
$query .= $custom_join['join'];
}
$where_auto = '1=1';
if ($show_deleted == 0) {
$where_auto = " (contacts.deleted IS NULL OR contacts.deleted=0) AND ecmprivatedocuments.deleted=0";
} elseif ($show_deleted == 1) {
$where_auto = " ecmprivatedocuments.deleted=0 ";
}
} else {
$query .= ' id, name, parent_type, parent_id, contact_id, filename, date_modified ';
if ($custom_join) {
$query .= $custom_join['select'];
}
if ($custom_join) {
$query .= $custom_join['join'];
}
$where_auto = '1=1';
if ($show_deleted == 0) {
$where_auto = "deleted=0";
} elseif ($show_deleted == 1) {
$where_auto = "deleted=1";
}
}
if ($where != "")
$query .= "where $where AND " . $where_auto;
else
$query .= "where " . $where_auto;
if ($order_by != "") {
$query .= " ORDER BY " . $this->process_order_by($order_by, null);
} else {
$query .= " ORDER BY ecmprivatedocuments.name";
}
return $query;
}
function create_export_query(&$order_by, &$where) {
$custom_join = $this->custom_fields->getJOIN(true, true);
$query = "SELECT ecmprivatedocuments.*, contacts.first_name, contacts.last_name ";
if ($custom_join) {
$query .= $custom_join['select'];
}
$query .= " FROM ecmprivatedocuments ";
$query .= " LEFT JOIN contacts ON ecmprivatedocuments.contact_id=contacts.id ";
if ($custom_join) {
$query .= $custom_join['join'];
}
$where_auto = " ecmprivatedocuments.deleted=0 AND (contacts.deleted IS NULL OR contacts.deleted=0)";
if ($where != "")
$query .= "where $where AND " . $where_auto;
else
$query .= "where " . $where_auto;
if ($order_by != "")
$query .= " ORDER BY " . $this->process_order_by($order_by, null);
else
$query .= " ORDER BY ecmprivatedocuments.name";
return $query;
}
function fill_in_additional_list_fields() {
$this->fill_in_additional_detail_fields();
}
function fill_in_additional_detail_fields() {
parent::fill_in_additional_detail_fields();
//TODO: Seems odd we need to clear out these values so that list views don't show the previous rows value if current value is blank
$this->contact_name = '';
$this->contact_phone = '';
$this->contact_email = '';
$this->parent_name = '';
$this->contact_name_owner = '';
$this->contact_name_mod = '';
if (isset($this->contact_id) && $this->contact_id != '') {
require_once("modules/Contacts/Contact.php");
$contact = new Contact();
$contact->retrieve($this->contact_id);
$this->contact_name_mod = 'Contacts';
$this->contact_name = $contact->name;
$this->contact_phone = $contact->phone_work;
require_once("include/SugarEmailAddress/SugarEmailAddress.php");
$emailAddress = new SugarEmailAddress();
$this->contact_email = $emailAddress->getPrimaryAddress($contact);
}
$this->fill_in_additional_parent_fields();
}
function fill_in_additional_parent_fields() {
global $app_strings;
global $beanFiles, $beanList;
global $locale;
$this->parent_name = '';
// cn: bug 6324 - load parent_type|name dynamically
if (!empty($this->parent_type) and isset($beanFiles[$beanList[$this->parent_type]])) {
require_once($beanFiles[$beanList[$this->parent_type]]);
$parentBean = new $beanList[$this->parent_type]();
// We need to set the $mod_strings to the parent_type value for the retrieve call on SugarBean
global $mod_strings, $current_language;
$mod_strings = return_module_language($current_language, $this->parent_type);
$parentBean->retrieve($this->parent_id);
$mod_strings = return_module_language($current_language, $this->module_dir);
// cn: bug 10626 contacts, leads, users, etc. have no "name" column
if (isset($parentBean->name) && !empty($parentBean->name)) {
$this->parent_name = $parentBean->name;
} elseif (method_exists($parentBean, '_create_proper_name_field')) {
$parentBean->_create_proper_name_field();
$this->parent_name = $parentBean->full_name;
} elseif (isset($parentBean->first_name) && isset($parentBean->last_name)) {
$this->parent_name = $locale->getLocaleFormattedName($parentBean->first_name, $parentBean->last_name);
}
if (isset($parentBean->assigned_user_id) && !empty($parentBean->assigned_user_id)) {
$this->parent_name_owner = $parentBean->assigned_user_id;
$this->parent_name_mod = $this->parent_type;
}
}
}
function _create_proper_name_field() {
global $locale;
if (isset($this->contact_id) && $this->contact_id != '') {
require_once("modules/Contacts/Contact.php");
$contact = new Contact();
$contact->retrieve($this->contact_id);
if (isset($contact->first_name, $contact->last_name)) {
global $locale;
$full_name = $locale->getLocaleFormattedName($contact->first_name, $contact->last_name, $contact->salutation, $contact->title);
$this->contact_name = $full_name;
}
}
}
function get_list_view_data() {
$ecmprivatedocument_fields = $this->get_list_view_array();
global $app_list_strings, $focus, $action, $currentModule, $mod_strings, $sugar_config;
$this->_create_proper_name_field();
if (isset($this->parent_type)) {
$ecmprivatedocument_fields['PARENT_MODULE'] = $this->parent_type;
}
if (!isset($this->filename) || $this->filename != '') {
$file_path = UploadFile::get_file_path($this->filename, $this->id);
if (file_exists($file_path)) {
$save_file = urlencode(basename(UploadFile::get_url($this->filename, $this->id)));
$ecmprivatedocument_fields['FILENAME'] = $this->filename;
$ecmprivatedocument_fields['FILE_URL'] = "index.php?entryPoint=download&id=" . $save_file . "&type=EcmPrivateDocuments";
}
}
if (isset($this->contact_name)) {
$ecmprivatedocument_fields['CONTACT_NAME'] = $this->contact_name;
}
global $current_language;
$mod_strings = return_module_language($current_language, 'EcmPrivateDocuments');
$ecmprivatedocument_fields['STATUS'] = $mod_strings['LBL_ECMPRIVATEDOCUMENT_STATUS'];
$user = new User();
$user->retrieve($this->created_by);
$ecmprivatedocument_fields['CREATED_BY_NAME'] = $user->full_name;
return $ecmprivatedocument_fields;
}
function listviewACLHelper() {
$array_assign = parent::listviewACLHelper();
$is_owner = false;
if (!empty($this->parent_name)) {
if (!empty($this->parent_name_owner)) {
global $current_user;
$is_owner = $current_user->id == $this->parent_name_owner;
}
}
if (!ACLController::moduleSupportsACL($this->parent_type) || ACLController::checkAccess($this->parent_type, 'view', $is_owner)) {
$array_assign['PARENT'] = 'a';
} else {
$array_assign['PARENT'] = 'span';
}
$is_owner = false;
if (!empty($this->contact_name)) {
if (!empty($this->contact_name_owner)) {
global $current_user;
$is_owner = $current_user->id == $this->contact_name_owner;
}
}
if (ACLController::checkAccess('Contacts', 'view', $is_owner)) {
$array_assign['CONTACT'] = 'a';
} else {
$array_assign['CONTACT'] = 'span';
}
return $array_assign;
}
function bean_implements($interface) {
switch ($interface) {
case 'ACL':return true;
}
return false;
}
}
?>

View File

@@ -0,0 +1,210 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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: Base Form For EcmPrivateDocuments
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
class EcmPrivateDocumentFormBase{
function getFormBody($prefix, $mod='',$formname='', $size='30',$script=true){
if(!ACLController::checkAccess('EcmPrivateDocuments', 'edit', true)){
return '';
}
global $mod_strings;
$temp_strings = $mod_strings;
if(!empty($mod)){
global $current_language;
$mod_strings = return_module_language($current_language, $mod);
}
global $app_strings;
global $app_list_strings;
$lbl_required_symbol = $app_strings['LBL_REQUIRED_SYMBOL'];
$lbl_ecmprivatedocument_subject = $mod_strings['LBL_ECMPRIVATEDOCUMENT_SUBJECT'];
$lbl_ecmprivatedocument_description = $mod_strings['LBL_ECMPRIVATEDOCUMENT'];
$default_parent_type= $app_list_strings['record_type_default_key'];
$form = <<<EOF
<input type="hidden" name="${prefix}record" value="">
<input type="hidden" name="${prefix}parent_type" value="${default_parent_type}">
<p> <table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="dataLabel">$lbl_ecmprivatedocument_subject <span class="required">$lbl_required_symbol</span></td>
</tr>
<tr>
<td class="dataField"><input name='${prefix}name' size='${size}' maxlength='255' type="text" value=""></td>
</tr>
<tr>
<td class="dataLabel">$lbl_ecmprivatedocument_description</td>
</tr>
<tr>
<td class="dataField"><textarea name='${prefix}description' cols='${size}' rows='4' ></textarea></td>
</tr>
</table></p>
EOF;
if ($script) {
require_once('include/javascript/javascript.php');
require_once('modules/EcmPrivateDocuments/EcmPrivateDocument.php');
$javascript = new javascript();
$javascript->setFormName($formname);
$javascript->setSugarBean(new EcmPrivateDocument());
$javascript->addRequiredFields($prefix);
$form .=$javascript->getScript();
}
$mod_strings = $temp_strings;
return $form;
}
function getForm($prefix, $mod=''){
if(!ACLController::checkAccess('EcmPrivateDocuments', 'edit', true)){
return '';
}
if(!empty($mod)){
global $current_language;
$mod_strings = return_module_language($current_language, $mod);
}else global $mod_strings;
global $app_strings;
global $app_list_strings;
$lbl_save_button_title = $app_strings['LBL_SAVE_BUTTON_TITLE'];
$lbl_save_button_key = $app_strings['LBL_SAVE_BUTTON_KEY'];
$lbl_save_button_label = $app_strings['LBL_SAVE_BUTTON_LABEL'];
$the_form = get_left_form_header($mod_strings['LBL_NEW_FORM_TITLE']);
$the_form .= <<<EOQ
<form name="${prefix}EcmPrivateDocumentSave" onSubmit="return check_form('${prefix}EcmPrivateDocumentSave')" method="POST" action="index.php">
<input type="hidden" name="${prefix}module" value="EcmPrivateDocuments">
<input type="hidden" name="${prefix}action" value="Save">
EOQ;
$the_form .= $this->getFormBody($prefix, $mod, "${prefix}EcmPrivateDocumentSave", "20");
$the_form .= <<<EOQ
<p><input title="$lbl_save_button_title" accessKey="$lbl_save_button_key" class="button" type="submit" name="button" value=" $lbl_save_button_label " ></p>
</form>
EOQ;
$the_form .= get_left_form_footer();
$the_form .= get_validate_record_js();
return $the_form;
}
function handleSave($prefix,$redirect=true, $useRequired=false){
require_once('modules/EcmPrivateDocuments/EcmPrivateDocument.php');
require_once('include/formbase.php');
require_once('include/upload_file.php');
$focus = new EcmPrivateDocument();
if($useRequired && !checkRequired($prefix, array_keys($focus->required_fields))){
return null;
}
$focus = populateFromPost($prefix, $focus);
if(!$focus->ACLAccess('Save')){
ACLController::displayNoAccess(true);
sugar_cleanup(true);
}
if(empty($focus->name)){
return null;
}
if (!isset($_REQUEST['date_due_flag'])) $focus->date_due_flag = 0;
if (!isset($_REQUEST['portal_flag'])) $focus->portal_flag = '0';
$upload_file = new UploadFile('uploadfile');
$do_final_move = 0;
if (isset($_FILES['uploadfile']) && $upload_file->confirm_upload())
{
if (!empty($focus->id) && !empty($_REQUEST['old_filename']) )
{
$upload_file->unlink_file($focus->id,$_REQUEST['old_filename']);
}
$focus->filename = $upload_file->get_stored_file_name();
$focus->file_mime_type = $upload_file->mime_type;
$do_final_move = 1;
}
else if ( isset( $_REQUEST['old_filename']))
{
$focus->filename = $_REQUEST['old_filename'];
}
$return_id = $focus->save();
if ($do_final_move)
{
$upload_file->final_move($focus->id);
}
else if ( ! empty($_REQUEST['old_id']))
{
$upload_file->duplicate_file($_REQUEST['old_id'], $focus->id, $focus->filename);
}
if($redirect){
$GLOBALS['log']->debug("Saved record with id of ".$return_id);
handleRedirect($return_id, "EcmPrivateDocuments");
}else{
return $focus;
}
}
}
?>

View File

@@ -0,0 +1,114 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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/upload_file.php');
require_once('modules/EcmPrivateDocuments/EcmPrivateDocument.php');
require_once('include/upload_file.php');
class EcmPrivateDocumentSoap{
var $upload_file;
function EcmPrivateDocumentSoap(){
$this->upload_file = new UploadFile('uploadfile');
}
function saveFile($ecmprivatedocument, $portal = false){
global $sugar_config;
$focus = new EcmPrivateDocument();
if(!empty($ecmprivatedocument['id'])){
$focus->retrieve($ecmprivatedocument['id']);
}else{
return '-1';
}
if(!empty($ecmprivatedocument['file'])){
$decodedFile = base64_decode($ecmprivatedocument['file']);
$this->upload_file->set_for_soap($ecmprivatedocument['filename'], $decodedFile);
$ext_pos = strrpos($this->upload_file->stored_file_name, ".");
$this->upload_file->file_ext = substr($this->upload_file->stored_file_name, $ext_pos + 1);
if (in_array($this->upload_file->file_ext, $sugar_config['upload_badext'])) {
$this->upload_file->stored_file_name .= ".txt";
$this->upload_file->file_ext = "txt";
}
$focus->filename = $this->upload_file->get_stored_file_name();
$focus->file_mime_type = $this->upload_file->getMimeSoap($focus->filename);
$focus->id = $ecmprivatedocument['id'];
$return_id = $focus->save();
$this->upload_file->final_move($focus->id);
}else{
return '-1';
}
return $return_id;
}
function retrieveFile($id, $filename){
if(empty($filename)){
return '';
}
$this->upload_file->stored_file_name = $filename;
$filepath = $this->upload_file->get_upload_path($id);
if(file_exists($filepath)){
$fp = sugar_fopen($filepath, 'rb');
$file = fread($fp, filesize($filepath));
fclose($fp);
return base64_encode($file);
}
return -1;
}
}
?>

View File

@@ -0,0 +1,69 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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/EditView/QuickCreate.php');
require_once('modules/EcmPrivateDocuments/EcmPrivateDocument.php');
require_once('include/javascript/javascript.php');
class EcmPrivateDocumentsQuickCreate extends QuickCreate {
var $javascript;
function process() {
global $current_user, $timedate, $app_list_strings, $current_language, $mod_strings;
$mod_strings = return_module_language($current_language, 'EcmPrivateDocuments');
parent::process();
if($this->viaAJAX) { // override for ajax call
$this->ss->assign('saveOnclick', "onclick='if(check_form(\"ecmprivatedocumentsQuickCreate\")) return SUGAR.subpanelUtils.inlineSave(this.form.id, \"history\"); else return false;'");
$this->ss->assign('cancelOnclick', "onclick='return SUGAR.subpanelUtils.cancelCreate(\"subpanel_history\")';");
}
$this->ss->assign('viaAJAX', $this->viaAJAX);
$this->javascript = new javascript();
$this->javascript->setFormName('ecmprivatedocumentsQuickCreate');
$focus = new EcmPrivateDocument();
$this->javascript->setSugarBean($focus);
$this->javascript->addAllFields('');
$this->ss->assign('additionalScripts', $this->javascript->getScript(false));
}
}
?>

View File

@@ -0,0 +1,37 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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/EditView/SideQuickCreate.php');

View File

@@ -0,0 +1,74 @@
<?php
//2008-10-08, Dawid Karlowicz, Section1
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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: TODO To be written.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
global $mod_strings, $app_strings;
//<Section1>
//Before
/*
if(ACLController::checkAccess('Calls', 'edit', true))$module_menu[]=Array("index.php?module=Calls&action=EditView&return_module=Calls&return_action=DetailView", $mod_strings['LNK_NEW_CALL'],"CreateCalls");
if(ACLController::checkAccess('Meetings', 'edit', true))$module_menu[]=Array("index.php?module=Meetings&action=EditView&return_module=Meetings&return_action=DetailView", $mod_strings['LNK_NEW_MEETING'],"CreateMeetings");
if(ACLController::checkAccess('Tasks', 'edit', true))$module_menu[]=Array("index.php?module=Tasks&action=EditView&return_module=Tasks&return_action=DetailView", $mod_strings['LNK_NEW_TASK'],"CreateTasks");
if(ACLController::checkAccess('EcmPrivateDocuments', 'edit', true))$module_menu[]=Array("index.php?module=EcmPrivateDocuments&action=EditView&return_module=EcmPrivateDocuments&return_action=DetailView", $mod_strings['LNK_NEW_ECMPRIVATEDOCUMENT'],"CreateEcmPrivateDocuments");
if(ACLController::checkAccess('Emails', 'edit', true))$module_menu[]=Array("index.php?module=Emails&action=Compose", $mod_strings['LNK_NEW_EMAIL'],"CreateEmails");
if(ACLController::checkAccess('Calls', 'list', true))$module_menu[]=Array("index.php?module=Calls&action=index&return_module=Calls&return_action=DetailView", $mod_strings['LNK_CALL_LIST'],"Calls");
if(ACLController::checkAccess('Meetings', 'list', true))$module_menu[]=Array("index.php?module=Meetings&action=index&return_module=Meetings&return_action=DetailView", $mod_strings['LNK_MEETING_LIST'],"Meetings");
if(ACLController::checkAccess('Tasks', 'list', true))$module_menu[]=Array("index.php?module=Tasks&action=index&return_module=Tasks&return_action=DetailView", $mod_strings['LNK_TASK_LIST'],"Tasks");
if(ACLController::checkAccess('EcmPrivateDocuments', 'list', true))$module_menu[]=Array("index.php?module=EcmPrivateDocuments&action=index&return_module=EcmPrivateDocuments&return_action=DetailView", $mod_strings['LNK_ECMPRIVATEDOCUMENT_LIST'],"EcmPrivateDocuments");
if(ACLController::checkAccess('Emails', 'list', true))$module_menu[]=Array("index.php?module=Emails&action=index&return_module=Emails&return_action=DetailView", $mod_strings['LNK_EMAIL_LIST'],"Emails");
if(ACLController::checkAccess('Calendar', 'list', true))$module_menu[]=Array("index.php?module=Calendar&action=index&view=day", $mod_strings['LNK_VIEW_CALENDAR'],"Calendar");
if(ACLController::checkAccess('EcmPrivateDocuments', 'import', true))$module_menu[]=Array("index.php?module=EcmPrivateDocuments&action=Import&step=1&return_module=EcmPrivateDocuments&return_action=index", $mod_strings['LNK_IMPORT_ECMPRIVATEDOCUMENTS'],"Import");
if(ACLController::checkAccess('EcmPrivateDocuments','list', true)) $module_menu[] = Array('#', '<span style="display: none">wp_shortcut_fill_0</span>', '');
*/
//After
if(ACLController::checkAccess('EcmPrivateDocuments', 'edit', true))$module_menu[]=Array("index.php?module=EcmPrivateDocuments&action=EditView&return_module=EcmPrivateDocuments&return_action=DetailView", $mod_strings['LNK_NEW_ECMPRIVATEDOCUMENT'],"CreateEcmPrivateDocuments");
if(ACLController::checkAccess('EcmPrivateDocuments', 'list', true))$module_menu[]=Array("index.php?module=EcmPrivateDocuments&action=index&return_module=EcmPrivateDocuments&return_action=DetailView", $mod_strings['LNK_ECMPRIVATEDOCUMENT_LIST'],"EcmPrivateDocuments");
if(ACLController::checkAccess('EcmPrivateDocuments', 'import', true))$module_menu[]=Array("index.php?module=EcmPrivateDocuments&action=Import&step=1&return_module=EcmPrivateDocuments&return_action=index", $mod_strings['LNK_IMPORT_ECMPRIVATEDOCUMENTS'],"Import");
if(ACLController::checkAccess('EcmPrivateDocuments','list', true)) $module_menu[] = Array('#', '<span style="display: none">wp_shortcut_fill_0</span>', '');
//</Section1>
?>

View File

@@ -0,0 +1,120 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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: TODO: To be written.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
require_once('XTemplate/xtpl.php');
require_once('include/ListView/ListView.php');
class SubPanelViewEcmPrivateDocuments {
var $ecmprivatedocuments_list = null;
var $hideNewButton = false;
var $focus;
function setFocus(&$value){
$this->focus =(object) $value;
}
function setEcmPrivateDocumentsList(&$value){
$this->ecmprivatedocuments_list =$value;
}
function setHideNewButton($value){
$this->hideNewButton = $value;
}
function SubPanelViewEcmPrivateDocuments(){
global $theme;
$theme_path="themes/".$theme."/";
}
function getHeaderText($action, $currentModule){
global $app_strings;
$button = "<table cellspacing='0' cellpadding='0' border='0'><form border='0' action='index.php' method='post' name='form' id='form'>\n";
$button .= "<input type='hidden' name='module' value='EcmPrivateDocuments'>\n";
if(!$this->hideNewButton){
$button .= "<td><input title='".$app_strings['LBL_NEW_BUTTON_TITLE']."' accessKey='".$app_strings['LBL_NEW_BUTTON_KEY']."' class='button' onclick=\"this.form.action.value='EditView'\" type='submit' name='button' value=' ".$app_strings['LBL_NEW_BUTTON_LABEL']." '></td>\n";
}
$button .= "</tr></form></table>\n";
return $button;
}
function ProcessSubPanelListView($xTemplatePath, &$mod_strings,$action, $curModule=''){
global $currentModule,$image_path,$app_strings;
if(empty($curModule))
$curModule = $currentModule;
$ListView = new ListView();
global $current_user;
$header_text = '';
if(is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){
$header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=EcmPrivateDocuments&record=". $this->focus->id."'>".get_image($image_path."EditLayout","border='0' alt='Edit Layout' align='bottom'")."</a>";
}
$ListView->initNewXTemplate($xTemplatePath,$mod_strings);
$ListView->xTemplateAssign("RETURN_URL", "&return_module=".$curModule."&return_action=DetailView&return_id=".$this->focus->id);
$ListView->xTemplateAssign("DELETE_INLINE_PNG", get_image($image_path.'delete_inline','align="absmiddle" alt="'.$app_strings['LNK_DELETE'].'" border="0"'));
$ListView->xTemplateAssign("EDIT_INLINE_PNG", get_image($image_path.'edit_inline','align="absmiddle" alt="'.$app_strings['LNK_EDIT'].'" border="0"'));
$ListView->xTemplateAssign("RECORD_ID", $this->focus->id);
$ListView->setHeaderTitle($mod_strings['LBL_MODULE_NAME']. $header_text);
$ListView->setHeaderText($this->getHeaderText($action, $curModule));
$ListView->processListView($this->ecmprivatedocuments_list, "ecmprivatedocuments", "ECMPRIVATEDOCUMENT");
}
}
?>

View File

@@ -0,0 +1,92 @@
<?php
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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 Mar 23, 2007
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
require_once('include/MVC/Controller/SugarController.php');
require_once('modules/Contacts/Contact.php');
class EcmPrivateDocumentsController extends SugarController
{
function action_save(){
require_once('include/upload_file.php');
$GLOBALS['log']->debug('PERFORMING ECMPRIVATEDOCUMENTS SAVE');
$upload_file = new UploadFile('uploadfile');
$do_final_move = 0;
if (isset($_FILES['uploadfile']) && $upload_file->confirm_upload())
{
if (!empty($this->bean->id) && !empty($_REQUEST['old_filename']) )
{
$upload_file->unlink_file($this->bean->id,$_REQUEST['old_filename']);
}
$this->bean->filename = $upload_file->get_stored_file_name();
$this->bean->file_mime_type = $upload_file->mime_type;
$do_final_move = 1;
}
else if ( isset( $_REQUEST['old_filename']))
{
$this->bean->filename = $_REQUEST['old_filename'];
}
$this->bean->save();
if ($do_final_move)
{
$upload_file->final_move($this->bean->id);
}
else if ( ! empty($_REQUEST['old_id']))
{
$upload_file->duplicate_file($_REQUEST['old_id'], $this->bean->id, $this->bean->filename);
}
}
function action_editview(){
$this->view = 'edit';
$GLOBALS['view'] = $this->view;
if(!empty($_REQUEST['deleteAttachment'])){
ob_clean();
echo $this->bean->deleteAttachment($_REQUEST['isDuplicate']) ? 'true' : 'false';
sugar_cleanup(true);
}
}
}
?>

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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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: Contains field arrays that are used for caching
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$fields_array['EcmPrivateDocument'] = array ('column_fields' => Array("id"
, "date_entered"
, "date_modified"
, "modified_user_id"
, "created_by"
, "description"
, "name"
, "filename"
, "file_mime_type"
, "parent_type"
, "parent_id"
, "contact_id"
, "portal_flag"
),
'list_fields' => Array('id', 'name', 'parent_type', 'parent_name', 'parent_id','date_modified', 'contact_id', 'contact_name','filename','file_mime_type'
),
'required_fields' => array("name"=>1),
);
?>

View File

@@ -0,0 +1,113 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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 (
'ERR_DELETE_RECORD' => 'You must specify a record number to delete the account.',
'LBL_ACCOUNT_ID' => 'Account ID:',
'LBL_CASE_ID' => 'Case ID:',
'LBL_CLOSE' => 'Close:',
'LBL_COLON' => ':',
'LBL_CONTACT_ID' => 'Contact ID:',
'LBL_CONTACT_NAME' => 'Contact:',
'LBL_DEFAULT_SUBPANEL_TITLE' => 'EcmPrivateDocuments',
'LBL_DESCRIPTION' => 'EcmPrivateDocument',
'LBL_EMAIL_ADDRESS' => 'Email Address:',
'LBL_EMAIL_ATTACHMENT' => 'Email Attachment',
'LBL_FILE_MIME_TYPE' => 'Mime Type',
'LBL_FILE_URL' => 'File URL',
'LBL_FILENAME' => 'Attachment:',
'LBL_LEAD_ID' => 'Lead ID:',
'LBL_LIST_CONTACT_NAME' => 'Contact',
'LBL_LIST_DATE_MODIFIED' => 'Last Modified',
'LBL_LIST_FILENAME' => 'Attachment',
'LBL_LIST_FORM_TITLE' => 'EcmPrivateDocument List',
'LBL_LIST_RELATED_TO' => 'Related To',
'LBL_LIST_SUBJECT' => 'Subject',
'LBL_LIST_STATUS' => 'Status',
'LBL_LIST_CONTACT' => 'Contact',
'LBL_MODULE_NAME' => 'EcmPrivateDocuments',
'LBL_MODULE_TITLE' => 'EcmPrivateDocuments: Home',
'LBL_NEW_FORM_TITLE' => 'Create EcmPrivateDocument or Attachment',
'LBL_ECMPRIVATEDOCUMENT_STATUS' => 'EcmPrivateDocument',
'LBL_ECMPRIVATEDOCUMENT_SUBJECT' => 'EcmPrivateDocument Subject:',
'LBL_ECMPRIVATEDOCUMENTS_SUBPANEL_TITLE' => 'Attachments',
'LBL_ECMPRIVATEDOCUMENT' => 'EcmPrivateDocument:',
'LBL_OPPORTUNITY_ID' => 'Opportunity ID:',
'LBL_PARENT_ID' => 'Parent ID:',
'LBL_PARENT_TYPE' => 'Parent Type',
'LBL_PHONE' => 'Phone:',
'LBL_PORTAL_FLAG' => 'Display in Portal?',
'LBL_EMBED_FLAG' => 'Embed in email?',
'LBL_PRODUCT_ID' => 'Product ID:',
'LBL_QUOTE_ID' => 'Quote ID:',
'LBL_RELATED_TO' => 'Related To:',
'LBL_SEARCH_FORM_TITLE' => 'EcmPrivateDocument Search',
'LBL_STATUS' => 'Status',
'LBL_SUBJECT' => 'Subject:',
'LNK_CALL_LIST' => 'Calls',
'LNK_EMAIL_LIST' => 'Emails',
'LNK_IMPORT_ECMPRIVATEDOCUMENTS' => 'Import EcmPrivateDocuments',
'LNK_MEETING_LIST' => 'Meetings',
'LNK_NEW_CALL' => 'Schedule Call',
'LNK_NEW_EMAIL' => 'Archive Email',
'LNK_NEW_MEETING' => 'Schedule Meeting',
'LNK_NEW_ECMPRIVATEDOCUMENT' => 'Create EcmPrivateDocument or Attachment',
'LNK_NEW_TASK' => 'Create Task',
'LNK_ECMPRIVATEDOCUMENT_LIST' => 'EcmPrivateDocuments',
'LNK_TASK_LIST' => 'Tasks',
'LNK_VIEW_CALENDAR' => 'Today',
'LBL_MEMBER_OF' => 'Member of:',
'LBL_LIST_ASSIGNED_TO_NAME' => 'Assigned User',
'LBL_REMOVING_ATTACHMENT'=>'Removing attachment...',
'ERR_REMOVING_ATTACHMENT'=>'Failed to remove attachment...',
'LBL_CREATED_BY'=>'Created By',
'LBL_MODIFIED_BY'=>'Modified By',
'LBL_SEND_ANYWAYS'=> 'This email has no subject. Send/save anyway?',
'LBL_LIST_EDIT_BUTTON' => 'Edit',
);
?>

View File

@@ -0,0 +1,113 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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 (
'ERR_DELETE_RECORD' => 'Zum Löschen der Firma muss eine Datensatznummer angegeben werden.',
'LBL_ACCOUNT_ID' => 'Firma ID',
'LBL_CASE_ID' => 'Fall ID:',
'LBL_CLOSE' => 'Beenden:',
'LBL_COLON' => ':',
'LBL_CONTACT_ID' => 'Kontakt ID:',
'LBL_CONTACT_NAME' => 'Kontakt:',
'LBL_DEFAULT_SUBPANEL_TITLE' => 'Notizen',
'LBL_DESCRIPTION' => 'Notiz',
'LBL_EMAIL_ADDRESS' => 'E-Mail Adresse:',
'LBL_EMAIL_ATTACHMENT' => 'E-Mail Anhang',
'LBL_FILE_MIME_TYPE' => 'Mime-Typ',
'LBL_FILE_URL' => 'Datei URL',
'LBL_FILENAME' => 'Anlage:',
'LBL_LEAD_ID' => 'Anfrage ID:',
'LBL_LIST_CONTACT_NAME' => 'Kontakt',
'LBL_LIST_DATE_MODIFIED' => 'Geändert am:',
'LBL_LIST_FILENAME' => 'Anlage',
'LBL_LIST_FORM_TITLE' => 'Notizen Liste',
'LBL_LIST_RELATED_TO' => 'Bezieht sich auf',
'LBL_LIST_SUBJECT' => 'Betreff',
'LBL_LIST_STATUS' => 'Status',
'LBL_LIST_CONTACT' => 'Kontakt',
'LBL_MODULE_NAME' => 'Notizen',
'LBL_MODULE_TITLE' => 'Notizen: Home',
'LBL_NEW_FORM_TITLE' => 'Neue Notiz oder Anlage',
'LBL_ECMPRIVATEDOCUMENT_STATUS' => 'Notiz',
'LBL_ECMPRIVATEDOCUMENT_SUBJECT' => 'Betreff:',
'LBL_ECMPRIVATEDOCUMENTS_SUBPANEL_TITLE' => 'Anhänge',
'LBL_ECMPRIVATEDOCUMENT' => 'Hinweis:',
'LBL_OPPORTUNITY_ID' => 'Verkaufschance ID:',
'LBL_PARENT_ID' => 'Eltern ID:',
'LBL_PARENT_TYPE' => 'Eltern-Typ',
'LBL_PHONE' => 'Telefon:',
'LBL_PORTAL_FLAG' => 'Im Portal anzeigen?',
'LBL_EMBED_FLAG' => 'In E-Mail einfügen?',
'LBL_PRODUCT_ID' => 'Produkt ID:',
'LBL_QUOTE_ID' => 'Angebot ID:',
'LBL_RELATED_TO' => 'Bezieht sich auf:',
'LBL_SEARCH_FORM_TITLE' => 'Notizen Suche',
'LBL_STATUS' => 'Status',
'LBL_SUBJECT' => 'Betreff:',
'LNK_CALL_LIST' => 'Anrufe',
'LNK_EMAIL_LIST' => 'E-Mails',
'LNK_IMPORT_ECMPRIVATEDOCUMENTS' => 'Notizen importieren',
'LNK_MEETING_LIST' => 'Meetings',
'LNK_NEW_CALL' => 'Neuer Anruf',
'LNK_NEW_EMAIL' => 'E-Mail archivieren',
'LNK_NEW_MEETING' => 'Neues Meeting',
'LNK_NEW_ECMPRIVATEDOCUMENT' => 'Neue Notiz oder Anlage',
'LNK_NEW_TASK' => 'Neue Aufgabe',
'LNK_ECMPRIVATEDOCUMENT_LIST' => 'Notizen',
'LNK_TASK_LIST' => 'Aufgaben',
'LNK_VIEW_CALENDAR' => 'Heute',
'LBL_MEMBER_OF' => 'Mitglied von:',
'LBL_LIST_ASSIGNED_TO_NAME' => 'Zugew. Benutzer',
'LBL_REMOVING_ATTACHMENT'=>'Anhang wird entfernt...',
'ERR_REMOVING_ATTACHMENT'=>'Anhang konnte nicht entfernt werden...',
'LBL_CREATED_BY'=>'Erstellt von:',
'LBL_MODIFIED_BY'=>'Geändert von',
'LBL_SEND_ANYWAYS'=> 'Diese E-Mail hat kein Betreff. Trotzdem senden/speichern?',
'LBL_LIST_EDIT_BUTTON' => 'Bearbeiten',
);
?>

View File

@@ -0,0 +1,100 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* The contents of this file are subject to the SugarCRM Public License Version
* 1.1.3 ("License"); You may not use this file except in compliance with the
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* 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.
*
* The Original Code is: SugarCRM Open Source
* The Initial Developer of the Original Code is SugarCRM, Inc.
* Portions created by SugarCRM are Copyright (C) 2004-2005 SugarCRM, Inc.;
* All Rights Reserved.
* Contributor(s): ______________________________________.
********************************************************************************/
/*********************************************************************************
* pl_pl.lang.php,v for SugarCRM 4.5-->>
* Translator: Krzysztof Morawski
* All Rights Reserved.
* Any bugs report welcome: krzysiek<at>mojsklepik<dot>net
* Contributor(s): ______________________________________..
********************************************************************************/
$mod_strings = array (
'ERR_DELETE_RECORD' => 'Numer rekordu musi być określony, aby usunąć Klienta.',
'LBL_ACCOUNT_ID' => 'ID Klienta:',
'LBL_CASE_ID' => 'ID Sprawy:',
'LBL_CLOSE' => 'Zamknij:',
'LBL_COLON' => ':',
'LBL_CONTACT_ID' => 'ID Kontaktu:',
'LBL_CONTACT_NAME' => 'Kontakt:',
'LBL_DEFAULT_SUBPANEL_TITLE' => 'Notatki',
'LBL_DESCRIPTION' => 'Opis',
'LBL_EMAIL_ADDRESS' => 'Adres Email:',
'LBL_EMAIL_ATTACHMENT' => 'Załącznik Wiadomości',
'LBL_FILE_MIME_TYPE' => 'Type Mime',
'LBL_FILE_URL' => 'Plik URL',
'LBL_FILENAME' => 'Załącznik:',
'LBL_LEAD_ID' => 'ID Decydenta:',
'LBL_LIST_CONTACT_NAME' => 'Kontakty',
'LBL_LIST_DATE_MODIFIED' => 'Ostatnia Modyfikacja',
'LBL_LIST_FILENAME' => 'Załącznik',
'LBL_LIST_FORM_TITLE' => 'Lista Notatek',
'LBL_LIST_RELATED_TO' => 'Przydzielono do',
'LBL_LIST_SUBJECT' => 'Temat',
'LBL_LIST_STATUS' => 'Status',
'LBL_LIST_CONTACT' => 'Kontakt',
'LBL_MODULE_NAME' => 'Notatki',
'LBL_MODULE_TITLE' => 'Notatki: Strona Główna',
'LBL_NEW_FORM_TITLE' => 'Utwórz Notatkę lub Załącznik',
'LBL_ECMPRIVATEDOCUMENT_STATUS' => 'Notatka',
'LBL_ECMPRIVATEDOCUMENT_SUBJECT' => 'Temat Notatki:',
'LBL_ECMPRIVATEDOCUMENTS_SUBPANEL_TITLE' => 'Załącznik',
'LBL_ECMPRIVATEDOCUMENT' => 'Notatka:',
'LBL_OPPORTUNITY_ID' => 'ID Tematu:',
'LBL_PARENT_ID' => 'Pierwotne ID:',
'LBL_PARENT_TYPE' => 'Pierwotny Typ',
'LBL_PHONE' => 'Telefon:',
'LBL_PORTAL_FLAG' => 'Wyświetlić w Portalu?',
'LBL_EMBED_FLAG' => 'Umieścić w Wiadomości?',
'LBL_PRODUCT_ID' => 'ID Produktu:',
'LBL_QUOTE_ID' => 'ID Wątku:',
'LBL_RELATED_TO' => 'Przydzielony do:',
'LBL_SEARCH_FORM_TITLE' => 'Szukaj Notatki',
'LBL_STATUS' => 'Status',
'LBL_SUBJECT' => 'Temat:',
'LNK_CALL_LIST' => 'Rozmowy Telefoniczne',
'LNK_EMAIL_LIST' => 'Emaile',
'LNK_IMPORT_ECMPRIVATEDOCUMENTS' => 'Importuj Notatki',
'LNK_MEETING_LIST' => 'Spotkania',
'LNK_NEW_CALL' => 'Plan Rozmów Telefonicznych',
'LNK_NEW_EMAIL' => 'Zarchiwizowane Emaile',
'LNK_NEW_MEETING' => 'Plan Spotkania',
'LNK_NEW_ECMPRIVATEDOCUMENT' => 'Utwórz Notatkę lub Załącznik',
'LNK_NEW_TASK' => 'Utwórz Zadanie',
'LNK_ECMPRIVATEDOCUMENT_LIST' => 'Notatki',
'LNK_TASK_LIST' => 'Zadania',
'LNK_VIEW_CALENDAR' => 'Dzisiaj',
'LBL_MEMBER_OF' => 'Członek:',
'LBL_LIST_ASSIGNED_TO_NAME' => 'Przydzielony Użytkownik',
'LBL_OC_FILE_NOTICE' => 'Zaloguj się, aby zobaczyć plik',
'LBL_REMOVING_ATTACHMENT'=>'Usuwam załącznik...',
'ERR_REMOVING_ATTACHMENT'=>'Nie można usunąć załącznika...',
'LBL_CREATED_BY'=>'Utworzone Przez',
'LBL_MODIFIED_BY'=>'Zmodyfikowane Przez',
'LBL_SEND_ANYWAYS'=> 'Ta Wiadomość nie ma tematu. Wysłać mimo to?',
);
?>

View File

@@ -0,0 +1,42 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$searchFields['EcmPrivateDocuments'] =
array (
'name' => array( 'query_type'=>'default'),
'contact_name' => array( 'query_type'=>'default','db_field'=>array('contacts.first_name','contacts.last_name')),
);
?>

View File

@@ -0,0 +1,65 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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".
*********************************************************************************/
function additionalDetailsEcmPrivateDocument($fields) {
static $mod_strings;
global $app_strings;
if(empty($mod_strings)) {
global $current_language;
$mod_strings = return_module_language($current_language, 'EcmPrivateDocuments');
}
$overlib_string = '<div style="overflow:auto; height:100px; max-height:100px;">';
if(!empty($fields['TEAM_NAME'])) $overlib_string .= '<b>'. $app_strings['LBL_TEAM'] . '</b> ' . $fields['TEAM_NAME'] . '<br>';
if(!empty($fields['DESCRIPTION'])) {
$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
}
$overlib_string .= "</div>";
return array('fieldToAddTo' => 'NAME',
'string' => $overlib_string,
'editLink' => "index.php?action=EditView&module=EcmPrivateDocuments&return_module=EcmPrivateDocuments&record={$fields['ID']}",
'viewLink' => "index.php?action=DetailView&module=EcmPrivateDocuments&return_module=EcmPrivateDocuments&record={$fields['ID']}");
}
?>

View File

@@ -0,0 +1,73 @@
<?php
/* * *******************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
* ****************************************************************************** */
$viewdefs['EcmPrivateDocuments']['DetailView'] = array(
'templateMeta' => array('maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
),
'panels' => array(
array(
// 'contact_name',
array(
'name' => 'parent_name',
'customLabel' => '{sugar_translate label=\'LBL_MODULE_NAME\' module=$fields.parent_type.value}',
),
),
array(
array('name' => 'contact_phone', 'type' => 'phone', 'label' => 'LBL_PHONE'),
array('name' => 'date_modified', 'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}'),
),
array(
array('name' => 'contact_email', 'label' => 'LBL_EMAIL_ADDRESS'),
array('name' => 'date_entered', 'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}'),
),
array(
),
array(
array('name' => 'name', 'label' => 'LBL_SUBJECT'),
),
array(
array('name' => 'filename', 'type' => 'file', 'displayParams' => array('id' => 'id', 'link' => 'filename')),
),
array(
array('name' => 'description', 'label' => 'LBL_ECMPRIVATEDOCUMENT_STATUS'),
),
)
);
?>

View File

@@ -0,0 +1,106 @@
<?php
/* * *******************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
* ****************************************************************************** */
$viewdefs['EcmPrivateDocuments']['EditView'] = array(
'templateMeta' => array(
'form' => array(
'enctype' => 'multipart/form-data',
'headerTpl' => 'modules/EcmPrivateDocuments/tpls/EditViewHeader.tpl',
),
'maxColumns' => '2',
'includes' => array(
0 => array(
'file' => 'modules/EcmPrivateDocuments/js/js.js'
),
),
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
'javascript' => '
<script type="text/javascript" src="include/javascript/dashlets.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script>
function deleteAttachmentCallBack(text)
{literal} { {/literal}
if(text == \'true\') {literal} { {/literal}
document.getElementById(\'new_attachment\').style.display = \'\';
ajaxStatus.hideStatus();
document.getElementById(\'old_attachment\').innerHTML = \'\';
{literal} } {/literal} else {literal} { {/literal}
document.getElementById(\'new_attachment\').style.display = \'none\';
ajaxStatus.flashStatus(SUGAR.language.get(\'EcmPrivateDocuments\', \'ERR_REMOVING_ATTACHMENT\'), 2000);
{literal} } {/literal}
{literal} } {/literal}
</script>
<script>toggle_portal_flag(); function toggle_portal_flag() {literal} { {/literal} {$TOGGLE_JS} {literal} } {/literal} </script>',
),
'panels' => array(
'default' => array(
array(
'',
'parent_name'
),
array(
array(
'name' => 'name',
'label' => 'LBL_SUBJECT',
'displayParams' => array('size' => 100, 'required' => true)),
),
array(
array(
'name' => 'filename',
'customCode' => '
<span id=\'new_attachment\' style=\'display:{if !empty($fields.filename.value)}none{/if}\'>
<input name="uploadfile" tabindex="3" type="file" size="60"/>
</span>
<span id=\'old_attachment\' style=\'display:{if empty($fields.filename.value)}none{/if}\'>
<input type=\'hidden\' name=\'deleteAttachment\' value=\'0\'>
{$fields.filename.value}<input type=\'hidden\' name=\'old_filename\' value=\'{$fields.filename.value}\'/><input type=\'hidden\' name=\'old_id\' value=\'{$fields.id.value}\'/>
<input type=\'button\' class=\'button\' value=\'{$APP.LBL_REMOVE}\' onclick=\'ajaxStatus.showStatus(SUGAR.language.get("EcmPrivateDocuments", "LBL_REMOVING_ATTACHMENT"));this.form.deleteAttachment.value=1;this.form.action.value="EditView";SUGAR.dashlets.postForm(this.form, deleteAttachmentCallBack);this.form.deleteAttachment.value=0;this.form.action.value="";\' >
</span>',
),
),
array(
array(
'name' => 'description',
'label' => 'LBL_ECMPRIVATEDOCUMENT_STATUS',
'displayParams' => array('rows' => 15, 'cols' => 90)
),
),
),
)
);
?>

View File

@@ -0,0 +1,88 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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".
*/
$listViewDefs['EcmPrivateDocuments'] = array(
'NAME' => array(
'width' => '40',
'label' => 'LBL_LIST_SUBJECT',
'link' => true,
'default' => true),
'CONTACT_NAME' => array(
'width' => '20',
'label' => 'LBL_LIST_CONTACT',
'link' => true,
'id' => 'CONTACT_ID',
'module' => 'Contacts',
'default' => true,
'ACLTag' => 'CONTACT',
'related_fields' => array('contact_id')),
'PARENT_NAME' => array(
'width' => '20',
'label' => 'LBL_LIST_RELATED_TO',
'dynamic_module' => 'PARENT_TYPE',
'id' => 'PARENT_ID',
'link' => true,
'default' => true,
'sortable' => false,
'ACLTag' => 'PARENT',
'related_fields' => array('parent_id', 'parent_type')),
'FILENAME' => array (
'width' => '20',
'label' => 'LBL_LIST_FILENAME',
'link' => false,
'default' => true,
'related_fields' => array('file_url', 'id'),
'customCode'=> '<a href="index.php?entryPoint=download&id={$ID}&type=EcmPrivateDocuments" class="listViewTdLinkS1">{$FILENAME}</a>'
),
'DATE_MODIFIED' => array (
'width' => '20',
'label' => 'LBL_DATE_MODIFIED',
'link' => false,
'default' => true,
//'related_fields' => array('file_url'),
),
);
?>

View File

@@ -0,0 +1,133 @@
<?php
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$viewdefs ['EcmPrivateDocuments'] =
array (
'QuickCreate' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'enctype' => 'multipart/form-data',
'headerTpl' => 'modules/EcmPrivateDocuments/tpls/EditViewHeader.tpl',
),
'maxColumns' => '2',
'widths' =>
array (
array (
'label' => '10',
'field' => '30',
),
array (
'label' => '10',
'field' => '30',
),
),
'javascript' => '<script type="text/javascript" src="include/javascript/dashlets.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script>
function deleteAttachmentCallBack(text)
{literal} { {/literal}
if(text == \'true\') {literal} { {/literal}
document.getElementById(\'new_attachment\').style.display = \'\';
ajaxStatus.hideStatus();
document.getElementById(\'old_attachment\').innerHTML = \'\';
{literal} } {/literal} else {literal} { {/literal}
document.getElementById(\'new_attachment\').style.display = \'none\';
ajaxStatus.flashStatus(SUGAR.language.get(\'EcmPrivateDocuments\', \'ERR_REMOVING_ATTACHMENT\'), 2000);
{literal} } {/literal}
{literal} } {/literal}
</script>
<script>toggle_portal_flag(); function toggle_portal_flag() {literal} { {/literal} {$TOGGLE_JS} {literal} } {/literal} </script>',
),
'panels' =>
array (
'default' =>
array (
array (
// 'contact_name',
'parent_name',
),
array (
),
array (
array (
'name' => 'name',
'label' => 'LBL_SUBJECT',
'displayParams' =>
array (
'size' => 100,
'required' => true,
),
),
),
array (
array (
'name' => 'filename',
'customCode' => '<span id=\'new_attachment\' style=\'display:{if !empty($fields.filename.value)}none{/if}\'>
<input name="uploadfile" tabindex="3" type="file" size="60"/>
</span>
<span id=\'old_attachment\' style=\'display:{if empty($fields.filename.value)}none{/if}\'>
<input type=\'hidden\' name=\'deleteAttachment\' value=\'0\'>
{$fields.filename.value}<input type=\'hidden\' name=\'old_filename\' value=\'{$fields.filename.value}\'/><input type=\'hidden\' name=\'old_id\' value=\'{$fields.id.value}\'/>
<input type=\'button\' class=\'button\' value=\'{$APP.LBL_REMOVE}\' onclick=\'ajaxStatus.showStatus(SUGAR.language.get("EcmPrivateDocuments", "LBL_REMOVING_ATTACHMENT"));this.form.deleteAttachment.value=1;this.form.action.value="EditView";SUGAR.dashlets.postForm(this.form, deleteAttachmentCallBack);this.form.deleteAttachment.value=0;this.form.action.value="";\' >
</span>',
),
),
array (
array (
'name' => 'description',
'label' => 'LBL_ECMPRIVATEDOCUMENT_STATUS',
'displayParams' =>
array (
'rows' => 6,
'cols' => 75,
),
),
),
),
),
),
);
?>

View File

@@ -0,0 +1,60 @@
<?php
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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
*/
$searchdefs['EcmPrivateDocuments'] = array(
'templateMeta' => array(
'maxColumns' => '3',
'widths' => array('label' => '10', 'field' => '30'),
),
'layout' => array(
'basic_search' => array(
'name',
array('name'=>'contact_name', 'label'=>'LBL_CONTACT_NAME', 'type'=>'name'),
),
'advanced_search' => array(
'name',
'filename',
'date_modified',
'created_by'
),
),
);
?>

View File

@@ -0,0 +1,74 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
*********************************************************************************/
$viewdefs['EcmPrivateDocuments']['SideQuickCreate'] = array(
'templateMeta' => array('form'=>array(
'enctype'=> 'multipart/form-data',
'headerTpl'=>'include/EditView/header.tpl',
'footerTpl'=>'include/EditView/footer.tpl',
'buttons'=>array('SAVE'),
'button_location'=>'bottom'
),
'maxColumns' => '1',
'panelClass'=>'none',
'labelsOnTop'=>true,
'widths' => array(
array('label' => '10', 'field' => '30'),
),
),
'panels' =>array (
'DEFAULT' =>
array (
array (
array('name'=>'name', 'displayParams'=>array('size'=>20, 'required'=>true)),
),
array (
array(
'name'=>'filename',
'customCode'=>'<input type="file" name="uploadfile" size="10">'
),
),
array (
array('name' => 'description', 'label' => 'LBL_ECMPRIVATEDOCUMENT_STATUS', 'displayParams' => array('rows'=>3, 'cols'=>20)),
),
),
)
);
?>

View File

@@ -0,0 +1,65 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
*/
$GLOBALS['studioDefs']['EcmPrivateDocuments'] = array(
'LBL_DETAILVIEW'=>array(
'template'=>'xtpl',
'template_file'=>'modules/EcmPrivateDocuments/DetailView.html',
'php_file'=>'modules/EcmPrivateDocuments/DetailView.php',
'type'=>'DetailView',
),
'LBL_EDITVIEW'=>array(
'template'=>'xtpl',
'template_file'=>'modules/EcmPrivateDocuments/EditView.html',
'php_file'=>'modules/EcmPrivateDocuments/EditView.php',
'type'=>'EditView',
),
'LBL_LISTVIEW'=>array(
'template'=>'listview',
'meta_file'=>'modules/EcmPrivateDocuments/listviewdefs.php',
'type'=>'ListView',
),
'LBL_SEARCHFORM'=>array(
'template'=>'xtpl',
'template_file'=>'modules/EcmPrivateDocuments/SearchForm.html',
'php_file'=>'modules/EcmPrivateDocuments/ListView.php',
'type'=>'SearchForm',
),
);

View File

@@ -0,0 +1,71 @@
<?php
if (!defined('sugarEntry') || !sugarEntry)
die('Not A Valid Entry Point');
/**
* Layout definition for Accounts
*
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
*/
$layout_defs['EcmPrivateDocuments']['subpanel_setup'] = array(
'ecmprivatedocuments' => array(
'order' => 10,
'module' => 'EcmPrivateDocuments',
'sort_order' => 'asc',
'sort_by' => 'date_entered',
'subpanel_name' => 'default',
'get_subpanel_data' => 'ecmprivatedocuments',
'add_subpanel_data' => 'ecmprivatedocument_id',
'title_key' => 'LBL_ECMPRIVATEDOCUMENTS_SUBPANEL_TITLE',
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
),
),
/*
'emails' => array (
'order' => 15,
'module' => 'Emails',
'sort_order' => 'asc',
'sort_by' => 'date_modified',
'get_subpanel_data' => 'emails',
'add_subpanel_data' => 'emails_id',
'subpanel_name' => 'ForEcmQuotes',
'title_key' => 'LBL_EMAILS_SUBPANEL_TITLE',
'top_buttons' => array(),
),
*/
);
?>

View File

@@ -0,0 +1,94 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/**
* Subpanel Layout definition for Leads
*
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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' => 'EcmPrivateDocuments'),
),
'where' => '',
'list_fields' => array(
'object_image'=>array(
'widget_class' => 'SubPanelIcon',
'width' => '2%',
'image2'=>'attachment',
'image2_url_field'=>'file_url'
),
'name'=>array(
'vname' => 'LBL_LIST_SUBJECT',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '9999%',
),
'contact_name'=>array(
'module' => 'Contacts',
'vname' => 'LBL_LIST_CONTACT_NAME',
'width' => '9999%',
'target_record_key' => 'contact_id',
'target_module' => 'Contacts',
'widget_class' => 'SubPanelDetailViewLink',
),
'date_modified'=>array(
'vname' => 'LBL_LIST_DATE_MODIFIED',
'width' => '9999%',
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'module' => 'EcmPrivateDocuments',
'width' => '9999%',
),
'remove_button'=>array(
'widget_class' => 'SubPanelRemoveButton',
'width' => '9999%',
),
'file_url'=>array(
'usage'=>'query_only'
),
'filename'=>array(
'usage'=>'query_only'
),
),
);
?>

View File

@@ -0,0 +1,94 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/**
* Subpanel Layout definition for Leads
*
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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' => 'EcmPrivateDocuments'),
),
'where' => '',
'list_fields' => array(
'object_image'=>array(
'widget_class' => 'SubPanelIcon',
'width' => '2%',
'image2'=>'attachment',
'image2_url_field'=>'file_url'
),
'name'=>array(
'vname' => 'LBL_LIST_SUBJECT',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '9999%',
),
'contact_name'=>array(
'module' => 'Contacts',
'vname' => 'LBL_LIST_CONTACT_NAME',
'width' => '9999%',
'target_record_key' => 'contact_id',
'target_module' => 'Contacts',
'widget_class' => 'SubPanelDetailViewLink',
),
'date_modified'=>array(
'vname' => 'LBL_LIST_DATE_MODIFIED',
'width' => '9999%',
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'module' => 'EcmPrivateDocuments',
'width' => '9999%',
),
'remove_button'=>array(
'widget_class' => 'SubPanelRemoveButton',
'width' => '9999%',
),
'file_url'=>array(
'usage'=>'query_only'
),
'filename'=>array(
'usage'=>'query_only'
),
),
);
?>

View File

@@ -0,0 +1,100 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/**
* Subpanel Layout definition for Leads
*
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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' => 'EcmPrivateDocuments'),
),
'where' => '',
'list_fields' => array(
'object_image'=>array(
'widget_class' => 'SubPanelIcon',
'width' => '2%',
'image2'=>'attachment',
'image2_url_field'=>'file_url'
),
'name'=>array(
'vname' => 'LBL_LIST_SUBJECT',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '9999%',
),
/*todo AG
array( // this column does not exist on
'name' => '$filename',
'vname' => 'LBL_LIST_FILENAME',
'width' => '9999%',
),
*/
'contact_name'=>array(
'module' => 'Contacts',
'vname' => 'LBL_LIST_CONTACT_NAME',
'width' => '9999%',
'target_record_key' => 'contact_id',
'target_module' => 'Contacts',
'widget_class' => 'SubPanelDetailViewLink',
),
'date_modified'=>array(
'vname' => 'LBL_LIST_DATE_MODIFIED',
'width' => '9999%',
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'module' => 'EcmPrivateDocuments',
'width' => '9999%',
),
'remove_button'=>array(
'widget_class' => 'SubPanelRemoveButton',
'width' => '9999%',
),
'file_url'=>array(
'usage'=>'query_only'
),
'filename'=>array(
'usage'=>'query_only'
),
),
);
?>

View File

@@ -0,0 +1,100 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/**
* Subpanel Layout definition for Leads
*
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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' => 'EcmPrivateDocuments'),
),
'where' => '',
'list_fields' => array(
'object_image'=>array(
'widget_class' => 'SubPanelIcon',
'width' => '2%',
'image2'=>'attachment',
'image2_url_field'=>'file_url'
),
'name'=>array(
'vname' => 'LBL_LIST_SUBJECT',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '9999%',
),
/*todo AG
array( // this column does not exist on
'name' => '$filename',
'vname' => 'LBL_LIST_FILENAME',
'width' => '9999%',
),
*/
'contact_name'=>array(
'module' => 'Contacts',
'vname' => 'LBL_LIST_CONTACT_NAME',
'width' => '9999%',
'target_record_key' => 'contact_id',
'target_module' => 'Contacts',
'widget_class' => 'SubPanelDetailViewLink',
),
'date_modified'=>array(
'vname' => 'LBL_LIST_DATE_MODIFIED',
'width' => '9999%',
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'module' => 'EcmPrivateDocuments',
'width' => '9999%',
),
'remove_button'=>array(
'widget_class' => 'SubPanelRemoveButton',
'width' => '9999%',
),
'file_url'=>array(
'usage'=>'query_only'
),
'filename'=>array(
'usage'=>'query_only'
),
),
);
?>

View File

@@ -0,0 +1,94 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/**
* Subpanel Layout definition for Leads
*
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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' => 'EcmPrivateDocuments'),
),
'where' => '',
'list_fields' => array(
'object_image'=>array(
'widget_class' => 'SubPanelIcon',
'width' => '2%',
'image2'=>'attachment',
'image2_url_field'=>'file_url'
),
'name'=>array(
'vname' => 'LBL_LIST_SUBJECT',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '9999%',
),
'contact_name'=>array(
'module' => 'Contacts',
'vname' => 'LBL_LIST_CONTACT_NAME',
'width' => '9999%',
'target_record_key' => 'contact_id',
'target_module' => 'Contacts',
'widget_class' => 'SubPanelDetailViewLink',
),
'date_modified'=>array(
'vname' => 'LBL_LIST_DATE_MODIFIED',
'width' => '9999%',
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'module' => 'EcmPrivateDocuments',
'width' => '9999%',
),
'remove_button'=>array(
'widget_class' => 'SubPanelRemoveButton',
'width' => '9999%',
),
'file_url'=>array(
'usage'=>'query_only'
),
'filename'=>array(
'usage'=>'query_only'
),
),
);
?>

View File

@@ -0,0 +1,124 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/**
* Subpanel Layout definition for Accounts
*
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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(
//Removed button because this layout def is a component of
//the activities sub-panel.
'where' => '',
'list_fields' => array(
'AD' => array (
'widget_class' => 'SubPanelAdditionalDetailsLink',
'vname' => '&nbsp;',
'sortable' => false,
'width' => 0,
),
'object_image'=>array(
'vname' => 'LBL_OBJECT_IMAGE',
'widget_class' => 'SubPanelIcon',
'width' => '2%',
'image2'=>'attachment',
'image2_url_field'=>'file_url'
),
'name'=>array(
'vname' => 'LBL_LIST_SUBJECT',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '50%',
),
'status'=>array(
'widget_class' => 'SubPanelActivitiesStatusField',
'vname' => 'Typ',
'width' => '15%',
'force_exists'=>true //this will create a fake field in the case a field is not defined
),
'contact_name'=>array(
'widget_class' => 'SubPanelDetailViewLink',
'target_record_key' => 'contact_id',
'target_module' => 'Contacts',
'module' => 'Contacts',
'vname' => 'LBL_LIST_CONTACT',
'width' => '15%',
'sortable'=>false,
),
'date_modified'=>array(
'vname' => 'LBL_LIST_DATE_MODIFIED',
'width' => '10%',
),
'created_by_name' => array (
'vname' => 'LBL_LIST_ASSIGNED_TO_NAME',
'force_exists'=>true //this will create a fake field since this field is not defined
),
/*
'assigned_user_owner' => array (
'force_exists'=>true, //this will create a fake field since this field is not defined
'usage'=>'query_only'
),
'assigned_user_mod' => array (
'force_exists'=>true, //this will create a fake field since this field is not defined
'usage'=>'query_only'
),
*/
'edit_button'=>array(
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'width' => '2%',
),
'remove_button'=>array(
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButton',
'width' => '2%',
),
'file_url'=>array(
'usage'=>'query_only'
),
'filename'=>array(
'usage'=>'query_only'
),
),
);
?>

View File

@@ -0,0 +1,98 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/**
* Subpanel Layout definition for Leads
*
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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' => 'EcmPrivateDocuments'),
),
'where' => '',
'list_fields' => array(
'object_image'=>array(
'vname' => 'LBL_OBJECT_IMAGE',
'widget_class' => 'SubPanelIcon',
'width' => '2%',
'image2'=>'attachment',
'image2_url_field'=>'file_url'
),
'name'=>array(
'vname' => 'LBL_LIST_SUBJECT',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '9999%',
),
/*todo AG
array( // this column does not exist on
'name' => '$filename',
'vname' => 'LBL_LIST_FILENAME',
'width' => '9999%',
),
*/
'contact_name'=>array(
'module' => 'Contacts',
'vname' => 'LBL_LIST_CONTACT_NAME',
'width' => '9999%',
'target_record_key' => 'contact_id',
'target_module' => 'Contacts',
'widget_class' => 'SubPanelDetailViewLink',
),
'date_modified'=>array(
'vname' => 'LBL_LIST_DATE_MODIFIED',
'width' => '9999%',
),
'edit_button'=>array(
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'module' => 'EcmPrivateDocuments',
'width' => '9999%',
),
'file_url'=>array(
'usage'=>'query_only'
),
'filename'=>array(
'usage'=>'query_only'
),
),
);
?>

View File

@@ -0,0 +1,359 @@
<?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 - 2009 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU 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 General Public License for more
* details.
*
* You should have received a copy of the GNU 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 General Public License version 3.
*
* In accordance with Section 7(b) of the GNU 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".
* ****************************************************************************** */
$dictionary['EcmPrivateDocument'] = array(
'table' => 'ecmprivatedocuments',
'comment' => 'EcmPrivateDocuments and Attachments',
'fields' => array(
'id' => array(
'name' => 'id',
'vname' => 'LBL_NAME',
'type' => 'id',
'required' => true,
'reportable' => false,
'comment' => 'Unique identifier',
),
'date_entered' => array(
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'required' => true,
'comment' => 'Date record created',
),
'date_modified' => array(
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'required' => true,
'comment' => 'Date record last modified',
),
'modified_user_id' => array(
'name' => 'modified_user_id',
'rname' => 'user_name',
'id_name' => 'modified_user_id',
'vname' => 'LBL_MODIFIED',
'type' => 'assigned_user_name',
'table' => 'users',
'isnull' => 'false',
'dbType' => 'id',
'reportable' => true,
'comment' => 'User who last modified record',
),
'modified_by_name' => array(
'name' => 'modified_by_name',
'vname' => 'LBL_MODIFIED_BY',
'type' => 'relate',
'reportable' => false,
'source' => 'non-db',
'table' => 'users',
'id_name' => 'modified_user_id',
'module' => 'Users',
'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',
'comment' => 'User who created record',
),
'created_by_name' => array(
'name' => 'created_by_name',
'vname' => 'LBL_CREATED_BY',
'type' => 'relate',
'reportable' => false,
'source' => 'non-db',
'table' => 'users',
'id_name' => 'created_by',
'module' => 'Users',
'duplicate_merge' => 'disabled',
),
'name' => array(
'name' => 'name',
'vname' => 'LBL_ECMPRIVATEDOCUMENT_SUBJECT',
'dbType' => 'varchar',
'type' => 'name',
'len' => '255',
'comment' => 'Name of the ecmprivatedocument',
'importable' => 'required',
),
'filename' => array(
'name' => 'filename',
'vname' => 'LBL_FILENAME',
'type' => 'varchar',
'len' => '255',
'reportable' => true,
'comment' => 'File name associated with the ecmprivatedocument (attachment)',
),
'file_mime_type' => array(
'name' => 'file_mime_type',
'vname' => 'LBL_FILE_MIME_TYPE',
'type' => 'varchar',
'len' => '100',
'comment' => 'Attachment MIME type',
),
'file_url' => array(
'name' => 'file_url',
'vname' => 'LBL_FILE_URL',
'type' => 'function',
'function_require' => 'include/upload_file.php',
'function_class' => 'UploadFile',
'function_name' => 'get_url',
'function_params' => array('filename', 'id'),
'source' => 'function',
'reportable' => false,
'comment' => 'Path to file (can be URL)',
),
'parent_type' => array(
'name' => 'parent_type',
'vname' => 'LBL_PARENT_TYPE',
'type' => 'varchar',
'len' => '25',
'comment' => 'Sugar module the EcmPrivateDocument is associated with',
),
'parent_id' => array(
'name' => 'parent_id',
'vname' => 'LBL_PARENT_ID',
'type' => 'id',
'required' => false,
'reportable' => false,
'comment' => 'The ID of the Sugar item specified in parent_type',
),
'contact_id' => array(
'name' => 'contact_id',
'vname' => 'LBL_CONTACT_ID',
'type' => 'id',
'required' => false,
'reportable' => false,
'comment' => 'Contact ID ecmprivatedocument is associated with',
),
'portal_flag' => array(
'name' => 'portal_flag',
'vname' => 'LBL_PORTAL_FLAG',
'type' => 'bool',
'required' => true,
'comment' => 'Portal flag indicator determines if ecmprivatedocument created via portal',
),
'embed_flag' => array(
'name' => 'embed_flag',
'vname' => 'LBL_EMBED_FLAG',
'type' => 'bool',
'default' => 0,
'required' => true,
'comment' => 'Embed flag indicator determines if ecmprivatedocument embedded in email',
),
'description' => array(
'name' => 'description',
'vname' => 'LBL_DESCRIPTION',
'type' => 'text',
'comment' => 'Full text of the ecmprivatedocument',
),
'deleted' => array(
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'required' => true,
'default' => '0',
'reportable' => false,
'comment' => 'Record deletion indicator',
),
'parent_name' => array(
'name' => 'parent_name',
'parent_type' => 'record_type_display',
'type_name' => 'parent_type',
'id_name' => 'parent_id', 'vname' => 'LBL_RELATED_TO',
'type' => 'parent',
'source' => 'non-db',
'options' => 'record_type_display_ecmprivatedocuments',
),
'contact_name' => array(
'name' => 'contact_name',
'rname' => 'last_name',
'id_name' => 'contact_id',
'vname' => 'LBL_CONTACT_NAME',
'table' => 'contacts',
'type' => 'relate',
'link' => 'contact',
'join_name' => 'contacts',
'db_concat_fields' => array(0 => 'first_name', 1 => 'last_name'),
'isnull' => 'true',
'module' => 'Contacts',
'source' => 'non-db',
),
'contact_phone' => array(
'name' => 'contact_phone',
'type' => 'phone',
'vname' => 'LBL_PHONE',
'source' => 'non-db',
),
'contact_email' => array(
'name' => 'contact_email',
'type' => 'varchar',
'vname' => 'LBL_EMAIL_ADDRESS',
'source' => 'non-db',
),
'account_id' => array(
'name' => 'account_id',
'vname' => 'LBL_ACCOUNT_ID',
'type' => 'id',
'reportable' => false,
'source' => 'non-db',
),
'opportunity_id' => array(
'name' => 'opportunity_id',
'vname' => 'LBL_OPPORTUNITY_ID',
'type' => 'id',
'reportable' => false,
'source' => 'non-db',
),
'acase_id' => array(
'name' => 'acase_id',
'vname' => 'LBL_CASE_ID',
'type' => 'id',
'reportable' => false,
'source' => 'non-db',
),
'lead_id' => array(
'name' => 'lead_id',
'vname' => 'LBL_LEAD_ID',
'type' => 'id',
'reportable' => false,
'source' => 'non-db',
),
'created_by_link' => array(
'name' => 'created_by_link',
'type' => 'link',
'relationship' => 'ecmprivatedocuments_created_by',
'vname' => 'LBL_CREATED_BY_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
),
'modified_user_link' => array(
'name' => 'modified_user_link',
'type' => 'link',
'relationship' => 'ecmprivatedocuments_modified_user',
'vname' => 'LBL_MODIFIED_BY_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
),
'contact' => array(
'name' => 'contact',
'type' => 'link',
'relationship' => 'contact_ecmprivatedocuments',
'vname' => 'LBL_LIST_CONTACT_NAME',
'source' => 'non-db',
),
'cases' => array(
'name' => 'cases',
'type' => 'link',
'relationship' => 'case_ecmprivatedocuments',
'vname' => 'LBL_CASES',
'source' => 'non-db',
),
'ecmprivatedocuments' => array(
'name' => 'ecmprivatedocuments',
'type' => 'link',
'relationship' => 'ecmprivatedocuments_ecmprivatedocuments',
'source' => 'non-db',
'vname' => 'LBL_ECMPRIVATEDOCUMENTS',
),
),
'relationships' => array(
'ecmprivatedocuments_modified_user' => array(
'lhs_module' => 'Users',
'lhs_table' => 'users',
'lhs_key' => 'id',
'rhs_module' => 'EcmPrivateDocuments',
'rhs_table' => 'ecmprivatedocuments',
'rhs_key' => 'modified_user_id',
'relationship_type' => 'one-to-many',
),
'ecmprivatedocuments_created_by' => array(
'lhs_module' => 'Users',
'lhs_table' => 'users',
'lhs_key' => 'id',
'rhs_module' => 'EcmPrivateDocuments',
'rhs_table' => 'ecmprivatedocuments',
'rhs_key' => 'created_by',
'relationship_type' => 'one-to-many',
),
'ecmprivatedocuments_ecmprivatedocuments' => array(
'lhs_module' => 'EcmPrivateDocuments',
'lhs_table' => 'ecmprivatedocuments',
'lhs_key' => 'id',
'rhs_module' => 'EcmPrivateDocuments',
'rhs_table' => 'ecmprivatedocuments',
'rhs_key' => 'parent_id',
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'EcmPrivateDocuments',
),
),
'indices' => array(
array(
'name' => 'ecmprivatedocumentspk',
'type' => 'primary',
'fields' => array('id'),
),
array(
'name' => 'idx_ecmprivatedocument_name',
'type' => 'index',
'fields' => array('name'),
),
array(
'name' => 'idx_ecmprivatedocuments_parent',
'type' => 'index',
'fields' => array('parent_id', 'parent_type'),
),
array(
'name' => 'idx_ecmprivatedocument_contact',
'type' => 'index',
'fields' => array('contact_id'),
),
),
'optimistic_locking' => true,
);
?>