<?php 

/**
* @version 2.8.14
* @package Joomla 2.5
* @subpackage DT Register
* @copyright Copyright (C) 2006 DTH Development
* @copyright contact dthdev@dthdevelopment.com
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/

?>

<table class="adminform" width="100%" cellpadding="10" cellspacing="10">                      

               <tr>

					<td align="left" valign="top" style="width:420px; padding-right:5px"><strong><?php echo JText::_( 'DT_FROM_NAME' );?>:</strong></td>

					<td style="width:620px"><input type="text" class="required" name="config[DT_fromname]" size="40" value="<?php echo $config->getGlobal('DT_fromname','') ; ?>" /></td>

					<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_FROM_NAME_TIP' )), '', 'tooltip.png', '', ''); ?> </td>

				</tr>
   <tr>

					<td align="left" valign="top" style="width:420px; padding-right:5px"><strong><?php echo JText::_( 'DT_ADMIN_EMAIL_FROM_USER' );?>:</strong></td>

					<td style="width:620px"><?php   echo JHTML::_('select.booleanlist', "config[admin_email_from_user]","",$config->getGlobal('admin_email_from_user',0));  ?></td>

					<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_ADMIN_EMAIL_FROM_USER_TIP' )), '', 'tooltip.png', '', ''); ?> </td>

				</tr>
                
                <tr>

					<td align="left" valign="top"><strong><?php echo JText::_( 'DT_FROM_EMAIL' );?>:</strong></td>

					<td><input type="text" class="required" name="config[DT_mailfrom]" size="40" value="<?php echo $config->getGlobal('DT_mailfrom','') ; ?>" /></td>

					<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_FROM_EMAIL_TIP' )), '', 'tooltip.png', '', ''); ?> </td>

				</tr>
				
				<tr>
			   <td align="left" valign="top"><strong><?php echo JText::_( 'DT_FRONTEND_EVENT_NOTIFICATION' );?>:</strong></td>

			    <td align="left" valign="top"><input type="text" name="config[frontendEventNotification]" size="40" maxlength="120" value="<?php echo stripslashes($config->getGlobal('frontendEventNotification','')); ?>" /></td>

				<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_FRONTEND_EVENT_NOTIFICATION_HELP' )), '', 'tooltip.png', '', ''); ?></td>

			 </tr>
			 <tr align="center" valign="middle">
				
				<td align="left" valign="top"><strong><?php echo JText::_( 'DT_FRONTEND_EMAIL_NOTIFY_WHEN' ); ?>:</strong></td>

				<td align="left" valign="top">

			        <?php $options = array('create'=>JText::_('DT_CREATES_EVENT'),'edit'=>JText::_('DT_EDITS_EVENT'),'delete'=>JText::_('DT_DELETES_EVENT'));

						echo DtHtml::checkboxListSingle('config[eventModifyNotification]',$options,$config->getGlobal('eventModifyNotification',array()));

					?>

			     </td>

				<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_FRONTEND_EMAIL_NOTIFY_WHEN_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

				</tr>
				
				<tr>		 	 

	                <td colspan="3"><hr /></td>

	            </tr>

				<tr align="center" valign="middle">

                 <td align="left" valign="top"><strong><?php echo JText::_( 'THANKS_EMAIL' );?>:</strong>

                  <p><br />[ <a href="index.php?option=com_dtregister&controller=event&task=showtags&tmpl=component" class="colorbox" ><?php echo JText::_('DT_EMAIL_TAGS_HELP'); ?></a> ]</p>

                </td>

				<td align="left" valign="top"><?php echo $editor->display("config[thanksemail]",stripslashes($config->getGlobal('thanksemail','')),'','340','70','20','0'); ?></td>

				<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_THANKS_EMAIL_AUTH' )), '', 'tooltip.png', '', ''); ?> </td>

			</tr>   

            <tr align="center" valign="middle">

                <td align="left" valign="top"><strong><?php echo JText::_( 'DT_THANKS_EMAIL_SUB' );?>:</strong></td>

				<td align="left" valign="top"><input type="text" name="config[subthanksemail]" size="60" maxlength="100" value="<?php echo stripslashes($config->getGlobal('subthanksemail','') ); ?>" /></td>

				<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_THANKS_EMAIL_AUTH_SUB' )), '', 'tooltip.png', '', ''); ?></td>

			</tr>
            <tr>		 	 

	                <td colspan="3"><hr /></td>

	            </tr>
            <tr align="center" valign="middle">

                 <td align="left" valign="top"><strong><?php echo JText::_( 'DT_WAITING_EMAIL' );?>:</strong>

                  <p><br />[ <a href="index.php?option=com_dtregister&controller=event&task=showtags&tmpl=component" class="colorbox" ><?php echo JText::_('DT_EMAIL_TAGS_HELP'); ?></a> ]</p>

                </td>

				<td align="left" valign="top"><?php echo $editor->display("config[waitingemail]",stripslashes($config->getGlobal('waitingemail','')),'','340','70','20',array('article','readmore')); ?></td>

				<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_WAITING_EMAIL_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

			</tr>   

            <tr align="center" valign="middle">

                <td align="left" valign="top"><strong><?php echo JText::_( 'DT_WAITING_EMAIL_SUB' );?>:</strong></td>

				<td align="left" valign="top"><input type="text" name="config[subwaitingemail]" size="60" maxlength="100" value="<?php echo stripslashes($config->getGlobal('subwaitingemail','') ); ?>" /></td>

				<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_WAITING_EMAIL_HELP_SUB' )), '', 'tooltip.png', '', ''); ?></td>

			</tr>
            
			<tr>		 	 

	                <td colspan="3"><hr /></td>

	            </tr>

				<tr align="center" valign="middle">

                 <td align="left" valign="top"><strong><?php echo JText::_( 'DT_ADMIN_REGISTRATION_EMAIL' );?>:</strong>

                  <p><br />[ <a href="index.php?option=com_dtregister&controller=event&task=showtags&tmpl=component" class="colorbox" ><?php echo JText::_('DT_EMAIL_TAGS_HELP'); ?></a> ]</p>

                </td>

				<td align="left" valign="top"><?php echo $editor->display("config[admin_registrationemail]",stripslashes($config->getGlobal('admin_registrationemail','')),'','340','70','20','0'); ?></td>

				<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_ADMIN_REGISTRATION_EMAIL' )), '', 'tooltip.png', '', ''); ?> </td>

			</tr>   

            <tr align="center" valign="middle">

                <td align="left" valign="top"><strong><?php echo JText::_( 'DT_ADMIN_REGISTRATION_EMAIL_SUB' );?>:</strong></td>

				<td align="left" valign="top"><input type="text" name="config[subject_admin_registrationemail]" size="60" maxlength="100" value="<?php echo stripslashes($config->getGlobal('subject_admin_registrationemail','') ); ?>" /></td>

				<td><?php echo JHTML::tooltip((JText::_( 'DT_ADMIN_REGISTRATION_EMAIL_SUB' )), '', 'tooltip.png', '', ''); ?></td>

			</tr>

			<tr>		 	 

                <td colspan="3"><hr /></td>

            </tr> 

                <tr align="center" valign="middle">

                  <td align="left" valign="top"><strong><?php echo JText::_( 'DT_STATUS_CHANGE_MSG'); ?>:</strong>

                     <p><br />[ <a href="index.php?option=com_dtregister&controller=event&task=showtags&tmpl=component" class="colorbox" ><?php echo JText::_('DT_EMAIL_TAGS_HELP'); ?></a> ]</p>

                    </td>
					<td align="left" valign="top">

                    <div class="dtenable"><?php echo JText::_( 'DT_ENABLE_FEATURE' );?>: </div><?php   

                               echo JHTML::_('select.booleanlist', "config[status_change_msg_send]","",$config->getGlobal('status_change_msg_send',1));  ?>

                    <div style="clear:both; padding-top:8px"><?php echo $editor->display("config[status_change_msg]",stripslashes($config->getGlobal('status_change_msg','')),'','340','70','20','0'); ?></div></td>

					<td align="center"><?php echo JHTML::tooltip(JText::_( 'DT_STATUS_CHANGE_MSG_HELP'));?> </td>

				 </tr>

                  <tr align="center" valign="middle">

                    <td align="left" valign="top"><strong><?php echo JText::_( 'DT_CHANGE_STATUS_EMAIL_SUB' );?>:</strong></td>

					<td align="left" valign="top"><input type="text" name="config[subchangestatusemail]" size="60" maxlength="100" value="<?php echo stripslashes($config->getGlobal('subchangestatusemail','')); ?>" /></td>

					<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_CHANGE_STATUS_EMAIL_HELP' )), '', 'tooltip.png', '', ''); ?></td>

				</tr>

                  <tr>		 	 

                    <td colspan="3"><hr /></td>

                  </tr>

                  <tr align="center" valign="middle">

                    <td align="left" valign="top"><strong><?php echo JText::_( 'DT_PAID_STATUS_CHANGE_MSG'); ?>:</strong>

                     <p><br />[ <a href="index.php?option=com_dtregister&controller=event&task=showtags&tmpl=component" class="colorbox" ><?php echo JText::_('DT_EMAIL_TAGS_HELP'); ?></a> ]</p>

                    </td>

					<td align="left" valign="top">

                    <div class="dtenable"><?php echo JText::_( 'DT_ENABLE_FEATURE' );?>: </div><?php 

					           echo JHTMLSelect::booleanlist("config[paid_status_change_msg_send]","",$config->getGlobal('paid_status_change_msg_send',1)); ?>

                    <div style="clear:both; padding-top:8px"><?php echo $editor->display("config[paid_status_change_msg]",stripslashes($config->getGlobal('paid_status_change_msg','')),'','340','70','20','0'); ?></div></td>

					<td align="center"><?php echo JHTML::tooltip(JText::_( 'DT_PAID_STATUS_CHANGE_MSG_HELP'));?> </td>

				</tr>

                 <tr align="center" valign="middle">

                  <td align="left" valign="top"><strong><?php echo JText::_( 'DT_PAID_STATUS_EMAIL_SUB' );?>:</strong></td>

					<td align="left" valign="top"><input type="text" name="config[subpaidstatusemail]" size="60" maxlength="100" value="<?php echo stripslashes($config->getGlobal('subpaidstatusemail','')); ?>" /></td>

					<td align="center"><?php echo JHTML::tooltip((JText::_( 'DT_PAID_STATUS_EMAIL_SUB_HELP' )), '', 'tooltip.png', '', ''); ?></td>

				</tr>
							
	 			</table>