This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
980 additions
and
2,779 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
|
||
$entry_point_registry['sms77_inbound'] = [ | ||
'auth' => false, | ||
'file' => 'modules/sms77/receiveSMS.php', | ||
]; |
19 changes: 19 additions & 0 deletions
19
SuiteModules/Extension/modules/Administration/Ext/Language/de_de.lang.ext.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
//WARNING: The contents of this file are auto-generated | ||
|
||
if (!isset($mod_strings)) $mod_strings = []; | ||
|
||
$mod_strings['LBL_SMS77_TITLE'] = 'sms77 Konfiguration'; | ||
$mod_strings['LBL_SMS77_DESC'] = ''; | ||
|
||
$mod_strings['LBL_SMS77_CONFIGURATION_TITLE'] = 'sms77 API-Konfiguration'; | ||
$mod_strings['LBL_SMS77_CONFIGURATION_DESC'] = 'sms77 Konfiguration'; | ||
|
||
$mod_strings['LBL_SMS77_TEMPLATE_CONFIGURATION_TITLE'] = 'Kontakt Vorlagen-Konfiguration'; | ||
$mod_strings['LBL_SMS77_TEMPLATE_CONFIGURATION_DESC'] = 'Kontakt Vorlagen-Konfiguration'; | ||
|
||
$mod_strings['LBL_SMS77_LEAD_CONFIGURATION_TITLE'] = 'Lead Vorlagen-Konfiguration'; | ||
$mod_strings['LBL_SMS77_LEAD_CONFIGURATION_DESC'] = 'Lead Vorlagen-Konfiguration'; | ||
|
||
$mod_strings['LBL_SMS77_PANEL_HEADING'] = 'SMS via sms77'; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
SuiteModules/Extension/modules/Contacts/Ext/Language/de_de.lang.ext.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
$mod_strings['LBL_SMS77_FROM'] = 'Absendekennung'; | ||
$mod_strings['LBL_SMS77_MESSAGES'] = 'Nachrichten'; | ||
$mod_strings['LBL_SMS77_MISSING_TEXT'] = 'Bitte Nachrichtentext eingeben'; | ||
$mod_strings['LBL_SMS77_PANEL_HEADING'] = 'SMS-Verlauf'; | ||
$mod_strings['LBL_SMS77_SEND_SMS_VIA'] = 'SMS-Versand via sms77'; | ||
$mod_strings['LBL_SMS77_SEND_SMS'] = 'SMS versenden'; | ||
$mod_strings['LBL_SMS77_TEXT'] = 'Text'; | ||
$mod_strings['LBL_SMS77_TO'] = 'Anrufziel'; | ||
$mod_strings['LBL_SMS77_TO_HELP'] = 'Mehrere Anrufziele per Komma getrennt angeben'; | ||
$mod_strings['LBL_SMS77_WRITE_SMS'] = 'SMS schreiben'; |
11 changes: 11 additions & 0 deletions
11
SuiteModules/Extension/modules/Contacts/Ext/Language/en_us.lang.ext.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
$mod_strings['LBL_SMS77_FROM'] = 'From'; | ||
$mod_strings['LBL_SMS77_MESSAGES'] = 'Messages'; | ||
$mod_strings['LBL_SMS77_MISSING_TEXT'] = 'Please enter a message'; | ||
$mod_strings['LBL_SMS77_PANEL_HEADING'] = 'SMS History'; | ||
$mod_strings['LBL_SMS77_SEND_SMS_VIA'] = 'Send SMS via sms77'; | ||
$mod_strings['LBL_SMS77_SEND_SMS'] = 'Send SMS'; | ||
$mod_strings['LBL_SMS77_TEXT'] = 'Text'; | ||
$mod_strings['LBL_SMS77_TO'] = 'To'; | ||
$mod_strings['LBL_SMS77_TO_HELP'] = 'Add more recipients separated by comma'; | ||
$mod_strings['LBL_SMS77_WRITE_SMS'] = 'Write SMS'; |
6 changes: 6 additions & 0 deletions
6
...Modules/Extension/modules/Contacts/Ext/Vardefs/_override_sugarfield_sms77_compose_sms.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
// created: 2022-04-26 10:39:04 | ||
$dictionary['Contact']['fields']['sms77_compose_sms']['inline_edit'] = '0'; | ||
$dictionary['Contact']['fields']['sms77_compose_sms']['labelValue'] = 'Write SMS'; | ||
|
||
?> |
11 changes: 11 additions & 0 deletions
11
SuiteModules/Extension/modules/Leads/Ext/Language/de_de.lang.ext.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
$mod_strings['LBL_SMS77_FROM'] = 'Absendekennung'; | ||
$mod_strings['LBL_SMS77_MESSAGES'] = 'Nachrichten'; | ||
$mod_strings['LBL_SMS77_MISSING_TEXT'] = 'Bitte Nachrichtentext eingeben'; | ||
$mod_strings['LBL_SMS77_PANEL_HEADING'] = 'SMS-Verlauf'; | ||
$mod_strings['LBL_SMS77_SEND_SMS_VIA'] = 'SMS-Versand via sms77'; | ||
$mod_strings['LBL_SMS77_SEND_SMS'] = 'SMS versenden'; | ||
$mod_strings['LBL_SMS77_TEXT'] = 'Text'; | ||
$mod_strings['LBL_SMS77_TO'] = 'Anrufziel'; | ||
$mod_strings['LBL_SMS77_TO_HELP'] = 'Mehrere Anrufziele per Komma getrennt angeben'; | ||
$mod_strings['LBL_SMS77_WRITE_SMS'] = 'SMS schreiben'; |
11 changes: 11 additions & 0 deletions
11
SuiteModules/Extension/modules/Leads/Ext/Language/en_us.lang.ext.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
$mod_strings['LBL_SMS77_FROM'] = 'From'; | ||
$mod_strings['LBL_SMS77_MESSAGES'] = 'Messages'; | ||
$mod_strings['LBL_SMS77_MISSING_TEXT'] = 'Please enter a message'; | ||
$mod_strings['LBL_SMS77_PANEL_HEADING'] = 'SMS History'; | ||
$mod_strings['LBL_SMS77_SEND_SMS_VIA'] = 'Send SMS via sms77'; | ||
$mod_strings['LBL_SMS77_SEND_SMS'] = 'Send SMS'; | ||
$mod_strings['LBL_SMS77_TEXT'] = 'Text'; | ||
$mod_strings['LBL_SMS77_TO'] = 'To'; | ||
$mod_strings['LBL_SMS77_TO_HELP'] = 'Add more recipients separated by comma'; | ||
$mod_strings['LBL_SMS77_WRITE_SMS'] = 'Write SMS'; |
6 changes: 6 additions & 0 deletions
6
SuiteModules/Extension/modules/Leads/Ext/Vardefs/_override_sugarfield_sms77_compose_sms.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
// created: 2022-04-26 10:39:04 | ||
$dictionary['Contact']['fields']['sms77_compose_sms']['inline_edit'] = '0'; | ||
$dictionary['Contact']['fields']['sms77_compose_sms']['labelValue'] = 'Write SMS'; | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | ||
|
||
require_once 'modules/Contacts/views/view.detail.php'; | ||
require_once 'modules/sms77/sms77_util.php'; | ||
|
||
class CustomContactsViewDetail extends ContactsViewDetail { | ||
public function display() { | ||
global $sugar_config; | ||
|
||
$history = array_merge($this->getOutboundSms(), $this->getInboundSms()); | ||
|
||
usort($history, function (SugarBean $a, SugarBean $b) { | ||
return strcmp($a->date_entered, $b->date_entered); | ||
}); | ||
|
||
/** @var Contact $contact */ | ||
$contact = $this->bean; | ||
$this->ss->assign('SMS77_BEAN_ID', $this->bean->id); | ||
$this->ss->assign('SMS77_FROM', $sugar_config['sms77_sender'] ?? ''); | ||
$this->ss->assign('SMS77_MODULE', $this->module); | ||
$this->ss->assign('SMS77_SMS_HISTORY', $history); | ||
$this->ss->assign('SMS77_TO', $contact->phone_mobile); | ||
|
||
echo $this->ss->fetch('modules/sms77/tpls/sms_compose.tpl'); | ||
|
||
parent::display(); | ||
} | ||
|
||
private function getInboundSms(): array { | ||
return sms77_util::getSMS('sms77_sms_inbound', $this->bean); | ||
} | ||
|
||
private function getOutboundSms(): array { | ||
return sms77_util::getSMS('sms77_sms', $this->bean); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | ||
|
||
require_once 'modules/Leads/views/view.detail.php'; | ||
require_once 'modules/sms77/sms77_util.php'; | ||
|
||
class CustomLeadsViewDetail extends LeadsViewDetail { | ||
public function display() { | ||
global $sugar_config; | ||
|
||
$history = array_merge($this->getOutboundSms(), $this->getInboundSms()); | ||
|
||
usort($history, function (SugarBean $a, SugarBean $b) { | ||
return strcmp($a->date_entered, $b->date_entered); | ||
}); | ||
|
||
/** @var Lead $bean */ | ||
$bean = $this->bean; | ||
$this->ss->assign('SMS77_BEAN_ID', $this->bean->id); | ||
$this->ss->assign('SMS77_FROM', $sugar_config['sms77_sender'] ?? ''); | ||
$this->ss->assign('SMS77_MODULE', $this->module); | ||
$this->ss->assign('SMS77_SMS_HISTORY', $history); | ||
$this->ss->assign('SMS77_TO', $bean->phone_mobile); | ||
|
||
echo $this->ss->fetch('modules/sms77/tpls/sms_compose.tpl'); | ||
|
||
parent::display(); | ||
} | ||
|
||
private function getInboundSms(): array { | ||
return sms77_util::getSMS('sms77_sms_inbound', $this->bean); | ||
} | ||
|
||
private function getOutboundSms(): array { | ||
return sms77_util::getSMS('sms77_sms', $this->bean); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.