<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Welcome Email</title>
        <meta name="viewport" content="width=device-width" />
        <style type="text/css">
            @media only screen and (max-width: 550px), screen and (max-device-width: 550px) {
                body[yahoo] .buttonwrapper { background-color: transparent !important; }
                body[yahoo] .button { padding: 0 !important; }
                body[yahoo] .button a { background-color: #349ee5; padding: 15px 25px !important; }
            }

            @media only screen and (min-device-width: 601px) {
                .content { width: 600px !important; }
                .col387 { width: 387px !important; }
            }
        </style>
    </head>
    <body bgcolor="#252d2f" style="margin: 0; padding: 0;" yahoo="fix">
        <!--[if (gte mso 9)|(IE)]>
        <table width="600" align="center" cellpadding="0" cellspacing="0" border="0">
          <tr>
            <td>
        <![endif]-->
        <table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 100%; max-width: 600px;" class="content">
            <tr>
                <td align="center" bgcolor="#cccccc" style="padding: 25px 20px 20px 20px; color: #ffffff; font-family: Arial, sans-serif; font-size: 26px;">
                    <img src="<?php echo SITE_URL; ?>/iCrew/ics_logo.png" alt="<?php echo SITE_NAME; ?>" width="auto;" height="250" style="display:block;" />
                </td>
            </tr>
            <tr>
                <td align="left" bgcolor="#ffffff" style="padding: 40px 20px 0 20px; color: #555555; font-family: Arial, sans-serif; font-size: 18px; line-height: 30px;">
                    <b>Repositioning Clearance</b>
                    <br>
                    <small>
                    	With Effect From: <?php echo date(DATE_FORMAT); ?>
                    </small>
                </td>
            </tr>
            <tr>
                <td align="left" bgcolor="#ffffff" style="padding: 0 20px 40px 20px; color: #777777; font-family: Arial, sans-serif; font-size: 14px;  border-bottom: 1px solid #f6f6f6;">
                     [BEGINNING] <br><br>
                     
                     <strong>{PILOT_NAME}</strong> is cleared to jumpseat from his/her current location to <strong>{DEPICAO}</strong> w.e.f <strong><?php echo date(DATE_FORMAT); ?> </strong>
                     in order to initiate repositioning of <strong>{AICRAFT}</strong>, which is currently stationed <strong>{DEPICAO}</strong>. <strong>{PILOT_NAME}</strong> will be 
                     required to fly the aircraft into <strong>{ARRICAO}</strong>. 
                     <br><br>
                     <strong><?php echo SITE_NAME; ?> HQ has been alerted about this clearence and is expecting your arrival at {ARRICAO} at the earliest.</strong>
                     <br><br>
                     The details of your repositioning flight as follows.
                     <br>
                     Generated Callsign: <strong>REP{FLIGHTNUM} <br></strong>
                     Online Callsign: <strong>NKS{FLIGHTNUM} <br></strong>
                     Leg: <strong>{DEPICAO} to {ARRICAO} <br></strong>
                     Sanctioned payment: <strong><?php echo Config::get('MONEY_UNIT'); ?>{PRICE} <br></strong>
                     
                     <br>
                     <br>
                     You are to use
                     the generated callsign while logging your flight on ACARS reporting software. Should you choose to fly online, you 
                     MUST use the Online callsign "NKS".
                     
                     <br><br>
                     [END] 
                     
                     <br><br>
                     
                     <small>
                     	Flight Operations, <br>
                		<?php echo SITE_NAME; ?>
                     </small>
                </td>
            </tr>

            <tr>
                <td align="center" bgcolor="#ffffff" style="padding: 0 20px 40px 20px; color: #777777; font-family: Arial, sans-serif; font-size: 12px;  border-bottom: 1px solid #f6f6f6;">
                    <br>
                    "Truly, as real as it gets"
                </td>
            </tr>
            <tr>
                <td align="center" bgcolor="#e9e9e9" style="padding: 12px 10px 12px 10px; color: #888888; font-family: Arial, sans-serif; font-size: 12px; line-height: 18px;">
                    <b><?php echo SITE_NAME; ?> </b> <br>Powered by iCrew <?php echo ICS_VERSION; ?> <i><?php echo e(ICS_LICENCE_TYPE); ?></i> &bull; Crafted by icrewsystems

                </td>
            </tr>
            <tr>
                <td style="padding: 15px 10px 15px 10px;">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td align="center" width="100%" style="color: #999999; font-family: Arial, sans-serif; font-size: 12px;">
                                <!--www.flyingamericanvirtual.com-->
                                <?php 
                                	$url = SITE_URL; 
                                	if(FORCE_SSL == 1) {
                                		$frontend = str_replace('https://icrew', 'www', $url);	
                                	} else {
                                		$frontend = str_replace('http://icrew', 'www', $url);
                                	}
                                	echo $frontend;
                            	?>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <!--[if (gte mso 9)|(IE)]>
                </td>
            </tr>
        </table>
        <![endif]-->
    </body>
</html>
