advanced
bfadmin-master authored 8 years ago
|
source/structure/adpositions.html.php 1) <?php
source/structure/adpositions.html.php 2) include_once("source/logic/server/data.php");
source/structure/adpositions.html.php 3) include_once("source/logic/server/table.php");
source/structure/adpositions.html.php 4) include_once("source/logic/server/misc.php");
source/structure/adpositions.html.php 5) ?>
|
advanced
bfadmin-master authored 8 years ago
|
source/structure/adpositions.html.php 6) <section class="section" id="adpositions">
|
advanced
bfadmin-master authored 8 years ago
|
source/structure/adpositions.html.php 7) <header>Adpositions</header>
|
personal pronouns and infin...
Christian Fraß authored 8 years ago
|
source/content/adpositions.html.php 8) <?php proposal(); ?>
source/content/adpositions.html.php 9) <!--
source/content/adpositions.html.php 10) <p>The following list gives an overview over prepositions:</p>
source/content/adpositions.html.php 11) -->
|
advanced
bfadmin-master authored 8 years ago
|
source/structure/adpositions.html.php 12) <?php
|
repaired tables in content
Christian Fraß authored 8 years ago
|
source/content/adpositions.html.php 13) $data_adpositions = read_json("source/data/adpositions.json");
source/content/adpositions.html.php 14) $data = $data_adpositions["words"];
source/content/adpositions.html.php 15) {
source/content/adpositions.html.php 16) {
source/content/adpositions.html.php 17) $data = sql_cross($data, $data_adpositions["situations"]);
source/content/adpositions.html.php 18) $data = sql_select($data, function ($row) {return ($row["situation_id"] == $row["id"]);});
source/content/adpositions.html.php 19) $data = sql_delete($data, ["situation_id", "id"]);
source/content/adpositions.html.php 20) $data = sql_rename($data, "name", "situation_name");
source/content/adpositions.html.php 21) }
source/content/adpositions.html.php 22) {
source/content/adpositions.html.php 23) $data = sql_cross($data, $data_adpositions["types"]);
source/content/adpositions.html.php 24) $data = sql_select($data, function ($row) {return ($row["type_id"] == $row["id"]);});
source/content/adpositions.html.php 25) $data = sql_delete($data, ["type_id", "id"]);
source/content/adpositions.html.php 26) $data = sql_rename($data, "name", "type_name");
source/content/adpositions.html.php 27) }
source/content/adpositions.html.php 28) {
source/content/adpositions.html.php 29) $data = sql_cross($data, $data_adpositions["kinds"]);
source/content/adpositions.html.php 30) $data = sql_select($data, function ($row) {return ($row["kind_id"] == $row["id"]);});
source/content/adpositions.html.php 31) $data = sql_delete($data, ["kind_id", "id"]);
source/content/adpositions.html.php 32) $data = sql_rename($data, "name", "kind_name");
source/content/adpositions.html.php 33) }
source/content/adpositions.html.php 34) }
source/content/adpositions.html.php 35)
|
advanced
bfadmin-master authored 8 years ago
|
source/structure/adpositions.html.php 36) $table = new class_table
source/structure/adpositions.html.php 37) (
source/structure/adpositions.html.php 38) [
|
repaired tables in content
Christian Fraß authored 8 years ago
|
source/content/adpositions.html.php 39) new class_column("Language", "language_id"),
source/content/adpositions.html.php 40) new class_column("Situation", "situation_name"),
source/content/adpositions.html.php 41) new class_column("Type", "type_name"),
source/content/adpositions.html.php 42) new class_column("Kind", "kind_name"),
source/content/adpositions.html.php 43) new class_column("Words", "words", function ($x) {return json_encode($x);}),
|
advanced
bfadmin-master authored 8 years ago
|
source/structure/adpositions.html.php 44) ],
|
repaired tables in content
Christian Fraß authored 8 years ago
|
source/content/adpositions.html.php 45) $data
source/content/adpositions.html.php 46) );
source/content/adpositions.html.php 47) $table = $table->snap
source/content/adpositions.html.php 48) (
source/content/adpositions.html.php 49) [
source/content/adpositions.html.php 50) "label_vertical" => function ($column) {return "";},
source/content/adpositions.html.php 51) "columns_vertical" =>
source/content/adpositions.html.php 52) [
source/content/adpositions.html.php 53) $table->columns_get()[1],
source/content/adpositions.html.php 54) ],
source/content/adpositions.html.php 55) "label_horizontal" => function ($column, $value) {return $value;},
source/content/adpositions.html.php 56) "columns_horizontal" =>
source/content/adpositions.html.php 57) [
source/content/adpositions.html.php 58) $table->columns_get()[2],
source/content/adpositions.html.php 59) $table->columns_get()[3],
source/content/adpositions.html.php 60) ],
source/content/adpositions.html.php 61) "columns_data" =>
source/content/adpositions.html.php 62) [
source/content/adpositions.html.php 63) $table->columns_get()[0],
source/content/adpositions.html.php 64) $table->columns_get()[4],
source/content/adpositions.html.php 65) ],
source/content/adpositions.html.php 66) "data_aggregator" => function ($values)
source/content/adpositions.html.php 67) {
source/content/adpositions.html.php 68) return $values;
source/content/adpositions.html.php 69) },
source/content/adpositions.html.php 70) "data_formatter" => function ($value)
source/content/adpositions.html.php 71) {
source/content/adpositions.html.php 72) return (
source/content/adpositions.html.php 73) _bar("word")
source/content/adpositions.html.php 74) (
source/content/adpositions.html.php 75) [
source/content/adpositions.html.php 76) "original" => $value[0]["words"],
source/content/adpositions.html.php 77) "translated" => $value[1]["words"],
source/content/adpositions.html.php 78) ]
source/content/adpositions.html.php 79) )
source/content/adpositions.html.php 80) );
source/content/adpositions.html.php 81) return json_encode($value);
source/content/adpositions.html.php 82) },
source/content/adpositions.html.php 83) ]
|