コード例 #1
0
ファイル: index.php プロジェクト: ttjoseph/smcalc
</div>

<div style="padding: 1em; -webkit-columns: 3; -moz-column-count: 3; padding-top: 2em;">

<p><b>Hello.</b> This tool calculates how many SkyMiles are earned flying on Delta and its partners.  Plan your trips &mdash; or mileage runs &mdash; to maximize mileage earning, or just see where you'll end up this year with your miles obsession.</p>

<p><b>Type your route.</b> <code>jfk-atl-sfo-atl-jfk</code> is a round trip from New York JFK to San Francisco with a stop in Atlanta, all on Delta, using the "Default fare" specified above. You must use IATA airport codes. You can enter more trips on separate lines. Only enter purchased fares, not upgrades (e.g. G, X, V, etc don't work).</p>

<p><b>Advanced.</b> You can type something like <code>ke.f</code> between the airport codes; that means that the segment is on Korean Air in the F fare bucket. Omitting the carrier code defaults to DL, so something like <code>y</code> means Y on Delta. So, <code>jfk-k-atl-ke.c-icn</code> means New York JFK to Atlanta on a K fare on Delta, then onward to Seoul Incheon on Korean Air on a C fare.</p>

<p>To see your <b>cost per mile</b> for a trip, type the fare too. For example: <code>lga-mdw-lga $199</code>.  If you received <b>bonus miles</b> include that amount as well.  For example: <code>jfk-lax-jfk 500</code> would specify a trip from New York to Los Angeles that you got a 500-mile redeemable miles bonus for.  
</p>

<p>Delta's guides for MQM and RDM earning on partner airlines are not always crystal clear, so the numbers produced here reflect my best guess as to what they mean.

Delta's guide to MQM earning is <a href="http://www.delta.com/skymiles/about_skymiles/benefits_at_glance/mqm_calculations/index.jsp">here</a> and to RDM earning is <a href="http://skymilesoffers.delta.com/airline_partners.php">here</a>.</p>

<p><b>This website is not affiliated in any way with <a href="http://www.delta.com">Delta Air Lines</a>.</b> No guarantee of accuracy is made; Delta is the final authority on how many miles they actually award.  A discrepancy of a few miles is nothing to be alarmed about, because I probably round numbers a bit differently than Delta does.  If you get this site to produce a really incorrect result, I'd appreciate hearing about it so I can fix it (I'm <b>ttjoseph</b> on FlyerTalk; send me a PM).</p>

<p><b>Also,</b> if you're a hardcore mileage runner, try out my <a href="../routemax">route maximizer</a>. If you use Mac OS X Tiger or later, I wrote a <a href="/airportcodes/">Dashboard widget</a> that you can use to look up IATA airport and airline codes.</p>

</div>

<?php 
includeonce("google-analytics.php");
?>
</body>

</html>
コード例 #2
0
ファイル: barcode.php プロジェクト: kumarsivarajan/ctrl-dock
#= it under the terms of the GNU General Public License as published by
#= the Free Software Foundation; either version 2 of the License, or
#= (at your option) any later version.
#=
#= phpFile 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 DownloadCounter; if not, write to the Free Software
#= Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#===========================================================================
#
# requires code128.class.php
includeonce('lib\\barcode\\code128.class.php');
if (isset($_GET['barcodetext'])) {
    // Produce a CODE128 barcode of we have some text.
    $thistext = $_GET['barcodetext'];
    //
    // FIXME: (AJH) The font could be an issue, as we have no idea where the fonts reside.
    // If windows, the above should work, if Linux, anything might happen.
    // I should fix this by standardising this and the disk usage font, or including a local font.
    //
    $thisfont = 'c:\\windows\\fonts\\verdana.ttf';
    $thisimagename = 'barcode.png';
    $barcode = new phpCode128($thistext, 150, $thisfont, 18);
    $barcode->setEanStyle(false);
    $barcode->setShowText(true);
    $barcode->saveBarcode($thisimagename);
    //echo "<img src='".$thisimagename."'>";