HEX
Server: LiteSpeed
System: Linux lp015.web24.net.au 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64
User: pgkdistr (10190)
PHP: 8.1.32
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/pgkdistribution.com.au/citisolar.com.au/tmp/admin/views/email/tmpl/form.php
<?php
/**
* @Copyright Freestyle Joomla (C) 2010
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*     
* This file is part of Freestyle Testimonials
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* 
* 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/>.
**/
?>
<?php defined('_JEXEC') or die('Restricted access'); ?>

<?php echo JHTML::_( 'form.token' ); ?>

<script language="javascript" type="text/javascript">
<!--
function submitbutton(pressbutton) {
        var form = document.adminForm;
        if (pressbutton == 'cancel') {
                submitform( pressbutton );
                return;
        }

    <?php
		$editor =& JFactory::getEditor();
    echo $editor->save( 'body_html' );
    ?>
        submitform(pressbutton);
}
//-->

function toggleHtmlEmail()
{
	if ($('ishtml').checked)
	{
		$('email_body_html').style.display = 'block';
		$('email_body_text').style.display = 'none';
	} else {
		$('email_body_html').style.display = 'none';
		$('email_body_text').style.display = 'block';
	}
}
</script>

<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100 width-100">
	<fieldset class="adminform">
		<legend><?php echo JText::_("DETAILS"); ?></legend>

		<table class="admintable">
		<tr>
			<td width="135" align="right" class="key">
				<label for="question">
					<?php echo JText::_("TEMPLATE"); ?>:
				</label>
			</td>
			<td>
				<?php echo $this->email->tmpl; ?>
			</td>
		</tr>
		<tr>
			<td width="135" align="right" class="key">
				<label for="question">
					<?php echo JText::_("DESCRIPTION"); ?>:
				</label>
			</td>
			<td>
				<?php echo JText::_($this->email->description); ?>
			</td>
		</tr>
		<tr>
			<td width="135" align="right" class="key">
				<label for="question">
					<?php echo JText::_("IS_HTML"); ?>:
				</label>
			</td>
			<td>
				<input type='checkbox' onclick="toggleHtmlEmail()" id="ishtml" name='ishtml' value='1' <?php if ($this->email->ishtml == 1) { echo " checked='yes' "; } ?>>
			</td>
		</tr>
		<tr>
			<td width="135" align="right" class="key">
				<label for="question">
					<?php echo JText::_("SUBJECT"); ?>:
				</label>
			</td>
			<td>
				<input name="subject" id="subject" size="80" value="<?php echo $this->email->subject; ?>">
			</td>
		</tr>
		<tr>
			<td width="135" align="right" class="key">
				<label for="answer">
					<?php echo JText::_("TEMPLATE"); ?>:
				</label>
			</td>
			<td>
				<div id="email_body_html" <?php if ($this->email->ishtml == 0) { echo " style='display:none;' "; } ?>>
				<?php
				    $editor =& JFactory::getEditor();
					echo $editor->display('body_html', $this->email->body, '550', '400', '60', '20', array('pagebreak'));
				?>
				</div>
				<div id="email_body_text" <?php if ($this->email->ishtml == 1) { echo " style='display:none;' "; } ?>>
					<textarea name="body" id="body" cols="100" rows="20"><?php 
					JRequest::setVar('body',$this->email->body);
					$this->email->body = JRequest::getVar('body');
					echo $this->email->body; 
					?></textarea>
				</div>
            </td>

		</tr>
		<tr>
			<td width="135" align="right" class="key">
				<label for="question">
					<?php echo JText::_("HELP"); ?>:
				</label>
			</td>
			<td>
				<?php echo IncludeHelp($this->email->tmpl); ?>
			</td>
		</tr>
	</table>
	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_fst" />
<input type="hidden" name="id" value="<?php echo $this->email->id; ?>" />
<input type="hidden" name="task" value="save" />
<input type="hidden" name="controller" value="email" />
<input type="hidden" name="tmpl" value="<?php echo $this->email->tmpl; ?>" />
<input type="hidden" name="description" value="<?php echo $this->email->description; ?>" />
</form>

<?php 
function IncludeHelp($tmpl)
{
	if ($tmpl == "comment")
	{
		return FSTAdminHelper::IncludeHelp('email_comment.html');
	} else {
		return FSTAdminHelper::IncludeHelp('email_support.html');
	}
}