forked from techjoomla/TJ-Notifications
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue techjoomla#48 chore: Log Email details in DB table - Tj Notific…
…ation
- Loading branch information
1 parent
6527ef1
commit 396a933
Showing
8 changed files
with
99 additions
and
130 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
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
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
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,50 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjnotifications | ||
* @copyright Copyright (c) 2009-2019 TechJoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later. | ||
*/ | ||
|
||
// No direct access to this file | ||
defined('_JEXEC') or die; | ||
|
||
use Joomla\CMS\Table\Table; | ||
use Joomla\CMS\Factory; | ||
|
||
$jinput = Factory::getApplication()->input; | ||
$logId = $jinput->get('id', 0, 'INT'); | ||
$subject = $jinput->get('subject', 0, 'INT'); | ||
|
||
Table::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_tjnotifications/tables'); | ||
$logTable = Table::getInstance('Log', 'TjnotificationsTable'); | ||
$logTable->load(array('id' => $logId)); | ||
|
||
if($subject==="true") | ||
{ | ||
?> | ||
<div> | ||
<h4 class="modal-title"><?php echo | ||
JText::_("COM_TJNOTIFICATIONS_FIELD_EMAIL_BODY_LABEL"); | ||
?></h4> | ||
</div> | ||
<div class="col-xs-12"> | ||
<p><?php echo htmlspecialchars($logTable->body, ENT_COMPAT, 'UTF-8'); ?> | ||
</p> | ||
</div> | ||
</div> | ||
<?php } | ||
else | ||
{?> | ||
<div> | ||
<h4 class="modal-title"><?php echo | ||
JText::_("COM_TJNOTIFICATIONS_VIEW_PARAMS_POPUP"); | ||
?></h4> | ||
</div> | ||
<div class="col-xs-12"> | ||
<p><?php echo htmlspecialchars($logTable->params, ENT_COMPAT, 'UTF-8'); ?> | ||
</p> | ||
</div> | ||
</div> | ||
<?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