Version 2
This commit is contained in:
49
pagecontent/voc-add.php
Normal file
49
pagecontent/voc-add.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<div class="fixed-title">
|
||||
<h2>
|
||||
<?php
|
||||
$sql = "SELECT `value` FROM `VokabelBox2Content` WHERE `id` = '$list'";
|
||||
$result_articles = $conn->query($sql);
|
||||
while ($articleDb = mysqli_fetch_object($result_articles))
|
||||
{
|
||||
echo $articleDb->value;
|
||||
}
|
||||
?>
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<div class="fixed-title-spacer">
|
||||
<div class="voklist default">
|
||||
<div class="head">
|
||||
<div>Englisch</div>
|
||||
<div>Deutsch</div>
|
||||
</div>
|
||||
<div class="input">
|
||||
<form action="#" onsubmit="vokInput('left'); return false;">
|
||||
<input style="margin-right: calc(50%);" placeholder="Englisch" id="vok-input" type="text" />
|
||||
</form>
|
||||
<div style="color: rgba(0,0,0,0)">undefined</div>
|
||||
<div style="color: rgba(0,0,0,0)">undefined</div>
|
||||
</div>
|
||||
<div class="dummy">
|
||||
<div>undefined</div>
|
||||
<div>undefined</div>
|
||||
</div>
|
||||
<div class="template" style="display: none;">
|
||||
<div>undefined</div>
|
||||
<div>undefined</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
$sql = "SELECT `value`,`id` FROM `VokabelBox2Content` WHERE `type` = 'voc' AND `path` = '$userid/lang/$list/' ORDER BY `create_timestamp` ASC";
|
||||
$result_articles = $conn->query($sql);
|
||||
while ($articleDb = mysqli_fetch_object($result_articles))
|
||||
{
|
||||
|
||||
$voc = json_decode($articleDb->value, true);
|
||||
?>
|
||||
<div>
|
||||
<div><form class="vocrow" action="#" onsubmit="getContent('action:vocEditSave','<?php echo $articleDb->id; ?>',''); return false;"><input id="vocedit-1-<?php echo $articleDb->id; ?>" value="<?php echo $voc[0]['1']; ?>" maxlength="30"/></form></div>
|
||||
<div><form class="vocrow" action="#" onsubmit="getContent('action:vocEditSave','<?php echo $articleDb->id; ?>',''); return false;"><input id="vocedit-2-<?php echo $articleDb->id; ?>" value="<?php echo $voc[0]['2']; ?>" maxlength="30"/></form></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
Reference in New Issue
Block a user