This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
phptsmadmin/includes/jpgraph/docs/chunkhtml/apf.html

80 lines
59 KiB
HTML
Raw Normal View History

2011-05-28 09:51:52 +00:00
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Appendix F. List of all country flags</title><link rel="stylesheet" type="text/css" href="manual.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.0"><link rel="home" href="index.html" title="JpGraph Manual"><link rel="up" href="pt09.html" title="Part IX. Appendices"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix F. List of all country flags</th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center">Part IX. Appendices</th><td width="20%" align="right"> </td></tr></table><hr></div><div class="appendix" title="Appendix F. List of all country flags"><div class="titlepage"><div><div><h2 class="title"><a name="app.country-flags"></a>Appendix F. List of all country flags</h2></div></div></div>
<p>All country flags are included in a pre-compiled efficient format with the library. In
addition the flags can be scaled arbitrarily and used as either background images or as plot
marks. Flags are specified by either it's index or by the using the whole or a unique part
of the country name.</p>
<p>The list of all flags are in simple alphabetical order, i.e. by the full name including
governance prefix e.g. "Republic". The size of the flags in this table has been chosen as
<code class="code">FLAGSIZE2</code>
</p>
<div class="caution" title="Caution" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Caution</h3>
<p>The dynamics of world politics and geographic boundaries will no doubt make the list
of included countries obsolete almost at the same time the library is released. The
intention is that all currently known country and similar geographic entities should be
included. Any missing flags shall and can not be interpreted as any political stand it
is merely a consequence of political changes since the library was released or a
possible oversight or simply a mistake either human or algorithmically in how the
country flags are produced.</p>
</div>
<p>For more information on how to use country flags see <a class="xref" href="ch14s15.html" title="Adding images and country flags to the background of the graph">Adding images and country flags to the background of the graph</a></p>
<p>It is also possible to easily create a flags for usage outside graphs. The following
script takes an index and flag core size as URL arguments and returns the chosen flag. </p>
<p>
</p><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags">&lt;?php</span><span class="hl-code">
</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-code">;
</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph_flags.php</span><span class="hl-quotes">'</span><span class="hl-code">;
</span><span class="hl-reserved">if</span><span class="hl-brackets">(</span><span class="hl-code"> </span><span class="hl-reserved">empty</span><span class="hl-brackets">(</span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">size</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">
</span><span class="hl-var">$size</span><span class="hl-code"> = </span><span class="hl-identifier">FLAGSIZE1</span><span class="hl-code">;
</span><span class="hl-brackets">}</span><span class="hl-code">
</span><span class="hl-reserved">else</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">
</span><span class="hl-var">$size</span><span class="hl-code"> = </span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">size</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-code">;
</span><span class="hl-brackets">}</span><span class="hl-code">
</span><span class="hl-reserved">if</span><span class="hl-brackets">(</span><span class="hl-code"> </span><span class="hl-reserved">empty</span><span class="hl-brackets">(</span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">idx</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">
</span><span class="hl-var">$idx</span><span class="hl-code"> = </span><span class="hl-quotes">'</span><span class="hl-string">swdn</span><span class="hl-quotes">'</span><span class="hl-code">;
</span><span class="hl-brackets">}</span><span class="hl-code">
</span><span class="hl-reserved">else</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code">
</span><span class="hl-var">$idx</span><span class="hl-code"> = </span><span class="hl-var">$_GET</span><span class="hl-brackets">[</span><span class="hl-quotes">'</span><span class="hl-string">idx</span><span class="hl-quotes">'</span><span class="hl-brackets">]</span><span class="hl-code">;
</span><span class="hl-brackets">}</span><span class="hl-code">
</span><span class="hl-var">$flags</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">FlagImages</span><span class="hl-brackets">(</span><span class="hl-var">$size</span><span class="hl-brackets">)</span><span class="hl-code"> ;
</span><span class="hl-var">$img</span><span class="hl-code"> = </span><span class="hl-var">$flags</span><span class="hl-code">-&gt;</span><span class="hl-identifier">GetImgByIdx</span><span class="hl-brackets">(</span><span class="hl-var">$idx</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">header</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">Content-type: image/png</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">ImagePng</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-var">$img</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-inlinetags">?&gt;</span></pre></td></tr></table></div><p>
</p>
<p>
</p><div class="table"><a name="id2637692"></a><p class="title"><b>Table F.1. List of all country flags sorted by country name</b></p><div class="table-contents">
<table summary="List of all country flags sorted by country name" border="0"><colgroup><col><col><col><col></colgroup><thead><tr><th>Country name</th><th>Short name</th><th>Index</th><th>Flag</th></tr></thead><tbody><tr><td valign="middle">Afghanistan</td><td valign="middle"><code class="code">"afgh"</code></td><td valign="middle">0</td><td><span class="inlinemediaobject"><img src="images/flag-afgh.png"></span> </td></tr><tr><td valign="middle">Alderney</td><td valign="middle"><code class="code">"alde"</code></td><td valign="middle">3</td><td><span class="inlinemediaobject"><img src="images/flag-alde.png"></span> </td></tr><tr><td valign="middle">Antarctica</td><td valign="middle"><code class="code">"anta"</code></td><td valign="middle">8</td><td><span class="inlinemediaobject"><img src="images/flag-anta.png"></span> </td></tr><tr><td valign="middle">Arab Republic of Egypt</td><td valign="middle"><code class="code">"egyp"</code></td><td valign="middle">63</td><td><span class="inlinemediaobject"><img src="images/flag-egyp.png"></span> </td></tr><tr><td valign="middle">Argentine Republic</td><td valign="middle"><code class="code">"arge"</code></td><td valign="middle">9</td><td><span class="inlinemediaobject"><img src="images/flag-arge.png"></span> </td></tr><tr><td valign="middle">Aruba</td><td valign="middle"><code class="code">"arub"</code></td><td valign="middle">12</td><td><span class="inlinemediaobject"><img src="images/flag-arub.png"></span> </td></tr><tr><td valign="middle">Autonomous Region of Tibet</td><td valign="middle"><code class="code">"tibe"</code></td><td valign="middle">210</td><td><span class="inlinemediaobject"><img src="images/flag-tibe.png"></span> </td></tr><tr><td valign="middle">Azerbaijani Republic</td><td valign="middle"><code class="code">"azer"</code></td><td valign="middle">15</td><td><span class="inlinemediaobject"><img src="images/flag-azer.png"></span> </td></tr><tr><td valign="middle">Bangladesh</td><td valign="middle"><code class="code">"bngl"</code></td><td valign="middle">16</td><td><span class="inlinemediaobject"><img src="images/flag-bngl.png"></span> </td></tr><tr><td valign="middle">Barbados</td><td valign="middle"><code class="code">"brbd"</code></td><td valign="middle">28</td><td><span class="inlinemediaobject"><img src="images/flag-brbd.png"></span> </td></tr><tr><td valign="middle">Belize</td><td valign="middle"><code class="code">"blze"</code></td><td valign="middle">24</td><td><span class="inlinemediaobject"><img src="images/flag-blze.png"></span> </td></tr><tr><td valign="middle">Bolivarian Republic of Venezuela</td><td valign="middle"><code class="code">"venz"</code></td><td valign="middle">231</td><td><span class="inlinemediaobject"><img src="images/flag-venz.png"></span> </td></tr><tr><td valign="middle">British Antarctic Territory</td><td valign="middle"><code class="code">"bant"</code></td><td valign="middle">17</td><td><span class="inlinemediaobject"><img src="images/flag-bant.png"></span> </td></tr><tr><td valign="middle">British Indian Ocean Territory</td><td valign="middle"><code class="code">"brin"</code></td><td valign="middle">29</td><td><span class="inlinemediaobject"><img src="images/flag-brin.png"></span> </td></tr><tr><td valign="middle">British Overseas Territory of Anguilla</td><td valign="middle"><code class="code">"angu"</code></td><td valign="middle">7</td><td><span class="inlinemediaobject"><img src="images/flag-angu.png"></span> </td></tr><tr><td valign="middle">British Overseas Territory of Bermuda</td><td valign="middle"><code class="code">"berm"</code></td><td valign="middle">19</td><td><span class="inlinemediaobject"><img src="images/flag-berm.png"></span> </td></tr><tr><td valign="middle">British Overseas Territory of Montserrat</td><td valign="middle"><code class="code">"mont"</code></td><td valign="middle">138</td><td><span class="inlinemediaobject"><img src="images/flag-mont.png"></span> </td></tr><tr><td valign="middle">British Overseas Territory of the Cayman Islands</td><td valign="middle"><code class="code">"cyis"</code></td><td
</div></div><p><br class="table-break">
</p>
</div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"> </td><td width="20%" align="center"><a accesskey="u" href="pt09.html">Up</a></td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html>