-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
141 lines (139 loc) · 5.47 KB
/
index.html
File metadata and controls
141 lines (139 loc) · 5.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Get countries list from geonames">
<meta name="author" content="Drazen Peric">
<meta name="keywords" content="countries, list, mysql,firebird, geonames, xml">
<title>Get countries in MySQL/Firebird/XML format</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<div id="container" class="container-fluid">
<div class="navbar">
<div class="navbar-inner">
<h2>Get countries</h2>
</div>
</div>
<div class="row-fluid">
<div class="span12" id="inner-container">
<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>
<p>
<a id="showexamplecode" href="#">MySQL Example code</a>
</p>
<p>
<code id="examplecode">
CREATE TABLE IF NOT EXISTS `countries` (<br />
    `idCountry` int(5) NOT NULL AUTO_INCREMENT,<br />
    `countryCode` char(2) NOT NULL DEFAULT '',<br />
    `countryName` varchar(80) NOT NULL DEFAULT '',<br />
    PRIMARY KEY (`idCountry`)<br />
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=251;<br /><br />
INSERT INTO `countries` (`countryCode`, `countryName`) VALUES<br />
('AD', 'Andorra'),<br />
('AE', 'United Arab Emirates'),<br />
('AF', 'Afghanistan')<br />
.<br />
.<br />
.
</code>
</p>
<hr/>
<h5>Select columns:</h5>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="countryCode" checked="checked">countryCode
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="countryName" checked="checked">countryName
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="currencyCode">currencyCode
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="population">population
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="fipsCode">fipsCode
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="isoNumeric">isoNumeric
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="north">north
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="south">south
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="east">east
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="west">west
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="capital">capital
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="continentName">continentName
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="continent">continent
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="areaInSqKm">areaInSqKm
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="languages">languages
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="isoAlpha3">isoAlpha3
</label>
<label class="checkbox">
<input type="checkbox" class="options" name="options" value="geonameId">geonameId
</label>
<h5>Select type:</h5>
<label class="radio">
<input type="radio" class="codetype" name="codetype" id="mysqltype" value="mysqltype" checked>
MySQL
</label>
<label class="radio">
<input type="radio" class="codetype" name="codetype" id="firebirdtype" value="firebirdtype">
Firebird
</label>
<label class="radio">
<input type="radio" class="codetype" name="codetype" id="xmltype" value="xmltype">
XML
</label>
<label class="radio">
<input type="radio" class="codetype" name="codetype" id="jsontype" value="jsontype">
JSON
</label>
<label class="radio">
<input type="radio" class="codetype" name="codetype" id="csvtype" value="csvtype">
CSV
</label>
<h5>Database Additional Options</h5>
<label class="radio">
<input type="checkbox" class="dblookup" name="dblookup" id="dblookup" value="dblookup" >
Language Lookup tables
</label>
<p>
<button id="getcode" class="btn btn-primary" type="button">Get it!</button>
</p>
<hr />
<textarea id="generatedcode" rows="20"></textarea>
<hr />
<div id="signature">
Web by <a href="http://echobehind.wordpress.com" target="_blank"><span class="dp">DP</span></a>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
</body>
</html>