init
This commit is contained in:
462
modules/EcmAlerts/EcmAlert.php
Normal file
462
modules/EcmAlerts/EcmAlert.php
Normal file
@@ -0,0 +1,462 @@
|
||||
<?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');
|
||||
|
||||
// EcmAlert is used to store customer information.
|
||||
class EcmAlert 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 = "EcmAlerts";
|
||||
var $default_ecmalert_name_dom = array('Meeting ecmalerts', 'Reminder');
|
||||
var $table_name = "ecmalerts";
|
||||
var $new_schema = true;
|
||||
var $object_name = "EcmAlert";
|
||||
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 EcmAlert() {
|
||||
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 ecmalerts as deleted, and attempt to delete files that are
|
||||
* related to those ecmalerts
|
||||
* @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 ecmalert
|
||||
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 ecmalerts ";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$query .= " LEFT JOIN contacts ON ecmalerts.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 ecmalerts.deleted=0";
|
||||
} elseif($show_deleted == 1) {
|
||||
$where_auto = " ecmalerts.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 ecmalerts.name";
|
||||
}
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function create_export_query(&$order_by, &$where) {
|
||||
$custom_join = $this->custom_fields->getJOIN(true, true);
|
||||
$query = "SELECT ecmalerts.*, contacts.first_name, contacts.last_name ";
|
||||
|
||||
if($custom_join) {
|
||||
$query .= $custom_join['select'];
|
||||
}
|
||||
|
||||
$query .= " FROM ecmalerts ";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$query .= " LEFT JOIN contacts ON ecmalerts.contact_id=contacts.id ";
|
||||
|
||||
if($custom_join) {
|
||||
$query .= $custom_join['join'];
|
||||
}
|
||||
|
||||
$where_auto = " ecmalerts.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 ecmalerts.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() {
|
||||
$ecmalert_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)) {
|
||||
$ecmalert_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)));
|
||||
$ecmalert_fields['FILENAME'] = $this->filename;
|
||||
$ecmalert_fields['FILE_URL'] = "index.php?entryPoint=download&id=".$save_file."&type=EcmAlerts";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
if(isset($this->contact_name)){
|
||||
$ecmalert_fields['CONTACT_NAME'] = $this->contact_name;
|
||||
}
|
||||
|
||||
global $current_language;
|
||||
$mod_strings = return_module_language($current_language, 'EcmAlerts');
|
||||
$ecmalert_fields['STATUS']=$mod_strings['LBL_NOTE_STATUS'];
|
||||
|
||||
$user = new User();
|
||||
$user->retrieve($this->created_by);
|
||||
$ecmalert_fields['CREATED_BY_NAME'] = $user->full_name;
|
||||
|
||||
return $ecmalert_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;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
210
modules/EcmAlerts/EcmAlertFormBase.php
Normal file
210
modules/EcmAlerts/EcmAlertFormBase.php
Normal 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 EcmAlerts
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________..
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
class EcmAlertFormBase{
|
||||
|
||||
function getFormBody($prefix, $mod='',$formname='', $size='30',$script=true){
|
||||
if(!ACLController::checkAccess('EcmAlerts', '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_ecmalert_subject = $mod_strings['LBL_NOTE_SUBJECT'];
|
||||
$lbl_ecmalert_description = $mod_strings['LBL_NOTE'];
|
||||
$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_ecmalert_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_ecmalert_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/EcmAlerts/EcmAlert.php');
|
||||
$javascript = new javascript();
|
||||
$javascript->setFormName($formname);
|
||||
$javascript->setSugarBean(new EcmAlert());
|
||||
$javascript->addRequiredFields($prefix);
|
||||
$form .=$javascript->getScript();
|
||||
}
|
||||
$mod_strings = $temp_strings;
|
||||
return $form;
|
||||
}
|
||||
|
||||
function getForm($prefix, $mod=''){
|
||||
if(!ACLController::checkAccess('EcmAlerts', '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}EcmAlertSave" onSubmit="return check_form('${prefix}EcmAlertSave')" method="POST" action="index.php">
|
||||
<input type="hidden" name="${prefix}module" value="EcmAlerts">
|
||||
<input type="hidden" name="${prefix}action" value="Save">
|
||||
EOQ;
|
||||
$the_form .= $this->getFormBody($prefix, $mod, "${prefix}EcmAlertSave", "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/EcmAlerts/EcmAlert.php');
|
||||
|
||||
require_once('include/formbase.php');
|
||||
require_once('include/upload_file.php');
|
||||
|
||||
|
||||
$focus = new EcmAlert();
|
||||
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, "EcmAlerts");
|
||||
}else{
|
||||
return $focus;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
114
modules/EcmAlerts/EcmAlertSoap.php
Normal file
114
modules/EcmAlerts/EcmAlertSoap.php
Normal 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/EcmAlerts/EcmAlert.php');
|
||||
require_once('include/upload_file.php');
|
||||
|
||||
class EcmAlertSoap{
|
||||
var $upload_file;
|
||||
function EcmAlertSoap(){
|
||||
$this->upload_file = new UploadFile('uploadfile');
|
||||
}
|
||||
|
||||
function saveFile($ecmalert, $portal = false){
|
||||
global $sugar_config;
|
||||
|
||||
$focus = new EcmAlert();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(!empty($ecmalert['id'])){
|
||||
$focus->retrieve($ecmalert['id']);
|
||||
}else{
|
||||
return '-1';
|
||||
}
|
||||
|
||||
if(!empty($ecmalert['file'])){
|
||||
$decodedFile = base64_decode($ecmalert['file']);
|
||||
$this->upload_file->set_for_soap($ecmalert['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 = $ecmalert['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;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
69
modules/EcmAlerts/EcmAlertsQuickCreate.php
Normal file
69
modules/EcmAlerts/EcmAlertsQuickCreate.php
Normal 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/EcmAlerts/EcmAlert.php');
|
||||
require_once('include/javascript/javascript.php');
|
||||
|
||||
class EcmAlertsQuickCreate extends QuickCreate {
|
||||
|
||||
var $javascript;
|
||||
|
||||
function process() {
|
||||
global $current_user, $timedate, $app_list_strings, $current_language, $mod_strings;
|
||||
$mod_strings = return_module_language($current_language, 'EcmAlerts');
|
||||
|
||||
parent::process();
|
||||
|
||||
if($this->viaAJAX) { // override for ajax call
|
||||
$this->ss->assign('saveOnclick', "onclick='if(check_form(\"ecmalertsQuickCreate\")) 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('ecmalertsQuickCreate');
|
||||
|
||||
$focus = new EcmAlert();
|
||||
$this->javascript->setSugarBean($focus);
|
||||
$this->javascript->addAllFields('');
|
||||
|
||||
$this->ss->assign('additionalScripts', $this->javascript->getScript(false));
|
||||
}
|
||||
}
|
||||
?>
|
||||
37
modules/EcmAlerts/Forms.php
Normal file
37
modules/EcmAlerts/Forms.php
Normal 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');
|
||||
74
modules/EcmAlerts/Menu.php
Normal file
74
modules/EcmAlerts/Menu.php
Normal 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('EcmAlerts', 'edit', true))$module_menu[]=Array("index.php?module=EcmAlerts&action=EditView&return_module=EcmAlerts&return_action=DetailView", $mod_strings['LNK_NEW_NOTE'],"CreateEcmAlerts");
|
||||
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('EcmAlerts', 'list', true))$module_menu[]=Array("index.php?module=EcmAlerts&action=index&return_module=EcmAlerts&return_action=DetailView", $mod_strings['LNK_NOTE_LIST'],"EcmAlerts");
|
||||
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('EcmAlerts', 'import', true))$module_menu[]=Array("index.php?module=EcmAlerts&action=Import&step=1&return_module=EcmAlerts&return_action=index", $mod_strings['LNK_IMPORT_NOTES'],"Import");
|
||||
if(ACLController::checkAccess('EcmAlerts','list', true)) $module_menu[] = Array('#', '<span style="display: none">wp_shortcut_fill_0</span>', '');
|
||||
*/
|
||||
//After
|
||||
if(ACLController::checkAccess('EcmAlerts', 'edit', true))$module_menu[]=Array("index.php?module=EcmAlerts&action=EditView&return_module=EcmAlerts&return_action=DetailView", $mod_strings['LNK_NEW_NOTE'],"CreateEcmAlerts");
|
||||
if(ACLController::checkAccess('EcmAlerts', 'list', true))$module_menu[]=Array("index.php?module=EcmAlerts&action=index&return_module=EcmAlerts&return_action=DetailView", $mod_strings['LNK_NOTE_LIST'],"EcmAlerts");
|
||||
if(ACLController::checkAccess('EcmAlerts', 'import', true))$module_menu[]=Array("index.php?module=EcmAlerts&action=Import&step=1&return_module=EcmAlerts&return_action=index", $mod_strings['LNK_IMPORT_NOTES'],"Import");
|
||||
if(ACLController::checkAccess('EcmAlerts','list', true)) $module_menu[] = Array('#', '<span style="display: none">wp_shortcut_fill_0</span>', '');
|
||||
|
||||
//</Section1>
|
||||
|
||||
?>
|
||||
65
modules/EcmAlerts/SubPanelView.html
Normal file
65
modules/EcmAlerts/SubPanelView.html
Normal file
@@ -0,0 +1,65 @@
|
||||
admin <!--
|
||||
/*********************************************************************************
|
||||
* 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".
|
||||
********************************************************************************/
|
||||
/*********************************************************************************
|
||||
* {APP.LBL_CURRENCY_SYM}Header: /cvsroot/sugarcrm/sugarcrm/modules/Activities/SubPanelView.html,v 1.3 2004/07/03 22:08:29 sugarclint Exp {APP.LBL_CURRENCY_SYM}
|
||||
********************************************************************************/
|
||||
-->
|
||||
<!-- BEGIN: ecmalerts -->
|
||||
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="listView">
|
||||
<tr height="20" class="listViewThS1">
|
||||
<td scope="col" scope="col" width="40%" class="listViewThS1"><slot>{MOD.LBL_LIST_SUBJECT}</slot></td>
|
||||
<td scope="col" width="20%" class="listViewThS1"><slot>{MOD.LBL_LIST_FILENAME}</slot></td>
|
||||
<td scope="col" width="15%" class="listViewThS1"><slot>{MOD.LBL_LIST_CONTACT_NAME}</slot></td>
|
||||
<td scope="col" width="15%" class="listViewThS1"><slot>{MOD.LBL_LIST_DATE_MODIFIED}</slot></td>
|
||||
<td scope="col" width="10%" class="listViewThS1"><slot> </slot></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<!-- BEGIN: row -->
|
||||
<tr height="20" onmouseover="setPointer(this, '{NOTE.ID}', 'over', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');" onmouseout="setPointer(this, '{NOTE.ID}', 'out', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');" onmousedown="setPointer(this, '{NOTE.ID}', 'click', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');">
|
||||
<td scope="row" valign=TOP class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}"><slot><a href="{URL_PREFIX}index.php?action=DetailView&module=EcmAlerts&record={NOTE.ID}{RETURN_URL}" class="listViewTdLinkS1">{NOTE.NAME}</a></slot></td>
|
||||
<td valign=TOP class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}"><slot><a href="{NOTE.FILEURL}" target="_blank" class="listViewTdLinkS1">{NOTE.FILENAME}</a></slot></td>
|
||||
<td valign=TOP class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}"><slot><a href="{URL_PREFIX}index.php?action=DetailView&module=Contacts&record={NOTE.CONTACT_ID}{RETURN_URL}">{NOTE.CONTACT_NAME}</a></slot></td>
|
||||
<td nowrap valign=TOP class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}"><slot>{NOTE.DATE_MODIFIED}</slot></td>
|
||||
|
||||
<td nowrap align="center" valign=TOP class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}"><slot><a class="listViewTdToolsS1" href="{URL_PREFIX}index.php?action=EditView&module=EcmAlerts&record={NOTE.ID}{RETURN_URL}">{EDIT_INLINE_PNG}</a> <a class="listViewTdToolsS1" href="{URL_PREFIX}index.php?action=EditView&module=EcmAlerts&record={NOTE.ID}{RETURN_URL}">{APP.LNK_EDIT}</a> <a class="listViewTdToolsS1" onclick="return confirm('{MOD.NTC_DELETE_RECORD}')" href="{URL_PREFIX}index.php?action=Delete&module=EcmAlerts&record={NOTE.ID}{RETURN_URL}">{DELETE_INLINE_PNG}</a> <a class="listViewTdToolsS1" onclick="return confirm('{MOD.NTC_DELETE_RECORD}')" href="{URL_PREFIX}index.php?action=Delete&module=EcmAlerts&record={NOTE.ID}{RETURN_URL}">{APP.LNK_DELETE}</a></slot></td>
|
||||
|
||||
</tr>
|
||||
<!-- END: row -->
|
||||
|
||||
</table>
|
||||
<!-- END: ecmalerts -->
|
||||
120
modules/EcmAlerts/SubPanelView.php
Normal file
120
modules/EcmAlerts/SubPanelView.php
Normal 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 SubPanelViewEcmAlerts {
|
||||
|
||||
var $ecmalerts_list = null;
|
||||
var $hideNewButton = false;
|
||||
var $focus;
|
||||
|
||||
function setFocus(&$value){
|
||||
$this->focus =(object) $value;
|
||||
}
|
||||
|
||||
|
||||
function setEcmAlertsList(&$value){
|
||||
$this->ecmalerts_list =$value;
|
||||
}
|
||||
|
||||
function setHideNewButton($value){
|
||||
$this->hideNewButton = $value;
|
||||
}
|
||||
|
||||
function SubPanelViewEcmAlerts(){
|
||||
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='EcmAlerts'>\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 = " <a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=EcmAlerts&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->ecmalerts_list, "ecmalerts", "NOTE");
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
92
modules/EcmAlerts/controller.php
Normal file
92
modules/EcmAlerts/controller.php
Normal 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 EcmAlertsController extends SugarController
|
||||
{
|
||||
|
||||
function action_save(){
|
||||
require_once('include/upload_file.php');
|
||||
$GLOBALS['log']->debug('PERFORMING NOTES 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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
68
modules/EcmAlerts/field_arrays.php
Normal file
68
modules/EcmAlerts/field_arrays.php
Normal 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['EcmAlert'] = 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),
|
||||
);
|
||||
?>
|
||||
54
modules/EcmAlerts/language/en_us.help.DetailView.html
Normal file
54
modules/EcmAlerts/language/en_us.help.DetailView.html
Normal file
@@ -0,0 +1,54 @@
|
||||
<!--
|
||||
|
||||
/*********************************************************************************
|
||||
* 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".
|
||||
********************************************************************************/
|
||||
|
||||
/*********************************************************************************
|
||||
|
||||
********************************************************************************/
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
|
||||
<h1>EcmAlerts Detail Page</h1>
|
||||
|
||||
<p>View the ecmalert details such as contact information and the related account.
|
||||
<p>To edit the ecmalert, click <span class="helpButton">Edit</span>, make the necessary revisions, and click <span class="helpButton">Save</span>.
|
||||
<p>To duplicate the ecmalert, click <span class="helpButton">Duplicate</span>. You can then make modifications to the record and save it as a different record. The system displays the new record in the list on the EcmAlerts Home page.</li>
|
||||
<p>To delete a ecmalert, click <span class="helpButton">Delete</span>.
|
||||
|
||||
61
modules/EcmAlerts/language/en_us.help.EditView.html
Normal file
61
modules/EcmAlerts/language/en_us.help.EditView.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<!--
|
||||
|
||||
/*********************************************************************************
|
||||
* 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".
|
||||
********************************************************************************/
|
||||
|
||||
/*********************************************************************************
|
||||
|
||||
********************************************************************************/
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
|
||||
<h1>EcmAlerts</h1>
|
||||
|
||||
<p>
|
||||
Use the EcmAlerts page to create a ecmalert related to a specific call, meeting, or task for distribution to participants. You can also attach a file with the ecmalert.</p>
|
||||
<p>To create a ecmalert, enter the following information:</p>
|
||||
<ul>
|
||||
<li><span class="helpButton">Contact</span>. Enter the name of the contact. Click <span class="helpButton">Select</span> to choose one from the Contacts list or to search for a contact in the list.
|
||||
<li><span class="helpButton">Account</span>. Optionally, enter the name of the related account or click <span class="helpButton">Select</span> to search for one. Instead of an account, you can choose another related record such as an opportunity or contact from the drop-down list.
|
||||
<li><span class="helpButton">Team</span>. Click <span class="helpButton">Select</span> to select the team that is allowed to view the ecmalert or attachment.
|
||||
<li><span class="helpButton">Subject</span>. Enter the subject of the ecmalert.
|
||||
<li><span class="helpButton">Attachment</span>. To attach a document that is located on your machine, click <span class="helpButton">Browse</span>, navigate to the location of the file, and select the file.
|
||||
<li><span class="helpButton">EcmAlert</span>. Enter the text of the ecmalert in this box.
|
||||
</ul>
|
||||
<p>Click <span class="helpButton">Save</span> to create the ecmalert or attachment; click <span class="helpButton">Cancel</span> to return to the EcmAlerts home page without saving your changes.</p>
|
||||
58
modules/EcmAlerts/language/en_us.help.index.html
Normal file
58
modules/EcmAlerts/language/en_us.help.index.html
Normal file
@@ -0,0 +1,58 @@
|
||||
<!--
|
||||
|
||||
/*********************************************************************************
|
||||
* 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".
|
||||
********************************************************************************/
|
||||
|
||||
/*********************************************************************************
|
||||
|
||||
********************************************************************************/
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
|
||||
<h1>EcmAlerts Home</h1>
|
||||
|
||||
<p>
|
||||
Use the EcmAlerts Home page to create and manage ecmalerts related to an activity.</p>
|
||||
<p>The EcmAlerts Home page displays the following information:</p>
|
||||
<ul>
|
||||
<li>A Search sub-panel where you can enter the subject or a contact name to search for a specific ecmalert. To perform an advanced search using additional fields, click the <span class="helpButton">Advanced Search</span> tab. To customize and save the search layout and results, click the <span class="helpButton">Saved Search & Layout</span> tab.
|
||||
<li>A list of existing ecmalerts along with related information such as contact and any attachment.</li>
|
||||
<li>To view the ecmalert details, click its subject.
|
||||
<li>To update or delete multiple ecmalerts, select them from the list, and use the Mass Update sub-panel to perform the action.
|
||||
</ul>
|
||||
113
modules/EcmAlerts/language/en_us.lang.php
Normal file
113
modules/EcmAlerts/language/en_us.lang.php
Normal 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' => 'EcmAlerts',
|
||||
'LBL_DESCRIPTION' => 'EcmAlert',
|
||||
'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' => 'EcmAlert List',
|
||||
'LBL_LIST_RELATED_TO' => 'Related To',
|
||||
'LBL_LIST_SUBJECT' => 'Subject',
|
||||
'LBL_LIST_STATUS' => 'Status',
|
||||
'LBL_LIST_CONTACT' => 'Contact',
|
||||
'LBL_MODULE_NAME' => 'EcmAlerts',
|
||||
'LBL_MODULE_TITLE' => 'EcmAlerts: Home',
|
||||
'LBL_NEW_FORM_TITLE' => 'Create EcmAlert or Attachment',
|
||||
'LBL_NOTE_STATUS' => 'EcmAlert',
|
||||
'LBL_NOTE_SUBJECT' => 'EcmAlert Subject:',
|
||||
'LBL_NOTES_SUBPANEL_TITLE' => 'Attachments',
|
||||
'LBL_NOTE' => 'EcmAlert:',
|
||||
'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' => 'EcmAlert Search',
|
||||
'LBL_STATUS' => 'Status',
|
||||
'LBL_SUBJECT' => 'Subject:',
|
||||
'LNK_CALL_LIST' => 'Calls',
|
||||
'LNK_EMAIL_LIST' => 'Emails',
|
||||
'LNK_IMPORT_NOTES' => 'Import EcmAlerts',
|
||||
'LNK_MEETING_LIST' => 'Meetings',
|
||||
'LNK_NEW_CALL' => 'Schedule Call',
|
||||
'LNK_NEW_EMAIL' => 'Archive Email',
|
||||
'LNK_NEW_MEETING' => 'Schedule Meeting',
|
||||
'LNK_NEW_NOTE' => 'Create EcmAlert or Attachment',
|
||||
'LNK_NEW_TASK' => 'Create Task',
|
||||
'LNK_NOTE_LIST' => 'EcmAlerts',
|
||||
'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',
|
||||
);
|
||||
|
||||
?>
|
||||
113
modules/EcmAlerts/language/ge_ge.lang.php
Normal file
113
modules/EcmAlerts/language/ge_ge.lang.php
Normal 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_NOTE_STATUS' => 'Notiz',
|
||||
'LBL_NOTE_SUBJECT' => 'Betreff:',
|
||||
'LBL_NOTES_SUBPANEL_TITLE' => 'Anhänge',
|
||||
'LBL_NOTE' => '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_NOTES' => 'Notizen importieren',
|
||||
'LNK_MEETING_LIST' => 'Meetings',
|
||||
'LNK_NEW_CALL' => 'Neuer Anruf',
|
||||
'LNK_NEW_EMAIL' => 'E-Mail archivieren',
|
||||
'LNK_NEW_MEETING' => 'Neues Meeting',
|
||||
'LNK_NEW_NOTE' => 'Neue Notiz oder Anlage',
|
||||
'LNK_NEW_TASK' => 'Neue Aufgabe',
|
||||
'LNK_NOTE_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',
|
||||
);
|
||||
|
||||
?>
|
||||
100
modules/EcmAlerts/language/pl_pl.lang.php
Normal file
100
modules/EcmAlerts/language/pl_pl.lang.php
Normal 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_NOTE_STATUS' => 'Notatka',
|
||||
'LBL_NOTE_SUBJECT' => 'Temat Notatki:',
|
||||
'LBL_NOTES_SUBPANEL_TITLE' => 'Załącznik',
|
||||
'LBL_NOTE' => '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_NOTES' => '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_NOTE' => 'Utwórz Notatkę lub Załącznik',
|
||||
'LNK_NEW_TASK' => 'Utwórz Zadanie',
|
||||
'LNK_NOTE_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?',
|
||||
);
|
||||
|
||||
?>
|
||||
43
modules/EcmAlerts/metadata/SearchFields.php
Normal file
43
modules/EcmAlerts/metadata/SearchFields.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 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['EcmAlerts'] =
|
||||
array (
|
||||
'name' => array( 'query_type'=>'default'),
|
||||
'parent_type'=> array('query_type'=>'default', 'options' => 'record_type_display_ecmalerts', 'template_var' => 'ACCOUNT_TYPE_OPTIONS'),
|
||||
'contact_name' => array( 'query_type'=>'default','db_field'=>array('contacts.first_name','contacts.last_name')),
|
||||
);
|
||||
?>
|
||||
65
modules/EcmAlerts/metadata/additionalDetails.php
Normal file
65
modules/EcmAlerts/metadata/additionalDetails.php
Normal 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 additionalDetailsEcmAlert($fields) {
|
||||
static $mod_strings;
|
||||
global $app_strings;
|
||||
if(empty($mod_strings)) {
|
||||
global $current_language;
|
||||
$mod_strings = return_module_language($current_language, 'EcmAlerts');
|
||||
}
|
||||
|
||||
$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=EcmAlerts&return_module=EcmAlerts&record={$fields['ID']}",
|
||||
'viewLink' => "index.php?action=DetailView&module=EcmAlerts&return_module=EcmAlerts&record={$fields['ID']}");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
92
modules/EcmAlerts/metadata/detailviewdefs.php
Normal file
92
modules/EcmAlerts/metadata/detailviewdefs.php
Normal 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".
|
||||
********************************************************************************/
|
||||
$viewdefs['EcmAlerts']['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_NOTE_STATUS'),
|
||||
),
|
||||
|
||||
)
|
||||
);
|
||||
?>
|
||||
107
modules/EcmAlerts/metadata/editviewdefs.php
Normal file
107
modules/EcmAlerts/metadata/editviewdefs.php
Normal file
@@ -0,0 +1,107 @@
|
||||
<?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['EcmAlerts']['EditView'] = array(
|
||||
'templateMeta' => array('form' => array('enctype'=> 'multipart/form-data',
|
||||
'headerTpl'=>'modules/EcmAlerts/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(\'EcmAlerts\', \'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("EcmAlerts", "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_NOTE_STATUS', 'displayParams' => array('rows'=>30, 'cols'=>90) ),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
?>
|
||||
88
modules/EcmAlerts/metadata/listviewdefs.php
Normal file
88
modules/EcmAlerts/metadata/listviewdefs.php
Normal 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['EcmAlerts'] = 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=EcmAlerts" class="listViewTdLinkS1">{$FILENAME}</a>'
|
||||
),
|
||||
'DATE_MODIFIED' => array (
|
||||
'width' => '20',
|
||||
'label' => 'LBL_DATE_MODIFIED',
|
||||
'link' => false,
|
||||
'default' => true,
|
||||
//'related_fields' => array('file_url'),
|
||||
),
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
);
|
||||
?>
|
||||
133
modules/EcmAlerts/metadata/quickcreatedefs.php
Normal file
133
modules/EcmAlerts/metadata/quickcreatedefs.php
Normal 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 ['EcmAlerts'] =
|
||||
array (
|
||||
'QuickCreate' =>
|
||||
array (
|
||||
'templateMeta' =>
|
||||
array (
|
||||
'form' =>
|
||||
array (
|
||||
'enctype' => 'multipart/form-data',
|
||||
'headerTpl' => 'modules/EcmAlerts/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(\'EcmAlerts\', \'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("EcmAlerts", "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_NOTE_STATUS',
|
||||
'displayParams' =>
|
||||
array (
|
||||
'rows' => 6,
|
||||
'cols' => 75,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
65
modules/EcmAlerts/metadata/searchdefs.php
Normal file
65
modules/EcmAlerts/metadata/searchdefs.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?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['EcmAlerts'] = 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'),
|
||||
array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
|
||||
),
|
||||
'advanced_search' => array(
|
||||
'name',
|
||||
'filename',
|
||||
'parent_type' =>
|
||||
array (
|
||||
'name' => 'parent_name',
|
||||
'default' => true,
|
||||
'width' => '10%',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
74
modules/EcmAlerts/metadata/sidecreateviewdefs.php
Normal file
74
modules/EcmAlerts/metadata/sidecreateviewdefs.php
Normal 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['EcmAlerts']['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_NOTE_STATUS', 'displayParams' => array('rows'=>3, 'cols'=>20)),
|
||||
),
|
||||
|
||||
),
|
||||
|
||||
)
|
||||
|
||||
|
||||
);
|
||||
?>
|
||||
65
modules/EcmAlerts/metadata/studio.php
Normal file
65
modules/EcmAlerts/metadata/studio.php
Normal 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']['EcmAlerts'] = array(
|
||||
'LBL_DETAILVIEW'=>array(
|
||||
'template'=>'xtpl',
|
||||
'template_file'=>'modules/EcmAlerts/DetailView.html',
|
||||
'php_file'=>'modules/EcmAlerts/DetailView.php',
|
||||
'type'=>'DetailView',
|
||||
),
|
||||
'LBL_EDITVIEW'=>array(
|
||||
'template'=>'xtpl',
|
||||
'template_file'=>'modules/EcmAlerts/EditView.html',
|
||||
'php_file'=>'modules/EcmAlerts/EditView.php',
|
||||
'type'=>'EditView',
|
||||
),
|
||||
'LBL_LISTVIEW'=>array(
|
||||
'template'=>'listview',
|
||||
'meta_file'=>'modules/EcmAlerts/listviewdefs.php',
|
||||
'type'=>'ListView',
|
||||
),
|
||||
'LBL_SEARCHFORM'=>array(
|
||||
'template'=>'xtpl',
|
||||
'template_file'=>'modules/EcmAlerts/SearchForm.html',
|
||||
'php_file'=>'modules/EcmAlerts/ListView.php',
|
||||
'type'=>'SearchForm',
|
||||
),
|
||||
|
||||
);
|
||||
@@ -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' => 'EcmAlerts'),
|
||||
),
|
||||
|
||||
'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' => 'EcmAlerts',
|
||||
'width' => '9999%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'width' => '9999%',
|
||||
),
|
||||
'file_url'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
'filename'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
94
modules/EcmAlerts/metadata/subpanels/ForEcmInvoiceOuts.php
Normal file
94
modules/EcmAlerts/metadata/subpanels/ForEcmInvoiceOuts.php
Normal 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' => 'EcmAlerts'),
|
||||
),
|
||||
|
||||
'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' => 'EcmAlerts',
|
||||
'width' => '9999%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'width' => '9999%',
|
||||
),
|
||||
'file_url'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
'filename'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
100
modules/EcmAlerts/metadata/subpanels/ForEcmQuotes.php
Normal file
100
modules/EcmAlerts/metadata/subpanels/ForEcmQuotes.php
Normal 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' => 'EcmAlerts'),
|
||||
),
|
||||
|
||||
'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' => 'EcmAlerts',
|
||||
'width' => '9999%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'width' => '9999%',
|
||||
),
|
||||
'file_url'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
'filename'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
100
modules/EcmAlerts/metadata/subpanels/ForEcmSales.php
Normal file
100
modules/EcmAlerts/metadata/subpanels/ForEcmSales.php
Normal 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' => 'EcmAlerts'),
|
||||
),
|
||||
|
||||
'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' => 'EcmAlerts',
|
||||
'width' => '9999%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'width' => '9999%',
|
||||
),
|
||||
'file_url'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
'filename'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
94
modules/EcmAlerts/metadata/subpanels/ForEcmWorkReports.php
Normal file
94
modules/EcmAlerts/metadata/subpanels/ForEcmWorkReports.php
Normal 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' => 'EcmAlerts'),
|
||||
),
|
||||
|
||||
'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' => 'EcmAlerts',
|
||||
'width' => '9999%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'width' => '9999%',
|
||||
),
|
||||
'file_url'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
'filename'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
124
modules/EcmAlerts/metadata/subpanels/ForHistory.php
Normal file
124
modules/EcmAlerts/metadata/subpanels/ForHistory.php
Normal 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' => ' ',
|
||||
'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' => 'LBL_LIST_STATUS',
|
||||
'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'
|
||||
),
|
||||
|
||||
),
|
||||
);
|
||||
?>
|
||||
98
modules/EcmAlerts/metadata/subpanels/default.php
Normal file
98
modules/EcmAlerts/metadata/subpanels/default.php
Normal 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' => 'EcmAlerts'),
|
||||
),
|
||||
|
||||
'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' => 'EcmAlerts',
|
||||
'width' => '9999%',
|
||||
),
|
||||
'file_url'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
'filename'=>array(
|
||||
'usage'=>'query_only'
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
79
modules/EcmAlerts/tpls/EditViewHeader.tpl
Normal file
79
modules/EcmAlerts/tpls/EditViewHeader.tpl
Normal file
@@ -0,0 +1,79 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* 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".
|
||||
********************************************************************************/
|
||||
*}
|
||||
<form action="index.php" method="POST" name="{$form_name}" id="{$form_id}" {$enctype}>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding-bottom: 2px;">
|
||||
<input type="hidden" name="module" value="{$module}">
|
||||
{if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}
|
||||
<input type="hidden" name="record" value="">
|
||||
{else}
|
||||
<input type="hidden" name="record" value="{$fields.id.value}">
|
||||
{/if}
|
||||
<input type="hidden" name="isDuplicate" value="{$smarty.request.isDuplicate}">
|
||||
<input type="hidden" name="action">
|
||||
<input type="hidden" name="return_module" value="{$smarty.request.return_module}">
|
||||
<input type="hidden" name="return_action" value="{$smarty.request.return_action}">
|
||||
<input type="hidden" name="return_id" value="{$smarty.request.return_id}">
|
||||
<input type="hidden" name="contact_role">
|
||||
{if !empty($smarty.request.return_module)}
|
||||
<input type="hidden" name="relate_to" value="{$smarty.request.return_module}">
|
||||
<input type="hidden" name="relate_id" value="{$smarty.request.return_id}">
|
||||
{/if}
|
||||
<input type="hidden" name="offset" value="{$offset}">
|
||||
{{if isset($form.hidden)}}
|
||||
{{foreach from=$form.hidden item=field}}
|
||||
{{$field}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{if empty($form.button_location) || $form.button_location == 'top'}}
|
||||
{{if !empty($form) && !empty($form.buttons)}}
|
||||
{{foreach from=$form.buttons key=val item=button}}
|
||||
{{sugar_button module="$module" id="$button" view="$view"}}
|
||||
{{/foreach}}
|
||||
{{else}}
|
||||
{{sugar_button module="$module" id="SAVE" view="$view"}}
|
||||
{{sugar_button module="$module" id="CANCEL" view="$view"}}
|
||||
{{/if}}
|
||||
{{if empty($form.hideAudit) || !$form.hideAudit}}
|
||||
{{sugar_button module="$module" id="Audit" view="$view"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</td>
|
||||
<td align='right'>{{$ADMIN_EDIT}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
103
modules/EcmAlerts/tpls/QuickCreate.tpl
Normal file
103
modules/EcmAlerts/tpls/QuickCreate.tpl
Normal file
@@ -0,0 +1,103 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* 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".
|
||||
*/
|
||||
|
||||
// $Id$
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<form name="ecmalertsQuickCreate" id="ecmalertsQuickCreate" method="POST" action="index.php">
|
||||
<input type="hidden" name="module" value="EcmAlerts">
|
||||
<input type="hidden" name="record" value="">
|
||||
<input type="hidden" name="lead_id" value="{$REQUEST.lead_id}">
|
||||
<input type="hidden" name="contact_id" value="{$REQUEST.contact_id}">
|
||||
<input type="hidden" name="contact_name" value="{$REQUEST.contact_name}">
|
||||
<input type="hidden" name="email_id" value="{$REQUEST.email_id}">
|
||||
<input type="hidden" name="account_id" value="{$REQUEST.account_id}">
|
||||
<input type="hidden" name="account_name" value="{$REQUEST.account_name}">
|
||||
<input type="hidden" name="opportunity_id" value="{$REQUEST.opportunity_id}">
|
||||
<input type="hidden" name="acase_id" value="{$REQUEST.acase_id}">
|
||||
<input type="hidden" name="return_action" value="{$REQUEST.return_action}">
|
||||
<input type="hidden" name="return_module" value="{$REQUEST.return_module}">
|
||||
<input type="hidden" name="return_id" value="{$REQUEST.return_id}">
|
||||
<input type="hidden" name="action" value='Save'>
|
||||
<input type="hidden" name="duplicate_parent_id" value="{$REQUEST.duplicate_parent_id}">
|
||||
<input type="hidden" name="to_pdf" value='1'>
|
||||
{if $REQUEST.parent_id}
|
||||
<input type="hidden" name="parent_id" value="{$REQUEST.parent_id}">
|
||||
{else}
|
||||
<input type="hidden" name="parent_id" value="{$REQUEST.return_id}">
|
||||
{/if}
|
||||
{if $REQUEST.parent_type}
|
||||
<input type="hidden" name="parent_type" value="{$REQUEST.parent_type}">
|
||||
{else}
|
||||
<input type="hidden" name="parent_type" value="{$REQUEST.return_module}">
|
||||
{/if}
|
||||
<input type="hidden" name="parent_name" value="{$REQUEST.parent_name}">
|
||||
<input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{$ASSIGNED_USER_ID}" />
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td align="left" style="padding-bottom: 2px;">
|
||||
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" type="submit" name="button" {$saveOnclick|default:"onclick=\"return check_form('EcmAlertsQuickCreate');\""} value=" {$APP.LBL_SAVE_BUTTON_LABEL} " >
|
||||
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" type="submit" name="button" {$cancelOnclick|default:"onclick=\"this.form.action.value='$RETURN_ACTION'; this.form.module.value='$RETURN_MODULE'; this.form.record.value='$RETURN_ID'\""} value=" {$APP.LBL_CANCEL_BUTTON_LABEL} ">
|
||||
<input title="{$APP.LBL_FULL_FORM_BUTTON_TITLE}" accessKey="{$APP.LBL_FULL_FORM_BUTTON_KEY}" class="button" type="submit" name="button" onclick="this.form.to_pdf.value='0';this.form.action.value='EditView'; this.form.module.value='EcmAlerts';" value=" {$APP.LBL_FULL_FORM_BUTTON_LABEL} "></td>
|
||||
<td align="right" nowrap><span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span> {$APP.NTC_REQUIRED}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabForm">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<th align="left" class="dataLabel" colspan="4"><h4 class="dataLabel"><slot>{$MOD.LBL_NEW_FORM_TITLE}</slot></h4></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabel"><slot>{$MOD.LBL_SUBJECT} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
|
||||
<td><slot><textarea name='name' cols="50" tabindex='1' rows="1">{$NAME}</textarea></slot></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabel"><slot>{$MOD.LBL_NOTE}</slot></td>
|
||||
<td><slot><textarea name='description' tabindex='1' cols="75" rows="6">{$DESCRIPTION}</textarea></slot></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
{$additionalScripts}
|
||||
</script>
|
||||
419
modules/EcmAlerts/vardefs.php
Normal file
419
modules/EcmAlerts/vardefs.php
Normal file
@@ -0,0 +1,419 @@
|
||||
<?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['EcmAlert'] = array('table' => 'ecmalerts', 'comment' => 'EcmAlerts 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_NOTE_SUBJECT',
|
||||
'dbType' => 'varchar',
|
||||
'type' => 'name',
|
||||
'len' => '255',
|
||||
'comment' => 'Name of the ecmalert',
|
||||
'importable' => 'required',
|
||||
),
|
||||
'filename' =>
|
||||
array (
|
||||
'name' => 'filename',
|
||||
'vname' => 'LBL_FILENAME',
|
||||
'type' => 'varchar',
|
||||
'len' => '255',
|
||||
'reportable'=>true,
|
||||
'comment' => 'File name associated with the ecmalert (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 EcmAlert 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 ecmalert is associated with'
|
||||
),
|
||||
'portal_flag' =>
|
||||
array (
|
||||
'name' => 'portal_flag',
|
||||
'vname' => 'LBL_PORTAL_FLAG',
|
||||
'type' => 'bool',
|
||||
'required' => true,
|
||||
'comment' => 'Portal flag indicator determines if ecmalert 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 ecmalert embedded in email'
|
||||
),
|
||||
'description' =>
|
||||
array (
|
||||
'name' => 'description',
|
||||
'vname' => 'LBL_DESCRIPTION',
|
||||
'type' => 'text',
|
||||
'comment' => 'Full text of the ecmalert'
|
||||
),
|
||||
'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_ecmalerts',
|
||||
),
|
||||
|
||||
'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' => 'ecmalerts_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' => 'ecmalerts_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_ecmalerts',
|
||||
'vname' => 'LBL_LIST_CONTACT_NAME',
|
||||
'source'=>'non-db',
|
||||
),
|
||||
'cases' =>
|
||||
array (
|
||||
'name' => 'cases',
|
||||
'type' => 'link',
|
||||
'relationship' => 'case_ecmalerts',
|
||||
'vname' => 'LBL_CASES',
|
||||
'source'=>'non-db',
|
||||
),
|
||||
|
||||
),
|
||||
'relationships'=>array(
|
||||
'ecmalerts_modified_user' =>
|
||||
array('lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
|
||||
'rhs_module'=> 'EcmAlerts', 'rhs_table'=> 'ecmalerts', 'rhs_key' => 'modified_user_id',
|
||||
'relationship_type'=>'one-to-many')
|
||||
|
||||
,'ecmalerts_created_by' =>
|
||||
array('lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
|
||||
'rhs_module'=> 'EcmAlerts', 'rhs_table'=> 'ecmalerts', 'rhs_key' => 'created_by',
|
||||
'relationship_type'=>'one-to-many')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
)
|
||||
, 'indices' => array (
|
||||
array('name' =>'ecmalertspk', 'type' =>'primary', 'fields'=>array('id')),
|
||||
array('name' =>'idx_ecmalert_name', 'type'=>'index', 'fields'=>array('name')),
|
||||
array('name' =>'idx_ecmalerts_parent', 'type'=>'index', 'fields'=>array('parent_id', 'parent_type')),
|
||||
array('name' =>'idx_ecmalert_contact', 'type'=>'index', 'fields'=>array('contact_id')),
|
||||
)
|
||||
|
||||
|
||||
//This enables optimistic locking for Saves From EditView
|
||||
,'optimistic_locking'=>true,
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user