Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 142 lines (139 sloc) 5.599 kb
9f97176 Dražen initial commit
authored
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <meta name="apple-mobile-web-app-capable" content="yes">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <meta name="description" content="Get countries list from geonames">
8 <meta name="author" content="Drazen Peric">
d7dcde1 Johannes Changed to allow generation of table creation and insert scripts for the...
dominionit authored
9 <meta name="keywords" content="countries, list, mysql,firebird, geonames, xml">
10 <title>Get countries in MySQL/Firebird/XML format</title>
9f97176 Dražen initial commit
authored
11 <link rel="stylesheet" href="css/bootstrap.min.css" />
12 <link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
13 <link rel="stylesheet" type="text/css" href="css/style.css" />
14 </head>
15 <body>
16 <div id="container" class="container-fluid">
17 <div class="navbar">
18 <div class="navbar-inner">
19 <h2>Get countries</h2>
20 </div>
21 </div>
22 <div class="row-fluid">
23 <div class="span12" id="inner-container">
e18254d Dražen Updated lead text
authored
24 <p class="lead">Generates Countries table based on the selected fields. Supports <strong>MySQL</strong>, <strong>Firebird</strong>, <strong>XML</strong>, <strong>JSON</strong> and <strong>CSV</strong>.</p>
9f97176 Dražen initial commit
authored
25 <p>
26 <a id="showexamplecode" href="#">MySQL Example code</a>
27 </p>
28 <p>
29 <code id="examplecode">
30 CREATE TABLE IF NOT EXISTS `countries` (<br />
31 &emsp;&emsp;&emsp;&emsp;`idCountry` int(5) NOT NULL AUTO_INCREMENT,<br />
32 &emsp;&emsp;&emsp;&emsp;`countryCode` char(2) NOT NULL DEFAULT '',<br />
33 &emsp;&emsp;&emsp;&emsp;`countryName` varchar(80) NOT NULL DEFAULT '',<br />
34 &emsp;&emsp;&emsp;&emsp;PRIMARY KEY (`idCountry`)<br />
cf65e52 Dražen id starts from 1
authored
35 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=251;<br /><br />
9f97176 Dražen initial commit
authored
36
37 INSERT INTO `countries` (`countryCode`, `countryName`) VALUES<br />
38 ('AD', 'Andorra'),<br />
39 ('AE', 'United Arab Emirates'),<br />
40 ('AF', 'Afghanistan')<br />
41 .<br />
42 .<br />
43 .
44 </code>
45 </p>
af40fad Dražen added XML code type
authored
46 <hr/>
47 <h5>Select columns:</h5>
9f97176 Dražen initial commit
authored
48 <label class="checkbox">
49 <input type="checkbox" class="options" name="options" value="countryCode" checked="checked">countryCode
50 </label>
51 <label class="checkbox">
52 <input type="checkbox" class="options" name="options" value="countryName" checked="checked">countryName
53 </label>
54 <label class="checkbox">
55 <input type="checkbox" class="options" name="options" value="currencyCode">currencyCode
56 </label>
57 <label class="checkbox">
58 <input type="checkbox" class="options" name="options" value="population">population
59 </label>
60 <label class="checkbox">
61 <input type="checkbox" class="options" name="options" value="fipsCode">fipsCode
62 </label>
63 <label class="checkbox">
64 <input type="checkbox" class="options" name="options" value="isoNumeric">isoNumeric
65 </label>
66 <label class="checkbox">
67 <input type="checkbox" class="options" name="options" value="north">north
68 </label>
69 <label class="checkbox">
70 <input type="checkbox" class="options" name="options" value="south">south
71 </label>
72 <label class="checkbox">
73 <input type="checkbox" class="options" name="options" value="east">east
74 </label>
75 <label class="checkbox">
76 <input type="checkbox" class="options" name="options" value="west">west
77 </label>
78 <label class="checkbox">
79 <input type="checkbox" class="options" name="options" value="capital">capital
80 </label>
81 <label class="checkbox">
82 <input type="checkbox" class="options" name="options" value="continentName">continentName
83 </label>
84 <label class="checkbox">
85 <input type="checkbox" class="options" name="options" value="continent">continent
86 </label>
87 <label class="checkbox">
88 <input type="checkbox" class="options" name="options" value="areaInSqKm">areaInSqKm
89 </label>
90 <label class="checkbox">
91 <input type="checkbox" class="options" name="options" value="languages">languages
92 </label>
93 <label class="checkbox">
94 <input type="checkbox" class="options" name="options" value="isoAlpha3">isoAlpha3
95 </label>
96 <label class="checkbox">
97 <input type="checkbox" class="options" name="options" value="geonameId">geonameId
98 </label>
af40fad Dražen added XML code type
authored
99 <h5>Select type:</h5>
100 <label class="radio">
31bdbd9 Dražen renamed from sql -> mysql
authored
101 <input type="radio" class="codetype" name="codetype" id="mysqltype" value="mysqltype" checked>
102 MySQL
af40fad Dražen added XML code type
authored
103 </label>
104 <label class="radio">
d7dcde1 Johannes Changed to allow generation of table creation and insert scripts for the...
dominionit authored
105 <input type="radio" class="codetype" name="codetype" id="firebirdtype" value="firebirdtype">
106 Firebird
107 </label>
108 <label class="radio">
af40fad Dražen added XML code type
authored
109 <input type="radio" class="codetype" name="codetype" id="xmltype" value="xmltype">
110 XML
111 </label>
98a5388 Abhishek Bhardwaj Add support for JSON
abhishekbhardwaj authored
112 <label class="radio">
113 <input type="radio" class="codetype" name="codetype" id="jsontype" value="jsontype">
114 JSON
115 </label>
907eaae Johannes Added CSV format to be exported into. It places the field names on the f...
dominionit authored
116 <label class="radio">
117 <input type="radio" class="codetype" name="codetype" id="csvtype" value="csvtype">
118 CSV
119 </label>
351b040 Johannes Request from somebody to have a lookup/linking table against the country...
dominionit authored
120 <h5>Database Additional Options</h5>
121 <label class="radio">
122 <input type="checkbox" class="dblookup" name="dblookup" id="dblookup" value="dblookup" >
123 Language Lookup tables
124 </label>
125
9f97176 Dražen initial commit
authored
126 <p>
127 <button id="getcode" class="btn btn-primary" type="button">Get it!</button>
128 </p>
129 <hr />
af40fad Dražen added XML code type
authored
130 <textarea id="generatedcode" rows="20"></textarea>
9f97176 Dražen initial commit
authored
131 <hr />
132 <div id="signature">
59567a3 Dražen Updated website in signature
authored
133 Web by <a href="http://echobehind.wordpress.com" target="_blank"><span class="dp">DP</span></a>
9f97176 Dražen initial commit
authored
134 </div>
135 </div>
136 </div>
137 </div>
a7fd4b3 Dražen JS functions to the end of a page
authored
138 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
139 <script type="text/javascript" src="js/functions.js"></script>
9f97176 Dražen initial commit
authored
140 </body>
59567a3 Dražen Updated website in signature
authored
141 </html>
Something went wrong with that request. Please try again.