-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
767 lines (713 loc) · 29.6 KB
/
index.php
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
<?php
#error_reporting(E_ALL);
#ini_set('display_errors', true);
/*
Projekt: datenlandkarten
Autor: meisterluk
Datum: 11.02.06
Version: beta
Lizenz: LGPL v3.0
datamaps -- visualize your geo-based statistic data
Copyright (C) 2011 Lukas Prokop, Robert Harm, et al.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
$root = './';
require_once('global.php');
require_once('lib/lib.php');
$n = new Notifications();
$f = new FileManager($location_creation, $location_raw_data,
$location_pattern_svgs, $n);
$g = new Geo($geo_hierarchy, $f);
$ui = new UserInterface($g, $n);
// special feature: show svg filenames
if ($_GET && $_GET['mode'] == 'show_svg_filenames')
{
header('Content-type: text/plain; charset=utf-8');
$vp = new VisPath();
$vis_path = $g->next($vp);
while ($vis_path !== NULL)
{
$filename = $g->get_filename($vp);
echo $filename."\n";
$vis_path = $g->next($vp);
}
exit;
}
if ($_POST)
{
$_POST = striptease($_POST);
$success = $ui->from_webinterface
($_POST, $color_gradients, $color_allocation);
if ($_GET['debug'] == true)
{
debug_ui($ui);
exit;
}
if ($success)
{
include 'select.php';
exit;
}
}
// Defaultvalues
$defaults = $ui->get_attributes();
?><!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" dir="ltr" lang="de-DE"
xmlns:og='http://opengraphprotocol.org/schema/'>
<head profile="http://gmpg.org/xfn/11">
<title>Datenlandkarte erstellen » datamaps.eu</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="Hier können Sie selbst datamaps erstellen. Gleichzeitig werden, falls Sie diese Option aktiviert lassen, die Rohdaten der Visualisierung gespeichert und" />
<meta name="keywords" content="Bezirke, Kärnten, Alle, Ebenen, Daten, Bundesländer" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="http://www.datamaps.eu/erstellen/" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<link rel="stylesheet" href="http://www.datamaps.eu/wp-content/themes/datamaps/style.css" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" href="http://www.datamaps.eu/wp-content/themes/datamaps/style.ie6.css" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="http://www.datamaps.eu/wp-content/themes/datamaps/style.ie7.css" type="text/css" media="screen" /><![endif]-->
<link rel="pingback" href="http://www.datamaps.eu/xmlrpc.php" />
<link rel="alternate" type="application/rss+xml" title="datamaps.eu » Feed" href="http://www.datamaps.eu/feed/" />
<link rel="alternate" type="application/rss+xml" title="datamaps.eu » Kommentar Feed" href="http://www.datamaps.eu/comments/feed/" />
<script type='text/javascript' src='http://www.datamaps.eu/wp-includes/js/swfobject.js?ver=2.2'></script>
<script type='text/javascript' src='http://www.datamaps.eu/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.datamaps.eu/xmlrpc.php?rsd" />
<link rel='index' title='datamaps.eu' href='http://www.datamaps.eu/' />
<link rel='next' title='Galerie' href='http://www.datamaps.eu/galerie/' />
<!--Facebook Like Button OpenGraph Settings Start-->
<meta property="og:site_name" content="datamaps.eu"/>
<meta property="og:title" content="Datenlandkarte erstellen"/>
<meta property="og:description" content="Hier können Sie selbst Datenlandkarten erstellen"/>
<meta property="og:url" content="http://www.datamaps.eu/erstellen/"/>
<meta property="fb:admins" content="1039929046" />
<meta property="fb:app_id" content="192140977480316" />
<meta property="og:image" content="http://www.datamaps.eu/wp-content/uploads/opengraph.png" />
<meta property="og:type" content="article" />
<!--Facebook Like Button OpenGraph Settings End-->
<link rel="shorturl" href="http://datenlandkarte.at/gs8" />
<script type="text/javascript" src="http://www.datamaps.eu/wp-content/themes/datamaps/script.js"></script>
<script type="text/javascript">
<!--
/*
Javascript App
--------------
1. Fills up <div class="data_*"> for #format and #vis selection.
2. Creates a cache for <div class="data_*"> to not lose the
previous (before changing of #vis) data.
*/
var toggle = true; // toggle for advanced options
var _cache = { };
var old_vis = [];
jQuery(document).ready(function () {
// when format is updated, hide/show elements and write to cache
function update_data()
{
format = get_format();
path = selected2vis();
write_cache();
if (path === undefined)
return false;
jQuery('.data_manual, .data_list, .data_json, .data_kvalloc').hide();
jQuery('.data_' + format).show();
// do not request, if you have it in cache
if (_cache[format + ":" + path])
{
read_cache();
return true;
} else {
jQuery.get('api.php', {'method' : format + '_form',
'vis_path' : path, 'indent' : 12}, write_form);
return true;
}
}
// write message to form as specified by #format
function write_form(msg)
{
error = (msg == '0' || msg == '1');
if (error)
{
jQuery('#error > ul')
.append($('<li>Konnte Geodaten nicht anfragen</li>'));
}
switch (get_format())
{
case 'manual':
if (error)
jQuery('.data_manual').text('');
else
jQuery('.data_manual').html(msg);
break;
case 'list':
if (error) {
jQuery('.data_list').hide();
} else {
jQuery('.data_list').show();
jQuery('#list').text(msg);
}
break;
case 'json':
if (error) {
jQuery('.data_json').hide();
} else {
jQuery('.data_json').show();
jQuery('#json').text(msg);
}
break;
case 'kvalloc':
if (error) {
jQuery('.data_kvalloc').hide();
} else {
jQuery('.data_kvalloc').show();
jQuery('#kvalloc').text(msg);
}
break;
}
read_cache();
}
// get vis_path from #vis selection
function selected2vis()
{
return jQuery('#vis input:checked').attr('id');
}
// read data from cache
function read_cache()
{
vis = selected2vis();
format = get_format();
key = (format + ':' + vis);
// cache is empty at key
if (_cache[key] == undefined)
return;
switch (format)
{
case 'manual':
counter = 0;
for (value in _cache[key])
{
$('#manual_' + counter).val(_cache[key][value]);
counter++;
}
break;
case 'list': case 'json': case 'kvalloc':
jQuery('#' + format).val(_cache[key]);
break;
}
}
// write data to cache
function write_cache()
{
vis = old_vis[0];
format = get_format();
key = (format + ':' + vis);
if (format == undefined || vis == undefined)
return;
switch (format)
{
case 'manual':
_cache[key] = [];
var content_exists = false;
jQuery('*[name=manual[]]').each(function (index) {
value = jQuery(this).val();
_cache[key].push(value);
if (value != "")
content_exists = true;
});
if (!content_exists)
delete _cache[key];
break;
case 'list': case 'json': case 'kvalloc':
if (jQuery('#' + format).val())
{
_cache[key] = '';
_cache[key] = jQuery('#' + format).val();
}
break;
}
}
// push current element to old_vis stack
function push_vis() {
old_vis.push(jQuery('#vis input:checked').attr('id'));
// old_vis always has length 2: old_vis = [previous, current]
if (old_vis.length > 2)
old_vis = old_vis.slice(1);
}
// get format selection
function get_format()
{
return jQuery('#format option:selected').val();
}
jQuery('input, #format').click(function () {
push_vis();
update_data();
});
// Initialization
update_data();
jQuery('.arrow').text('[aufklappen]');
jQuery('#advanced').hide();
jQuery('#advanced_options').click(function () {
jQuery('#advanced').toggle();
if (toggle)
jQuery('.arrow').text('[einklappen]');
else
jQuery('.arrow').text('[aufklappen]');
toggle = (toggle) ? false : true;
});
});
-->
</script>
<style type="text/css">
<!--
.subselect {
margin-left: 10%;
}
.arrow {
font-size: 70%;
}
table {
margin: auto;
width: 100%;
}
#vis {
max-height: 200px;
overflow-y: scroll;
}
input, select {
min-width: 50px;
width: 50%;
}
#vis input, select {
width: 50px;
margin: 0px;
}
textarea {
min-width: 300px;
width: 60%;
}
.big {
font-size: 130%;
padding: 5px;
}
.two_symbols {
width: 30px;
}
.indent {
margin-left: 5% !important;
}
#beta {
margin: 10px;
background-color: #FE9;
padding: 10px;
font-style: italic;
}
.data_list, .data_json, .data_kvalloc {
display: none;
}
-->
</style>
</head>
<body class="page page-id-2 page-template page-template-default">
<div id="art-page-background-middle-texture">
<div id="art-main">
<div class="art-sheet">
<div class="art-sheet-tl"></div>
<div class="art-sheet-tr"></div>
<div class="art-sheet-bl"></div>
<div class="art-sheet-br"></div>
<div class="art-sheet-tc"></div>
<div class="art-sheet-bc"></div>
<div class="art-sheet-cl"></div>
<div class="art-sheet-cr"></div>
<div class="art-sheet-cc"></div>
<div class="art-sheet-body">
<div class="art-header">
<div class="art-header-center">
<div class="art-header-png"></div>
<div class="art-header-jpeg"></div>
</div>
<div class="art-headerobject"></div>
<div class="art-logo">
<h1 id="name-text" class="art-logo-name"><a href="http://www.datamaps.eu/">DataMaps.eu</a></h1>
<h2 id="slogan-text" class="art-logo-text">map your data</h2>
</div>
</div>
<div class="art-nav">
<div class="art-nav-l"></div>
<div class="art-nav-r"></div>
<ul class="art-menu">
<li><a href="http://www.datamaps.eu" title="Startseite"><span class="l"> </span><span class="r"> </span><span class="t">Startseite</span></a>
</li>
<li class="art-menu-li-separator"><span class="art-menu-separator"> </span></li>
<li class="active"><a class="active" href="http://www.datamaps.eu/erstellen/" title="Datenlandkarte erstellen"><span class="l"> </span><span class="r"> </span><span class="t">Datenlandkarte erstellen</span></a>
</li>
<!--<li class="art-menu-li-separator"><span class="art-menu-separator"> </span></li>
<li><a href="http://www.datamaps.eu/rohdaten/" title="Rohdaten"><span class="l"> </span><span class="r"> </span><span class="t">Rohdaten</span></a>
</li>-->
<li class="art-menu-li-separator"><span class="art-menu-separator"> </span></li>
<li><a href="http://www.datamaps.eu/vorlagen/" title="Vorlagen"><span class="l"> </span><span class="r"> </span><span class="t">Vorlagen</span></a>
</li>
<li class="art-menu-li-separator"><span class="art-menu-separator"> </span></li>
<li><a href="http://www.datamaps.eu/galerie/" title="Galerie"><span class="l"> </span><span class="r"> </span><span class="t">Galerie</span></a>
</li>
<li class="art-menu-li-separator"><span class="art-menu-separator"> </span></li>
<li><a href="http://www.datamaps.eu/blog/" title="Blog"><span class="l"> </span><span class="r"> </span><span class="t">Blog</span></a>
</li>
<li class="art-menu-li-separator"><span class="art-menu-separator"> </span></li>
<li><a href="http://www.datamaps.eu/impressum/" title="Impressum"><span class="l"> </span><span class="r"> </span><span class="t">Impressum</span></a>
</li>
</ul>
</div>
<div class="art-content-layout">
<div class="art-content-layout-row">
<div class="art-layout-cell art-content">
<div class="art-post post-2 page type-page hentry" id="post-2">
<div class="art-post-body">
<div class="art-post-inner art-article">
<form action="index.php" method="post">
<h2 class="art-postheader">Datenlandkarte erstellen
<div style="float:right;">
<!-- Begin ConveyThis Button -->
<script type="text/javascript">
var conveythis_src = 'de';
</script>
<div class="conveythis">
<a class="conveythis_drop" title="Translate" href="http://www.translation-services-usa.com/"><span class="conveythis_button_1">automatic translation</span></a>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://s1.conveythis.com/e2/_v_3/javascript/e3.js"></script>
<!-- End ConveyThis Button -->
</div>
</h2>
<div class="art-postcontent">
<noscript>
<p>
Dieses Formular arbeitet mit Javascript. Bitte aktivieren
Sie Javascript in ihrem Browser, wenn möglich.
</p>
</noscript>
<?php if (time() < 1309784400 ) { ?>
<p id="beta">
<strong>Hinweis:</strong> <br />
Dieses Werkzeug wurde neu entwickelt und befindet sich nun in der Testphase.<br/>
Bitte Fehler und Wünsche ins
<a href="http://datenlandkarten.uservoice.com/forums/100819-feedback">Feedback-Forum</a>
schreiben oder per E-Mail an <a href="mailto:[email protected]">[email protected]</a>
senden. <br /> EntwicklerInnen können den Code auch auf
<a href="https://github.com/meisterluk/datenlandkarte" target="_blank">github</a>
forken und Pull-Requests für Bugfixes erstellen.
</p>
<?php } ?>
<div id="error">
<ul>
<?php
$errors = $n->filter(2);
if (is_array($errors))
foreach ($errors as $err)
{
echo str_repeat(' ', 14).'<li><span style="color:#F00;'.
'font-weight:bold" class="'._et($err[1]).'">Error:</span> '.
_et($err[0]).'</li>'."\n";
}
?>
</ul>
</div>
<!--
<div id="cc_header">
<div id="cc_header_img">
<img src="img/cc.png" alt="Creative Commons" width="64" />
</div>
<div id="cc_header_text">
<p>
<input type="checkbox" name="shareit" id="check_share" checked="<?=_et($defaults['visibility']); ?>" />
<strong><label for="check_share">
Ja, ich möchte meine Daten öffentlich teilen.
</label></strong><br /><br />
Ich stimme zu, dass ich die Daten zuverlässig gesammelt oder
aus einer verlässlichen Quelle gewonnen habe. Ebenso
bestätige ich im zweiteren Fall das Recht zu haben, die
gewonnenen Daten unter der <a href="http://creativecommons.org/licenses/by-sa/3.0/at/">Creative
Commons Namensnennung-Weitergabe unter gleichen
Bedingungen 3.0 Österreich Lizenz</a> weitergeben zu dürfen.
Ich bin damit einverstanden, dass die eingegebenen Daten
langfristig im <a href="/rohdaten">Rohdatenverzeichnis</a> gespeichert werden und der Öffentlichkeit
zugänglich bleiben.<br />
Andernfalls werden die eingegebenen Daten genau für 1 Tag
gespeichert, sind jedoch nicht öffentlich zugänglich.
</p>
</div>
</div>
-->
<table cellpadding="6" id="main_form">
<tr>
<td style="width:45%;">
<strong>Titel:</strong> <br />
<small>Überschrift der Graphik</small>
</td>
<td>
<input type="text" maxlength="50" tabindex="1" name="title" value="<?=_et($defaults['title']); ?>" />
</td>
</tr>
<tr>
<td>
<strong>Untertitel:</strong> <br />
<small>Untertext des Titels</small>
</td>
<td style="width:45%;">
<input type="text" maxlength="120" tabindex="2" name="subtitle" value="<?=_et($defaults['subtitle']); ?>"/>
</td>
</tr>
<tr>
<td>
<strong>Farbrichtung:</strong> <br />
<a href="./theme/farbpalette.png" target="_blank"><small>Beispiele anzeigen</small></a>
</td>
<td>
<select name="grad" style="width:150px">
<?php
foreach ($color_allocation as $key => $c)
{
if ($key === $defaults['grad'])
$ch = ' selected="selected"';
else
$ch = '';
?>
<option value="<?=_et($key); ?>"<?=_et($ch)?>><?=_et($c); ?></option>
<?php } ?>
</select>
</td>
</tr>
<tr>
<td>
<label for="visibility">
<strong>
Öffentliches Teilen der Daten:
</strong> <br />
<small>
Ich lizensiere die Daten unter
<a href="http://creativecommons.org/licenses/by-sa/3.0/at/">CC By-SA</a>
und stelle sie öffentlich im <a href="http://www.datamaps.eu/rohdaten/" target="_blank">Rohdatenverzeichnis</a> zur Verfügung
</small>
</label>
</td>
<td>
<?php if ($defaults['visibility']) { ?>
<input style="min-width:0px;width:0px;" type="checkbox" name="visibility" id="visibility" checked="checked" />
<?php } else { ?>
<input style="min-width:0px;width:0px;" type="checkbox" name="visibility" id="visibility" />
<?php } ?>
</td>
<tr>
<td colspan="2">
<strong>Welche Vorlage soll verwendet werden?</strong><br/>
<small>
<a href="./vorlagen">Vorlagen, an denen wir arbeiten</a>
</small>
</td>
<tr>
<td colspan="2">
<div id="vis">
<?php
if ($defaults['vis_path'] === '')
echo $g->build_flat_radio_html(18, $default_vis_path);
else
echo $g->build_flat_radio_html(18, $defaults['vis_path']);
?>
</div>
</td>
</tr>
</table>
<div class="big" id="advanced_options">
Erweiterte Optionen <span class="arrow"></span>
</div>
<div class="indent" id="advanced">
<table cellpadding="6" id="sub_form">
<tr>
<td style="width:45%;">
<strong>Autor:</strong> <br />
<small>Ihre Identität oder ihr Nickname</small>
</td>
<td><input type="text" name="author" value="<?=_et($defaults['author']); ?>" /></td>
</tr>
<tr>
<td>
<strong>Quelle:</strong>
</td>
<td><input type="text" name="source" value="<?=_et($defaults['source']); ?>" /></td>
</tr>
<tr>
<td>
<strong>Anzahl der Farben:</strong>
</td>
<td>
<input type="text" name="colors" maxlength="3" value="<?=_et($defaults['colors']); ?>" /></td>
</td>
</tr>
<tr>
<td>
<strong>Farbpalette:</strong> <br />
<small>Statt der Farbrichtung kann man hier auch manuell
eine Farbpalette angeben.<br />
Trennen Sie die Hexfarben mit einem Komma</small>
</td>
<td>
<input type="text" name="palette" value="<?php
if (is_array($defaults['palette']))
echo _et(implode(',', $defaults['palette']));
else
echo _et($defaults['palette']);
?>" /></td>
</td>
</tr>
<tr>
<td>
<strong>Hebefaktor:</strong> <br />
<small>Jeder Wert wirt mit dem Hebefaktor multipliziert.<br />
zB mit dem Hebefaktor 0.01 lässt sich in Prozente umrechnen</small>
</td>
<td><input type="text" name="fac" value="<?=_et(sprintf("%.2f", $defaults['fac'])); ?>" /></td>
</tr>
<tr>
<td>
<strong>Anzahl der Nachkommastellen (0-3):</strong> <br />
<small>... der Zahlen in der Legende</small>
</td>
<td><input type="text" name="dec" maxlength="1" value="<?=_et($defaults['dec']); ?>" /></td>
</tr>
<tr>
<td>
<strong>Eingabeformat:</strong>
</td>
<td>
<select style="width:100px;" name="format" id="format">
<?php
foreach ($formats as $key => $f)
{
if (array_key_exists('format', $_POST) && $_POST['format'] === $key)
echo str_repeat(' ', 20).'<option value="'.
_et($key).'" selected="selected">'._e($f).'</option>'."\n";
else
echo str_repeat(' ', 20).'<option value="'.
_et($key).'">'._e($f).'</option>'."\n";
}
?>
</select>
</td>
</tr>
</table>
</div>
<div class="big">
Daten
</div>
<p class="indent">
<strong>Notiz.</strong>
fehlende Angabe werden weiß dargestellt
</p>
<p class="data_list data_kvalloc indent">
<strong>Notiz.</strong>
In Trennzeichen darf \n für einen Zeilenumbruch verwendet werden.
<span title="\ wird zu \\ und \\\ wird zu \\\\">
Dafür muss jeder Backslashfolge ein weiterer vorangestellt werden.
</span>
</p>
<div class="data_manual indent">
<table style="width:auto;" cellpadding="6">
<?php
$vp = new VisPath();
$i = 0;
foreach ($g->get($vp) as $key => $value) {
$val = array_key_exists('manual'.($i++), $_POST) ? $_POST['manual'.($i++)] : '';
if (!is_int($key))
continue;
?>
<tr>
<td style="text-align:right;"><?=_e($value['name']); ?>:</td>
<td><input type="text" name="manual[]" id="manual_<?=$key; ?>" value="<?=$val; ?>" /></td>
</tr>
<?php } ?>
</table>
</div>
<div class="data_list indent">
<textarea name="list" id="list" rows="5" cols="50"></textarea>
<p>
Trennzeichen:
<input type="text" class="two_symbols" name="list_delim" value="<?=UserInterface::delimiter_to_html($defaults['list_delim']); ?>" size="3" class="delimiter" />
</p>
</div>
<div class="data_json indent">
<textarea name="json" id="json" rows="5" cols="50"></textarea>
</div>
<div class="data_kvalloc indent">
<textarea name="kvalloc" id="kvalloc" rows="5" cols="50"></textarea> <br />
1. Trennzeichen (zw. Schlüssel-Wert-Paar)
<input type="text" class="two_symbols delimiter" name="kvalloc_delim1" value="<?=UserInterface::delimiter_to_html($defaults['kvalloc_delim1']); ?>" size="3" /> <br />
2. Trennzeichen (zw. Schlüssel und Wert)
<input type="text" class="two_symbols delimiter" name="kvalloc_delim2" value="<?=UserInterface::delimiter_to_html($defaults['kvalloc_delim2']); ?>" size="3" />
</div>
<p>
<input type="submit" id="submit" value="Erstellen" />
</p>
</form>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
<div class="art-footer">
<div class="art-footer-t"></div>
<div class="art-footer-l"></div>
<div class="art-footer-b"></div>
<div class="art-footer-r"></div>
<div class="art-footer-body">
<div class="art-footer-text">
<div style="float:left;">
<a href="http://www.open3.at" target="_blank" title="Webseite open3.at aufrufen">
<img src="http://www.datamaps.eu/wp-content/uploads/open3logo.png" alt="Open3 Logo" width="177" height="33" />
</a>
</div>
<p style="float:right;text-align:right;">
<a href="http://www.opendefinition.org/okd/deutsch/" target="_blank" title="Definition 'Offenes Wissen' auf http://opendefinition.org/ anzeigen">
<img src="http://www.datamaps.eu/wp-content/uploads/badge-od.png" alt="Badge OD" width="80" height="15" />
<img src="http://www.datamaps.eu/wp-content/uploads/badge-ok.png" alt="Badge OK" width="80" height="15" />
<img src="http://www.datamaps.eu/wp-content/uploads/badge-oc.png" alt="Badge OC" width="80" height="15" />
</a>
<br />
<a href="/impressum" style="text-decoration:none;" title="Impressum anzeigen">
Ein Projekt von open3, dem Netzwerk zur Förderung von openSociety, openGovernment und OpenData
</a>
</p>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
<p class="art-page-footer"></p>
</div>
</div><!--MiddleTextureEnd-->
<div id="wp-footer">
</div>
</body>
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.ihrwebprofi.at/piwik/" : "http://www.ihrwebprofi.at/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 10);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://www.ihrwebprofi.at/piwik/piwik.php?idsite=10" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Tag -->
</html>