<TD width=10% nowrap class="key"><?php echo JText::_('LNG_DESCRIPTION', true); ?> :</TD> <TD nowrap colspan=1 ALIGN=LEFT> <textarea id='arrival_option_description' name='arrival_option_description' rows=10 cols=70><?php echo $this->item->arrival_option_description; ?> </textarea> </TD> </TR> </TABLE> </fieldset> <script language="javascript" type="text/javascript"> <?php if (getCurrentJoomlaVersion() < 1.6) { ?> function submitbutton(pressbutton) <?php } else { ?> Joomla.submitbutton = function(pressbutton) <?php } ?> { var form = document.adminForm; if (pressbutton == 'save') { if( !validateField( form.arrival_option_name, 'string', false, "<?php echo JText::_('LNG_PLEASE_INSERT_ARRIVAL_OPTION_NAME', true);
function preparePendingEmail($id, $templEmail) { $query = " \tSELECT \r\n\t\t\t\t\t\t*\r\n\t\t\t\t\tFROM #__hotelreservation_confirmations\r\n\t\t\t\t\tWHERE \r\n\t\t\t\t\t\tconfirmation_id = {$id}\r\n\t\t\t\t\t"; // echo $query; //$this->_db->setQuery( $query ); $results =& $this->_getList($query); if (count($results) == 0) { return ''; } foreach ($results as $res) { $reservationDetails = ' <div class="col100"> ' . $res->email_confirmation . ' </div>'; $bilingInformations = ''; $placeholder = ''; $templEmail = str_replace("\r\n", '<BR>', $templEmail); $templEmail = str_replace(htmlspecialchars(EMAIL_RESERVATIONDETAILS), $reservationDetails, $templEmail); $templEmail = str_replace(EMAIL_RESERVATIONDETAILS, $reservationDetails, $templEmail); $templEmail = str_replace(htmlspecialchars(EMAIL_BILINGINFORMATIONS), $bilingInformations, $templEmail); $templEmail = str_replace(EMAIL_BILINGINFORMATIONS, $bilingInformations, $templEmail); $templEmail = str_replace(htmlspecialchars(EMAIL_PLACEHOLDER), $placeholder, $templEmail); $templEmail = str_replace(EMAIL_PLACEHOLDER, $placeholder, $templEmail); $fromName = $this->itemAppSettings->company_name; if (getCurrentJoomlaVersion() < 1.6) { global $mainframe; if (strlen($fromName) == 0) { $fromName = $mainframe->getCfg('fromname'); } } else { $config =& JFactory::getConfig(); $fromName = $config->get('config.mailfrom'); } $templEmail = str_replace(htmlspecialchars(EMAIL_COMPANY_NAME), $fromName, $templEmail); $templEmail = str_replace(EMAIL_COMPANY_NAME, $fromName, $templEmail); } return "<html><body>" . $templEmail . '</body></html>'; }